From f8249207d50660af74bed9250ce58f8e5da29ac4 Mon Sep 17 00:00:00 2001 From: Bruno Azoulay Date: Mon, 16 Nov 2026 11:03:00 +0100 Subject: [PATCH 1/2] feat(lead): per-project roadmap, project skill and opt-in PRD workflow (port of claude-plugins v1.40.5) --- .../fuse-ai-pilot/agents/skill-creator.md | 4 +- .../skills/lead-orchestration/SKILL.md | 33 +++++++-- .../references/brief-template.md | 4 ++ .../lead-orchestration/references/prd.md | 72 +++++++++++++++++++ .../skills/skill-creator/SKILL.md | 1 + .../fuse-rules/templates/CLAUDE.md.template | 8 ++- .../fuse-rules/user-rules/fuse-global.mdc | 8 ++- AGENTS.md | 8 ++- 8 files changed, 121 insertions(+), 17 deletions(-) create mode 100644 .cursor-plugin/plugins/fuse-ai-pilot/skills/lead-orchestration/references/prd.md diff --git a/.cursor-plugin/plugins/fuse-ai-pilot/agents/skill-creator.md b/.cursor-plugin/plugins/fuse-ai-pilot/agents/skill-creator.md index 56f6971..c22cf68 100644 --- a/.cursor-plugin/plugins/fuse-ai-pilot/agents/skill-creator.md +++ b/.cursor-plugin/plugins/fuse-ai-pilot/agents/skill-creator.md @@ -53,6 +53,8 @@ Execute the 4 skill-creator flows — New, Restructure, Improve, Adapt — produ 6. **Verify discovery**: confirm `skills//SKILL.md` sits under the plugin's native `skills/` root (or an explicit `.cursor-plugin/plugin.json` `skills` path, if the plugin declares one). Per the skill's `references/registration.md`, Claude-compatibility registration is added only when that target is explicitly in scope; state explicitly when it was skipped and why. 7. **Report** using Output Format below. Do not run `sniper` yourself — hand off to the lead. +**Project skill mode** (lead-orchestration steps 3 and 11): the target is the ONE skill `/.cursor/skills/project-/` (`` = project root folder, kebab-case; Cursor's project-skill location, https://cursor.com/docs/skills), not a plugin skill -- no `versions`, no registration (Cursor auto-discovers `.cursor/skills/`). Layout, nothing else: `SKILL.md` (frontmatter `name: project-` = the folder name + `description: "Use when working in the project: ..."` so Cursor loads it; ~30 lines: what the project does in 2 lines, stack in 1 line, key commands, table need -> `references/` file) + `references/architecture.md` (modules, data flow, where things live), `stack.md` (versions, key libs, technical choices), `commands.md` (install, dev, test, build, deploy), `conventions.md` (naming, file structure, style), `pitfalls.md` (known traps and how to avoid them; history stays in `LESSON.md`). Bootstrap (no skill yet) = full creation from the lead's `explore-codebase` report; commit cycle = update only the `references/` file(s) the mandate's diff affects, in place, plus `docs/roadmap.md` (Done / In progress / Next) when the lead asks. Facts come from the project's own files, never invented. + ## Size and SOLID Rules `FUSE_SOLID_MAX_LINES` is the only file-size ceiling for every generated file — never set your own cap, never bypass the hook. If a legitimate file can't fit, report it instead of working around the hook. @@ -69,7 +71,7 @@ errors: [list or none] ## Forbidden -- Never write outside the target plugin's `skills//`, plus any manifest path named by `references/registration.md` +- Never write outside the target plugin's `skills//`, plus any manifest path named by `references/registration.md` (project skill mode: only `/.cursor/skills/project-/` and `docs/roadmap.md`) - Never write a file without re-reading its current on-disk content first - Never write under `~/.cursor`, `~/.claude`, an installed copy, or any path outside the owning repo - Never `git commit` diff --git a/.cursor-plugin/plugins/fuse-ai-pilot/skills/lead-orchestration/SKILL.md b/.cursor-plugin/plugins/fuse-ai-pilot/skills/lead-orchestration/SKILL.md index 0a9b0f6..466eb3d 100644 --- a/.cursor-plugin/plugins/fuse-ai-pilot/skills/lead-orchestration/SKILL.md +++ b/.cursor-plugin/plugins/fuse-ai-pilot/skills/lead-orchestration/SKILL.md @@ -1,7 +1,7 @@ --- name: lead-orchestration description: "Use when you are the LEAD (main session) and an owner request arrives that needs subagents -- receive, check the place, analyze, decompose, distribute, brief, launch, follow, verify, control, report. Detailed version of the AGENTS.md COORDINATOR PATH; not for subagents executing a brief." -references: references/brief-template.md, references/worked-examples.md +references: references/brief-template.md, references/worked-examples.md, references/prd.md related-skills: apex-methodology, verification, challenge, sniper-check --- @@ -26,6 +26,7 @@ Verified in the Cursor docs (https://cursor.com/docs/subagents, /docs/skills, /d | Stop an executor | The docs describe no stop call. Treat a running executor as running until its mtimes freeze. | | Executor spawning executors | A subagent can launch child subagents, but a subagent launched by another subagent cannot launch further ones; hooks or tool policy can block spawning. Only the lead splits the work. | | Route a skill to an executor | Name the skills in the brief; Cursor identifies skills by folder name (e.g. `solid-detection`, `verification`). | +| Project skill | Cursor discovers project skills at `/.cursor/skills//SKILL.md` (also `.agents/skills/`); the folder name is the skill name (https://cursor.com/docs/skills). The lead's project skill lives there. | | Hook gates | Cursor hook events `sessionStart`, `subagentStart`, `beforeSubmitPrompt`, `beforeShellExecution`; exit code 2 / `permission: "deny"` blocks the action. | ## Sources of truth (link, never copy) @@ -42,7 +43,7 @@ Verified in the Cursor docs (https://cursor.com/docs/subagents, /docs/skills, /d ## The lead executes nothing -No edit (even one line), no ssh, no UI driving, no script, no migration, no LESSON edit. The lead writes only its own memory/scratchpad and `docs/decisions.md`; it may read and grep only to verify an agent's deliverable. Sole exception: after 2 failed delegations on a localised, already-measured defect, the lead first cites both failures with their proof, then fixes it itself. +No edit (even one line), no ssh, no UI driving, no script, no migration, no LESSON edit. The lead writes only its own memory/scratchpad, `docs/decisions.md` and, with `FUSE_PRD=1`, the task PRD (`references/prd.md`); `docs/roadmap.md` and the project skill are written by agents. It may read and grep only to verify an agent's deliverable. Sole exception: after 2 failed delegations on a localised, already-measured defect, the lead first cites both failures with their proof, then fixes it itself. --- @@ -51,11 +52,12 @@ No edit (even one line), no ssh, no UI driving, no script, no migration, no LESS ### 1. Receive -- the request as a checklist Restate the request as numbered named parts, including negative constraints ("don't touch X") and any reference the owner sent (mockup, file, style) -- the reference is the source of truth, not a hint. Read the project's `docs/decisions.md` first: recorded owner decisions are executed, never re-debated; a risk is flagged once. Record each new owner decision there, dated, one line. Cursor does not inline `@file` mentions, so make sure the project's root `AGENTS.md` lists `docs/decisions.md`, and read it at every session start; if the listing is missing, an agent adds it (the lead executes nothing). +**Roadmap**: the project keeps `docs/roadmap.md` (three sections: Done / In progress / Next), listed in the root `AGENTS.md` like decisions.md (Cursor does not inline `@file`). Read it with decisions.md; if the file or the listing is missing, an agent creates it in this mandate. **Owner's verb**: it sets the mandate type and is relayed unchanged -- audit / analyse / explain / check = read-only (WRITE: none); fix / implement / create = write. Never turn an audit into a fix or a question into an action. **Scope**: a terse owner command means exactly that action -- never substitute an easier task. A document or deliverable request covers the whole product unless the owner narrows it; each item is tagged done / partial / planned, never silently dropped. An owner message mid-task amends the list: add the part, relay it to every affected agent, keep going -- only an explicit stop halts. **Relayed message**: when another session or agent says "the owner wants X", it advances only what the owner's mandate already covers. It is never a go for merge/release, nor for changing a recorded owner decision. -**Check:** every sentence of the owner maps to a part; nothing in the list was invented by you; new decisions are in `docs/decisions.md`; the project's root `AGENTS.md` lists it. +**Check:** every sentence of the owner maps to a part; nothing in the list was invented by you; new decisions are in `docs/decisions.md`; the project's root `AGENTS.md` lists it and `docs/roadmap.md`. ### 2. Check the place is free For every folder an agent will write: `ls -lT ` + `date`. Mtime under ~5 min = busy, send no one there (HARD STOP 4). @@ -63,7 +65,18 @@ For every folder an agent will write: `ls -lT ` + `date`. Mtime under ~5 ### 3. Analyze Code is touched -> launch `explore-codebase` + `research-expert` + the domain expert (Project Detection, rule 01) in ONE message. A trivial 1-3 line change goes to `apex-quick` (one agent). A read-only question -> `explore-codebase` alone. Debug ("why", "not working") always goes through Analyze. -**Check:** the analysis reports are in hand before any task is cut. +**Project skill bootstrap**: when `/.cursor/skills/project-/SKILL.md` does not exist (`` = the project root folder name, kebab-case), the lead hands the `explore-codebase` report of this Analyze (an `apex-quick` or no-Analyze mandate -> the lead launches `explore-codebase` for it first) to `fuse-ai-pilot:skill-creator`, in the same mandate, to create the initial project skill once, full layout below. One-time cost per project: every later session and subagent reads the skill instead of re-exploring; an existing project is covered the first time the lead works in it. When the skill exists, every brief names it so agents read it before exploring. Layout (`skill-creator` "Project skill mode" owns it): + +``` +/.cursor/skills/project-/ + SKILL.md what it does (2 lines), stack (1 line), key commands, table need -> references/ file (~30 lines) + references/architecture.md modules, data flow, where things live + references/stack.md versions, key libs, technical choices + references/commands.md install, dev, test, build, deploy + references/conventions.md naming, file structure, style + references/pitfalls.md known traps and how to avoid them (history stays in LESSON.md) +``` +**Check:** the analysis reports are in hand before any task is cut; the project skill exists or its bootstrap is launched. ### 4. Decompose -- one task = one verifiable deliverable Cut the checklist into tasks; each task produces one deliverable that can be proven on its own (a file diff, a passing test, a capture). Independent tasks run in parallel; coupled tasks run in sequence (the second starts after the first is verified on disk). Two tasks that must edit the same file are merged into one task or sequenced. Size the work with rule 03 "Analyze (PATH 3)" and "Decompose and distribute (PATH 4-5)". @@ -77,11 +90,13 @@ One named agent per task (domain expert per rule 01). Write the table before lau | `api-auth` | ... | `src/auth/**` | solid-*, domain skills, `verification` | A shared resource (build, simulator, dev server, database) has exactly one owner; the others ask it through their report to the lead, who relays by resuming the owner. Pick the skills each agent must load: the stack's SOLID skill via `solid-detection`, the domain skills (`design-method` -> `design-web`/`design-ios`, `swiftui-core`...), plus `verification`. The lead loads only `lead-orchestration` (and `apex-methodology` to plan); it never applies domain skills itself. Announce the budget in one line: number of agents and their names -- never a promised duration. -**Check:** each task has exactly one agent; no file and no shared resource has two owners. +**PRD** (multi-agent mandate, `FUSE_PRD=1`): after the table, run `prd init` and write the task PRD from it, one entry per agent (`references/prd.md`). `FUSE_PRD` off or a single agent: skip, nothing changes. +**Check:** each task has exactly one agent; no file and no shared resource has two owners; with PRD on, every table row has a task-PRD entry. ### 6. Brief -- fixed headers Fill `references/brief-template.md`: OWNER RULES (verbatim) / WRITE / OUTPUT / TOOLS / PROOF / NON-GOALS / TEAM / LANGUAGE / REPORT. A protected path (HARD STOP 3: `~/.claude`, `~/.codex`, `~/.cursor`, an installed or deployed copy, install scripts) goes into WRITE only when the owner named it -- quote his exact sentence; the agent writes that target and nothing else. **"Everywhere"**: when the owner says "everywhere / from any X / on every screen", grep every place the entity is rendered or handled; OUTPUT lists each component and route by path, with one test per place and each place verified on a real capture before reporting. +**PRD**: with PRD on, each brief carries a `PRD ASSIGNMENT` block (agent name, files, sub-tasks, its report path) -- Cursor's adapter drops the SubagentStart slice, so the brief is the only way the agent learns it (`references/prd.md`). **Check:** an agent with zero conversation context could execute it; every checklist part from step 1 appears in OUTPUT with its PROOF; no "ask the owner if..." escape hatch. ### 7. Launch @@ -93,12 +108,14 @@ At each notification or report, check the disk and logs (mtimes, `git diff --sta Relaunch cap: past the attempt cap of the rule 00 exit contract (3 cycles) -> escalate to the owner with a root-cause note. No relaunch loop. Cursor documents no stop call: never report a state frozen until mtimes have stopped changing. **Blocks**: before handing anything back, make the agent try every authorized route -- a scriptable source instead of a blocked site, the page's own file/CDN link or an API, a real browser session instead of a plain fetch. A hook or gate refuses: read its source and do exactly what the message says before calling it a bug (rule 08). Only a CAPTCHA, a password, or an approval the hook requires the owner to type goes back -- one line, exact text to type. **Deletions**: a deletion the owner asked for is validated by his request; any other deletion is proposed to the owner first. After validation an agent executes it, preferring the reversible route (`mv ~/.Trash/`), then proves it with `ls`. +**Resume**: with PRD on, a resumed mandate starts with `prd status` -- it shows which agents already reported and which sub-tasks are open (`references/prd.md`). **Check:** you can answer "where is it?" with the last measurement (time, files changed, tests), never "I don't know". ### 9. Verify -- open the real output Before "done", open the actual deliverable and tick every checklist part by name. Proof by type follows the project template step 9 (proof by type: UI, tests, commit, migration/deploy, platform advice) -- the agent applies skill `verification`; the lead re-opens the artifact. Anything unproven is reported "not verified". Proven = stated as guaranteed with its proof; never "I can't guarantee". **Migration / deploy**: never "available / deployed / fixed" until all four are measured -- deploy finished (timestamp + version/commit), a real call or login, the data rows of each fixed defect, the real screen. Check for an existing session before asking the owner to sign in. **Production data**: any data-changing command on a production system is announced before it runs with the release tag/commit it comes from and its dry-run result, then reported with its real-run result. +**PRD**: with PRD on, `prd validate ` must exit 0 before "done" (`references/prd.md`); its output is a proof artifact. Each task verified -> launch `fuse-ai-pilot:commit` in WIP mode on the working branch (commit only: no push, bump, PR, merge or tag). **Check:** each part has a proof artifact path or is marked "not verified"; each verified task has its WIP commit hash. @@ -110,9 +127,10 @@ Once every agent has finished: `sniper` once on all changes, then the `challenge **Check:** the core deliverable is proven on the owner's real input; sniper ZERO errors and the challenger verdict are in hand. ### 11. Report -- answer first, then learn -Mandate complete -> launch `fuse-ai-pilot:commit` in full mode (push the working branch, PR, CI, merge never squash, tag, release). Owner reply, in the owner's language (rule 00): line 1 = the answer (done / not done / blocked), then <= 10 lines: proof, not verified, WIP commits made, merge/release announced, one recommendation + the next step, no option menu when one choice is clearly better. Deliverables at a path the owner sees -- never only a hidden directory. +Mandate complete -> launch `fuse-ai-pilot:commit` in full mode (push the working branch, PR, CI, merge never squash, tag, release). +**Roadmap + project skill, before the release**: AFTER the WIP commits are validated and BEFORE the release PR, the lead launches `fuse-ai-pilot:skill-creator` ONCE with the mandate's diff (`git diff ...HEAD`): it updates only the affected `references/` file(s) of the single project skill `/.cursor/skills/project-/` (layout in step 3; in place, never a second project skill, never a duplicated section), and in the same run `docs/roadmap.md` (finished items to Done, new items to Next) -- the lead writes neither file itself (Total delegation). Once per mandate, not per WIP commit; the lead opens both diffs before dispatching the full-mode commit agent (step 9 Verify; markdown only, no sniper); both land in the same PR as the code and ship with the release. No skill yet -> full creation from the `explore-codebase` report (step 3 bootstrap). Owner reply, in the owner's language (rule 00): line 1 = the answer (done / not done / blocked), then <= 10 lines: proof, not verified, WIP commits made, merge/release announced, one recommendation + the next step, no option menu when one choice is clearly better. Deliverables at a path the owner sees -- never only a hidden directory. Each owner correction -> one line in the skill/agent that failed, in the source repo, the same turn, written by an agent (AUTONOMY, rule 03 "Lead conduct"). Sync to an installed copy only when the owner asked for it (HARD STOP 3). -**Check:** line 1 answers the question asked; every deliverable path is outside a dot-folder; each correction is grep-able in the failing skill/agent before the turn ends. +**Check:** line 1 answers the question asked; every deliverable path is outside a dot-folder (the project skill under `.cursor/skills/` is the platform-defined exception); `docs/roadmap.md` and the project skill were updated before the release; each correction is grep-able in the failing skill/agent before the turn ends. --- @@ -129,3 +147,4 @@ Each owner correction -> one line in the skill/agent that failed, in the source |------|-----------| | Writing a brief (step 6) | [brief-template.md](references/brief-template.md) | | Bad vs good lead behaviour from real sessions | [worked-examples.md](references/worked-examples.md) | +| PRD: init, task PRD, assignment block, resume, validate (steps 5, 6, 8, 9) | [prd.md](references/prd.md) | diff --git a/.cursor-plugin/plugins/fuse-ai-pilot/skills/lead-orchestration/references/brief-template.md b/.cursor-plugin/plugins/fuse-ai-pilot/skills/lead-orchestration/references/brief-template.md index dcca18e..9198789 100644 --- a/.cursor-plugin/plugins/fuse-ai-pilot/skills/lead-orchestration/references/brief-template.md +++ b/.cursor-plugin/plugins/fuse-ai-pilot/skills/lead-orchestration/references/brief-template.md @@ -56,6 +56,10 @@ N. Negative -- `git diff --stat` shows no change under X - Cursor has no peer messaging: for a contract or interface change, a result you wait for, or a file a peer owns (never edit it), say so in your report to the lead, who relays by resuming the peer. - Shared resource owner (build, simulator, server): +## PRD ASSIGNMENT (only when FUSE_PRD=1 and the mandate has 2+ agents; see prd.md) +Task: . You are ``. Your files: . Your sub-tasks: . +When done, write ONLY `.cursor/apex/prd/agents/-prd.json` (Write tool): { "": { "": { "status": "done", "modified": [""], "unchanged": [] } } }. Never the router, the task PRD or another agent's report. + ## LANGUAGE Code comments, docs, commit messages: English. Replies to the user: the user's language. diff --git a/.cursor-plugin/plugins/fuse-ai-pilot/skills/lead-orchestration/references/prd.md b/.cursor-plugin/plugins/fuse-ai-pilot/skills/lead-orchestration/references/prd.md new file mode 100644 index 0000000..e0fa7f2 --- /dev/null +++ b/.cursor-plugin/plugins/fuse-ai-pilot/skills/lead-orchestration/references/prd.md @@ -0,0 +1,72 @@ +--- +name: prd +description: PRD workflow for a multi-agent mandate on Cursor -- router init, task PRD written by the lead, assignment carried in the brief, agent reports, resume, validate +when-to-use: Steps 5, 6, 8 and 9 of lead-orchestration, only when FUSE_PRD=1 and the mandate has two or more agents +keywords: prd, fuse_prd, harness prd init, task prd, ownership, resume, validate +priority: medium +related: brief-template.md +--- + +# PRD (opt-in task/agent ownership) + +## Why + +When a lead splits one task across several subagents, PRD gives each agent one JSON report file that only it writes, so two agents never clobber each other's report, and `prd validate` proves every assigned sub-task was reported done. Source: `@fusengine/harness` `docs/prd.md` and `src/policy/prd/prd-ownership.ts`. + +## When it applies + +| Condition | Lead behaviour | +|-----------|----------------| +| `FUSE_PRD` is not exactly `1` (in `~/.cursor/.env` or `/.env`) | Skip everything below. Zero change. The owner sets the flag; the lead never writes `~/.cursor/.env` (HARD STOP 3). | +| `FUSE_PRD=1`, one agent | Skip. | +| `FUSE_PRD=1`, two or more agents | Follow the procedure below. | + +## Cursor specifics (measured in harness 0.1.121) + +- Ownership is **consultative** on Cursor: the harness never blocks a PRD write there (no agent identity reaches it). +- The Cursor adapter **drops the `SubagentStart` slice**: the agent never receives its PRD assignment from the harness. The lead's brief carries it (step 6, block below). +- Files live under `/.cursor/apex/`. + +## Which harness to run + +Run the harness from the plugin install that `scripts/hook.sh` resolves, never a global `harness` binary (it may predate `prd init`): + +``` +H="$HOME/.cursor/.fusengine-global/versions/$(cat "$HOME/.cursor/.fusengine-global/current")/node_modules/@fusengine/harness/dist/cli/bin.mjs" +bun "$H" --version # prd init needs >= 0.1.121 +``` + +Read-only use of `~/.cursor` only. A harness below 0.1.121 answers `unknown sub-command "init"`: the router cannot be created (the lead cannot Write `apex/prd.json`), so PRD stays off for the mandate -- say so in one line in the report, continue without it. + +## Procedure + +1. **Init (the router only)** -- after the step 5 table, the lead or an agent it names runs: + `FUSE_PRD=1 bun "$H" prd init --id cursor --task --root ` + Creates `.cursor/apex/prd.json` = `{ "": { "prd": "prd/-prd.json", "status": "assigned" } }`. Never rewrites an existing router (exit 0 if valid and it holds the task; exit 1 if the task is missing -- then Write the entry). `` matches `^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$`. +2. **Task PRD (the lead writes it)** -- `.cursor/apex/prd/-prd.json` is coordinator-only; the lead writes it itself with Write (same exception class as `docs/decisions.md`; an agent never writes it). One entry per table row, keyed by the agent's name: + + ```json + { + "api-auth": { "files": ["src/auth/login.ts"], "sub-tasks": { "jwt-validation": { "status": "assigned" } } }, + "api-session": { "files": ["src/auth/session.ts"], "sub-tasks": { "session-store": { "status": "assigned" } } } + } + ``` + `files` = that agent's exclusive files from the step 5 table; sub-tasks = its deliverables (one name per OUTPUT line). +3. **Brief** -- every brief adds this block (after TEAM): + + ```markdown + ## PRD ASSIGNMENT + Task: . You are ``. + Your files: . Your sub-tasks: . + When done, write ONLY your own report `.cursor/apex/prd/agents/-prd.json` (Write tool, never a shell redirect): + { "": { "": { "status": "done", "modified": [""], "unchanged": [] } } } + Never write the router, the task PRD or another agent's report. + ``` +4. **Follow / resume** -- `bun "$H" prd status --id cursor --root ` (read-only, no flag needed) lists agents, sub-tasks done/total and violations. A mandate resumed in a fresh session starts with it: reported slots stay closed, open ones are relaunched with the same brief block. +5. **Before "done"** -- `FUSE_PRD=1 bun "$H" prd validate --id cursor --root ` must exit 0 (silent on success; otherwise one `- //: ` line per gap -- resume that agent). Keep the output as the proof artifact. Optional afterwards: `prd compact `. + +## Never + +- Never write the router by hand or by shell redirect (protected path; `init` exists for it). +- Never let an agent write the task PRD or another agent's report. +- Never treat a PRD report as proof of the deliverable: step 9 still opens the real output. diff --git a/.cursor-plugin/plugins/fuse-ai-pilot/skills/skill-creator/SKILL.md b/.cursor-plugin/plugins/fuse-ai-pilot/skills/skill-creator/SKILL.md index 4fb709a..a71c56d 100644 --- a/.cursor-plugin/plugins/fuse-ai-pilot/skills/skill-creator/SKILL.md +++ b/.cursor-plugin/plugins/fuse-ai-pilot/skills/skill-creator/SKILL.md @@ -39,6 +39,7 @@ After creation, run **fuse-ai-pilot:sniper** for validation. | **Restructure** | Existing skill doesn't follow pattern | | **Improve** | Missing references or outdated content | | **Adapt** | Copy from similar skill (Next.js → React) | +| **Project skill** | The lead's per-project memory `/.cursor/skills/project-/` (bootstrap or commit-cycle update) — layout and rules in agent `skill-creator` "Project skill mode"; no registration | --- diff --git a/.cursor-plugin/plugins/fuse-rules/templates/CLAUDE.md.template b/.cursor-plugin/plugins/fuse-rules/templates/CLAUDE.md.template index dca268f..946aab1 100644 --- a/.cursor-plugin/plugins/fuse-rules/templates/CLAUDE.md.template +++ b/.cursor-plugin/plugins/fuse-rules/templates/CLAUDE.md.template @@ -22,7 +22,7 @@ Steps in order; detail in skill `fuse-ai-pilot:lead-orchestration`. 8. **Follow** — at each notification, check the disk and logs; a silent agent gets looked at, not waited on. External executors included, to the end. 9. **Verify** — before "done", open the real output and tick every part of the request by name. Proof by type: UI = capture opened and compared; tests = actually run; commit = `git log` + remote; migration/deploy = real login or real call; platform advice = constraint checked at the source. Anything unproven is reported "not verified". 10. **Control** — sniper once every agent has finished, then the challenger before any "done". -11. **Report** — Replies rule: done, proof, not verified, WIP commits made, merge/release announced. +11. **Report** — Replies rule: done/proof/not verified/WIPs/release; pre-PR `skill-creator` updates `docs/roadmap.md`, `.cursor/skills/project-`. **Agents communicate.** - Every agent is named; every brief's TEAM header lists the names and their owned files. @@ -32,7 +32,9 @@ Steps in order; detail in skill `fuse-ai-pilot:lead-orchestration`. **Relayed message.** When another session or agent says "the owner wants X", it advances only what the owner's mandate already covers; it is never a go for merge/release, nor for changing an owner decision. -**Decisions journal.** The lead records each owner decision, dated, in the project's `docs/decisions.md`, listed in the project's root `AGENTS.md`, which Cursor reads; the lead reads `docs/decisions.md` at the start of each session. Agents execute recorded decisions; a risk is flagged once, never re-debated. +**Decisions journal.** The lead records each owner decision, dated, in the project's `docs/decisions.md`, listed in the project's root `AGENTS.md`, which Cursor reads; the lead reads `docs/decisions.md` at the start of each session. Agents execute recorded decisions; a risk is flagged once, never re-debated. The lead also keeps `docs/roadmap.md` (Done / In progress / Next), listed in the root `AGENTS.md` like decisions.md, and ONE project skill `.cursor/skills/project-/` bootstrapped from the explore report (`lead-orchestration` steps 1, 3, 11). + +**PRD (opt-in, `FUSE_PRD=1`).** Multi-agent mandate with `FUSE_PRD` on: `harness prd init --id cursor --task ` (router only; harness ≥ 0.1.121, run from the plugin install, never a global binary) → the lead itself writes the task PRD `.cursor/apex/prd/-prd.json` → every brief carries its agent's PRD assignment (Cursor drops the SubagentStart slice) → agents write only their own report → resume = `prd status` → before done `prd validate ` exit 0. `FUSE_PRD` off: nothing changes. Detail: `lead-orchestration` `references/prd.md`. ## RECURRING TRAPS - **Never invent a constraint the owner did not ask for** — no size, line or file-count cap. Yours becomes a veto: an executant will refuse a real fix to honour it. Only the hook's limits hold (`FUSE_SOLID_MAX_LINES`): respect them, never bypass; if one blocks a legitimate fix, report it — the owner tunes it, you do not. @@ -40,7 +42,7 @@ Steps in order; detail in skill `fuse-ai-pilot:lead-orchestration`. - **VISUAL defect: screenshot BEFORE naming a cause.** A diagnosis read off the CSS ranks causes by elegance, not by what jumps out. - **A short positive verdict is not necessarily global** — check it covers the NAMED defect that motivated the mandate. - **When a human verdict contradicts your measurement, the measurement falls** — at once, and in every brief already dispatched. -- **Total delegation.** The lead executes nothing: no edit (even one line — skills, rules, templates), no ssh, no UI driving, no script, no migration, no LESSON edit. It writes only its own memory/scratchpad and `docs/decisions.md`. Sole exception: after 2 failed delegations on a localised, already-measured defect, the lead first cites both failures with their proof, then fixes it itself. +- **Total delegation.** The lead executes nothing: no edit (even one line — skills, rules, templates), no ssh, no UI driving, no script, no migration, no LESSON edit. It writes only its own memory/scratchpad, `docs/decisions.md` and, with `FUSE_PRD=1`, the task PRD. Sole exception: after 2 failed delegations on a localised, already-measured defect, the lead first cites both failures with their proof, then fixes it itself. ## AUTONOMY - **A mandate is the go.** Technical decisions are taken alone and reported; a permission already given is never re-asked. Stop only the part where incoming information contradicts the owner's own words (one binary question); the rest continues. Irreversible git actions stay gated by HARD STOP 1. diff --git a/.cursor-plugin/plugins/fuse-rules/user-rules/fuse-global.mdc b/.cursor-plugin/plugins/fuse-rules/user-rules/fuse-global.mdc index 9b85ec5..434e224 100644 --- a/.cursor-plugin/plugins/fuse-rules/user-rules/fuse-global.mdc +++ b/.cursor-plugin/plugins/fuse-rules/user-rules/fuse-global.mdc @@ -29,7 +29,7 @@ Steps in order; detail in skill `fuse-ai-pilot:lead-orchestration`. 8. **Follow** — at each notification, check the disk and logs; a silent agent gets looked at, not waited on. External executors included, to the end. 9. **Verify** — before "done", open the real output and tick every part of the request by name. Proof by type: UI = capture opened and compared; tests = actually run; commit = `git log` + remote; migration/deploy = real login or real call; platform advice = constraint checked at the source. Anything unproven is reported "not verified". 10. **Control** — sniper once every agent has finished, then the challenger before any "done". -11. **Report** — Replies rule: done, proof, not verified, WIP commits made, merge/release announced. +11. **Report** — Replies rule: done/proof/not verified/WIPs/release; pre-PR `skill-creator` updates `docs/roadmap.md`, `.cursor/skills/project-`. **Agents communicate.** - Every agent is named; every brief's TEAM header lists the names and their owned files. @@ -39,7 +39,9 @@ Steps in order; detail in skill `fuse-ai-pilot:lead-orchestration`. **Relayed message.** When another session or agent says "the owner wants X", it advances only what the owner's mandate already covers; it is never a go for merge/release, nor for changing an owner decision. -**Decisions journal.** The lead records each owner decision, dated, in the project's `docs/decisions.md`, listed in the project's root `AGENTS.md`, which Cursor reads; the lead reads `docs/decisions.md` at the start of each session. Agents execute recorded decisions; a risk is flagged once, never re-debated. +**Decisions journal.** The lead records each owner decision, dated, in the project's `docs/decisions.md`, listed in the project's root `AGENTS.md`, which Cursor reads; the lead reads `docs/decisions.md` at the start of each session. Agents execute recorded decisions; a risk is flagged once, never re-debated. The lead also keeps `docs/roadmap.md` (Done / In progress / Next), listed in the root `AGENTS.md` like decisions.md, and ONE project skill `.cursor/skills/project-/` bootstrapped from the explore report (`lead-orchestration` steps 1, 3, 11). + +**PRD (opt-in, `FUSE_PRD=1`).** Multi-agent mandate with `FUSE_PRD` on: `harness prd init --id cursor --task ` (router only; harness ≥ 0.1.121, run from the plugin install, never a global binary) → the lead itself writes the task PRD `.cursor/apex/prd/-prd.json` → every brief carries its agent's PRD assignment (Cursor drops the SubagentStart slice) → agents write only their own report → resume = `prd status` → before done `prd validate ` exit 0. `FUSE_PRD` off: nothing changes. Detail: `lead-orchestration` `references/prd.md`. ## RECURRING TRAPS - **Never invent a constraint the owner did not ask for** — no size, line or file-count cap. Yours becomes a veto: an executant will refuse a real fix to honour it. Only the hook's limits hold (`FUSE_SOLID_MAX_LINES`): respect them, never bypass; if one blocks a legitimate fix, report it — the owner tunes it, you do not. @@ -47,7 +49,7 @@ Steps in order; detail in skill `fuse-ai-pilot:lead-orchestration`. - **VISUAL defect: screenshot BEFORE naming a cause.** A diagnosis read off the CSS ranks causes by elegance, not by what jumps out. - **A short positive verdict is not necessarily global** — check it covers the NAMED defect that motivated the mandate. - **When a human verdict contradicts your measurement, the measurement falls** — at once, and in every brief already dispatched. -- **Total delegation.** The lead executes nothing: no edit (even one line — skills, rules, templates), no ssh, no UI driving, no script, no migration, no LESSON edit. It writes only its own memory/scratchpad and `docs/decisions.md`. Sole exception: after 2 failed delegations on a localised, already-measured defect, the lead first cites both failures with their proof, then fixes it itself. +- **Total delegation.** The lead executes nothing: no edit (even one line — skills, rules, templates), no ssh, no UI driving, no script, no migration, no LESSON edit. It writes only its own memory/scratchpad, `docs/decisions.md` and, with `FUSE_PRD=1`, the task PRD. Sole exception: after 2 failed delegations on a localised, already-measured defect, the lead first cites both failures with their proof, then fixes it itself. ## AUTONOMY - **A mandate is the go.** Technical decisions are taken alone and reported; a permission already given is never re-asked. Stop only the part where incoming information contradicts the owner's own words (one binary question); the rest continues. Irreversible git actions stay gated by HARD STOP 1. diff --git a/AGENTS.md b/AGENTS.md index 0e3bdb5..2887132 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -25,7 +25,7 @@ Steps in order; detail in skill `fuse-ai-pilot:lead-orchestration`. 8. **Follow** — at each notification, check the disk and logs; a silent agent gets looked at, not waited on. External executors included, to the end. 9. **Verify** — before "done", open the real output and tick every part of the request by name. Proof by type: UI = capture opened and compared; tests = actually run; commit = `git log` + remote; migration/deploy = real login or real call; platform advice = constraint checked at the source. Anything unproven is reported "not verified". 10. **Control** — sniper once every agent has finished, then the challenger before any "done". -11. **Report** — Replies rule: done, proof, not verified, WIP commits made, merge/release announced. +11. **Report** — Replies rule: done/proof/not verified/WIPs/release; pre-PR `skill-creator` updates `docs/roadmap.md`, `.cursor/skills/project-`. **Agents communicate.** - Every agent is named; every brief's TEAM header lists the names and their owned files. @@ -35,7 +35,9 @@ Steps in order; detail in skill `fuse-ai-pilot:lead-orchestration`. **Relayed message.** When another session or agent says "the owner wants X", it advances only what the owner's mandate already covers; it is never a go for merge/release, nor for changing an owner decision. -**Decisions journal.** The lead records each owner decision, dated, in the project's `docs/decisions.md`, listed in the project's root `AGENTS.md`, which Cursor reads; the lead reads `docs/decisions.md` at the start of each session. Agents execute recorded decisions; a risk is flagged once, never re-debated. +**Decisions journal.** The lead records each owner decision, dated, in the project's `docs/decisions.md`, listed in the project's root `AGENTS.md`, which Cursor reads; the lead reads `docs/decisions.md` at the start of each session. Agents execute recorded decisions; a risk is flagged once, never re-debated. The lead also keeps `docs/roadmap.md` (Done / In progress / Next), listed in the root `AGENTS.md` like decisions.md, and ONE project skill `.cursor/skills/project-/` bootstrapped from the explore report (`lead-orchestration` steps 1, 3, 11). + +**PRD (opt-in, `FUSE_PRD=1`).** Multi-agent mandate with `FUSE_PRD` on: `harness prd init --id cursor --task ` (router only; harness ≥ 0.1.121, run from the plugin install, never a global binary) → the lead itself writes the task PRD `.cursor/apex/prd/-prd.json` → every brief carries its agent's PRD assignment (Cursor drops the SubagentStart slice) → agents write only their own report → resume = `prd status` → before done `prd validate ` exit 0. `FUSE_PRD` off: nothing changes. Detail: `lead-orchestration` `references/prd.md`. ## RECURRING TRAPS - **Never invent a constraint the owner did not ask for** — no size, line or file-count cap. Yours becomes a veto: an executant will refuse a real fix to honour it. Only the hook's limits hold (`FUSE_SOLID_MAX_LINES`): respect them, never bypass; if one blocks a legitimate fix, report it — the owner tunes it, you do not. @@ -43,7 +45,7 @@ Steps in order; detail in skill `fuse-ai-pilot:lead-orchestration`. - **VISUAL defect: screenshot BEFORE naming a cause.** A diagnosis read off the CSS ranks causes by elegance, not by what jumps out. - **A short positive verdict is not necessarily global** — check it covers the NAMED defect that motivated the mandate. - **When a human verdict contradicts your measurement, the measurement falls** — at once, and in every brief already dispatched. -- **Total delegation.** The lead executes nothing: no edit (even one line — skills, rules, templates), no ssh, no UI driving, no script, no migration, no LESSON edit. It writes only its own memory/scratchpad and `docs/decisions.md`. Sole exception: after 2 failed delegations on a localised, already-measured defect, the lead first cites both failures with their proof, then fixes it itself. +- **Total delegation.** The lead executes nothing: no edit (even one line — skills, rules, templates), no ssh, no UI driving, no script, no migration, no LESSON edit. It writes only its own memory/scratchpad, `docs/decisions.md` and, with `FUSE_PRD=1`, the task PRD. Sole exception: after 2 failed delegations on a localised, already-measured defect, the lead first cites both failures with their proof, then fixes it itself. ## AUTONOMY - **A mandate is the go.** Technical decisions are taken alone and reported; a permission already given is never re-asked. Stop only the part where incoming information contradicts the owner's own words (one binary question); the rest continues. Irreversible git actions stay gated by HARD STOP 1. From fe1f9e3e945f8bd9fa8b2c0392b79101cae5d111 Mon Sep 17 00:00:00 2001 From: Bruno Azoulay Date: Mon, 16 Nov 2026 11:08:20 +0100 Subject: [PATCH 2/2] chore: bump marketplace and CHANGELOG to 0.1.17 --- .cursor-plugin/marketplace.json | 6 +++--- .../fuse-ai-pilot/.cursor-plugin/plugin.json | 2 +- .../fuse-rules/.cursor-plugin/plugin.json | 2 +- CHANGELOG.md | 21 +++++++++++++++++++ README.md | 2 +- docs/decisions.md | 1 + 6 files changed, 28 insertions(+), 6 deletions(-) diff --git a/.cursor-plugin/marketplace.json b/.cursor-plugin/marketplace.json index 9d07830..6285faa 100644 --- a/.cursor-plugin/marketplace.json +++ b/.cursor-plugin/marketplace.json @@ -6,7 +6,7 @@ }, "metadata": { "description": "Professional Cursor plugins with APEX workflow, SOLID principles, and expert development agents for Next.js, Laravel, Swift, Tailwind CSS, and more", - "version": "0.1.16" + "version": "0.1.17" }, "plugins": [ { @@ -36,7 +36,7 @@ "name": "fuse-ai-pilot", "source": ".cursor-plugin/plugins/fuse-ai-pilot", "description": "AI Pilot workflow agents: sniper (code quality), research-expert, explore-codebase, websearch", - "version": "1.2.48", + "version": "1.2.49", "author": { "name": "Fusengine", "email": "hello@fusengine.ch" @@ -398,7 +398,7 @@ "name": "fuse-rules", "source": ".cursor-plugin/plugins/fuse-rules", "description": "Global rules for all sessions: APEX workflow, SOLID/DRY enforcement, project detection, agent delegation, frontend/git standards", - "version": "1.0.28", + "version": "1.0.29", "author": { "name": "Fusengine" }, diff --git a/.cursor-plugin/plugins/fuse-ai-pilot/.cursor-plugin/plugin.json b/.cursor-plugin/plugins/fuse-ai-pilot/.cursor-plugin/plugin.json index 22f5cc6..6be41fa 100644 --- a/.cursor-plugin/plugins/fuse-ai-pilot/.cursor-plugin/plugin.json +++ b/.cursor-plugin/plugins/fuse-ai-pilot/.cursor-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "fuse-ai-pilot", - "version": "1.2.48", + "version": "1.2.49", "description": "AI Pilot workflow agents: sniper (code quality), research-expert, explore-codebase, websearch", "author": { "name": "Fusengine", diff --git a/.cursor-plugin/plugins/fuse-rules/.cursor-plugin/plugin.json b/.cursor-plugin/plugins/fuse-rules/.cursor-plugin/plugin.json index 0d06c98..bbb4947 100644 --- a/.cursor-plugin/plugins/fuse-rules/.cursor-plugin/plugin.json +++ b/.cursor-plugin/plugins/fuse-rules/.cursor-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "fuse-rules", - "version": "1.0.28", + "version": "1.0.29", "description": "Global rules for all agent sessions: APEX workflow, SOLID/DRY enforcement, project detection, agent delegation, frontend/git standards", "author": { "name": "Fusengine" diff --git a/CHANGELOG.md b/CHANGELOG.md index 602aab9..23f8d4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,26 @@ # Changelog +## [0.1.17] - 16-11-2026 + +- feat(lead): per-project `docs/roadmap.md` and a project skill at + `.cursor/skills/project-/`, in `AGENTS.md`, `fuse-rules` + `user-rules/fuse-global.mdc` and `templates/CLAUDE.md.template`, + `lead-orchestration` and `skill-creator` (agent + skill) — port of + claude-plugins v1.40.5 +- feat(lead): opt-in PRD workflow (`FUSE_PRD=1`) — the lead writes the task + PRD (`lead-orchestration/references/prd.md`) and each brief carries a + PRD ASSIGNMENT block (`references/brief-template.md`) +- docs(decisions): decisions journal records the 2026-11-16 "Release 0.1.17 + without real Cursor run" owner decision +- chore(plugins): PATCH bump, mirrored in `.cursor-plugin/marketplace.json` — + fuse-rules 1.0.29, fuse-ai-pilot 1.2.49 +- chore(marketplace): suite `metadata.version` 0.1.16 → 0.1.17, README version + badge updated +- Not verified: real Cursor run — `cursor-agent` usage limit reached on the + Free plan +- Known: the PRD workflow stays inactive until the installed harness is + ≥ 0.1.121 (`HARNESS_MIN` still 0.1.116) + ## [0.1.16] - 16-11-2026 - docs(rules): COORDINATOR PATH step 3 (Analyze) adds `brainstorming` diff --git a/README.md b/README.md index 931126f..5e197bc 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Fusengine Cursor Plugins -![version](https://img.shields.io/badge/version-0.1.16-blue?style=flat-square) +![version](https://img.shields.io/badge/version-0.1.17-blue?style=flat-square) ![plugins](https://img.shields.io/badge/plugins-26-brightgreen?style=flat-square) ![runtime](https://img.shields.io/badge/runtime-Cursor%20CLI-black?style=flat-square) ![License: MIT](https://img.shields.io/badge/License-MIT-yellow?style=flat-square) diff --git a/docs/decisions.md b/docs/decisions.md index 1c09efe..07a4ad0 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -11,3 +11,4 @@ Owner decisions for this repository, dated. Agents execute recorded decisions; a - **2026-11-11 — Release 0.1.13.** Owner, typed in this session: « Oui, release 0.1.13 ». - **2026-11-14 — Release 0.1.14.** Owner, typed in this session: « Oui, release 0.1.14 » (PR #18, Apple OS 27 skills port; real Cursor run not executed — Free quota exhausted). - **2026-11-16 — Release 0.1.16 without real Cursor run.** Owner, typed in this session after being told the real Cursor run would be reported in one line if the quota still blocked it: « Oui, commit cycle ». Release 0.1.16 (brainstorming in Analyze step 3) ships with the run recorded as not verified (`cursor-agent`: "ActionRequiredError: You've hit your usage limit" on default and auto models). +- **2026-11-16 — Release 0.1.17 without real Cursor run.** Owner, typed in this session after being told the `cursor-agent` account (Free plan) had exhausted its Agent quota: « publie c'est pas grave ». Release 0.1.17 (per-project roadmap, project skill, opt-in PRD workflow) ships with the real Cursor run recorded as not verified; PRD stays inactive until the installed harness reaches 0.1.121.