From bb3a60ae65747c84cc45b379325245004a12a6fd Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Sun, 15 Nov 2026 15:25:25 +0900 Subject: [PATCH] docs: bring AGENTS.md, PRINCIPLES.md and skills in line with the real layout Fix a set of inconsistencies between the framework's rules and what the repository actually does: - describe skills where they live (plugins/magpie-/skills//, with skills/ symlinks) in AGENTS.md, PRINCIPLES.md and write-skill; init_skill.py takes --family and defaults its target to the plugin dir - list every frontmatter key the validator requires for a new skill - drop the stale "main is a staging branch" and "no code to test" claims - align committer-onboarding with the / split - pre-flight fallback: git-directory home before the legacy in-tree dir - remove three code-review siblings that duplicated SKILL.md; link the import-from-md body template - rename the Vulnogram JSON generator SKILL.md to GUIDE.md: it is a tool guide - concrete record IDs in issue-sync become placeholders - issue-triage SKILL.md under 500 lines; the line-limit check now fires at 500, matching "under 500" Generated-by: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01NyQq9UgHu7T8a8DfcfyP2M --- .pre-commit-config.yaml | 2 +- AGENTS.md | 28 ++++---- PRINCIPLES.md | 4 +- ai-tutors/lesson-04-your-first-skill.md | 9 ++- docs/education/tutorials.md | 4 +- docs/education/your-first-skill.md | 9 ++- docs/security/roles.md | 4 +- docs/security/threat-model.md | 2 +- .../skills/activity-sweep/SKILL.md | 8 +-- .../skills/calibrate/SKILL.md | 8 +-- .../skills/candidate-screen/SKILL.md | 8 +-- .../skills/committer-onboarding/SKILL.md | 19 +++--- .../detail/email-templates.md | 22 +++---- .../detail/governance-asf-pmc.md | 2 +- .../detail/governance-github-codeowners.md | 2 +- .../detail/governance-maintainer-roster.md | 2 +- .../skills/contributor-to-committer/SKILL.md | 8 +-- .../skills/identity-map/SKILL.md | 8 +-- .../skills/nomination/SKILL.md | 8 +-- .../skills/onboarding-concierge/SKILL.md | 8 +-- .../skills/sentiment/SKILL.md | 8 +-- .../skills/backlog-stats/SKILL.md | 8 +-- .../magpie-issue/skills/deduplicate/SKILL.md | 8 +-- .../magpie-issue/skills/fix-workflow/SKILL.md | 8 +-- .../skills/reassess-stats/SKILL.md | 8 +-- plugins/magpie-issue/skills/reassess/SKILL.md | 8 +-- .../magpie-issue/skills/reproducer/SKILL.md | 8 +-- .../magpie-issue/skills/stale-sweep/SKILL.md | 8 +-- plugins/magpie-issue/skills/triage/SKILL.md | 13 ++-- .../skills/good-first-issue-author/SKILL.md | 8 +-- .../skills/good-first-issue-sweep/SKILL.md | 8 +-- .../skills/newcomer-issue-explainer/SKILL.md | 8 +-- .../magpie-mentoring/skills/welcome/SKILL.md | 8 +-- .../skills/multi-agent-review/SKILL.md | 8 +-- .../skills/self-review/SKILL.md | 8 +-- .../skills/code-review/SKILL.md | 8 +-- .../skills/code-review/budget-discipline.md | 12 ---- .../skills/code-review/review-loop.md | 9 --- .../skills/code-review/session-summary.md | 12 ---- .../skills/merge-candidates/SKILL.md | 8 +-- .../skills/pr-stale-sweep/SKILL.md | 8 +-- .../skills/pr-triage/SKILL.md | 8 +-- .../skills/pre-first-pr-check/SKILL.md | 8 +-- .../skills/reviewer-routing/SKILL.md | 8 +-- .../skills/stack-review/SKILL.md | 8 +-- .../skills/stats/SKILL.md | 8 +-- .../skills/thread-mentor/SKILL.md | 8 +-- .../skills/announce-draft/SKILL.md | 8 +-- .../skills/archive-sweep/SKILL.md | 8 +-- .../skills/audit-report/SKILL.md | 8 +-- .../skills/keys-sync/SKILL.md | 8 +-- .../skills/prepare/SKILL.md | 8 +-- .../skills/promote/SKILL.md | 8 +-- .../skills/rc-cut/SKILL.md | 8 +-- .../skills/verify-rc/SKILL.md | 8 +-- .../skills/vote-draft/SKILL.md | 8 +-- .../skills/vote-tally/SKILL.md | 8 +-- .../skills/audit-finding-fix/SKILL.md | 8 +-- .../skills/ci-runner-audit/SKILL.md | 8 +-- .../skills/dependency-license-audit/SKILL.md | 8 +-- .../dependency-vulnerability-audit/SKILL.md | 8 +-- .../skills/flaky-test-triage/SKILL.md | 8 +-- .../skills/license-compliance-audit/SKILL.md | 8 +-- .../skills/workflow-optimization/SKILL.md | 8 +-- .../skills/workflow-security-audit/SKILL.md | 8 +-- .../generate-cve-json/README.md | 4 +- .../skills/cve-allocate/SKILL.md | 10 +-- .../skills/issue-deduplicate/SKILL.md | 10 +-- .../magpie-security/skills/issue-fix/SKILL.md | 8 +-- .../skills/issue-import-from-md/SKILL.md | 10 +-- .../skills/issue-import-from-pr/SKILL.md | 8 +-- .../skills/issue-import-from-scan/SKILL.md | 8 +-- .../issue-import-via-forwarder/SKILL.md | 8 +-- .../skills/issue-import/SKILL.md | 8 +-- .../skills/issue-invalidate/SKILL.md | 8 +-- .../skills/issue-sync/SKILL.md | 14 ++-- .../skills/issue-sync/apply-and-push.md | 4 +- .../skills/issue-sync/bulk-mode.md | 10 +-- .../skills/issue-sync/gather.md | 2 +- .../skills/issue-sync/next-step.md | 6 +- .../issue-sync/release-vote-detection.md | 2 +- .../skills/issue-triage/SKILL.md | 8 +-- .../skills/model-prepare/SKILL.md | 8 +-- .../skills/model-update/SKILL.md | 8 +-- .../skills/model-verify/SKILL.md | 8 +-- .../skills/submit-to-oss-scan/SKILL.md | 8 +-- .../skills/tracker-stats-dashboard/SKILL.md | 8 +-- .../skills/list-skills/SKILL.md | 8 +-- .../skills/optimize-skill/SKILL.md | 8 +-- .../skills/report-framework-issue/SKILL.md | 8 +-- .../skills/skill-reconciler/SKILL.md | 8 +-- .../skills/write-skill/SKILL.md | 17 +++-- .../skills/write-skill/scripts/init_skill.py | 64 +++++++++++++------ tools/cve-tool-vulnogram/allocation.md | 2 +- .../generate-cve-json/{SKILL.md => GUIDE.md} | 0 .../generate-cve-json/README.md | 4 +- tools/cve-tool-vulnogram/record.md | 2 +- tools/dev/check-family-plugins.py | 4 +- tools/dev/preflight-block.md | 6 +- .../src/skill_and_tool_validator/__init__.py | 6 +- .../tests/test_validator.py | 11 +++- tools/spec-loop/specs/pr-management-family.md | 2 +- 102 files changed, 437 insertions(+), 420 deletions(-) delete mode 100644 plugins/magpie-pr-management/skills/code-review/budget-discipline.md delete mode 100644 plugins/magpie-pr-management/skills/code-review/review-loop.md delete mode 100644 plugins/magpie-pr-management/skills/code-review/session-summary.md rename tools/cve-tool-vulnogram/generate-cve-json/{SKILL.md => GUIDE.md} (100%) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index be6135824..314183de6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -79,7 +79,7 @@ repos: # (plugins/magpie-security-tools/plugins/...): the copy is regenerated # from its source, which this list already skips, so a TOC added here # is reverted by that hook on the next run. - exclude: ^(plugins/magpie-[^/]+/plugins/.*|plugins/magpie-[^/]+/commands/.*|tools/adversarial-review/commands/.*|\.claude/skills/.*|\.agents/skills/.*|\.github/skills/.*|skills/.*|plugins/magpie-[^/]+/skills/.*|tools/cve-tool-vulnogram/generate-cve-json/SKILL\.md|tools/skill-evals/.*|tools/spec-loop/.*|\.github/PULL_REQUEST_TEMPLATE\.md|tools/dev/blocks/.*|tools/dev/preflight-block\.md|tools/setup-preflight/src/setup_preflight/sections/.*)$ + exclude: ^(plugins/magpie-[^/]+/plugins/.*|plugins/magpie-[^/]+/commands/.*|tools/adversarial-review/commands/.*|\.claude/skills/.*|\.agents/skills/.*|\.github/skills/.*|skills/.*|plugins/magpie-[^/]+/skills/.*|tools/cve-tool-vulnogram/generate-cve-json/GUIDE\.md|tools/skill-evals/.*|tools/spec-loop/.*|\.github/PULL_REQUEST_TEMPLATE\.md|tools/dev/blocks/.*|tools/dev/preflight-block\.md|tools/setup-preflight/src/setup_preflight/sections/.*)$ args: - "--maxlevel" - "3" diff --git a/AGENTS.md b/AGENTS.md index bb3f654dd..0bc1da0a1 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -113,11 +113,14 @@ Repo-root files: - [`docs/security/how-the-security-team-works.md`](docs/security/how-the-security-team-works.md) — how the security team operates, and the onboarding guide for new members. - [`projects/_template/`](plugins/magpie-setup/templates/) — bootstrap scaffold for a new adopter's `/`. - [`tools//`](tools/) — tool adapters (GitHub operations, issue-template schema, project-board GraphQL, …) for the external tools the skills invoke. -- [`skills//SKILL.md`](skills/) — the agentic workflows. +- [`plugins/magpie-/skills//SKILL.md`](plugins/) — the agentic workflows, each in its family plugin; [`skills/`](skills/) is the flat tree of symlinks into them. - `.agents/skills/magpie-/`, `.claude/skills/magpie-/`, `.github/skills/magpie-/` — committed symlinks created by this repo's self-adoption (`/magpie-setup method:local`) so the framework's own skills are callable from any harness while developing it; targets are in-repo so no snapshot or remote fetch is involved. Mechanics: [`skills/setup/install.md`](skills/setup/install.md) → "Local self-adoption". -There is no source code to build or test in this framework -repository itself. Adopting projects may include project-specific +There is no application to build here: the skills are Markdown the agent reads. +The code the repository does carry is the Python tooling under `tools/` +(the Python projects there are members of one `uv` workspace) and the `tools/dev/` checks, +which the `ruff` / `mypy` / `pytest` hooks gate (see [Local setup](#local-setup)). +Adopting projects may include project-specific build artifacts (e.g. a `/cve-json/` Python helper) in their tracker repo. @@ -631,9 +634,7 @@ to a home-dir path and update the tool to read from there. plain command (`gh pr close `, `gh issue close --reason "not planned"`). - **Target branch for this repository is declared in the project manifest** — see [`/project.md`](/project.md#repositories) - (`tracker_default_branch`). The non-default branch (`main`) is used only as a - staging branch for the private-PR fallback described in - [`README.md`](README.md). Unless the user explicitly says otherwise, base + (`tracker_default_branch`). Unless the user explicitly says otherwise, base PRs on the tracker's default branch. - **Spec-sync pre-check before pushing a functionality PR.** The specs in [`tools/spec-loop/specs/`](tools/spec-loop/specs/) are the source of truth @@ -1122,8 +1123,10 @@ and ## Reusable skills -Reusable, agent-friendly task definitions live under -[`skills/`](skills/). Each skill is a plain Markdown file with YAML +Reusable, agent-friendly task definitions live in the family plugins, +`plugins/magpie-/skills//`, +and the flat [`skills/`](skills/) tree links to each of them by its full name. +Each skill is a plain Markdown file with YAML frontmatter, so it can be picked up by Claude Code, GitHub Copilot, and any other agent that follows the emerging skill convention. When a new recurring task is automated, add it as a skill rather than burying the @@ -1138,12 +1141,15 @@ for its full contract): - [`security-issue-sync`](skills/security-issue-sync/SKILL.md) — reconciles an issue with its GitHub discussion, mail thread, and fixing PRs; proposes label / milestone / field / draft-email updates and refreshes the CVE JSON attachment at the end of every run. - [`security-cve-allocate`](skills/security-cve-allocate/SKILL.md) — walks the user through the PMC-gated CVE-allocation form (or reshapes it into a relay message for a non-PMC user), normalises the title, updates the tracker in one pass, and hands off to `security-issue-sync`. - [`security-issue-fix`](skills/security-issue-fix/SKILL.md) — runs `security-issue-sync`, then (when the fix is clear and small) writes the change in the local `` clone, runs checks, and opens a scrubbed public PR via `gh pr create --web`; every public surface is scrubbed for CVE / tracker-slug / `vulnerability` / `security fix` leakage. -- [`generate-cve-json`](tools/cve-tool-vulnogram/generate-cve-json/SKILL.md) — deterministic `uv run` script that emits a paste-ready CVE 5.x JSON record (Vulnogram shape) from a tracking issue, filtering the CVE-tool and `` URLs out of `references[]`. + +These skills build the CVE record with the [`generate-cve-json`](tools/cve-tool-vulnogram/generate-cve-json/README.md) tool, +a deterministic `uv run` script (not a skill) that emits a paste-ready CVE 5.x JSON record (Vulnogram shape) from a tracking issue, +filtering the CVE-tool and `` URLs out of `references[]`. When adding a new skill: -- place it under `skills//SKILL.md`; -- start with YAML frontmatter containing `name`, `description`, and `when_to_use`; +- place its content in its family plugin, `plugins/magpie-/skills//SKILL.md`, and link it into the flat tree as `skills/` → `../plugins/magpie-/skills/` (the [`write-skill`](skills/write-skill/SKILL.md) scaffold and `tools/dev/check-family-plugins.py` cover the details); +- start with YAML frontmatter containing every key the validator requires: `name` (the ``), `description`, `when_to_use`, `license`, `capability`, `family` and `mode`; - make every state-changing action a *proposal* that requires explicit user confirmation before it runs; - avoid agent-specific syntax so the skill remains portable across tools; - **ship a behavioural eval suite** under [`tools/skill-evals/evals//`](tools/skill-evals/) — see [Keeping evals and mode-economics in sync](#keeping-evals-and-mode-economics-in-sync). The [`write-skill`](skills/write-skill/SKILL.md) skill prompts for the capability frontmatter on every new-skill scaffold. A skill PR without a matching eval suite is incomplete. diff --git a/PRINCIPLES.md b/PRINCIPLES.md index c9e10cc1c..77dc5066e 100644 --- a/PRINCIPLES.md +++ b/PRINCIPLES.md @@ -128,7 +128,7 @@ Releases are reproducible from signed source to the extent the toolchain permits ## 13. The framework is project-agnostic; concrete names live in adopter config -Skills, tool adapters, and root docs use `` / `` / `` / `` placeholders and resolve them at runtime from `/project.md` and the resolved `user.md`. A concrete name (`apache/airflow`, a real CVE ID, a mailing list address) inside `.claude/skills/` or `tools/` is a refactor bug, not a shortcut. Swapping projects is a config change, never a code change. +Skills, tool adapters, and root docs use `` / `` / `` / `` placeholders and resolve them at runtime from `/project.md` and the resolved `user.md`. A concrete name (`apache/airflow`, a real CVE ID, a mailing list address) inside a skill (`plugins/magpie-/skills/`) or `tools/` is a refactor bug, not a shortcut. Swapping projects is a config change, never a code change. ## 14. One easy install that upgrades and reconciles, never vendored copies @@ -144,7 +144,7 @@ The concrete install methods are described in [`docs/quick-start/`](docs/quick-s ## 15. Skills are the unit of authorship -A skill is always a directory under `.claude/skills//` with `SKILL.md` as its entrypoint, even when the workflow fits in a single file. `SKILL.md` stays under 500 lines; reference material beyond that moves into sibling markdown linked one level deep, with no unreferenced siblings. Skills are code in every meaningful sense: reviewed in PRs, versioned, signed by the same release process as the rest of the framework. Refactor at the skill boundary, never below it. +A skill is always a directory with `SKILL.md` as its entrypoint, even when the workflow fits in a single file: in this repository `plugins/magpie-/skills//`, which the flat `skills/` tree links to. `SKILL.md` stays under 500 lines; reference material beyond that moves into sibling markdown linked one level deep, with no unreferenced siblings. Skills are code in every meaningful sense: reviewed in PRs, versioned, signed by the same release process as the rest of the framework. Refactor at the skill boundary, never below it. ## 16. Tracker identifiers are public-safe; tracker contents are not diff --git a/ai-tutors/lesson-04-your-first-skill.md b/ai-tutors/lesson-04-your-first-skill.md index 4ab993728..9ed6206b1 100644 --- a/ai-tutors/lesson-04-your-first-skill.md +++ b/ai-tutors/lesson-04-your-first-skill.md @@ -257,15 +257,18 @@ Apache-2.0 licensed. > ## Step 2 — Create the starter skill file > > The framework ships a script that creates a starter file for you. Run it from -> the repository root, passing the skill name and the output directory: +> the repository root, passing the skill's short name (its alias) and its family: > > ```bash -> python3 skills/write-skill/scripts/init_skill.py --path skills/ +> python3 skills/write-skill/scripts/init_skill.py --family > ``` > -> This creates `skills//SKILL.md` with the required settings keys, +> This creates `plugins/magpie-/skills//SKILL.md` with the required settings keys, > the SPDX comment, the placeholder comment, and the adopter-overrides section > already in place. +> Link it into the flat `skills/` tree with a symlink: +> `ln -s ../plugins/magpie-/skills/ skills/-`. +> The rest of this guide reaches the skill through that link. > > Fill in the settings (the frontmatter) before you write the body: > diff --git a/docs/education/tutorials.md b/docs/education/tutorials.md index 26383626c..d08a5978e 100644 --- a/docs/education/tutorials.md +++ b/docs/education/tutorials.md @@ -107,7 +107,9 @@ A broken local setup is the most common thing that stalls this tutorial. ```bash python3 skills/write-skill/scripts/init_skill.py dependency-licence-check \ - --path skills/dependency-licence-check + --family repo-health + ln -s ../plugins/magpie-repo-health/skills/dependency-licence-check \ + skills/dependency-licence-check ``` 2. Fill in the frontmatter. A filled-in version looks like this: diff --git a/docs/education/your-first-skill.md b/docs/education/your-first-skill.md index 1875d39a1..d2c9d9d8a 100644 --- a/docs/education/your-first-skill.md +++ b/docs/education/your-first-skill.md @@ -142,15 +142,18 @@ review, and harder to improve. Pick the smallest piece you can check. ## Step 2 — Create the starter skill file The framework ships a script that creates a starter file for you. Run it from -the repository root, passing the skill name and the output directory: +the repository root, passing the skill's short name (its alias) and its family: ```bash -python3 skills/write-skill/scripts/init_skill.py --path skills/ +python3 skills/write-skill/scripts/init_skill.py --family ``` -This creates `skills//SKILL.md` with the required settings keys, +This creates `plugins/magpie-/skills//SKILL.md` with the required settings keys, the SPDX comment, the placeholder comment, and the adopter-overrides section already in place. +Link it into the flat `skills/` tree with a symlink: +`ln -s ../plugins/magpie-/skills/ skills/-`. +The rest of this guide reaches the skill through that link. Fill in the settings (the frontmatter) before you write the body: diff --git a/docs/security/roles.md b/docs/security/roles.md index 8ed3a1c71..10676a2e8 100644 --- a/docs/security/roles.md +++ b/docs/security/roles.md @@ -239,7 +239,7 @@ for the full detail. proposal. - [`security-cve-allocate`](../../skills/security-cve-allocate/SKILL.md) — *"allocate a CVE for "*. -- [`generate-cve-json`](../../tools/cve-tool-vulnogram/generate-cve-json/SKILL.md) — to +- [`generate-cve-json`](../../tools/cve-tool-vulnogram/generate-cve-json/GUIDE.md) — to refresh the paste-ready JSON embedded in the issue body on demand. (The named example here is the Vulnogram adapter under `tools/cve-tool-vulnogram/`; resolved from `cve_authority.tool` in @@ -476,7 +476,7 @@ relay is the ASF security team.) See current record state). Subsequent syncs by the security team drive the post-advisory close-out automatically when the archive URL appears on ``. -- [`generate-cve-json`](../../tools/cve-tool-vulnogram/generate-cve-json/SKILL.md) — to +- [`generate-cve-json`](../../tools/cve-tool-vulnogram/generate-cve-json/GUIDE.md) — to regenerate the attachment on demand when a body field changes after the URL has been captured (rarely needed — sync regenerates and re-pushes on every relevant body change). The link points at the named ASF diff --git a/docs/security/threat-model.md b/docs/security/threat-model.md index 74325ed22..a5674ebcc 100644 --- a/docs/security/threat-model.md +++ b/docs/security/threat-model.md @@ -239,7 +239,7 @@ Defaults alone do not decide routing: a report that needs a non-default knob rou | Text returned to the LLM by adapters | Carries external content verbatim; not taint-marked | — | that it was sanitised (only private-list bodies pass the privacy-LLM redactor). `documented` ([tools/mail-source/contract.md](../../tools/mail-source/contract.md)) | | Public PRs, comments, commits, mail drafts | Agent-authored | Created only after operator confirmation; mail is drafted, never sent. `documented` (AGENTS.md; [tools/gmail/tool.md](../../tools/gmail/tool.md)) | that agent text is free of errors — the operator reviews it | | Email drafts | Agent-authored | Plain text only through the Magpie Gmail MCP. `documented` ([tools/gmail/oauth-draft/README.md](../../tools/gmail/oauth-draft/README.md)) | that drafts made through other connectors are free of tracking | -| CVE JSON | Built from tracker fields | Tracker and CVE-tool URLs are never exported to `references[]`. `documented` ([generate-cve-json/SKILL.md](../../tools/cve-tool-vulnogram/generate-cve-json/SKILL.md)) | that reporter-derived fields (credit, summary) were verified — a human confirms them | +| CVE JSON | Built from tracker fields | Tracker and CVE-tool URLs are never exported to `references[]`. `documented` ([generate-cve-json/GUIDE.md](../../tools/cve-tool-vulnogram/generate-cve-json/GUIDE.md)) | that reporter-derived fields (credit, summary) were verified — a human confirms them | | GitHub Security Advisory fields | Built from tracker fields | A state change like any other: written only after operator confirmation (C-G1). `documented` | that reporter-derived fields were verified | | Commit metadata | — | Attribution follows the project's convention; no AI `Co-Authored-By:` on this repository. `documented` (AGENTS.md) | — | | Adversarial-review and typed-decision results | Other models' output | Advisory; never applied without the operator. `documented` | that findings are correct | diff --git a/plugins/magpie-contributor-growth/skills/activity-sweep/SKILL.md b/plugins/magpie-contributor-growth/skills/activity-sweep/SKILL.md index af539791a..d8190ef99 100644 --- a/plugins/magpie-contributor-growth/skills/activity-sweep/SKILL.md +++ b/plugins/magpie-contributor-growth/skills/activity-sweep/SKILL.md @@ -20,7 +20,7 @@ argument-hint: " [window:Nm]" capability: capability:stats surface_hash: sha256:a39919af92a37e2d license: Apache-2.0 -measured_tokens: 3713 +measured_tokens: 3712 --- @@ -72,9 +72,9 @@ Never add one. or personal layer (any of the directories below), nothing has been set up here and there is nothing to reconcile — resolve this skill's `requires_config:` entries - yourself (first match wins: `.apache-magpie-local/`, the main - checkout's `.apache-magpie-local/`, `/apache-magpie/`, - `.svn/apache-magpie/`, then `.apache-magpie-overrides/`), stay silent if they all resolve, and + yourself (first match wins: `/apache-magpie/` + or, in a Subversion working copy, `.svn/apache-magpie/`; then a legacy + in-tree `.apache-magpie-local/`; then `.apache-magpie-overrides/`), stay silent if they all resolve, and run `/magpie-setup:setup config` for this skill if any does not, which also installs the checker. Otherwise the project *is* set up and its checker is missing or stale: say so, propose `/magpie-setup:setup config` to install diff --git a/plugins/magpie-contributor-growth/skills/sentiment/SKILL.md b/plugins/magpie-contributor-growth/skills/sentiment/SKILL.md index d4c4ed208..02bf27086 100644 --- a/plugins/magpie-contributor-growth/skills/sentiment/SKILL.md +++ b/plugins/magpie-contributor-growth/skills/sentiment/SKILL.md @@ -20,7 +20,7 @@ argument-hint: "[window:Nm] [baseline:YYYY-MM-DD..YYYY-MM-DD]" capability: capability:stats surface_hash: sha256:c325db1d99634a51 license: Apache-2.0 -measured_tokens: 4849 +measured_tokens: 4848 --- @@ -77,9 +77,9 @@ Never add one. or personal layer (any of the directories below), nothing has been set up here and there is nothing to reconcile — resolve this skill's `requires_config:` entries - yourself (first match wins: `.apache-magpie-local/`, the main - checkout's `.apache-magpie-local/`, `/apache-magpie/`, - `.svn/apache-magpie/`, then `.apache-magpie-overrides/`), stay silent if they all resolve, and + yourself (first match wins: `/apache-magpie/` + or, in a Subversion working copy, `.svn/apache-magpie/`; then a legacy + in-tree `.apache-magpie-local/`; then `.apache-magpie-overrides/`), stay silent if they all resolve, and run `/magpie-setup:setup config` for this skill if any does not, which also installs the checker. Otherwise the project *is* set up and its checker is missing or stale: say so, propose `/magpie-setup:setup config` to install diff --git a/plugins/magpie-mentoring/skills/good-first-issue-sweep/SKILL.md b/plugins/magpie-mentoring/skills/good-first-issue-sweep/SKILL.md index ab896048d..4484f4e22 100644 --- a/plugins/magpie-mentoring/skills/good-first-issue-sweep/SKILL.md +++ b/plugins/magpie-mentoring/skills/good-first-issue-sweep/SKILL.md @@ -27,7 +27,7 @@ capability: - capability:triage surface_hash: sha256:591ae352325ca83d license: Apache-2.0 -measured_tokens: 4746 +measured_tokens: 4745 --- @@ -79,9 +79,9 @@ Never add one. or personal layer (any of the directories below), nothing has been set up here and there is nothing to reconcile — resolve this skill's `requires_config:` entries - yourself (first match wins: `.apache-magpie-local/`, the main - checkout's `.apache-magpie-local/`, `/apache-magpie/`, - `.svn/apache-magpie/`, then `.apache-magpie-overrides/`), stay silent if they all resolve, and + yourself (first match wins: `/apache-magpie/` + or, in a Subversion working copy, `.svn/apache-magpie/`; then a legacy + in-tree `.apache-magpie-local/`; then `.apache-magpie-overrides/`), stay silent if they all resolve, and run `/magpie-setup:setup config` for this skill if any does not, which also installs the checker. Otherwise the project *is* set up and its checker is missing or stale: say so, propose `/magpie-setup:setup config` to install diff --git a/plugins/magpie-mentoring/skills/newcomer-issue-explainer/SKILL.md b/plugins/magpie-mentoring/skills/newcomer-issue-explainer/SKILL.md index 39c86e91c..d94d61772 100644 --- a/plugins/magpie-mentoring/skills/newcomer-issue-explainer/SKILL.md +++ b/plugins/magpie-mentoring/skills/newcomer-issue-explainer/SKILL.md @@ -24,7 +24,7 @@ argument-hint: "[issue-number or issue-URL]" capability: capability:review surface_hash: sha256:8cfe453a3113abe2 license: Apache-2.0 -measured_tokens: 3798 +measured_tokens: 3797 --- @@ -75,9 +75,9 @@ Never add one. or personal layer (any of the directories below), nothing has been set up here and there is nothing to reconcile — resolve this skill's `requires_config:` entries - yourself (first match wins: `.apache-magpie-local/`, the main - checkout's `.apache-magpie-local/`, `/apache-magpie/`, - `.svn/apache-magpie/`, then `.apache-magpie-overrides/`), stay silent if they all resolve, and + yourself (first match wins: `/apache-magpie/` + or, in a Subversion working copy, `.svn/apache-magpie/`; then a legacy + in-tree `.apache-magpie-local/`; then `.apache-magpie-overrides/`), stay silent if they all resolve, and run `/magpie-setup:setup config` for this skill if any does not, which also installs the checker. Otherwise the project *is* set up and its checker is missing or stale: say so, propose `/magpie-setup:setup config` to install diff --git a/plugins/magpie-mentoring/skills/welcome/SKILL.md b/plugins/magpie-mentoring/skills/welcome/SKILL.md index 7b3a5bb8e..cff5f53cc 100644 --- a/plugins/magpie-mentoring/skills/welcome/SKILL.md +++ b/plugins/magpie-mentoring/skills/welcome/SKILL.md @@ -24,7 +24,7 @@ argument-hint: "[issue-or-pr-number]" capability: capability:review surface_hash: sha256:a61c6575d69da08a license: Apache-2.0 -measured_tokens: 3686 +measured_tokens: 3685 --- @@ -75,9 +75,9 @@ Never add one. or personal layer (any of the directories below), nothing has been set up here and there is nothing to reconcile — resolve this skill's `requires_config:` entries - yourself (first match wins: `.apache-magpie-local/`, the main - checkout's `.apache-magpie-local/`, `/apache-magpie/`, - `.svn/apache-magpie/`, then `.apache-magpie-overrides/`), stay silent if they all resolve, and + yourself (first match wins: `/apache-magpie/` + or, in a Subversion working copy, `.svn/apache-magpie/`; then a legacy + in-tree `.apache-magpie-local/`; then `.apache-magpie-overrides/`), stay silent if they all resolve, and run `/magpie-setup:setup config` for this skill if any does not, which also installs the checker. Otherwise the project *is* set up and its checker is missing or stale: say so, propose `/magpie-setup:setup config` to install diff --git a/plugins/magpie-pairing/skills/multi-agent-review/SKILL.md b/plugins/magpie-pairing/skills/multi-agent-review/SKILL.md index b371edaab..5bc9ccf12 100644 --- a/plugins/magpie-pairing/skills/multi-agent-review/SKILL.md +++ b/plugins/magpie-pairing/skills/multi-agent-review/SKILL.md @@ -21,7 +21,7 @@ argument-hint: "[base:] [staged] [path:]" capability: capability:review surface_hash: sha256:d1b0ba75f03a00c1 license: Apache-2.0 -measured_tokens: 3936 +measured_tokens: 3935 --- @@ -74,9 +74,9 @@ Never add one. or personal layer (any of the directories below), nothing has been set up here and there is nothing to reconcile — resolve this skill's `requires_config:` entries - yourself (first match wins: `.apache-magpie-local/`, the main - checkout's `.apache-magpie-local/`, `/apache-magpie/`, - `.svn/apache-magpie/`, then `.apache-magpie-overrides/`), stay silent if they all resolve, and + yourself (first match wins: `/apache-magpie/` + or, in a Subversion working copy, `.svn/apache-magpie/`; then a legacy + in-tree `.apache-magpie-local/`; then `.apache-magpie-overrides/`), stay silent if they all resolve, and run `/magpie-setup:setup config` for this skill if any does not, which also installs the checker. Otherwise the project *is* set up and its checker is missing or stale: say so, propose `/magpie-setup:setup config` to install diff --git a/plugins/magpie-pairing/skills/self-review/SKILL.md b/plugins/magpie-pairing/skills/self-review/SKILL.md index f0c02cd23..a54d4a014 100644 --- a/plugins/magpie-pairing/skills/self-review/SKILL.md +++ b/plugins/magpie-pairing/skills/self-review/SKILL.md @@ -20,7 +20,7 @@ argument-hint: "[base:] [staged] [path:]" capability: capability:review surface_hash: sha256:ea0a2e29bb2aa0e0 license: Apache-2.0 -measured_tokens: 3919 +measured_tokens: 3918 --- @@ -73,9 +73,9 @@ Never add one. or personal layer (any of the directories below), nothing has been set up here and there is nothing to reconcile — resolve this skill's `requires_config:` entries - yourself (first match wins: `.apache-magpie-local/`, the main - checkout's `.apache-magpie-local/`, `/apache-magpie/`, - `.svn/apache-magpie/`, then `.apache-magpie-overrides/`), stay silent if they all resolve, and + yourself (first match wins: `/apache-magpie/` + or, in a Subversion working copy, `.svn/apache-magpie/`; then a legacy + in-tree `.apache-magpie-local/`; then `.apache-magpie-overrides/`), stay silent if they all resolve, and run `/magpie-setup:setup config` for this skill if any does not, which also installs the checker. Otherwise the project *is* set up and its checker is missing or stale: say so, propose `/magpie-setup:setup config` to install diff --git a/plugins/magpie-pr-management/skills/code-review/SKILL.md b/plugins/magpie-pr-management/skills/code-review/SKILL.md index 80b61846a..89c5e1872 100644 --- a/plugins/magpie-pr-management/skills/code-review/SKILL.md +++ b/plugins/magpie-pr-management/skills/code-review/SKILL.md @@ -22,7 +22,7 @@ when_to_use: | produced reviewable PRs; skip when triage has not engaged the PR. argument-hint: "[pr:N] [area:LBL] [collab:true|false] [team:NAME] [ready] [dry-run]" capability: capability:review -surface_hash: sha256:871da2459ce53192 +surface_hash: sha256:5540df0191ad8033 license: Apache-2.0 measured_tokens: 4142 --- @@ -76,9 +76,9 @@ Never add one. or personal layer (any of the directories below), nothing has been set up here and there is nothing to reconcile — resolve this skill's `requires_config:` entries - yourself (first match wins: `.apache-magpie-local/`, the main - checkout's `.apache-magpie-local/`, `/apache-magpie/`, - `.svn/apache-magpie/`, then `.apache-magpie-overrides/`), stay silent if they all resolve, and + yourself (first match wins: `/apache-magpie/` + or, in a Subversion working copy, `.svn/apache-magpie/`; then a legacy + in-tree `.apache-magpie-local/`; then `.apache-magpie-overrides/`), stay silent if they all resolve, and run `/magpie-setup:setup config` for this skill if any does not, which also installs the checker. Otherwise the project *is* set up and its checker is missing or stale: say so, propose `/magpie-setup:setup config` to install diff --git a/plugins/magpie-pr-management/skills/code-review/budget-discipline.md b/plugins/magpie-pr-management/skills/code-review/budget-discipline.md deleted file mode 100644 index 15b01210a..000000000 --- a/plugins/magpie-pr-management/skills/code-review/budget-discipline.md +++ /dev/null @@ -1,12 +0,0 @@ - - -## Budget discipline - -Per session: one paginated sweep of open PRs (`gql-cr-open`) and the -once-per-session reads `queue` asks for (the ownership file, team rosters, -the viewer's recent commits). Per reviewed PR: the full read (`gql-cr-pr`), -the diff, 0–3 path-history reads for reviewer suggestions, the liveness read -before posting, and one post — `session record --calls` tallies them and -flags a session past ~100 calls. That is mis-batching (most likely a -re-fetch per finding): stop and fix the call pattern; never sleep and retry. diff --git a/plugins/magpie-pr-management/skills/code-review/review-loop.md b/plugins/magpie-pr-management/skills/code-review/review-loop.md deleted file mode 100644 index 302f019d7..000000000 --- a/plugins/magpie-pr-management/skills/code-review/review-loop.md +++ /dev/null @@ -1,9 +0,0 @@ - - -## Step 2 — Sequential per-PR review - -The per-PR loop — headline, context, slop scan, body scans, findings, reviewer -suggestions, adversarial read, disposition, inline picker, body, SHA recheck, -post — is [`review-flow.md`](review-flow.md). Inline review comments are the -default output; a body-only review is the explicit `inline:off` exception. diff --git a/plugins/magpie-pr-management/skills/code-review/session-summary.md b/plugins/magpie-pr-management/skills/code-review/session-summary.md deleted file mode 100644 index 6d57132af..000000000 --- a/plugins/magpie-pr-management/skills/code-review/session-summary.md +++ /dev/null @@ -1,12 +0,0 @@ - - -## Step 3 — Session summary - -Each PR's outcome is recorded with `uv run --project /tools/pr-management pr-management code-review session record` as the loop goes -(Step 9 of [`review-flow.md`](review-flow.md)). On exit, print the `text` of -`uv run --project /tools/pr-management pr-management code-review session summary --session /cr-session.json --untouched `: -reviews per disposition (a `FIXUP` counts as a review), skips with the maintainer's reasons, PRs left -untouched, which PRs had adversarial findings folded in, time, throughput and -the GitHub calls spent. The summary is for the maintainer's records — this -skill never writes a session log anywhere else. diff --git a/plugins/magpie-pr-management/skills/merge-candidates/SKILL.md b/plugins/magpie-pr-management/skills/merge-candidates/SKILL.md index f30648b99..589d7c9f6 100644 --- a/plugins/magpie-pr-management/skills/merge-candidates/SKILL.md +++ b/plugins/magpie-pr-management/skills/merge-candidates/SKILL.md @@ -26,7 +26,7 @@ capability: - capability:review surface_hash: sha256:99ac70a7b7f1228c license: Apache-2.0 -measured_tokens: 3305 +measured_tokens: 3304 --- @@ -79,9 +79,9 @@ Never add one. or personal layer (any of the directories below), nothing has been set up here and there is nothing to reconcile — resolve this skill's `requires_config:` entries - yourself (first match wins: `.apache-magpie-local/`, the main - checkout's `.apache-magpie-local/`, `/apache-magpie/`, - `.svn/apache-magpie/`, then `.apache-magpie-overrides/`), stay silent if they all resolve, and + yourself (first match wins: `/apache-magpie/` + or, in a Subversion working copy, `.svn/apache-magpie/`; then a legacy + in-tree `.apache-magpie-local/`; then `.apache-magpie-overrides/`), stay silent if they all resolve, and run `/magpie-setup:setup config` for this skill if any does not, which also installs the checker. Otherwise the project *is* set up and its checker is missing or stale: say so, propose `/magpie-setup:setup config` to install diff --git a/plugins/magpie-pr-management/skills/pre-first-pr-check/SKILL.md b/plugins/magpie-pr-management/skills/pre-first-pr-check/SKILL.md index 6c2056aa0..69e569a7c 100644 --- a/plugins/magpie-pr-management/skills/pre-first-pr-check/SKILL.md +++ b/plugins/magpie-pr-management/skills/pre-first-pr-check/SKILL.md @@ -21,7 +21,7 @@ argument-hint: "[base:] [path:]" capability: capability:review surface_hash: sha256:4219bd5fdce4e81d license: Apache-2.0 -measured_tokens: 2791 +measured_tokens: 2790 --- @@ -74,9 +74,9 @@ Never add one. or personal layer (any of the directories below), nothing has been set up here and there is nothing to reconcile — resolve this skill's `requires_config:` entries - yourself (first match wins: `.apache-magpie-local/`, the main - checkout's `.apache-magpie-local/`, `/apache-magpie/`, - `.svn/apache-magpie/`, then `.apache-magpie-overrides/`), stay silent if they all resolve, and + yourself (first match wins: `/apache-magpie/` + or, in a Subversion working copy, `.svn/apache-magpie/`; then a legacy + in-tree `.apache-magpie-local/`; then `.apache-magpie-overrides/`), stay silent if they all resolve, and run `/magpie-setup:setup config` for this skill if any does not, which also installs the checker. Otherwise the project *is* set up and its checker is missing or stale: say so, propose `/magpie-setup:setup config` to install diff --git a/plugins/magpie-pr-management/skills/reviewer-routing/SKILL.md b/plugins/magpie-pr-management/skills/reviewer-routing/SKILL.md index b63117fc9..3b38da8c5 100644 --- a/plugins/magpie-pr-management/skills/reviewer-routing/SKILL.md +++ b/plugins/magpie-pr-management/skills/reviewer-routing/SKILL.md @@ -22,7 +22,7 @@ argument-hint: "[pr: | issue:] [--repo owner/name]" capability: capability:triage surface_hash: sha256:159e840396b7a667 license: Apache-2.0 -measured_tokens: 3507 +measured_tokens: 3506 --- @@ -78,9 +78,9 @@ Never add one. or personal layer (any of the directories below), nothing has been set up here and there is nothing to reconcile — resolve this skill's `requires_config:` entries - yourself (first match wins: `.apache-magpie-local/`, the main - checkout's `.apache-magpie-local/`, `/apache-magpie/`, - `.svn/apache-magpie/`, then `.apache-magpie-overrides/`), stay silent if they all resolve, and + yourself (first match wins: `/apache-magpie/` + or, in a Subversion working copy, `.svn/apache-magpie/`; then a legacy + in-tree `.apache-magpie-local/`; then `.apache-magpie-overrides/`), stay silent if they all resolve, and run `/magpie-setup:setup config` for this skill if any does not, which also installs the checker. Otherwise the project *is* set up and its checker is missing or stale: say so, propose `/magpie-setup:setup config` to install diff --git a/plugins/magpie-pr-management/skills/stats/SKILL.md b/plugins/magpie-pr-management/skills/stats/SKILL.md index c110a6334..b84ddf95c 100644 --- a/plugins/magpie-pr-management/skills/stats/SKILL.md +++ b/plugins/magpie-pr-management/skills/stats/SKILL.md @@ -21,7 +21,7 @@ argument-hint: "[repo:owner/name] [since:date] [clear-cache]" capability: capability:stats surface_hash: sha256:9e5dedfbf2f9f716 license: Apache-2.0 -measured_tokens: 2750 +measured_tokens: 2749 --- @@ -75,9 +75,9 @@ Never add one. or personal layer (any of the directories below), nothing has been set up here and there is nothing to reconcile — resolve this skill's `requires_config:` entries - yourself (first match wins: `.apache-magpie-local/`, the main - checkout's `.apache-magpie-local/`, `/apache-magpie/`, - `.svn/apache-magpie/`, then `.apache-magpie-overrides/`), stay silent if they all resolve, and + yourself (first match wins: `/apache-magpie/` + or, in a Subversion working copy, `.svn/apache-magpie/`; then a legacy + in-tree `.apache-magpie-local/`; then `.apache-magpie-overrides/`), stay silent if they all resolve, and run `/magpie-setup:setup config` for this skill if any does not, which also installs the checker. Otherwise the project *is* set up and its checker is missing or stale: say so, propose `/magpie-setup:setup config` to install diff --git a/plugins/magpie-release-management/skills/announce-draft/SKILL.md b/plugins/magpie-release-management/skills/announce-draft/SKILL.md index a75270c5d..585bfbf30 100644 --- a/plugins/magpie-release-management/skills/announce-draft/SKILL.md +++ b/plugins/magpie-release-management/skills/announce-draft/SKILL.md @@ -18,7 +18,7 @@ argument-hint: " [--planning-issue ]" capability: capability:resolve surface_hash: sha256:edffafcd9d9948ab license: Apache-2.0 -measured_tokens: 5144 +measured_tokens: 5143 --- ` / `` markers — diff --git a/plugins/magpie-security/skills/issue-sync/bulk-mode.md b/plugins/magpie-security/skills/issue-sync/bulk-mode.md index 4611e9fc2..b6c4f7c61 100644 --- a/plugins/magpie-security/skills/issue-sync/bulk-mode.md +++ b/plugins/magpie-security/skills/issue-sync/bulk-mode.md @@ -23,15 +23,15 @@ Subagents keep the per-issue mail threads, PR diffs and comment bodies out of th | `sync all` | every open issue in `` **plus recently-closed trackers still awaiting a post-close cve.org publication check**. Resolve as: `gh issue list --repo --state open --limit 100 --json number,title,labels` ∪ `gh issue list --repo --state closed --label "announced" --limit 50 --json number,title,labels,closedAt --jq '[.[] \| select(.closedAt > (now - 90*86400 \| todate))]'`, then **drop any issue labelled `rejections-ledger`** (see below). The closed bucket is the last 90 days of `announced` trackers — those awaiting cve.org propagation, the final reporter notification and the release manager's security-pages checklist item (see [1g](gather.md#1g-recently-closed-trackers--check-cveorg-publication-state)); other closed issues are no-ops and excluded. | | `sync all open` | explicit open-only variant — `gh issue list --repo --state open --limit 100 --json number,title,labels`, then **drop any issue labelled `rejections-ledger`**. No closed trackers. | | `sync #212`, `sync 212`, `sync #212, #214, #218`, `sync #212-#218` | the issue number(s) verbatim. Works on open and closed trackers (the closed-issue sub-steps run when the tracker is closed with `announced`). | - | `sync CVE-2026-40913` or `sync CVE-2026-40913, CVE-2026-40690` | regex-validate each token against `^CVE-\d{4}-\d{4,7}$` first (a non-match is a hard error — *never* interpolate an unvalidated free-form string into the double-quoted search arg, which would expand `$(...)`); then look up each validated CVE ID with `gh search issues "CVE-YYYY-NNNNN" --repo --json number,title,body --jq '.[] \| select(.body \| test("### CVE tool link\\s+\\S*CVE-YYYY-NNNNN")) \| .number'` (match only inside the body's *CVE tool link* field; a `CVE-` elsewhere in the body, such as a related or cross-referenced CVE, must not select the issue) and expand. | - | `sync ` (e.g. `sync JWT`, `sync KubernetesExecutor`) | title-substring match — run `gh issue list --repo --state open --search " in:title" --limit 100 --json number,title` and surface the matches for confirmation (the fuzziest selector — always confirm, never auto-dispatch). | + | `sync ` or `sync , ` | regex-validate each token against `^CVE-\d{4}-\d{4,7}$` first (a non-match is a hard error — *never* interpolate an unvalidated free-form string into the double-quoted search arg, which would expand `$(...)`); then look up each validated CVE ID with `gh search issues "CVE-YYYY-NNNNN" --repo --json number,title,body --jq '.[] \| select(.body \| test("### CVE tool link\\s+\\S*CVE-YYYY-NNNNN")) \| .number'` (match only inside the body's *CVE tool link* field; a `CVE-` elsewhere in the body, such as a related or cross-referenced CVE, must not select the issue) and expand. | + | `sync ` (e.g. `sync JWT`, `sync path traversal`) | title-substring match — run `gh issue list --repo --state open --search " in:title" --limit 100 --json number,title` and surface the matches for confirmation (the fuzziest selector — always confirm, never auto-dispatch). | | `sync