From 6655da81b3771148612d31b03f20ff7b079b912a Mon Sep 17 00:00:00 2001 From: Wasim Akram <55689108+wasimness@users.noreply.github.com> Date: Sun, 22 Nov 2026 01:30:04 +0530 Subject: [PATCH 1/2] feat: validator and tool feedback fixes (0.4.0) Packager validator lookup, README version bump, P023 allowlist warning, X008 allow-file emails, clearer P028, Module routes section for core routers. Co-Authored-By: Claude Opus 5.5 --- .claude-plugin/marketplace.json | 2 +- CHANGELOG.md | 12 +++++++ IMPROVEMENTS.md | 6 ++-- README.md | 4 +-- adapters/claude/.claude-plugin/plugin.json | 4 +-- adapters/claude/CHANGELOG.md | 12 +++++++ adapters/claude/README.md | 4 +-- .../references/validate-rules-release.md | 4 ++- .../skills/aiaddon/references/standards.md | 2 +- dev/aiaddon-maintain/scripts/bump_version.py | 2 +- .../scripts/package_extension.py | 5 +-- dev/aiaddon-review/scripts/public_safety.py | 3 +- dev/aiaddon-review/scripts/route_check.py | 9 +++--- dev/aiaddon-review/scripts/selftest.py | 31 +++++++++++++++++++ .../scripts/validate_extension.py | 12 +++++-- 15 files changed, 90 insertions(+), 22 deletions(-) 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..233214a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,18 @@ 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. + +**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..1661457 100644 --- a/IMPROVEMENTS.md +++ b/IMPROVEMENTS.md @@ -5,11 +5,11 @@ 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 | 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 - 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). +- 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). 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) 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..233214a 100644 --- a/adapters/claude/CHANGELOG.md +++ b/adapters/claude/CHANGELOG.md @@ -2,6 +2,18 @@ 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. + +**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-review/references/validate-rules-release.md b/adapters/claude/skills/aiaddon-review/references/validate-rules-release.md index c6cbe28..89901a4 100644 --- a/adapters/claude/skills/aiaddon-review/references/validate-rules-release.md +++ b/adapters/claude/skills/aiaddon-review/references/validate-rules-release.md @@ -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: