From 325ca5e017f15a1eb04e502a57a1a7ca858ec979 Mon Sep 17 00:00:00 2001 From: Moeen Date: Sun, 29 Nov 2026 05:12:32 +0530 Subject: [PATCH] docs: AI assets guide: provenance, trust, and how to update vendored content - docs/ai-assets.md: inventory of .agents, .claude, .kiro, .aidlc-rule-details, and .github/copilot-instructions.md; sources from skills-lock.json; the three playwright skill copies verified identical (63 files each); trust rules and the update procedure - Linked from docs/README.md No vendored file is edited. Co-Authored-By: Claude Sonnet 5.5 --- docs/README.md | 31 ++++++++++++----------- docs/ai-assets.md | 63 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+), 15 deletions(-) create mode 100644 docs/ai-assets.md diff --git a/docs/README.md b/docs/README.md index d671157..fe7a184 100644 --- a/docs/README.md +++ b/docs/README.md @@ -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 | diff --git a/docs/ai-assets.md b/docs/ai-assets.md new file mode 100644 index 0000000..db39dc7 --- /dev/null +++ b/docs/ai-assets.md @@ -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.