From 331c5531f2ecf8c26b9f229d8bc0bf762dce3da7 Mon Sep 17 00:00:00 2001 From: Scot Lunsford Date: Wed, 11 Nov 2026 16:39:53 -0600 Subject: [PATCH 1/2] docs: require assessment-kit for maintainer skill changes Dogfood assessment-kit when adding or changing repository maintainer skills. Require agents to report failures and true positives, and guide human contributors to address failures, remediate true positives, and reassess changes. --- AGENTS.md | 1 + CONTRIBUTING.md | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) 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..6a96a94 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -21,6 +21,23 @@ 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-kit setup guide](products/assessment-kit/README.md) to install the tools and configure your provider. +2. Assess each affected skill and summarize its results: + + ```sh + skill-assessment assess --skill .agents/skills/ \ + --output-dir .exchange/maintainer-assessments/ + skill-assessment summarize \ + --assessment-dir .exchange/maintainer-assessments/ + ``` + +3. Review the reports, address assessment failures, and remediate true positives. +4. Rerun the assessment after changes and 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. From 273382a7d813ec9a8fd9d8d51663d107c99d9165 Mon Sep 17 00:00:00 2001 From: Scot Lunsford Date: Wed, 2 Dec 2026 13:06:05 -0600 Subject: [PATCH 2/2] docs: guard maintainer assessment summaries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Run the checkout’s assessment CLI through uv and store reports under the ignored reports directory. Stop when assessment fails so contributors cannot mistake a retained report pair for the current result. Verified Markdown lint and formatting, 223 Python tests, and the CLI failure path with a retained report pair. Exercised both shell branches with controlled exit statuses. --- CONTRIBUTING.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6a96a94..1321939 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -25,18 +25,19 @@ For skill changes, follow [PR assessment review](CI.md#pull-request-assessment-r When adding or changing a skill under `.agents/skills/`, including deleting supporting files: -1. Follow the [assessment-kit setup guide](products/assessment-kit/README.md) to install the tools and configure your provider. -2. Assess each affected skill and summarize its results: +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-assessment assess --skill .agents/skills/ \ - --output-dir .exchange/maintainer-assessments/ - skill-assessment summarize \ - --assessment-dir .exchange/maintainer-assessments/ + 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. Review the reports, address assessment failures, and remediate true positives. -4. Rerun the assessment after changes and include the final results in your pull request’s validation notes. +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