Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "aiaddon",
"displayName": "AI Add-on Builder",
"version": "0.1.0",
"version": "0.2.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",
Expand Down Expand Up @@ -31,7 +31,7 @@
],
"metadata": {
"displayName": "AI Add-on Builder",
"version": "0.1.0",
"version": "0.2.0",
"author": "@wasimness",
"company": "SyncWin",
"homepage": "https://github.com/syncwin/aiaddon",
Expand Down
8 changes: 4 additions & 4 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
**What changed and why**

**Checks**
- [ ] `python skills/aiaddon-review/scripts/selftest.py` passes
- [ ] `python skills/aiaddon-review/scripts/validate_extension.py . --strict --target directory --require-meta author,company` passes
- [ ] `python dev/aiaddon-review/scripts/selftest.py` passes
- [ ] `python dev/aiaddon-review/scripts/validate_extension.py . --strict --target directory --require-meta author,company` passes
- [ ] `CHANGELOG.md` updated
- [ ] `python skills/aiaddon-review/scripts/scan_secrets.py .` and `screen_text.py .` report nothing
- [ ] `python skills/aiaddon-review/scripts/scan_secrets.py . --history` (blocking) and `route_check.py .` report nothing
- [ ] `python dev/aiaddon-review/scripts/scan_secrets.py .` and `screen_text.py .` report nothing
- [ ] `python dev/aiaddon-review/scripts/scan_secrets.py . --history` (blocking) and `route_check.py .` report nothing
- [ ] New GitHub Actions are pinned to a full commit SHA with least-privilege permissions
- [ ] No private data, keys, or client names in any file
63 changes: 53 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,20 @@ jobs:
with:
python-version: ${{ matrix.python }}
- name: Self-test the scripts
run: python skills/aiaddon-review/scripts/selftest.py
run: python dev/aiaddon-review/scripts/selftest.py
- name: Validate for the Claude plugin directory
run: python skills/aiaddon-review/scripts/validate_extension.py . --strict --target directory --require-meta author,company
run: python dev/aiaddon-review/scripts/validate_extension.py . --strict --target directory --require-meta author,company
- name: Scan for plain-text secrets
run: python skills/aiaddon-review/scripts/scan_secrets.py .
run: python dev/aiaddon-review/scripts/scan_secrets.py .
- name: Screen docs for prompt injection
run: python skills/aiaddon-review/scripts/screen_text.py .
run: python dev/aiaddon-review/scripts/screen_text.py .
- name: Check the router against its evals
run: python skills/aiaddon-review/scripts/route_check.py .
run: python dev/aiaddon-review/scripts/route_check.py .
- name: Simulate skill triggers
run: python skills/aiaddon-review/scripts/simulate.py . triggers
run: python dev/aiaddon-review/scripts/simulate.py . triggers
- name: Self-test as a non-root user
if: matrix.python == '3.13'
run: test "$(id -u)" != 0 && python skills/aiaddon-review/scripts/selftest.py | grep -q "PASS read-only source is staged, not written"
run: test "$(id -u)" != 0 && python dev/aiaddon-review/scripts/selftest.py | grep -q "PASS read-only source is staged, not written"

public-safety:
name: Public safety (secrets and private data)
Expand All @@ -60,8 +60,51 @@ jobs:
with:
python-version: "3.13"
- name: Scan the working tree and the full git history (blocking)
run: python skills/aiaddon-review/scripts/scan_secrets.py . --history
run: python dev/aiaddon-review/scripts/scan_secrets.py . --history
- name: Scan built packages, when present (blocking)
run: |
python skills/aiaddon-package/scripts/build_skill_zips.py . --out "$RUNNER_TEMP/skill-zips"
python skills/aiaddon-review/scripts/scan_secrets.py . --artifacts "$RUNNER_TEMP/skill-zips"
python dev/aiaddon-package/scripts/build_skill_zips.py . --out "$RUNNER_TEMP/skill-zips"
python dev/aiaddon-review/scripts/scan_secrets.py . --artifacts "$RUNNER_TEMP/skill-zips"

release-branch:
# Publishes the shipped plugin (repo minus maintainer-only files) to the `release` branch,
# which the Anthropic directory submission tracks. Same plugin content as main; no hooks,
# scripts or non-text files (directory policy for non-Verified organizations).
name: Update the release branch
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: [checks, public-safety]
runs-on: ubuntu-24.04
timeout-minutes: 10
permissions:
contents: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.13"
- name: Build the shipped tree
run: |
git rm -r -q --cached --ignore-unmatch dev evals .github .claude IMPROVEMENTS.md .public-safety-allow assets/icon.svg
git clean -fdxq
rm -rf dev evals .github .claude IMPROVEMENTS.md .public-safety-allow assets/icon.svg
- name: Validate the shipped tree for the directory (blocking)
run: |
git show HEAD:dev/aiaddon-review/scripts/validate_extension.py > "$RUNNER_TEMP/validate_extension.py"
git show HEAD:dev/aiaddon-review/scripts/scan_secrets.py > "$RUNNER_TEMP/scan_secrets.py"
python "$RUNNER_TEMP/validate_extension.py" . --strict --target directory --require-meta author,company
python "$RUNNER_TEMP/scan_secrets.py" .
- name: Push the release branch
env:
GIT_AUTHOR_NAME: github-actions[bot]
GIT_AUTHOR_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com
GIT_COMMITTER_NAME: github-actions[bot]
GIT_COMMITTER_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com
run: |
# Fast-forward only (no force-push): a new commit on top of the current release branch.
tree=$(git write-tree)
parent=$(git rev-parse -q --verify origin/release || true)
if [ -n "$parent" ] && [ "$(git rev-parse "$parent^{tree}")" = "$tree" ]; then echo "release branch already up to date"; exit 0; fi
commit=$(git commit-tree "$tree" ${parent:+-p "$parent"} -m "release: shipped plugin from ${GITHUB_SHA::7}")
git push origin "$commit:refs/heads/release"
6 changes: 3 additions & 3 deletions .github/workflows/release-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
import json, os, zipfile
root, asset = os.environ["ROOT"], os.environ["ASSET"]
version = json.load(open(os.path.join(root, ".claude-plugin", "plugin.json"), encoding="utf-8"))["version"]
skip_dirs = {".git", ".github", ".claude", "tests", "node_modules", "__pycache__", "evals", "prompts", "dist"}
skip_dirs = {".git", ".github", ".claude", "tests", "node_modules", "__pycache__", "evals", "prompts", "dist", "dev"}
skip_files = {"IMPROVEMENTS.md"}
os.makedirs("dist", exist_ok=True)
out = os.path.join(os.getcwd(), "dist", asset)
Expand All @@ -60,9 +60,9 @@ jobs:
print("built", out, "version", version)
PY
- name: Build one zip per skill
run: python3 skills/aiaddon-package/scripts/build_skill_zips.py . --out dist
run: python3 dev/aiaddon-package/scripts/build_skill_zips.py . --out dist
- name: Scan the built packages for secrets and private data (blocking)
run: python3 skills/aiaddon-review/scripts/scan_secrets.py . --artifacts dist
run: python3 dev/aiaddon-review/scripts/scan_secrets.py . --artifacts dist
- name: Check the tag matches the plugin version
if: github.ref_type == 'tag'
env:
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ jobs:
test "$TAG" = "v$v" || { echo "tag $TAG does not match plugin version $v"; exit 1; }
- name: Run every check
run: |
python skills/aiaddon-review/scripts/selftest.py
python skills/aiaddon-review/scripts/validate_extension.py . --strict --target directory --require-meta author,company
python skills/aiaddon-review/scripts/scan_secrets.py .
python skills/aiaddon-review/scripts/scan_secrets.py . --history
python skills/aiaddon-review/scripts/route_check.py .
python skills/aiaddon-review/scripts/screen_text.py .
python dev/aiaddon-review/scripts/selftest.py
python dev/aiaddon-review/scripts/validate_extension.py . --strict --target directory --require-meta author,company
python dev/aiaddon-review/scripts/scan_secrets.py .
python dev/aiaddon-review/scripts/scan_secrets.py . --history
python dev/aiaddon-review/scripts/route_check.py .
python dev/aiaddon-review/scripts/screen_text.py .
- name: Build the package
id: build
run: |
python skills/aiaddon-package/scripts/package_extension.py . --format plugin --out dist --repo "$GITHUB_REPOSITORY" --force
python dev/aiaddon-package/scripts/package_extension.py . --format plugin --out dist --repo "$GITHUB_REPOSITORY" --force
cd dist
orig=$(ls -- *.plugin | head -1)
asset="${orig// /.}"
Expand All @@ -63,7 +63,7 @@ jobs:
echo "asset=$asset" >> "$GITHUB_OUTPUT"
echo "label=$orig" >> "$GITHUB_OUTPUT"
- name: Scan the built package for secrets and private data (blocking)
run: python skills/aiaddon-review/scripts/scan_secrets.py . --artifacts dist
run: python dev/aiaddon-review/scripts/scan_secrets.py . --artifacts dist
- uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2
with:
subject-path: |
Expand Down
18 changes: 10 additions & 8 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

AI Add-on Builder: plans, builds, checks and packages Claude skills, plugins, connectors and agents.

**Structure:** `skills/aiaddon` (router) and `aiaddon-plan|build|maintain|review|package|prompt|clean`, `agents/` (`aiaddon-compare`, `aiaddon-grade`), `hooks/hooks.json`, `evals/`, `.github/` (CI).
**Structure:** `skills/aiaddon` (router) and `aiaddon-plan|build|maintain|review|package|prompt|clean`, `agents/` (`aiaddon-compare`, `aiaddon-grade`), `dev/` (Python dev tools and the old hook, not shipped), `evals/`, `.github/` (CI).

## Commands
- Self-test (must pass): `python skills/aiaddon-review/scripts/selftest.py`
- Strict validation (must pass): `python skills/aiaddon-review/scripts/validate_extension.py . --strict --target directory --require-meta author,company`
- Secret scan: `python skills/aiaddon-review/scripts/scan_secrets.py`
- Secret and private-data scan (blocking; tree, full history, packages): `python skills/aiaddon-review/scripts/scan_secrets.py . --history`; false positives only in `.public-safety-allow`
- Router check (every eval prompt routes to its expected skill): `python skills/aiaddon-review/scripts/route_check.py .`
- Version bump: `skills/aiaddon-maintain/scripts/bump_version.py`; package: `skills/aiaddon-package/scripts/package_extension.py`
- Self-test (must pass): `python dev/aiaddon-review/scripts/selftest.py`
- Strict validation (must pass): `python dev/aiaddon-review/scripts/validate_extension.py . --strict --target directory --require-meta author,company`
- Secret scan: `python dev/aiaddon-review/scripts/scan_secrets.py`
- Secret and private-data scan (blocking; tree, full history, packages): `python dev/aiaddon-review/scripts/scan_secrets.py . --history`; false positives only in `.public-safety-allow`
- Router check (every eval prompt routes to its expected skill): `python dev/aiaddon-review/scripts/route_check.py .`
- Version bump: `dev/aiaddon-maintain/scripts/bump_version.py`; package: `dev/aiaddon-package/scripts/package_extension.py`
- Validate: `claude plugin validate . --strict`
- Evals (real model calls): `claude plugin eval . --trust-plugin --ablation none --scaffold --allow-tools Read Glob Grep Skill -j 4 --no-publish`. Rebuild cases with `python <owner-tools>/plugin-evals/regen_evals.py <plugin> <router> <fixture ids>` (owner's local tools folder, not in this repo). Write results outside the repo (`<owner-outputs>/<plugin>/eval-results`, a local folder outside the repo); the packager includes repo files.

Expand All @@ -20,9 +20,11 @@ AI Add-on Builder: plans, builds, checks and packages Claude skills, plugins, co
3. Update `CHANGELOG.md` for behavior changes; log ideas in `IMPROVEMENTS.md`.

## Rules
- **Directory compliance:** the shipped plugin (the `release` branch) has no hooks, no scripts or other non-text files, and text-only frontmatter. Features live as recipes in `skills/*/references/`; the Python in `dev/` is maintainer tooling only. Requests that would break Anthropic rules get a plain warning and the official safe method instead.
- **Never publish secrets or private data** (keys, tokens, passwords, personal contact data, client names, internal URLs, local paths) in this repo or anything it builds; the secret and public-safety scans block every commit, push and release.
- Run the closest check and the full gate before committing. Never delete or weaken tests or evals. Report failed, skipped or timed-out runs honestly; NOT RUN is never a pass.
- Follow neighbouring files. Keep each `SKILL.md` under 500 lines; move detail into `references/`.
- On release, bump `version` in `.claude-plugin/plugin.json` and every skill's `metadata.version` together; add a `CHANGELOG.md` entry per behavior change.
- On release, bump `version` in `.claude-plugin/plugin.json` (skills carry no `metadata` block: directory policy wants text-only frontmatter); add a `CHANGELOG.md` entry per behavior change.
- No commits, pushes or PRs unless asked. Work on a branch and open a PR; never push to main.
- No new dependencies without asking (scripts stay on the Python standard library).
- Never commit secrets. Never pick names or slugs without user confirmation.
Expand Down
21 changes: 19 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@

Newest first.

## 0.2.0: Directory compliance

**Added**
- Router hard rules: a public-safety gate (nothing secret or private in anything aiaddon builds, edits or publishes) and a compliance rule (plain warning plus the official safe method when a request would break Claude rules).
- Validator rules for the plugin directory: hooks, refused file types and non-text frontmatter are caught before submission.
- CI rebuilds a `release` branch from `main` after the checks pass (no force-push); the directory submission tracks it.

**Changed**
- Breaking for maintainers: the 25 scripts are now Markdown recipes in `skills/*/references/`, followed with built-in tools. The Python and the old hook moved unchanged to `dev/` (maintainers only, never shipped).
- The nested `metadata` block is removed from all skills and agents; agent `tools` are plain text.
- New plugins scaffolded by aiaddon follow the directory rules by default.
- Recipe passages the injection screen flagged are reworded as neutral steps or put in code blocks; meaning unchanged.

**Fixed**
- The validator no longer scans other checkouts under `.claude/worktrees`.
- The install simulator applies the repo's `.public-safety-allow` and forgives only the evals/prompts checks for folders that packages exclude by design.

## 0.1.0 - aiaddon (renamed from ai-extender 1.6.1)

**Version reset.** The plugin is now `aiaddon` (display name "AI Add-on Builder") and its version restarts at 0.1.0. Every entry below this one is the history of the ai-extender plugin, kept unchanged; its version numbers (1.6.1 and older) belong to ai-extender. Release tags restart at `v0.1.0`; the older `v1.x` tags stay as ai-extender history, so nothing in the repo or the release workflows compares a new version against them.
Expand Down Expand Up @@ -145,7 +162,7 @@ The plugin id and repo (`ai-extender`) and the agents `claude-comparator` and `c

**Added**
- Distribution routes: one repo and one marketplace per product; pick the marketplace name once (distinctive, `<company>-<plugin>`); what a rename does to existing installs; where users add a marketplace on claude.ai, desktop and mobile versus Claude Code, and why not both; uploaded `.plugin` files never update; how updates arrive and how to prove a repo with an isolated `CLAUDE_CONFIG_DIR` install.
- Release prep: `displayName` in `plugin.json` and the marketplace entry, an `icon` (`./assets/icon.png`), and a README that lists every `/<plugin>:<skill>` command.
- Release prep: `displayName` in `plugin.json` and the marketplace entry, an `icon` (the square PNG under `./assets/`), and a README that lists every `/<plugin>:<skill>` command.
- Directory route: push nothing to the default branch while a submission is in review; use a separate branch and merge after.
- Standards: names an extension generates on users' projects (such as class prefixes) never hardcode the author's company; ask once, record, neutral default.

Expand All @@ -157,7 +174,7 @@ The plugin id and repo (`ai-extender`) and the agents `claude-comparator` and `c

## Next branch: Icon and listing name (was 1.0.1 on next)

- Plugin icon (`assets/icon.png`, `assets/icon.svg`), set in `plugin.json`.
- Plugin icon (a PNG and an SVG under `assets/`), set in `plugin.json`.
- The marketplace entry shows the display name "AI Extender for Claude".

## 1.0.0: First public release
Expand Down
Loading
Loading