Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 16 additions & 15 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@

Start with the [project README](../README.md) for an overview and the commands. These guides go deeper.

| Guide | Read it when you want to |
| ------------------------------------------------ | ----------------------------------------------------------------------------- |
| [Getting started](getting-started.md) | install the project and run your first test |
| [Architecture](architecture.md) | understand the layers, the Page Object rules, and how a run is wired together |
| [Environments](environments.md) | point the suite at dev, qa, staging, or production, or add an environment |
| [Tagging](tagging.md) | choose `@smoke`, `@integration`, or `@prod` for a test |
| [Writing tests](writing-tests.md) | add a test or page object that follows the framework's rules |
| [Test data](test-data.md) | decide where a value belongs and keep tests independent |
| [Reporting](reporting.md) | find the reports and traces from a run |
| [CI/CD](ci-cd.md) | understand the workflows, environments, and secrets |
| [Guardrails](guardrails.md) | know which lint, format, and hook checks run, and why |
| [Troubleshooting](troubleshooting.md) | fix a common failure |
| [Sauce Labs](sauce-labs.md) | run the suite on Sauce Labs, and see what is and is not verified |
| [Architecture decisions](adr/README.md) | learn why the framework is built the way it is |
| [Test plans](test-plans/orangehrm-login-plan.md) | review the planned scenarios for the OrangeHRM login page |
| Guide | Read it when you want to |
| ------------------------------------------------ | --------------------------------------------------------------------------------- |
| [Getting started](getting-started.md) | install the project and run your first test |
| [Architecture](architecture.md) | understand the layers, the Page Object rules, and how a run is wired together |
| [Environments](environments.md) | point the suite at dev, qa, staging, or production, or add an environment |
| [Tagging](tagging.md) | choose `@smoke`, `@integration`, or `@prod` for a test |
| [Writing tests](writing-tests.md) | add a test or page object that follows the framework's rules |
| [Test data](test-data.md) | decide where a value belongs and keep tests independent |
| [Reporting](reporting.md) | find the reports and traces from a run |
| [CI/CD](ci-cd.md) | understand the workflows, environments, and secrets |
| [Guardrails](guardrails.md) | know which lint, format, and hook checks run, and why |
| [Troubleshooting](troubleshooting.md) | fix a common failure |
| [Sauce Labs](sauce-labs.md) | run the suite on Sauce Labs, and see what is and is not verified |
| [Architecture decisions](adr/README.md) | learn why the framework is built the way it is |
| [Test plans](test-plans/orangehrm-login-plan.md) | review the planned scenarios for the OrangeHRM login page |
| [AI assets](ai-assets.md) | see what the AI assistant files are, where they came from, and how to update them |
63 changes: 63 additions & 0 deletions docs/ai-assets.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# AI assets

The repository contains AI assistant material as well as test code. This guide says what each part is, where it came
from, and how to change it. It exists so that a reviewer can tell vendored content from first-party rules.

## Which rules apply

For work in this repository, the rules are:

1. [AGENTS.md](../AGENTS.md): shared conventions for any coding assistant
2. [CLAUDE.md](../CLAUDE.md): Claude Code instructions. It imports `AGENTS.md`.

Everything below is reference material, or a tool that an assistant may load. Where it conflicts with the two files above,
those files win.

## Inventory

| Path | What it is | Files | Source | Editable here? |
| --------------------------------- | --------------------------------------------------------------------------------- | -------- | ---------------------------------- | -------------- |
| `.agents/skills/` | Agent skills for Playwright, Node.js, and Bun | 4 skills | see Skills below | no |
| `.claude/skills/` | Same skills, copied for Claude Code | 4 skills | same as `.agents` | no |
| `.kiro/skills/` | Same skills, copied for Kiro | 4 skills | same as `.agents` | no |
| `.aidlc-rule-details/` | AI-DLC workflow rule files: process, construction, inception, operations | 31 files | not recorded in `skills-lock.json` | no |
| `.github/copilot-instructions.md` | Instructions for GitHub Copilot. Its first line says it overrides other workflows | 1 file | not recorded in `skills-lock.json` | no |

## Skills

`skills-lock.json` records the source and a content hash for each skill:

| Skill | Source | Source type |
| --------------------------- | ---------------------------------------------- | ------------------- |
| `bun` | `midudev/autoskills` | autoskills registry |
| `nodejs-backend-patterns` | `wshobson/agents` | autoskills registry |
| `nodejs-best-practices` | `sickn33/antigravity-awesome-skills` | autoskills registry |
| `playwright-best-practices` | `currents-dev/playwright-best-practices-skill` | autoskills registry |

The same skills are copied into three folders: `.agents`, `.claude`, and `.kiro`. The `playwright-best-practices` copies
were checked: all three contain the same 63 files with identical content. A change in one folder must be made in all
three, or they drift.

## Trust

Skills are text that an assistant reads and may act on. Treat them as untrusted input:

- Read a skill before adopting it. Look for instructions to run commands, fetch URLs, or read credentials.
- A skill must not change the rules in `AGENTS.md` or `CLAUDE.md`. Those files take precedence.
- Adding a skill is a change to the repository. It needs a pull request, and a reviewer must confirm its source and hash.

## How to update vendored content

Vendored content is replaced as a unit, not edited by hand.

1. Confirm the new version and its source in the upstream project.
2. Replace the files in all three skill folders with the same content.
3. Update the hash in `skills-lock.json` for that skill.
4. Open a pull request that names the skill, the old and new versions, and the upstream source.

For the `.aidlc-rule-details` and copilot files, the source is not recorded. Before changing them, record the source in
`skills-lock.json` or in this guide.

## What is not here

- No skill or AI file is executed by CI. The framework's tests and workflows do not load these files.
Loading