From 6feefc6bfbb11598b27301825b7950318b82a8eb Mon Sep 17 00:00:00 2001 From: Parfii-bot Date: Tue, 21 Apr 2026 14:46:55 +0800 Subject: [PATCH] feat(new-agent): Phase 8 optional cross-tool bridges - Insert Phase 8 between Phase 6 (Report) and Phase 7 (setup) - Single AskUserQuestion with 3 options: all 11 / AGENTS.md only / skip - On accept: invoke ~/.claude/agents/_bridges/emit.sh with the project path from Phase 2 (optionally --only AGENTS.md) - On skip: print the exact command the user can run later - All paths idempotent (emit.sh skips existing files) --- skills/new-agent/SKILL.md | 46 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/skills/new-agent/SKILL.md b/skills/new-agent/SKILL.md index 3a9dc18..beaa40e 100644 --- a/skills/new-agent/SKILL.md +++ b/skills/new-agent/SKILL.md @@ -384,6 +384,52 @@ Edit the MANIFEST, not the .md — the no-hand-edit-agents hook will block direc --- +## Phase 8 — Project bridges (optional, click-only) + +After reporting the new agent, offer to generate cross-tool bridge files for the project's working tree (so Cursor, Copilot, Aider, Windsurf, Junie, Continue, Gemini/Antigravity, Replit, Codex CLI, Warp, Zed all see the same Constructor-Pattern ruleset). Send this `AskUserQuestion`: + +```json +{ + "questions": [ + { + "question": "Generate cross-tool bridges for this project?", + "header": "Bridges", + "multiSelect": false, + "options": [ + {"label": "Yes — all 11", "description": "Cursor (legacy + MDC), Copilot, Codex, Windsurf, Junie, Continue, Aider, Replit, Antigravity/Gemini, Warp, Zed — one Constructor-Pattern ruleset across every AI coding tool"}, + {"label": "Yes — AGENTS.md only", "description": "Minimal — only the universal AGENTS.md that most modern tools read"}, + {"label": "No — skip", "description": "Agent-only install; user will generate bridges later via install.sh --with-bridges or _bridges/emit.sh"} + ] + } + ] +} +``` + +Resolve: + +- **Yes — all 11** — invoke: + ```bash + ~/.claude/agents/_bridges/emit.sh "" + ``` + Use the project path the user gave in Phase 2. The helper auto-derives `PROJECT_NAME` from the directory basename and `PROJECT_DESCRIPTION` from the first non-blank line of the project's `CLAUDE.md` or `README.md`. + +- **Yes — AGENTS.md only** — invoke the same helper with the `--only` filter: + ```bash + ~/.claude/agents/_bridges/emit.sh --only AGENTS.md "" + ``` + +- **No — skip** — print the exact command the user can run later and fall through to Phase 7: + ``` + To generate bridges later: + cd && ~/.claude/agents/_bridges/emit.sh "$PWD" + Or at install time: + cd && /install.sh --with-bridges + ``` + +All three options are idempotent — existing bridge files in the project are skipped, never overwritten. Report which files were created / skipped verbatim from `emit.sh` output. + +--- + ## Phase 7 — Suggested next steps (print, do NOT execute without ask) Offer as a final block the user can copy-paste: