Skip to content

feat: add first-class agents platform for cross-framework .agents/skills install - #1440

Closed
TPAteeq wants to merge 1 commit into
Graphify-Labs:v8from
TPAteeq:agents-platform
Closed

TPAteeq wants to merge 1 commit into
Graphify-Labs:v8from
TPAteeq:agents-platform

Conversation

@TPAteeq

@TPAteeq TPAteeq commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Closes #1405. Implements #1432.

Adds a first-class agents platform so graphify install --platform agents (alias --platform skills) installs the skill to the generic Agent-Skills locations: the spec's user-global ~/.agents/skills/graphify/SKILL.md and project ./.agents/skills/graphify/SKILL.md — the directories npx skills and 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 bare graphify install (still single-platform claude/windows).

What

  • graphify install --platform agents → ~/.agents/skills/graphify/SKILL.md; --project → ./.agents/skills/graphify/SKILL.md.
  • --platform skills is an alias for agents (the ecosystem calls them "skills").
  • graphify uninstall / --platform agents removes it.
  • graphify agents install / graphify skills install subcommand additionally wires an AGENTS.md always-on section (the amp-twin), mirroring graphify amp install.

How

  • Registered in tools/skillgen/platforms.toml as 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 rendered skill-agents.md is byte-identical to skill-amp.md; only the on-demand hooks reference differs (its own graphify agents install wording, via a new _AGENTS_MD_HOOKS["agents"] slot).
  • It's a post-v8 platform with no own v8 skill body, so its --audit-coverage baseline 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.
  • The --platform agents path is skill-only (via install()), exactly as --platform amp is; only the graphify agents install subcommand wires AGENTS.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_destination branch, the skills→agents alias (_canonical_platform), uninstall_all coverage, the agents/skills subcommand, and help text.
  • pyproject.toml — skill-agents.md added to package-data (the 8 references ship via the existing skills/*/references/*.md glob).
  • tests/ — new tests/test_agents_platform.py; agents render tests in tests/test_skillgen.py; tests/test_wheel_packaging.py now also asserts every platform's skill body ships in the wheel (not just references/always-on).
  • README.md, CHANGELOG.md.

Tests

  • Full suite green: 2328 passed, 2 skipped.
  • All five skillgen guards pass (--check, --audit-coverage, --schema-singleton, --monolith-roundtrip, --always-on-roundtrip); the render is idempotent.
  • Manual end-to-end with the real CLI in a sandboxed $HOME confirmed install/uninstall at both scopes and the skills alias.

Notes / scope

  • The graphify agents install subcommand wiring AGENTS.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 an AGENTS.md always-on section, mirroring graphify amp install and keeping the reused hooks reference (which names graphify agents install) honest. Happy to make the subcommand skill-only too if you'd rather agents never touch AGENTS.md — it's a ~4-line change.
  • Windows / gemini. Your root-cause analysis names the gemini-on-Windows branch, which already maps gemini's global skill to ~/.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 agents writes ~/.agents/skills/...; --project writes ./.agents/skills/...
  • uninstall / --platform agents removes it
  • No change to bare graphify install
  • skillgen-check + full test suite green

`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]>
@safishamsi

Copy link
Copy Markdown
Member

Merged into v8 as ad6cb75 (cherry-picked, author preserved). Independently verified: faithful to #1432 (./.agents/skills project, ~/.agents/skills global, skills alias), all 5 skillgen guards green (134 artifacts), full suite 2328 passed on 3.10+3.12, and behavioral smokes — agents install/uninstall round-trip, project+global scope, amp/claude unaffected, skill body identical to amp's (672 lines). Excellent work @TPAteeq — clean implementation of the spec within hours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: graphify install does not install its skill to .agents\skills

2 participants