Repository navigation
Description
Updated 2026-08-07. Blockers cleared, the
detectbug turned out to be already fixed, and the skill content is retargeted at the code-mode surface. See the notes at the bottom for what changed and why.
What to build
conciv init leaves behind a standing entry point for coding agents that costs about 200 tokens and stays flat forever, regardless of how many verbs conciv grows.
Today init writes a marked AGENTS.md section that lists command groups — a mini-catalog, which is exactly the context cost the code-mode design removes. After this ticket init installs a short skill instead: what conciv is, the code-mode discovery idiom, code for real work, direct verbs for one-shots, the dev-server requirement, that extension-contributed verbs are not in the static catalog, and two worked examples. The marked AGENTS.md section shrinks to a pointer and stops listing verbs.
The skill teaches the code-mode MCP surface — one tool, discovery through the catalog binding inside the sandbox (packages/core/src/chat/code-mode.ts) — plus the CLI's direct verbs for one-shots. It does not teach conciv tools code or conciv tools snippets: #223 is closed and that surface was rejected.
Where it lands, without inventing paths: claude is the one harness whose skills location we already own and write to (the connect plugin init generates), so it ships as a file inside that. For the other detected harnesses we have not verified a skills convention, so the skill goes once to conciv/skill.md — beside conciv/extensions/, the directory projects already commit, since .conciv/ is gitignored runtime state — and AGENTS.md points at it.
For scale: the registry lands near 83 capabilities (38 page verbs, 7 server operations, open, and 37 extension tools). Any file that lists them is obsolete the day it is written. Nothing in the skill or the AGENTS.md section enumerates capabilities.
Acceptance criteria
- The skill teaches the code-mode loop: discover through the catalog binding, write code, run it
- It states that extension-contributed verbs are not in the static catalog, so an agent does not read the catalog as exhaustive
- For a consented claude harness the skill lands where claude will actually load it
- For the other harnesses the skill lands at
conciv/skill.mdand AGENTS.md points at it - The marked AGENTS.md section no longer enumerates verbs —
agentsSection()inpackages/cli/src/init/steps/harness/agents-md.ts:11-31currently hand-listsconciv tools page,conciv tools react, andconciv tools server - Re-running init is idempotent — no duplicated skill, no duplicated section
- Interrupting init still leaves the tree pristine, including a skill file it had just created
- About 200 tokens, flat forever, no verb enumeration
Design: docs/superpowers/specs/2026-08-04-cli-command-contract-design.md section 5, superseded on the execution surface by docs/superpowers/specs/2026-08-04-one-tool-registry-design.md.
Not blocked
- MCP: one code-mode tool over the registry — execute, with the catalog as a binding #231 (code-mode MCP tool) — CLOSED. The surface the skill teaches exists.
- registry: delete the old surface, add the guards, bring the suite green #232 (registry cleanup) — CLOSED.
- CLI: conciv tools code — code-only discovery and typed execution #223 — closed as rejected; the skill must not reference
conciv tools code. - CLI: snippets — a working script becomes reusable tooling #224 (snippets) — does not gate this. Snippet promotion is a separate open design question; the skill ships without a snippets section rather than waiting on it.
Resolved: the detect bug recorded earlier is already fixed
Earlier comments recorded that the claude step reports present when the plugin merely appears in claude's installed-plugins file, so a step reporting present never applies and the skill would be silently skipped exactly where the plugin is already installed.
That is no longer what the code does. packages/cli/src/init/steps/harness/claude.ts:86 calls pluginServesProject, which resolves to claudeConnectServesProject (packages/claude-connect/src/install-state.ts:52-53):
marketplaceRegistered(state) && installRecorded(state) && cachedCopyMatches(state)
cachedCopyMatches is the content predicate that was asked for, and installRecorded additionally requires a local-scope record whose projectPath matches this project (install-state.ts:69-77). This appears to have landed incidentally with the bridge work in #243/#266 rather than through this ticket, but it holds. No detect change is needed here; the new-file idempotence bullet above still applies to the skill itself.
Expanded scope (2026-08-14, owner-approved)
The original scope above stands unchanged (the ~200-token code-mode entry skill + AGENTS.md shrink). Three additions, modeled on CopilotKit's skills catalog (https://github.com/CopilotKit/CopilotKit/tree/main/skills) after a side-by-side review:
1. init wires up the @conciv/skills pack. packages/skills/skills/ already ships conciv-setup, conciv-develop, conciv-debug, conciv-harness — but conciv init installs none of them and nothing points at them (verified: zero references to skills in packages/cli/src/init/). After this ticket:
- For a consented claude harness, the pack lands where claude actually loads skills (same delivery channel as the entry skill — the connect plugin's owned location).
- For other harnesses, AGENTS.md's marked section points at the pack inside
node_modules/@conciv/skills/skills/(no file copying into the project — the installed package IS the source of truth, and upgrades ride the dependency). - Same idempotence + interrupt-pristine criteria as the entry skill.
2. New conciv-self-update skill in the pack (CopilotKit's cleverest pattern): a skill whose only job is refreshing the agent's installed/loaded conciv skills when they've gone stale — triggers on "update conciv skills", "skills are stale", "wrong API names", "refresh your conciv knowledge", etc. Mechanism: re-read the pack from the currently-installed @conciv/skills (and say so if the installed version predates the running engine). This solves the staleness problem that shipping skills creates.
3. Provenance + versioning across the pack: every skill in packages/skills gets a version: frontmatter field and a sources.md listing the repo files/specs each section distills — so future regeneration knows what to re-read, and conciv-self-update can detect drift.
Non-goals, still: no verb enumeration anywhere; no conciv-upgrade skill (v0, no back-compat); the repo-internal skills (conciv-review/publish/issue) stay in .claude/skills/, not the shipped pack.
Activity
omridevk commentedon Aug 4, 2026
Content needs rewriting; the ticket stands.
The skill's body referenced
conciv tools code,conciv tools snippets, and the catalog-filter idiom as CLI commands. #223 is closed and that surface is gone — seedocs/superpowers/specs/2026-08-04-one-tool-registry-design.md. The skill now teaches the code-mode MCP surface (search,execute) plus the CLI's direct verbs for one-shots.The idea is confirmed rather than weakened by the reference: Cloudflare generates Agent Skills from the same schema that generates their CLI and their code-mode server, so a skill is a derived surface, not a hand-written catalog. Keep the constraints as written — about 200 tokens, flat forever, no verb enumeration in the AGENTS.md section.
The
detectbug in here is independent of all of that and still real: the claude step reportspresentwhen the plugin merely appears in claude's installed-plugins file, and a step reportingpresentnever applies — so wherever the connect plugin is already installed the skill is silently never written while the run reports success and the idempotence test passes.detectmust compare generated files against the installed cache copy, the content predicate the harness attach path already uses.omridevk commentedon Aug 4, 2026
Reprioritised: init is part of the main goal, not a follow-up.
The goal as stated: every capability, including every extension's, discoverable by an agent writing code at a context cost that does not grow — and init working together with all of it. Init is what leaves a project able to use any of it, so it ships as one story with the registry rather than after it.
Which sharpens what this ticket must not do: the marked
AGENTS.mdsection listing command groups is the same context bloat as a tool-per-capability MCP server, just in a different file. It stops enumerating anything. The skill teaches the code-mode surface — one tool, discovery through the catalog binding inside the sandbox — and nothing in it lists capabilities either.For scale: the registry lands near 83 capabilities (38 page verbs, 7 server operations,
open, and 37 extension tools). Any file that lists them is obsolete the day it is written.The
detectbug recorded earlier still stands independently: the claude step reportspresentwhen the plugin merely appears in the installed-plugins file, and a step reportingpresentnever applies — so wherever the plugin is already installed the skill is silently never written while the run reports success.omridevk commentedon Aug 13, 2026
Scope expanded per owner decision after reviewing CopilotKit's skills catalog — see the new Expanded scope (2026-08-14) section: init wires the existing @conciv/skills pack, a new conciv-self-update skill, and version/sources.md provenance across the pack. Verified before writing: no skills wiring exists in packages/cli/src/init/, @conciv/skills is published, the pack has no provenance files today.
omridevk commentedon Aug 13, 2026
Re-grooming after closing PR #477: most of this issue's expanded scope turned out to be already solved by the live surface. The MCP server teaches the code-mode workflow at connect time — the execute tool description and the server
instructionsdelivered at initialize both explainexternal_catalogdiscovery (packages/core/src/api/mcp.ts), andstalenessNoticereports engine drift live. So a static entry skill, copying the skills pack into the claude plugin,library_versionstamping, and a self-update skill all duplicate self-describing behavior and can go stale in ways the live surface cannot.Remaining scope, now in a much smaller replacement PR:
external_catalog, dev server must be running, one-shot CLI:conciv tools --help) — no command groups, no skill files.conciv initprompt (default off,--yesdoes not enable it) that adds@conciv/skillsas a devDependency and runs@tanstack/intent's ownintent installto write its AGENTS.md guidance block — intent already owns discovery, loading, and staleness for npm-packaged skills, so conciv wires nothing itself.