Repository navigation
feat(skills): progressive-disclosure split for all platforms (generator + drift fence) - #1121
Merged
safishamsi merged 16 commits intoJun 2, 2026
Merged
Conversation
…all and removal Adds the plumbing for progressive-disclosure skills without shipping any fragments yet. A platform opts in by setting skill_refs in _PLATFORM_CONFIG, naming a packaged bundle under graphify/skills/<bundle>/references/. Reuse keys (trae-cn, hermes, kimi, antigravity, antigravity-windows) point at their twin's bundle. aider and devin stay monolithic. On install, the SKILL.md swap is unchanged. When a bundle is present, the references/ dir is staged into references.tmp via copytree, any stale references/ is dropped, and the staged dir is os.replace-renamed into place so an interrupted install never leaves a half-written sidecar visible. The single .graphify_version stamp now covers SKILL.md and references/ together. A monolith install clears any orphan references/ left by a prior progressive install. Removal (the shared helper plus the inline vscode and antigravity uninstalls) rmtrees references/ before the three-level dir walk, otherwise the non-empty dir would block the walk and strand files. The stale-version check now resolves each platform's real user-scope destination instead of the bare cfg skill_dst, so platforms with per-platform overrides check the dir they actually use. The version check also warns to repair when a SKILL.md links references/ but the dir is gone. vscode install is now routed through the same atomic SKILL.md plus references staging so it is progressive-capable too. Until the fragment bundles land in the package, graphify/skills/ does not exist, so every host installs today's monolithic SKILL.md with no sidecar. The package-data globs for the bundles are declared now and harmlessly match nothing.
Amp searches .agents/skills (project) and ~/.config/agents/skills (user) for skills. graphify was writing to .amp/skills and ~/.amp/skills, which Amp never reads, so the installed skill silently never loaded. The amp config now targets .agents/skills for project scope, and a new amp branch in _platform_skill_destination sends user-scope installs to ~/.config/agents/skills. User-scope `graphify amp install` now copies the skill to that root (it previously only wrote AGENTS.md), and a stale ~/.amp/skills dir from an older install is removed best-effort on the next run. The all-platforms uninstall and the amp uninstall both clear the user-scope skill, and amp is added to the install --help platform list. amp is a progressive host, so its corrected dir carries the references/ sidecar too once the fragment bundles ship.
… into a lean core plus references The claude skill body had grown to roughly 1,156 lines, and almost all of it loaded on every invocation even when the run was a plain extraction over a local code folder. Most of that text is only relevant on a flag, a non-code file type, or a non-default subcommand: the embedded extraction prompt, the incremental-update flow, the query expansion, the export commands, GitHub cloning, transcription, the file watcher, and the commit hook. This splits the skill into a lean core that runs one default extraction end to end with no reference reads, plus eight on-demand reference files that load only when their trigger fires. A code-only corpus now reads zero references. Every heading and section of the old body lands either in the core or in exactly one reference, with no loss and no duplication. The only content move is mechanical; the frontmatter, the usage table, and the default pipeline are byte-for-byte what they were. The reference files are generated, committed artifacts. tools/skillgen renders them from human-edited fragments so the two never drift: python -m tools.skillgen regenerate every artifact python -m tools.skillgen --platform claude render just claude python -m tools.skillgen --check fail on any drift (CI / pre-commit) python -m tools.skillgen --audit-coverage assert single-home coverage python -m tools.skillgen --bless refresh the expected snapshots The render is idempotent: a fixed fragment order, a sorted reference index, LF newlines, and no version or timestamp in the output. Because the claude bundle now ships under graphify/skills/claude/, a claude install lays down the lean SKILL.md alongside its references sidecar, and the antigravity and kimi reuse targets ride the same bundle. Every other host has no bundle yet, so it still installs its existing monolithic skill unchanged. The install path now falls back to the monolith when a host's bundle is absent and hard-fails only when a bundle directory is present but missing its references, which is the one genuinely broken packaging state. Adds coverage for the generator and the split: the drift guard, the coverage audit, the lean-core invariant (no reference content in the core and no core content in the references), and a built-wheel check that the references actually ship instead of an empty sidecar.
The wave-2 generator only knew how to render claude. This turns the core into a shared template with a handful of per-platform slots so the two most divergent hosts, codex and windows, render from the same source. The core template (fragments/core/core.md) is the old claude core with five holes punched out: frontmatter, the Step 1 install block, the Part B dispatch block, the query stub, and an extra-sections tail. Each hole is filled per platform from platforms.toml plus a small fragment library: - dispatch variants: agent-tool-disk (claude), agent-tool-disk-powershell (windows), codex-agenttask (spawn/wait/close_agent, in-memory collect, needs multi_agent = true). - shell variants: posix and powershell, swapping only the interpreter-detect install block. - query stub plus query reference: cli (claude keeps its vocab-expansion override) and cli-inline (the majority NetworkX-fallback body). - extraction spec: verbose and a compact body for codex. - extra tail: the PowerShell troubleshooting section for windows. claude renders byte-for-byte identical to what wave 2 committed, so this is a pure addition for it. codex and windows unify their file_type enum to the full six-value superset (code|document|paper|image|rationale|concept), a real content change from codex's old four-value and a widening for windows. Each platform keeps its own frontmatter description verbatim; nothing is unified. Three build-time guards now cover the new hosts. --check and --audit-coverage pass for codex and windows, and a new schema-singleton guard asserts the enum is the six-value superset in every rendered artifact. A monolith-roundtrip guard is wired in ahead of the aider and devin work. The codex install test that asserted the old monolith-only "dirty graph output" blurb now checks the graph-first fast path that the lean core carries instead, and the monolith-fallback test picks an unbuilt progressive host dynamically so it survives the later waves.
With the template proven on codex and windows, this brings the other nine distinct hosts onto the shared lean core: opencode, kilo, copilot, claw, droid, trae, kiro, pi, and vscode. The reuse keys keep riding their twin's bundle through the installer (trae-cn rides trae, hermes rides claw, kimi and antigravity ride claude, antigravity-windows rides windows), so no separate bundle is rendered for them. Each host plugs into the same five slots. opencode gets the @mention dispatch, droid and trae the Task-tool disk-collect dispatch, vscode the manual paste flow for a host with no parallel subagent API, and the rest ride the Agent-tool disk-collect variant. Every host uses the cli-inline query with its NetworkX fallback. kiro, pi, and claw take the compact extraction body; the others take the verbose one. kiro and pi render no frontmatter trigger, matching their v8 frontmatter, and kilo keeps its Kilo-specific rules tail and its own short description verbatim. Every description is preserved per host, none unified. All nine unify their file_type enum to the six-value superset, so codex's old four-value, the five-value hosts, and the rest all converge. check, audit-coverage, and schema-singleton pass for the full set of twelve split hosts (108 artifacts). Two install tests that pinned the old bespoke monolith prose now assert the real lean-core delta instead: opencode is identified by its @mention dispatch slot rather than the absence of an agent-type string the shared Step B3 still mentions, and claw is checked for the Agent-tool dispatch it now rides instead of the superseded sequential OpenClaw flow.
aider and devin stay monoliths: a single inline body, no lean-core split and no references sidecar. Their hosts have no progressive-disclosure story, so the generator renders each as one file straight from a core fragment. The fragments are the v8 bodies with one change: the file_type enum is widened from five values to the six-value superset. That touches two lines per file, the schema line and the prose guidance that previously forbade `concept`. Devin keeps its full multi-field frontmatter (argument-hint, model, allowed-tools) verbatim, since nothing about a monolith is templated. A new monolith-roundtrip guard renders each monolith and diffs it against its v8 blob, allowing a changed line only when it carries the six-value enum. Any other drift fails the guard. The diff against v8 is exactly those two enum lines per file and nothing else.
The six always-on instruction blocks (CLAUDE.md, AGENTS.md, GEMINI.md, the VS Code Copilot instructions, the Antigravity rules, and the Kiro steering file) were each a triple-quoted constant baked into __main__.py. That made them awkward to edit and impossible to guard against drift the way the rest of the skill artifacts already are. They now live as committed markdown under graphify/always_on/, generated by skillgen from one human-edited fragment apiece and read back at module load. The installer is untouched: it still injects each block through the same _replace_or_append_section marker contract, with the same markers and the same text. The extraction is byte-for-byte, so the install-string and issue-Graphify-Labs#580 contract tests keep passing without a single edit, which is the whole point. A new validator, skillgen --always-on-roundtrip, parses each former constant out of the pre-extraction source and proves the rendered file reproduces it exactly. The blocks also flow through --check and the expected/ snapshot like every other generated artifact, so a stray hand-edit fails the drift guard. package-data now globs always_on/*.md so the files ship in the wheel.
The skill files under graphify/ are generated from the fragments in tools/skillgen/, but nothing stopped a hand-edit to one of the rendered files from sailing through review. Add the drift guard in two places so it fails fast: a standalone skillgen-check job in CI that runs python -m tools.skillgen --check, and a .pre-commit-config.yaml that runs the same check locally before each commit. The CI job is deliberately lightweight. --check renders from the fragments and byte-diffs against the committed files plus expected/, so it needs only uv and the stdlib, no full dependency sync. The pre-commit config also wires in ruff against the existing pyproject config; pre-commit was already a dev dependency but the repo had no config file for it.
The always-on-roundtrip validator compared each generated block against the former constant read from HEAD:graphify/__main__.py. That works only until the extraction commit lands; afterwards HEAD's constants are _always_on(...) calls, not the string literals the validator parses, so it could no longer find them. Point the baseline at origin/v8, the immutable pre-extraction source, where the six constants are byte-identical to what shipped. The check is stable across any later edit to the constants on this branch.
Walk every platform graphify configures through install then uninstall at its real destination, both project and user scope. Each install must land SKILL.md exactly where _platform_skill_destination says, stamp the version, and stage a references/ sidecar when the platform's bundle ships (or none when it is a monolith); uninstall must clear the skill, the stamp, the references, and the emptied dirs. amp is checked explicitly at its corrected .agents and ~/.config/agents paths, and VS Code Copilot Chat round-trips through its own installer at ~/.copilot/skills/graphify. Two flows that the progressive-disclosure work can quietly break get their own cases. A monolith-to-progressive upgrade: an old install with a bare SKILL.md gains the references/ sidecar when the host's bundle ships, and the reverse clears an orphan sidecar. And crash safety: a leftover references.tmp from an interrupted install self-heals on the next run, and a copytree that fails mid-stage leaves the existing references/ untouched with no half-written dir visible.
…egration
The coverage audit checked every platform against claude's monolith
(origin/v8:graphify/skill.md), so a heading that only one host's v8 body
carried was invisible: a drop in that host's render passed the audit because
claude never had the heading to begin with. Trae hit exactly this. Its v8 body
documented native AGENTS.md integration ("graphify trae install" writes the
graphify section to AGENTS.md, with a note that Trae has no PreToolUse hook so
the AGENTS.md rules are the only always-on mechanism) plus the matching caveat
in the dispatch block. The shared lean core re-homed that content into the
hooks reference, but trae rode the claude-flavored hooks body, which tells the
user to run "graphify claude install" against CLAUDE.md. Trae reads AGENTS.md,
not CLAUDE.md, so the installed skill pointed at a file Trae never consults.
The audit now reads each split host against its OWN v8 body (skill.md for
claude, skill-<host>.md otherwise) and confirms every heading single-homes in
that host's core plus references. The wave-2/3 consolidations that the shared
lean core applied on purpose live in a documented allowlist: the lean
"## What graphify is for" intro, and the renamed or re-leveled step and part
headings on the two minimal v8 bodies, kilo and vscode. Anything outside the
allowlist that does not single-home fails loudly, so the trae drop now surfaces
instead of hiding.
For the fix, the hooks reference is host-flavored. Trae and trae-cn select an
AGENTS.md variant that restores the v8 native-integration section verbatim and
drives the lean-core hooks pointer to name AGENTS.md. Their dispatch block gets
a trae-specific variant carrying the no-PreToolUse-hook caveat. Every
claude-flavored host keeps its v8 text untouched, since that text is faithful
for them. trae-cn reuses trae's bundle through the installer, so it inherits
the fix without a separate render.
…kage glob CI ran only the byte-diff drift check, so the per-host coverage audit, the monolith round-trips, and the always-on round-trips never ran upstream. They read blobs from origin/v8, which a default shallow checkout does not fetch, so naively adding them would have crashed. The skillgen-check job now checks out full history (fetch-depth: 0) and runs all four validators. As a backstop, the generator probes for origin/v8 and skips those three validators with a clear "set fetch-depth: 0" message when the ref is genuinely unreachable, rather than dying on a cryptic git error. uv was free to re-resolve and rewrite the committed uv.lock as a side effect of "uv run" and "uv sync", which churns the lock in CI. Both jobs now pass --frozen so they install straight from the lock without touching it. The package-data glob skills/*/SKILL.md matched nothing: the skill bodies ship as graphify/skill*.md (listed explicitly) and there is no graphify/skills/<host>/SKILL.md in the tree. The references sidecar ships through skills/*/references/*.md and the injection blocks through always_on/*.md. Dropping the dead glob, the built wheel still carries all fifteen skill bodies, all ninety-six references, and all six always-on files. The wheel-content test grew to assert that whole payload, and it now fails loudly when the build backend is missing rather than skipping past a packaging regression. build is already a declared dev dependency, so any environment that runs the suite has it.
The frontmatter description is the skill's auto-discovery trigger: it is the text a host matches against an incoming request to decide whether to load graphify at all. So the line now leads with the use-condition (any question about a codebase, its architecture, file relationships, or project content, and the graphify-out/ query-first nudge) and pushes the capability detail (god nodes, community detection, query/path/explain) to the back, where it matters less for the invoke decision and more once you are already inside the skill. It also collapses the two descriptions that had drifted in v8 into one consistent line. claude carried a short variant; the other fourteen hosts carried a richer one. Each was missing something the other had. The unified line folds in videos from claude's wording, the architecture and file-relationship trigger surface plus the capability detail from the majority line, and the query-first behavioral nudge. Every split host and both monoliths now carry the exact same line. The validators and tests that assumed the old per-platform wording move with it. The description-preservation test now asserts every platform carries the unified line byte for byte, and the monolith round-trip allows the description line to differ against v8 alongside the enum unification. aider and devin stay diff-clean modulo those two changes.
amp was one of the thirteen progressive hosts in the phase-7 design but it slipped out of the wave-3 render list, so graphify/skill-amp.md stayed a 1302-line monolith with the old description and nothing in skillgen guarded it. This brings amp under the generator like the other twelve split hosts: a lean core SKILL.md plus the eight on-demand references, the unified discovery description, and the per-host coverage audit running against amp's own v8 body. amp reads AGENTS.md and wires always-on through `graphify amp install`, so it uses the agents-md hooks variant that trae already had. That variant was worded entirely for trae, down to the "(Trae)" heading and the note that Trae has no PreToolUse hooks. The fragment is now a template: the install and uninstall commands, the host name, the heading suffix, and the PreToolUse caveat are slots filled per host. trae renders exactly what it rendered before, byte for byte, and amp renders its own v8 wording. amp's v8 section never carried the no-PreToolUse caveat, so amp's slot for it is empty and none of trae's wording leaks in. For dispatch amp uses the plain task-tool-disk block, not trae's caveat-carrying variant, again matching what amp's v8 actually said. The per-host audit reads origin/v8:graphify/skill-amp.md and confirms every v8 heading single-homes in amp's core or one reference. The only allowlisted entry is the shared lean "## What graphify is for" intro that every split host shares. There is no genuine content drop, which is the exact case the per-host audit was built to catch. amp's _PLATFORM_CONFIG already pointed skill_refs at "amp" from the path-fix work, so now that the bundle exists the installer ships amp progressively (lean SKILL.md plus references/) at the corrected .agents paths. The install round-trip and reference tests that assumed amp shipped a monolith now expect the progressive layout, and the wheel-content guard counts thirteen split hosts instead of twelve.
…references The progressive install wrote SKILL.md first, then staged the references/ sidecar. If the references step was interrupted, the host was left with a SKILL.md that points at a references/ dir that is not there. Reorder so the references sidecar (or the orphan-clear for monolith hosts) runs first and SKILL.md is the final artifact written, via the same atomic temp-and-rename. A partial install now leaves no SKILL.md rather than a SKILL.md referencing a missing sidecar.
safishamsi
added a commit
that referenced
this pull request
Jun 2, 2026
test_skillgen.py (added in #1121) reads pre-split skill bodies from the immutable baseline commit via `git show`, and on Python 3.10 imports tomllib via the tomli fallback. The test job used a shallow checkout (no baseline tree) and the lock didn't carry tomli, so the 3.10 job failed two ways. Add fetch-depth: 0 to the test job (mirroring skillgen-check) and lock tomli under the python_version < 3.11 marker so --frozen sync installs it. Co-Authored-By: Claude Opus 4.8 <[email protected]>
safishamsi
added a commit
that referenced
this pull request
Jun 2, 2026
…tion claude_uninstall only stripped the CLAUDE.md section, so `graphify uninstall` and `graphify claude uninstall` orphaned the whole installed skill tree (SKILL.md + references/ + version stamp) - gemini_uninstall already removes its skill, this makes claude consistent. The #1121 split made the orphan a 10-file directory; this restores the removal that the alternative PR #1119 had. Scoped name removal preserves sibling user files; project-scope uninstall passes project=True so it never touches the user-scope skill. Verified: claude/bare uninstall now remove the tree and keep a sibling user_notes.md; full suite 1755 passed; real extract still builds a clean graph. Co-Authored-By: Claude Opus 4.8 <[email protected]>
safishamsi
added a commit
that referenced
this pull request
Jun 2, 2026
gemini has no _PLATFORM_CONFIG entry and installs claude's skill.md body verbatim. Since #1121 that body is the lean progressive core that links to references/, but _packaged_skill_refs_dir returned None for gemini, so the install laid down a SKILL.md with 8 dead reference pointers. Resolve gemini to the claude references bundle (the same body it already ships) and guard it in test_claude_twins_ride_the_claude_bundle. Co-Authored-By: Claude Opus 4.8 <[email protected]>
This was referenced Jun 2, 2026
Closed
Closed
Closed
PerryLin-0420
pushed a commit
to PerryLin-0420/graphify-decouple
that referenced
this pull request
Aug 13, 2026
…or + drift fence) (Graphify-Labs#1121) All-platform progressive-disclosure skill split + generator (addresses Graphify-Labs#1106). Splits each platform's skill into a lean core (~615 lines, full default pipeline inline) + on-demand references/, generated from a single source via tools/skillgen with a CI/pre-commit drift gate. 13 hosts split, aider/devin stay monoliths. Also fixes the stale bare-path bugs across the previously hand-maintained variants and moves the always-on blocks into packaged markdown. Verified: all 5 generator guards pass, byte-verbatim load-bearing slices, lean cores self-sufficient on the default path across all 13 split hosts, references gated to non-default branches, description preserves the graphify-out-query-first clause. Supersedes Graphify-Labs#1119 (Claude-first subset). Known follow-up applied on top: harden _always_on() against a missing packaged file so a partial install can't brick the CLI.
PerryLin-0420
pushed a commit
to PerryLin-0420/graphify-decouple
that referenced
this pull request
Aug 13, 2026
test_skillgen.py (added in Graphify-Labs#1121) reads pre-split skill bodies from the immutable baseline commit via `git show`, and on Python 3.10 imports tomllib via the tomli fallback. The test job used a shallow checkout (no baseline tree) and the lock didn't carry tomli, so the 3.10 job failed two ways. Add fetch-depth: 0 to the test job (mirroring skillgen-check) and lock tomli under the python_version < 3.11 marker so --frozen sync installs it. Co-Authored-By: Claude Opus 4.8 <[email protected]>
PerryLin-0420
pushed a commit
to PerryLin-0420/graphify-decouple
that referenced
this pull request
Aug 13, 2026
…tion claude_uninstall only stripped the CLAUDE.md section, so `graphify uninstall` and `graphify claude uninstall` orphaned the whole installed skill tree (SKILL.md + references/ + version stamp) - gemini_uninstall already removes its skill, this makes claude consistent. The Graphify-Labs#1121 split made the orphan a 10-file directory; this restores the removal that the alternative PR Graphify-Labs#1119 had. Scoped name removal preserves sibling user files; project-scope uninstall passes project=True so it never touches the user-scope skill. Verified: claude/bare uninstall now remove the tree and keep a sibling user_notes.md; full suite 1755 passed; real extract still builds a clean graph. Co-Authored-By: Claude Opus 4.8 <[email protected]>
PerryLin-0420
pushed a commit
to PerryLin-0420/graphify-decouple
that referenced
this pull request
Aug 13, 2026
gemini has no _PLATFORM_CONFIG entry and installs claude's skill.md body verbatim. Since Graphify-Labs#1121 that body is the lean progressive core that links to references/, but _packaged_skill_refs_dir returned None for gemini, so the install laid down a SKILL.md with 8 dead reference pointers. Resolve gemini to the claude references bundle (the same body it already ships) and guard it in test_claude_twins_ride_the_claude_bundle. Co-Authored-By: Claude Opus 4.8 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
The skill files are large and fully loaded on every invocation (
skill.mdalone is ~1,156 lines). This splits each one into a leanSKILL.mdplus on-demandreferences/files generated from a single source of truth, so a/graphify querypulls a fraction of the context instead of the whole skill.I saw #1119 go up when I was most of the way through this. @TPAteeq's PR is excellent and is the right Claude-first reference. I am putting this up in case the fuller, all-platform version is useful to pull from, and I am glad to defer to your staging or drop it entirely if you would rather keep this Claude-first.
How
tools/skillgen/(gen.py+platforms.toml+ human-editedfragments/).python -m tools.skillgenrenders every skill; the committedgraphify/skill*.mdandgraphify/skills/<host>/references/*.mdare generated artifacts.--checkis a CI and pre-commit drift gate.references/, loaded only on the relevant flag, file type, or subcommand. Claude's core is ~600 lines, down from 1,156.--audit-coverageconfirms every heading of each host's own v8 body lands in exactly one place, so no host silently loses content (it is also what catches a bad split).--schema-singletonkeeps the file_type enum identical everywhere,--monolith-roundtrippins aider/devin to v8, and--always-on-roundtripproves the extracted always-on blocks reproduce the former constants byte for byte. The node-ID spec stays pinned against_file_node_idin code rather than a frozen string.SKILL.mdplusreferences/, withSKILL.mdwritten last for crash-safety, and removal goes through a single tree-remover wired into every uninstall path. Packaged viapyprojectpackage-data; the references and always-on files are confirmed present in the built wheel.## graphifyconstants) moved out of__main__.pyinto packaged markdown with the same marker contract, byte-identical (the issue-Graphify not improving token efficiency in Claude Code sessions #580 install-string tests are unchanged).On the loaders you flagged as self-contained
You listed Codex, OpenClaw, Kiro, Cursor, Antigravity, and Devin as ones to keep self-contained until verified. I verified reference-following live on claude, antigravity, claw, opencode, and codex (the agent reads the sidecar on demand). Cursor stays an always-on rules surface rather than a split, and devin stays a monolith, so those already match your guidance. The rest are generated on the same mechanism. If you want any specific host kept self-contained until it is separately verified, that is a one-line
platforms.tomlchange and I will make it.On the skill description (a deliberate change)
You asked in the thread to keep the
descriptionverbatim, so rather than slip a change past that, here is the case for it.v8 currently ships two different descriptions. claude's is short: "...to knowledge graph. Use when the user asks any question about a codebase, documents, or project content, especially if graphify-out/ exists, treat the question as a /graphify query." The other 14 share a richer line: "...knowledge graph, clustered communities, HTML + JSON + audit report... architecture, or file relationships... persistent graph with god nodes, community detection, and BFS/DFS query tools." They have drifted, and each is missing what the other has. claude's names videos and the query-first nudge; the majority names the architecture and file-relationship triggers and the capability detail.
The
descriptionis the skill's auto-discovery trigger, the text a host reads to decide whether to invoke graphify at all. That makes ordering matter: the host evaluates "does this match what the user is asking?" first, and only then cares what the tool produces. The unified line leads with the use-condition and moves the capability detail after it, where it carries less weight for the invoke decision:So instead of two descriptions that have drifted, every platform carries one consistent, discovery-tuned line, and it folds in what each variant was missing: videos, the architecture and file-relationship trigger surface, and the query-first behavioral nudge. It is isolated to a single commit, so if you would still rather keep the originals verbatim it drops cleanly.
Testing
Full suite green, with a large new
tests/test_skillgen.pyplus install round-trip, references, and amp-specific coverage.ruffclean on changed files. Every generated host is held by--checkand per-host--audit-coverage, and the drift gate runs in CI.Related
Addresses #1106. Same design as the thread, a fuller alternative to #1119 (Claude-first), offered for whatever is useful to take.