Repository navigation
Conversation
`graphify install --platform agents` installs the skill to the generic Agent-Skills locations: the spec's user-global ~/.agents/skills (global) and ./.agents/skills (--project) — the directories `npx skills` and spec-compliant frameworks read. `--platform skills` is an alias. Previously that user-global location was only reachable as an accidental side effect of the gemini-on-Windows branch. Bare `graphify install` is unchanged (still single-platform claude/windows). The platform is registered in tools/skillgen/platforms.toml (split, mirroring amp's agents-md body) and rendered through the skillgen drift/coverage guards. Since it is a post-v8 platform with no own v8 body, its --audit-coverage baseline is amp's v8 body (the body it re-homes). The rendered skill body is byte-identical to amp's; only the on-demand hooks reference differs (its own `graphify agents install` wording). The `graphify agents install` / `graphify skills install` subcommand is the amp-twin: it also wires an AGENTS.md always-on section, keeping it honest with the hooks reference it points at. The `--platform agents` path stays skill-only, exactly as amp's `--platform amp` does. Also: `skill-agents.md` added to package-data, and the wheel-packaging guard now covers every platform's skill body (not just references/always-on), so a missing skill body fails CI instead of only breaking install for real users. Closes #1405. Implements #1432. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Member
|
Merged into |
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.
Closes #1405. Implements #1432.
Adds a first-class
agentsplatform sographify install --platform agents(alias--platform skills) installs the skill to the generic Agent-Skills locations: the spec's user-global~/.agents/skills/graphify/SKILL.mdand project./.agents/skills/graphify/SKILL.md— the directoriesnpx skillsand spec-compliant frameworks read. Previously that user-global location was only reachable as an accidental side effect of the gemini-on-Windows branch. There is zero change to baregraphify install(still single-platform claude/windows).What
graphify install --platform agents→~/.agents/skills/graphify/SKILL.md;--project→./.agents/skills/graphify/SKILL.md.--platform skillsis an alias foragents(the ecosystem calls them "skills").graphify uninstall/--platform agentsremoves it.graphify agents install/graphify skills installsubcommand additionally wires anAGENTS.mdalways-on section (the amp-twin), mirroringgraphify amp install.How
tools/skillgen/platforms.tomlas a split platform mirroring amp's agents-md body, rendered + blessed through the skillgen drift/coverage guards. It re-homes amp's body verbatim — the renderedskill-agents.mdis byte-identical toskill-amp.md; only the on-demand hooks reference differs (its owngraphify agents installwording, via a new_AGENTS_MD_HOOKS["agents"]slot).--audit-coveragebaseline is amp's v8 body (the body it re-homes) — special-cased in_v8_baseline_ref. The render's heading set is identical to amp's, so the per-host coverage audit passes for the right reason.--platform agentspath is skill-only (viainstall()), exactly as--platform ampis; only thegraphify agents installsubcommand wiresAGENTS.md.Changes
tools/skillgen/platforms.toml—[platform.agents](split, mirrors amp).tools/skillgen/gen.py—_AGENTS_MD_HOOKS["agents"]+_v8_baseline_ref("agents")→ amp's v8 baseline.graphify/skill-agents.md+graphify/skills/agents/references/*.md(+tools/skillgen/expected/snapshots) — generated artifacts.graphify/__main__.py—_PLATFORM_CONFIG["agents"], a_platform_skill_destinationbranch, theskills→agentsalias (_canonical_platform),uninstall_allcoverage, theagents/skillssubcommand, and help text.pyproject.toml—skill-agents.mdadded topackage-data(the 8 references ship via the existingskills/*/references/*.mdglob).tests/— newtests/test_agents_platform.py; agents render tests intests/test_skillgen.py;tests/test_wheel_packaging.pynow also asserts every platform's skill body ships in the wheel (not just references/always-on).README.md,CHANGELOG.md.Tests
--check,--audit-coverage,--schema-singleton,--monolith-roundtrip,--always-on-roundtrip); the render is idempotent.$HOMEconfirmed install/uninstall at both scopes and theskillsalias.Notes / scope
graphify agents installsubcommand wiringAGENTS.md. The acceptance criteria specify skill-only for--platform agents(done). They're silent on the subcommand, so I made it the amp-twin — it also writes anAGENTS.mdalways-on section, mirroringgraphify amp installand keeping the reused hooks reference (which namesgraphify agents install) honest. Happy to make the subcommand skill-only too if you'd ratheragentsnever touchAGENTS.md— it's a ~4-line change.~/.agents/skills; the new platform now also targets that path, so on Windows they share a directory (a cross-uninstall would remove the other's skill). I left the gemini branch untouched (out of scope), but I'm glad to retire that "accidental" branch in this PR or a follow-up — your call.Checklist
--platform agentswrites~/.agents/skills/...;--projectwrites./.agents/skills/...uninstall/--platform agentsremoves itgraphify install