diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index bb0a701..6d62b84 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -13,7 +13,7 @@ "displayName": "AI Add-on Builder", "description": "Describe what you want Claude to do, in your own words. AI Add-on Builder plans, builds, checks, and packages the skill or plugin for you, including internal tools for your team, and adds a Prompt Builder form that starts it. Works in Claude Code, Cowork, and claude.ai.", "source": "./adapters/claude", - "version": "0.3.0", + "version": "0.4.0", "category": "developer-tools" } ] diff --git a/CHANGELOG.md b/CHANGELOG.md index ffc6020..b3844b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,23 @@ Newest first. +## 0.4.0: Validator and tool feedback fixes + +**Added** +- A core router can list skills from other plugins in a `## Module routes` table (same columns as the Routing table). Those rows are checked for a well-formed `-` or `:` slug, not against this plugin's own skills (P024). +- P023 (a skill name ending in a role noun) is a warning instead of an error for names listed in `.public-safety-allow` as `P023::`, so names that existed before the rule keep passing. + +**Changed** +- `X014` (error) replaces `R001`/`R002`: a `/root/.claude` or `~/.claude` path in a shell command in SKILL.md, references, commands, agents or hooks. The packager refuses to package while it exists. The rule text is built from parts so the validator never matches itself. +- `D020` (directory target, error): agent frontmatter keys outside name, description, model, tools (for example `color`). +- Review and maintain: restart Claude after installing a new plugin version. Build and maintain: versioning guidance (0.0.1 start, Keep a Changelog, 1.0.0 only on the owner's word) and a generated `AGENTS.md` model-routing default. + +**Fixed** +- The packager finds `validate_extension.py` next to its own tools folder first, so it no longer reports "validator not found". +- `bump_version.py` updates the README `**Version**` line whatever its old value. +- X008 no longer flags business email addresses inside `.public-safety-allow` itself; key and other rules still apply there. +- The P028 message (a router with no routing table) names the file, the `## Routing table` heading, the header row, and that each Skill cell must be an exact skill slug. + ## 0.3.0: Single-branch layout **Changed** diff --git a/IMPROVEMENTS.md b/IMPROVEMENTS.md index 09a410e..faf6ab2 100644 --- a/IMPROVEMENTS.md +++ b/IMPROVEMENTS.md @@ -4,18 +4,18 @@ Log feedback and ideas here; move to Accepted when approved. ## Inbox -- 2026-11-12 | validator | Flag agent frontmatter keys outside name, description, model, tools (e.g. `color`) for `--target directory`, so LOCAL_CODE_FRONTMATTER_KEY is caught before submission. | final directory review -- 2026-11-12 | release | Exclude `.public-safety-allow` from the release `.plugin` built by release-plugin.yml, and drop the duplicate `AI.Add-on.Builder.v.plugin` asset. | release check -- 2026-11-12 | review skill | A session can keep an older cached skill text after the plugin updates; tell the user to restart Claude after installing a new version. | self-review -- 2026-11-05 | Versioning: every new app/plugin starts at 0.0.1 with a semantic CHANGELOG (Keep a Changelog); bump slowly (patch/minor) through beta; 1.0.0 only when the owner says so. | User -- 2026-11-11 | Directory policy (non-Verified orgs) refuses: any hook (all types, LOCAL_CODE_HOOK_COMMAND); any file not md/txt/json/yaml/png/jpeg/gif/webp/ico, or starting with #!, or a package-manager config, or non-UTF-8/NUL (LOCAL_CODE_FILE_TYPE; .py/.svg/.tmpl/CODEOWNERS/.public-safety-allow hit it); frontmatter keys outside the allowed list (LOCAL_CODE_FRONTMATTER_KEY; evals/*.md and agent model/color/tools/metadata suspected). Add a "directory edition" build (no hooks, scripts or evals; scripts become instructions) and make validate_extension.py fail on these three for community submissions. | Directory review of v0.1.0 fa89fba | Claude -- 2026-11-11 | Policy hold MCP_FORWARDS_CREDENTIAL_ENV is a false positive from validate_extension.py's own env-read regexes (lines 428, 663); keep regex text out of shipped files or build it from parts. RUNTIME_FETCH_EXEC (10 files) is docs plus the validator pattern: no action. UNREAD_ASSET_REFERENCED: CHANGELOG, distribution-routes.md, plugin.json mention icon files. | Directory review | Claude +- 2026-11-11 | Directory policy (non-Verified orgs) refuses: any hook (all types, LOCAL_CODE_HOOK_COMMAND); any file not md/txt/json/yaml/png/jpeg/gif/webp/ico, or starting with #!, or a package-manager config, or non-UTF-8/NUL (LOCAL_CODE_FILE_TYPE; .py/.svg/.tmpl/CODEOWNERS/.public-safety-allow hit it); frontmatter keys outside the allowed list (LOCAL_CODE_FRONTMATTER_KEY; evals/*.md and agent model/color/tools/metadata suspected). Add a "directory edition" build (no hooks, scripts or evals; scripts become instructions) and make validate_extension.py fail on these three for community submissions. | Directory review of v0.1.0 fa89fba | Claude DONE (checked 2026-11-22: validator D017-D019, single-branch shipped plugin has no hooks or scripts). Format: date · idea · source -- 2026-11-04 · AGENTS.md model routing (Opus plans, Haiku/Sonnet execute) as a shipped default · all plugins (Claude plugins note) ## Accepted ## Done +- 2026-11-12 | validator | Flag agent frontmatter keys outside name, description, model, tools (e.g. `color`) for `--target directory`, so LOCAL_CODE_FRONTMATTER_KEY is caught before submission. | final directory review | Done 2026-11-22 in 0.4.0 +- 2026-11-12 | release | Exclude `.public-safety-allow` from the release `.plugin` built by release-plugin.yml, and drop the duplicate `AI.Add-on.Builder.v.plugin` asset. | release check DONE (checked 2026-11-22: release-plugin.yml excludes it and asserts; one asset `aiaddon.plugin`). +- 2026-11-12 | review skill | A session can keep an older cached skill text after the plugin updates; tell the user to restart Claude after installing a new version. | self-review | Done 2026-11-22 in 0.4.0 +- 2026-11-05 | Versioning: every new app/plugin starts at 0.0.1 with a semantic CHANGELOG (Keep a Changelog); bump slowly (patch/minor) through beta; 1.0.0 only when the owner says so. | User | Done 2026-11-22 in 0.4.0 +- 2026-11-11 | Policy hold MCP_FORWARDS_CREDENTIAL_ENV is a false positive from validate_extension.py's own env-read regexes (lines 428, 663); keep regex text out of shipped files or build it from parts. RUNTIME_FETCH_EXEC (10 files) is docs plus the validator pattern: no action. UNREAD_ASSET_REFERENCED: CHANGELOG, distribution-routes.md, plugin.json mention icon files. | Directory review | Claude DONE (checked 2026-11-22: the validator lives in dev/, not in the shipped plugin). +- 2026-11-04 · AGENTS.md model routing (Opus plans, Haiku/Sonnet execute) as a shipped default · all plugins (Claude plugins note) | Done 2026-11-22 in 0.4.0 - 2026-11-05 | Security first (enterprise level): never break existing behaviour (tests + review before merge); secure-by-default foundation for every project: secret scanning, least-privilege tokens, dependency pinning/audit (supply chain), input validation, signed releases, threat model in each brief, Critical/Important security findings block release. | User | Done in 1.0.1 - 2026-11-05 | Packager crashes printing its scratchpad on Windows cp1252 consoles (UnicodeEncodeError on the arrow); reconfigure stdout to UTF-8. Package itself was written. | Claude | Done in 1.0.1 diff --git a/README.md b/README.md index d52063d..2140b30 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Tell Claude what you want. Use your own words, and AI Add-on Builder turns that **Download:** [aiaddon.plugin](https://github.com/syncwin/aiaddon/releases/latest/download/aiaddon.plugin) (asset of the latest GitHub release) -**Version** 0.3.0 · **Author** @wasimness · **Company** SyncWin · **Contact** support@syncwin.com · **License** MIT +**Version** 0.4.0 · **Author** @wasimness · **Company** SyncWin · **Contact** support@syncwin.com · **License** MIT ## What you can build @@ -123,7 +123,7 @@ Every change also runs CodeQL, a secret scan, the injection screen, and the full ## Status -Version 0.3.0. Maintainer CI (dev tools in `dev/`, not shipped): every push to `main` and every pull request runs the 195 self-tests and 43 router cases, the directory validator, the secret scan, the injection screen, and the trigger simulation on Python 3.9 to 3.13, and `claude plugin validate --strict` passed before release. The `evals/` folder holds five live cases for `claude plugin eval`; the last full run (2026-10-12, Sonnet as judge) scored 0.93, 0.73 above the same tasks without the plugin; six-run repeats scored 1.00 on audits, intake, and scaffolding. Run them yourself with `claude plugin eval . --allow-tools Bash Write Edit --judge-model sonnet` (the shell cases need the sandbox tools bubblewrap and socat on Linux; the default small judge misreads long, table-heavy replies). Platform facts were checked against Anthropic's documentation on 2026-10-11. If you find a mismatch, please open an issue. +Version 0.4.0. Maintainer CI (dev tools in `dev/`, not shipped): every push to `main` and every pull request runs the 206 self-tests and 43 router cases, the directory validator, the secret scan, the injection screen, and the trigger simulation on Python 3.9 to 3.13, and `claude plugin validate --strict` passed before release. The `evals/` folder holds five live cases for `claude plugin eval`; the last full run (2026-10-12, Sonnet as judge) scored 0.93, 0.73 above the same tasks without the plugin; six-run repeats scored 1.00 on audits, intake, and scaffolding. Run them yourself with `claude plugin eval . --allow-tools Bash Write Edit --judge-model sonnet` (the shell cases need the sandbox tools bubblewrap and socat on Linux; the default small judge misreads long, table-heavy replies). Platform facts were checked against Anthropic's documentation on 2026-10-11. If you find a mismatch, please open an issue. ## Contributing and credits diff --git a/adapters/claude/.claude-plugin/plugin.json b/adapters/claude/.claude-plugin/plugin.json index e9cd8b2..d2ca061 100644 --- a/adapters/claude/.claude-plugin/plugin.json +++ b/adapters/claude/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "aiaddon", "displayName": "AI Add-on Builder", - "version": "0.3.0", + "version": "0.4.0", "description": "Describe what you want Claude to do, in your own words. AI Add-on Builder plans, builds, checks, and packages the skill or plugin for you, including internal tools for your team, and adds a Prompt Builder form that starts it. Works in Claude Code, Cowork, and claude.ai.", "author": { "name": "@wasimness", @@ -31,7 +31,7 @@ ], "metadata": { "displayName": "AI Add-on Builder", - "version": "0.3.0", + "version": "0.4.0", "author": "@wasimness", "company": "SyncWin", "homepage": "https://github.com/syncwin/aiaddon", diff --git a/adapters/claude/CHANGELOG.md b/adapters/claude/CHANGELOG.md index ffc6020..b3844b8 100644 --- a/adapters/claude/CHANGELOG.md +++ b/adapters/claude/CHANGELOG.md @@ -2,6 +2,23 @@ Newest first. +## 0.4.0: Validator and tool feedback fixes + +**Added** +- A core router can list skills from other plugins in a `## Module routes` table (same columns as the Routing table). Those rows are checked for a well-formed `-` or `:` slug, not against this plugin's own skills (P024). +- P023 (a skill name ending in a role noun) is a warning instead of an error for names listed in `.public-safety-allow` as `P023::`, so names that existed before the rule keep passing. + +**Changed** +- `X014` (error) replaces `R001`/`R002`: a `/root/.claude` or `~/.claude` path in a shell command in SKILL.md, references, commands, agents or hooks. The packager refuses to package while it exists. The rule text is built from parts so the validator never matches itself. +- `D020` (directory target, error): agent frontmatter keys outside name, description, model, tools (for example `color`). +- Review and maintain: restart Claude after installing a new plugin version. Build and maintain: versioning guidance (0.0.1 start, Keep a Changelog, 1.0.0 only on the owner's word) and a generated `AGENTS.md` model-routing default. + +**Fixed** +- The packager finds `validate_extension.py` next to its own tools folder first, so it no longer reports "validator not found". +- `bump_version.py` updates the README `**Version**` line whatever its old value. +- X008 no longer flags business email addresses inside `.public-safety-allow` itself; key and other rules still apply there. +- The P028 message (a router with no routing table) names the file, the `## Routing table` heading, the header row, and that each Skill cell must be an exact skill slug. + ## 0.3.0: Single-branch layout **Changed** diff --git a/adapters/claude/README.md b/adapters/claude/README.md index d52063d..2140b30 100644 --- a/adapters/claude/README.md +++ b/adapters/claude/README.md @@ -4,7 +4,7 @@ Tell Claude what you want. Use your own words, and AI Add-on Builder turns that **Download:** [aiaddon.plugin](https://github.com/syncwin/aiaddon/releases/latest/download/aiaddon.plugin) (asset of the latest GitHub release) -**Version** 0.3.0 · **Author** @wasimness · **Company** SyncWin · **Contact** support@syncwin.com · **License** MIT +**Version** 0.4.0 · **Author** @wasimness · **Company** SyncWin · **Contact** support@syncwin.com · **License** MIT ## What you can build @@ -123,7 +123,7 @@ Every change also runs CodeQL, a secret scan, the injection screen, and the full ## Status -Version 0.3.0. Maintainer CI (dev tools in `dev/`, not shipped): every push to `main` and every pull request runs the 195 self-tests and 43 router cases, the directory validator, the secret scan, the injection screen, and the trigger simulation on Python 3.9 to 3.13, and `claude plugin validate --strict` passed before release. The `evals/` folder holds five live cases for `claude plugin eval`; the last full run (2026-10-12, Sonnet as judge) scored 0.93, 0.73 above the same tasks without the plugin; six-run repeats scored 1.00 on audits, intake, and scaffolding. Run them yourself with `claude plugin eval . --allow-tools Bash Write Edit --judge-model sonnet` (the shell cases need the sandbox tools bubblewrap and socat on Linux; the default small judge misreads long, table-heavy replies). Platform facts were checked against Anthropic's documentation on 2026-10-11. If you find a mismatch, please open an issue. +Version 0.4.0. Maintainer CI (dev tools in `dev/`, not shipped): every push to `main` and every pull request runs the 206 self-tests and 43 router cases, the directory validator, the secret scan, the injection screen, and the trigger simulation on Python 3.9 to 3.13, and `claude plugin validate --strict` passed before release. The `evals/` folder holds five live cases for `claude plugin eval`; the last full run (2026-10-12, Sonnet as judge) scored 0.93, 0.73 above the same tasks without the plugin; six-run repeats scored 1.00 on audits, intake, and scaffolding. Run them yourself with `claude plugin eval . --allow-tools Bash Write Edit --judge-model sonnet` (the shell cases need the sandbox tools bubblewrap and socat on Linux; the default small judge misreads long, table-heavy replies). Platform facts were checked against Anthropic's documentation on 2026-10-11. If you find a mismatch, please open an issue. ## Contributing and credits diff --git a/adapters/claude/skills/aiaddon-build/SKILL.md b/adapters/claude/skills/aiaddon-build/SKILL.md index f5649f4..83877c4 100644 --- a/adapters/claude/skills/aiaddon-build/SKILL.md +++ b/adapters/claude/skills/aiaddon-build/SKILL.md @@ -36,7 +36,9 @@ Build only what the plan confirmed. No approved plan in context: hand to `aiaddo - Verify field names and limits against `aiaddon/references/claude-platform-facts.md` (refresh via `claude-docs-sync.md` when stale or doubtful). - Names, acronym, metadata: `aiaddon/references/standards.md`. - **Secure by default:** every component follows `aiaddon/references/standards.md` §5c (exec-form commands, quoted `${CLAUDE_PLUGIN_ROOT}`, path containment, fail-closed guards, no secrets); the reference templates already do. -- **Script paths (E9):** every plugin you build tells its skills to copy needed scripts once per session into the working folder (for example `./tools/`) and run them from there; never put a `/root/.claude` or `~/.claude` path in a shell command (`R001` error in the validator). +- **Script paths (E9):** every plugin you build tells its skills to copy needed scripts once per session into the working folder (for example `./tools/`) and run them from there; never put a `/root/.claude` or `~/.claude` path in a shell command (`X014` error in the validator). +- **Versions:** a new app or plugin starts at `0.0.1` with a Keep a Changelog `CHANGELOG.md`; patch or minor bumps through the beta; `1.0.0` only on the owner's word (`aiaddon-maintain/references/versioning.md`). +- **Model routing default:** the generated plugin ships an `AGENTS.md` saying the top model plans, decides and reviews, and cheaper models execute. Before any model override on a worker, check which tools that worker needs and keep a model that has them. - Copy the shared foundation (scratchpad, efficiency ladder, lean build, security; standards §5) into generated extensions when relevant. - **Directory-compliant by default:** no hook files, no shipped scripts, no non-text files, text-only frontmatter; guardrails are recipe steps (copy `aiaddon-review/references/screen-text.md` into the new plugin's `references/` instead of a script). Hooks, scripts and local MCP servers only when the user asks after being told the directory refuses them from non-Verified organizations (they still work for private and GitHub-marketplace installs); offer skill or command instructions, `userConfig` with `sensitive: true`, or a remote MCP over HTTP first (`references/hooks.md`, `references/mcp-servers.md`). - Every skill, agent, and connector you write ends with a scratchpad step. diff --git a/adapters/claude/skills/aiaddon-maintain/references/versioning.md b/adapters/claude/skills/aiaddon-maintain/references/versioning.md index 96c8dcf..d920d62 100644 --- a/adapters/claude/skills/aiaddon-maintain/references/versioning.md +++ b/adapters/claude/skills/aiaddon-maintain/references/versioning.md @@ -26,6 +26,8 @@ Propose a change when a reusable gap appears (missing, wrong, ambiguous, or cont - **Same session, same build:** add lines to the current changelog entry; don't bump per edit. New version only for a genuinely new iteration, a confirmed milestone, or an explicit request. - `CHANGELOG.md`: newest first; per version, Added / Changed / Fixed / Removed; each line says what and why. Never delete history. A deliberate backward or skipped number gets a note. - The plugin version moves when any skill changes (skills carry no `metadata.version`: frontmatter stays text only for the directory; a legacy one is moved with the plugin version if present) (plugin version pins users, so a changed plugin with an unchanged `version` is never delivered to existing installs). +- **Start and pace:** every new app or plugin starts at `0.0.1` with a Keep a Changelog `CHANGELOG.md`; bump patch or minor through the beta; `1.0.0` only when the owner says so. +- After an update is installed, tell the user to restart Claude (a session can keep the older cached skill text). - Repo-backed extensions the user keeps in sync: push the update, tag a version bump, and clean orphans (`aiaddon-package/references/github.md`). - Every update ships: edited files, changelog, the new version stated, a short what/why, revalidated and repackaged output (filename carries the version), the release diff (files kept, changed, added, dropped), scratchpad. - Recipes: `references/bump-version.md` writes the entry and moves every version field (manifest, its metadata, marketplace entry, every skill and agent, README) from one summary; `references/release-diff.md` counts the file changes. diff --git a/adapters/claude/skills/aiaddon-package/references/package-extension.md b/adapters/claude/skills/aiaddon-package/references/package-extension.md index e7f14b5..ce4d97a 100644 --- a/adapters/claude/skills/aiaddon-package/references/package-extension.md +++ b/adapters/claude/skills/aiaddon-package/references/package-extension.md @@ -12,7 +12,7 @@ Replaces the former `package_extension.py`. Claude follows this recipe with buil - Step 3: stage the source - Step 4: companion prompt (always) - Step 5: behavior tests (evals) status -- Step 6: R001 and the public-safety scan (never skipped) +- Step 6: X014 and the public-safety scan (never skipped) - Step 7: reuse check (unless force) - Step 8: validation (when not reused) - Step 9: build the zip (when not reused) @@ -31,7 +31,7 @@ Validate, name and zip a Claude extension (a plugin folder or a single skill fol | dir | folder | required | The plugin or skill folder | | format (`--format`) | `plugin` or `zip` | required | `plugin`: zip with the plugin root as the archive root, extension `.plugin` (Cowork). `zip`: zip with one top-level folder named after the skill or plugin `name` (not the source folder's name), extension `.zip`. | | out (`--out`) | folder | `./dist` | Where the package and its companions go | -| skip validation (`--skip-validate`) | flag | off | Skip the validation run only. Never skips the R001 refusal or the secret scan. | +| skip validation (`--skip-validate`) | flag | off | Skip the validation run only. Never skips the X014 refusal or the secret scan. | | target (`--target`) | name | `all` | Validation target. For format `plugin` with target `all`, validate for target `cowork`; otherwise use the target given. | | previous (`--previous`) | file or folder | newest other version of the same package in out | Package to diff against | | repo (`--repo`) | `owner/repo` | none | Passed to the install guide | @@ -91,9 +91,9 @@ Read from the real source folder. Result is (ok, note): If require-evals is set and ok is no: stop with `Behavior tests: . Run them, or package without --require-evals.` -## Step 6: R001 and the public-safety scan (never skipped) +## Step 6: X014 and the public-safety scan (never skipped) -1. R001: run the aiaddon-review validation recipe on the working folder and look for rule `R001` (a shell command names `/root/.claude`). If the validation recipe is not available, Grep the working folder for `/root/.claude` in hook, command and MCP JSON/shell text. Found: stop with `Refusing to package: R001 (a shell command names /root/.claude). Fix it; --skip-validate does not bypass this.` +1. X014: run the aiaddon-review validation recipe on the working folder and look for rule `X014` (a shell command names `/root/.claude`). If the validation recipe is not available, Grep the working folder for `/root/.claude` in hook, command and MCP JSON/shell text. Found: stop with `Refusing to package: X014 (a shell command names /root/.claude). Fix it; --skip-validate does not bypass this.` 2. Secret and private-data scan: run the aiaddon-review public-safety scan recipe on the real source folder including its git history. If the recipe is not available, stop with `Refusing to package: the public-safety scan cannot run (the aiaddon-review secret scan is not available).` Any finding: show it and stop with `Refusing to package: the secret and private-data scan found something (blocking). Fix it, rotate any real credential first, then package again; --skip-validate does not bypass this.` ## Step 7: reuse check (unless force) diff --git a/adapters/claude/skills/aiaddon-review/SKILL.md b/adapters/claude/skills/aiaddon-review/SKILL.md index 4cade9e..30a2139 100644 --- a/adapters/claude/skills/aiaddon-review/SKILL.md +++ b/adapters/claude/skills/aiaddon-review/SKILL.md @@ -23,6 +23,7 @@ license: MIT 7b. **Router evals:** follow `references/route-check.md` on ``: it routes every `evals/router/cases.json` prompt through the router's routing table and compares with the expected skill (`ask` for ambiguous prompts); a mismatch is a release blocker. 8. Audit reports: follow `references/check-report.md` on the report (every finding has Original and exact Corrected text). 9. Third-party or downloaded extensions, and any outside text an extension will ship: follow `references/screen-text.md` on the folder (a manual read; the same recipe is how Claude screens untrusted WebFetch, WebSearch and Composio output; a flag means read that passage, a pass proves nothing). +10. After the user installs a new plugin version, tell them to restart Claude: a running session can keep the older cached skill text. ## Judgment checks @@ -30,7 +31,7 @@ license: MIT - **Content:** every line changes behavior; no build-log text; one canonical home per fact (run the de-duplication check unless it already ran this session). - **Standards** (`aiaddon/references/standards.md`): Title Case visible names, role slugs, acronym applied correctly, author/company present, `displayName` kept, credits present, no copied third-party text, lean (nothing unrequested). - **Security (blocking: Critical or Important, never a note):** audit hooks, scripts and MCP configs against `aiaddon/references/standards.md` §5c: command injection and shell/`eval` use, unquoted `${CLAUDE_PLUGIN_ROOT}`, path traversal, secrets, undeclared network calls, wrong failure mode (a guard that fails open, or a nag hook that blocks), unconfirmed destructive writes, least-privilege agent tools, connector output treated as data. Any such finding fails the review until fixed. -- **Script paths (E9/E10, blocking):** for every plugin you audit, any shell command or script invocation in SKILL.md, commands, agents or hooks naming `/root/.claude` is an Error (`R001`; `~/.claude` is `R002`, a warning). Skills must copy scripts once per session into the working folder (for example `./tools/`) and run them from there. the validate-extension recipe checks it (`references/validate-extension.md`); `aiaddon-package` refuses to package while `R001` exists. +- **Script paths (E9/E10, blocking):** for every plugin you audit, any shell command or script invocation in SKILL.md, commands, agents or hooks naming `/root/.claude` or `~/.claude` is an Error (`X014`; SKILL.md, references, commands, agents and hooks are scanned). Skills must copy scripts once per session into the working folder (for example `./tools/`) and run them from there. the validate-extension recipe checks it (`references/validate-extension.md`); `aiaddon-package` refuses to package while `R001` exists. - **Public safety (blocking, enforced even if the user never asks):** classification, `.gitignore` preset, `PUBLIC-SAFETY.md`, `.env.example`, no private value anywhere in tree, history or packages; the plan carried the public/private split and the threat model line (`aiaddon-review/references/public-safety.md`). - **Naming and router standard (blocking):** the names and the router follow `aiaddon/references/standards.md` section 1 (`P019` to `P028`), and the route-check recipe (`references/route-check.md`) passes on the router evals. - **Enforcement:** required stages are routed and gated, each skill states what it depends on (standards §5d). diff --git a/adapters/claude/skills/aiaddon-review/references/public-safety.md b/adapters/claude/skills/aiaddon-review/references/public-safety.md index dd8aceb..ef62aec 100644 --- a/adapters/claude/skills/aiaddon-review/references/public-safety.md +++ b/adapters/claude/skills/aiaddon-review/references/public-safety.md @@ -104,7 +104,7 @@ Recipe: `aiaddon-review/references/scan-secrets.md` with inputs ``, opti - **Full history (`--history`):** every line ever added on any ref, from `git log --all -p`, and any private file ever committed. A key deleted last week is still found. - **Built artifacts (`--artifacts`, and inside every `.zip` or `.plugin` found):** the contents of produced packages, including nested archives. - **Looks for:** GitHub, OpenAI, Anthropic, AWS, Slack and Google keys and tokens, private key blocks, `Bearer` tokens, `password=` and key-like assignments, high-entropy strings, e-mail addresses other than `noreply` or placeholders, Windows, macOS and Linux absolute user paths, internal hosts, and private file names (`.env`, key files, logs, memory or progress notes). -- **Allowlist:** `.public-safety-allow` at the folder root, one `:[:]` per line, `#` comments. Only exact public false positives belong there; a real credential is rotated, never allowlisted. +- **Allowlist:** `.public-safety-allow` at the folder root, one `:[:]` or `::sha256:` per line (the second form matches the SHA-256 of the unmasked finding value, at least 8 hex characters; every finding prints `[sha256:<12 hex>]` next to its masked value, so an entry for a history finding never needs the value itself; history findings match the path as it was in that commit), `#` comments. Only exact public false positives belong there; a real credential is rotated, never allowlisted. - The validator runs the same engine (`X008` tree, `X012` history, `X013` packages); `aiaddon-package` runs it before building and again on the produced files and refuses to continue on any finding. ## 6. Past leak remediation diff --git a/adapters/claude/skills/aiaddon-review/references/selftest-checks-1.md b/adapters/claude/skills/aiaddon-review/references/selftest-checks-1.md index 8af1519..67dbb2b 100644 --- a/adapters/claude/skills/aiaddon-review/references/selftest-checks-1.md +++ b/adapters/claude/skills/aiaddon-review/references/selftest-checks-1.md @@ -39,9 +39,9 @@ Part of the self-test recipe `selftest.md`; read its sections 1, 2 and 9 first ( | # | Check name | Setup and mutation | PASS when | |---|---|---|---| -| 23 | E10 flags /root/.claude in a shell command | Copy `F`; append to its first `SKILL.md` a fenced bash block holding `python /root/.claude/plugins/x/scripts/run.py`; `V` | verdict fail and `R001` | -| 24 | E10 packager refuses while R001 exists | Package that copy as zip with `--skip-validate` | verdict fail (exit 1) and `R001` in the output | -| 25 | E10 passes a working-folder copy | Copy `F`; append to its first `SKILL.md` a fenced bash block holding `cp -r skills/x/scripts ./tools && python ./tools/run.py`; `V` | verdict pass and no `R001` | +| 23 | E10 flags /root/.claude in a shell command | Copy `F`; append to its first `SKILL.md` a fenced bash block holding a python call to a script under the root user's Claude config folder (plugins/x/scripts/run.py); `V` | verdict fail and `X014` | +| 24 | E10 packager refuses while X014 exists | Package that copy as zip with `--skip-validate` | verdict fail (exit 1) and `X014` in the output | +| 25 | E10 passes a working-folder copy | Copy `F`; append to its first `SKILL.md` a fenced bash block holding `cp -r skills/x/scripts ./tools && python ./tools/run.py`; `V` | verdict pass and no `X014` | | 26 | cleaner inventory finds the duplicated paragraph | Run cleaner `inventory` on `evals/clean-duplicate-plugin/fixture/dupe-helper` (`inventory.md`) | success and the total of exact duplicate paragraphs is 1 | | 27 | cleaner proof passes when the unique line survives | Copy that fixture to `cl-good`; in `skills/filing/SKILL.md` delete the paragraph line starting `Invoice details captured` and the blank line after it; run cleaner `prove` original vs `cl-good` (`prove.md`) | success and `PASS` | | 28 | cleaner proof fails when a unique line is lost | Copy `cl-good` to `cl-bad`; remove the line `Always ask for the invoice number before filing.`; `prove` original vs `cl-bad` | verdict fail, output contains `LOST` and `invoice number` | diff --git a/adapters/claude/skills/aiaddon-review/references/validate-rules-release.md b/adapters/claude/skills/aiaddon-review/references/validate-rules-release.md index c6cbe28..7d7e4b6 100644 --- a/adapters/claude/skills/aiaddon-review/references/validate-rules-release.md +++ b/adapters/claude/skills/aiaddon-review/references/validate-rules-release.md @@ -119,9 +119,9 @@ Files: every `SKILL.md` (not under `.git`, not symlinks), all `commands/**/*.md` | # | ID | Sev | What to check | Pattern or threshold | Message | |---|---|---|---|---|---| -| 134 | `R001` | error | the shell command names `/root/.claude` | substring in the code | `line : shell command names /root/.claude; copy scripts once per session into the working folder (./tools/) and run them from there` | -| 135 | `R002` | warn | the shell command names `~/.claude` (when row 134 did not fire) | substring in the code | `line : shell command names ~/.claude; copy scripts into the working folder (./tools/) instead` | -| 136 | `R001` | error | `hooks/hooks.json` text contains `/root/.claude` | substring | `hook command names /root/.claude; use ${CLAUDE_PLUGIN_ROOT} or a working-folder copy` | +| 134 | `X014` | error | the shell command names `/root/.claude` or `~/.claude` (SKILL.md, references, commands, agents) | substring in the code | `line : shell command names ; copy scripts once into the working folder (./tools/) and run them from there` | +| 135 | `D020` | error | `--target directory`: an agent frontmatter key outside `name`, `description`, `model`, `tools` (for example `color`) | key set | `agent frontmatter key(s) [...] are outside name, description, model, tools (LOCAL_CODE_FRONTMATTER_KEY): remove them` | +| 136 | `X014` | error | `hooks/hooks.json` text contains `/root/.claude` or `~/.claude` | substring | `hook command names /root/.claude; use ${CLAUDE_PLUGIN_ROOT} or a working-folder copy` | ### 5.16 Router standard (rows 137 to 142) @@ -129,9 +129,11 @@ Only when there are 2 or more skills, a plugin name exists, and `skills//S Routing table parse: find a heading of level 2 to 4 containing `Routing table` (case-insensitive); the table is everything up to the next heading. Each row is `| Order | Trigger phrases | Skill | Then |`. Skip the header and separator rows. Phrases are separated by `;`, lowercased, with curly apostrophes made straight. The skill slug is the first code span in the Skill cell (text after the last `:` is the slug). The Then cell code spans are extra slugs. Rows without a code span in the Skill cell are ignored. +Module routes: a core router that routes to skills of other plugins in the same marketplace lists those rows in a separate section headed `## Module routes` (same table shape, parsed the same way but with the slug kept as written). Those rows are not checked against this plugin's `skills/` folders (no `P024`/`P025`); each needs trigger phrases and a slug shaped `-` or `:` (lowercase letters, digits, hyphens), otherwise `P024` reports the row as malformed. The same row in the main Routing table still fails `P024`. + | # | ID | Sev | What to check | Pattern or threshold | Message | |---|---|---|---|---|---| -| 137 | `P028` | error | no routing table in the router | table not found (see `references/route-check.md`) | ``router has no routing table: add a 'Routing table' section with `\| Order \| Trigger phrases \| Skill \| Then \|` mapping phrases to exact skill slugs`` | +| 137 | `P028` | error | no routing table in the router | table not found (see `references/route-check.md`) | ``router has no routing table: in skills//SKILL.md add a '## Routing table' heading followed by a table with the header row `\| Order \| Trigger phrases \| Skill \| Then \|`; each Skill cell must be an exact skill slug in backticks`` | | 138 | `P024` | error | a routed slug is not a skill folder | each slug in Skill and Then cells must be a folder under `skills/` | `routing table names '', which is not a skills/ folder` | | 139 | `P025` | error | a skill cannot be reached | every skill folder except the router must appear in some Skill or Then cell | `'' is not reachable from the router table: add a row (or a Then entry) for it` (path: that skill's SKILL.md) | | 140 | `P026` | error | the router lacks a standard phrase (case-insensitive text search of the router SKILL.md) | needed text: `skill tool`, `relative`, `closed question`, `never answer` | `router standard missing: