diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 6d62b84..1e90fa8 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.4.0", + "version": "0.4.1", "category": "developer-tools" } ] diff --git a/CHANGELOG.md b/CHANGELOG.md index b3844b8..56f1a34 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ Newest first. +## 0.4.1: Agent factory workflow + +**Added** +- Agent factory workflow reference (issue and acceptance criteria first, tests first, own worktree and branch, CI with bounded retries, merge gate checklist, human review on every PR, optional holdout cases, start small), with pointer lines in the plan, maintain and review skills. + ## 0.4.0: Validator and tool feedback fixes **Added** diff --git a/README.md b/README.md index 2140b30..daeba5c 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.4.0 · **Author** @wasimness · **Company** SyncWin · **Contact** support@syncwin.com · **License** MIT +**Version** 0.4.1 · **Author** @wasimness · **Company** SyncWin · **Contact** support@syncwin.com · **License** MIT ## What you can build diff --git a/adapters/claude/.claude-plugin/plugin.json b/adapters/claude/.claude-plugin/plugin.json index d2ca061..713c188 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.4.0", + "version": "0.4.1", "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.4.0", + "version": "0.4.1", "author": "@wasimness", "company": "SyncWin", "homepage": "https://github.com/syncwin/aiaddon", diff --git a/adapters/claude/CHANGELOG.md b/adapters/claude/CHANGELOG.md index b3844b8..56f1a34 100644 --- a/adapters/claude/CHANGELOG.md +++ b/adapters/claude/CHANGELOG.md @@ -2,6 +2,11 @@ Newest first. +## 0.4.1: Agent factory workflow + +**Added** +- Agent factory workflow reference (issue and acceptance criteria first, tests first, own worktree and branch, CI with bounded retries, merge gate checklist, human review on every PR, optional holdout cases, start small), with pointer lines in the plan, maintain and review skills. + ## 0.4.0: Validator and tool feedback fixes **Added** diff --git a/adapters/claude/README.md b/adapters/claude/README.md index 2140b30..daeba5c 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.4.0 · **Author** @wasimness · **Company** SyncWin · **Contact** support@syncwin.com · **License** MIT +**Version** 0.4.1 · **Author** @wasimness · **Company** SyncWin · **Contact** support@syncwin.com · **License** MIT ## What you can build diff --git a/adapters/claude/skills/aiaddon-maintain/SKILL.md b/adapters/claude/skills/aiaddon-maintain/SKILL.md index ffd1350..94aa4e6 100644 --- a/adapters/claude/skills/aiaddon-maintain/SKILL.md +++ b/adapters/claude/skills/aiaddon-maintain/SKILL.md @@ -17,6 +17,7 @@ license: MIT 4a. **Public safety before and after every change:** follow `aiaddon-review/references/scan-secrets.md` (with history) on `` first and again on the result; keep the `.gitignore` preset, `PUBLIC-SAFETY.md` and `.env.example` intact (`aiaddon-review/references/public-safety.md`). Names stay inside the naming standard (`aiaddon/references/standards.md` section 1); a renamed slug is confirmed with the user and gets a migration note in the README and changelog. 4b. **Past leak remediation** (a secret or private value already in git, a package or a release; full steps in `aiaddon-review/references/public-safety.md` section 6), in this order: detect with the scan; tell the user; rotate or revoke the credential FIRST; rewrite history with `git filter-repo` (or BFG) on a backed-up mirror; force-push ONLY after the user's explicit OK for that exact push, never automatically; delete and re-create affected releases and tags and note forks; ask GitHub Support to purge cached views and PR refs; re-scan to prove zero traces. 5. Not authored here (downloaded/third-party)? Disclose the fork consequences first (versioning.md). +5a. **Changes built by an agent:** issue with acceptance criteria, tests first, own branch and PR, bounded CI retries, human review: `references/factory-workflow.md`. 6. Re-validate with `aiaddon:aiaddon-review`, repackage with `aiaddon:aiaddon-package`. Finish with the scratchpad (`aiaddon/references/scratchpad.md`). diff --git a/adapters/claude/skills/aiaddon-maintain/references/factory-workflow.md b/adapters/claude/skills/aiaddon-maintain/references/factory-workflow.md new file mode 100644 index 0000000..8242837 --- /dev/null +++ b/adapters/claude/skills/aiaddon-maintain/references/factory-workflow.md @@ -0,0 +1,24 @@ +# Agent factory workflow (plugin and skill changes) + +Use when an agent (or several) builds or changes a plugin or skill and a human stays in charge. Brand agnostic: works with any agent, repo host, and CI. + +## Steps + +1. **Issue first.** Every change starts as a written issue: the problem in plain words plus acceptance criteria, each one checkable (a pass or a fail, never "better"). +2. **Tests first.** Before editing, write or name the proof for each criterion: an eval case, a router case, or a validator check. The gate only knows what the tests know; a criterion with no test is not done. Never delete or weaken an existing test. +3. **Own worktree and branch.** The agent works in its own worktree on its own branch, makes the smallest change that meets the criteria, and opens a pull request that links the issue. +4. **CI runs.** Validator, selftest, router check, secret scan and evals. A failure goes back to the agent with the output. Bounded tries (two or three); then stop and report what failed and what was tried. No retry loops. +5. **Merge gate checklist.** All of: checks passed (none skipped or NOT RUN), review approved, and the diff matches the issue's scope (nothing extra). +6. **Human review on every pull request.** The requester is not the approver; a second person approves. No auto-merge without review. +7. **Holdout cases (optional, larger work).** Keep a few eval cases the building agent never sees; run them at review. A pass on visible cases with a holdout failure means the agent fitted the tests: send it back. +8. **Start small.** One agent, small well-described issues. Widen only after several clean reviewed pull requests. Never run a setup with no human review. + +## Issue template + +``` +Problem: +Acceptance criteria: +- +Tests: +Out of scope: +``` diff --git a/adapters/claude/skills/aiaddon-plan/SKILL.md b/adapters/claude/skills/aiaddon-plan/SKILL.md index 81dd7b6..7b7088b 100644 --- a/adapters/claude/skills/aiaddon-plan/SKILL.md +++ b/adapters/claude/skills/aiaddon-plan/SKILL.md @@ -17,4 +17,6 @@ license: MIT 5. **One approval:** show the plan in plain words and wait for a yes. This is the only approval gate before building. The plan always states: what it does; the plugin name and every skill name (one skill → named exactly like the plugin); version `0.0.1`; connectors, always with Composio listed as the default (never drop it yourself, even when the extension only reads what the user gives it; say the user can remove it) and which ones the account already has; the injection guardrail when it reads outside content; how it's installed; the companion prompt's form fields, by name; anything skipped (each with when to add it, never as a question). The questions cover only what the user alone knows: who uses it, where they use Claude, and their own content; never ask whether to add a component or integration. If a reference file can't be read, plan from these rules and note it in the scratchpad only, not at the top of the reply. For a user who described the goal in everyday words with no build terms, follow the router's plain-language rule: the plan covers what it does, what they get, and how they share it, and these build details go in the scratchpad instead. 6. **Hand off** to `aiaddon:aiaddon-build`. Names, acronym, metadata, licensing: `aiaddon/references/standards.md`. +7. **Agent-built change?** Write it as an issue with acceptance criteria and name the tests first: `aiaddon-maintain/references/factory-workflow.md`. + Finish with the scratchpad (`aiaddon/references/scratchpad.md`). diff --git a/adapters/claude/skills/aiaddon-review/SKILL.md b/adapters/claude/skills/aiaddon-review/SKILL.md index 30a2139..b731ea4 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). +9a. **Agent-built pull request:** the merge gate (checks passed, review approved, scope matches the issue, human approver is not the requester): `aiaddon-maintain/references/factory-workflow.md`. 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