diff --git a/AGENTS.md b/AGENTS.md index 1cf0242..4f73e93 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -11,6 +11,7 @@ These instructions apply to this repository. - When adding, revising, or reviewing tests, use [durable-behavior-tests](.agents/skills/durable-behavior-tests/SKILL.md). - For branch, PR, or local-change reviews, use [code-review](.agents/skills/code-review/SKILL.md) with the originating task and current accepted decisions. - When writing or editing skills or agent instructions, use [writing-for-agents](.agents/skills/writing-for-agents/SKILL.md). +- Run assessment-kit’s `skill-assessment assess` on each added or changed skill under `.agents/skills/`, including supporting-file deletions. Review the resulting scanner and adjudication reports, and report failures and true positives. - When creating or substantially revising user-facing documentation or its reading order, use [reader-first-documentation](.agents/skills/reader-first-documentation/SKILL.md). - For requested pair programming or delegated coding, use [pair-programming](.agents/skills/pair-programming/SKILL.md). - For a requested session retrospective, use [retro](.agents/skills/retro/SKILL.md). diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e24beaf..1321939 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -21,6 +21,24 @@ Skill packages under `products/skill-bundle/` are exchange content. Treat change For skill changes, follow [PR assessment review](CI.md#pull-request-assessment-review). Trusted same-repository PRs receive assessment; fork PRs receive no provider-backed assessment and need a maintainer to arrange matching evidence before their changed skills can build. Local generation also requires current evidence. Keep report pairs with their exact skill content; do not hand-edit evidence to make generation pass. +## Maintainer skill changes + +When adding or changing a skill under `.agents/skills/`, including deleting supporting files: + +1. Follow the [assessment prerequisites](products/assessment-kit/README.md#prerequisites) to install the scanner and configure the model provider. The commands below use the assessment kit from this checkout. +2. From the repository root, run this block for each affected skill. Replace `code-review` with the skill's directory name. Git ignores reports under `assessment-reports/`. + + ```sh + skill_name=code-review + report_dir="assessment-reports/$skill_name" + uv run --locked skill-assessment assess \ + --skill ".agents/skills/$skill_name" --output-dir "$report_dir" && + uv run --locked skill-assessment summarize --assessment-dir "$report_dir" + ``` + +3. If assessment fails, read the error and inspect any diagnostics directory it reports. Fix the failure and rerun the block. The summary runs only after assessment succeeds because the report directory can still contain results from an earlier run. +4. Review the new reports, remediate true positives, and rerun the block after changes. Include the final results in your pull request’s validation notes. + ## First-Time Setup Install [Python 3.12](https://www.python.org/downloads/), [uv](https://docs.astral.sh/uv/getting-started/installation/), [Node.js 22 with npm](https://nodejs.org/en/download) (22.23.4 or a newer Node 22 patch), and [just](https://just.systems/man/en/packages.html). The [local lint guide](docs/linting.md) also covers the required `actionlint` and `shellcheck` tools.