/amphion:load-contextfrom amphion
Read a project's canonical planning, decision, and convention documents in the right order before starting spec-driven implementation work. Use at the start of any phase-N branch session, whenever you need to refresh context on what was decided, or when picking up spec-driven work cold. Optionally takes a phase number or component name and also reads that phase's briefing plus the specs it references. Reads the document set from .claude/amphion.config.json; discovers and confirms it when no config exists.
Ships in amphion. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The first stage of the Amphion pipeline. This skill loads a project's canonical planning documents in a deliberate order, plus any phase-specific specs they point at.
The order is the point. Knowing the resolved decisions before reading the specs prevents re-deciding settled questions; knowing the voice/convention rules before reading per-unit specs makes the specs' examples land properly. Reading the same files in a random order costs you the same tokens and gives you less.
Invoke this at the start (or resumption) of spec-driven implementation work. For a one-off lookup, just Read the specific file — don't load the whole stack.
Read .claude/amphion.config.json from the repo root (see
amphion.config.example.json). The keys this skill uses:
| Key | Meaning |
|---|---|
context.root | Base directory the paths below are relative to. Defaults to the repo root. |
context.core[] | The ordered core document set. Each entry: role, path, note. Order in this array is the read order. |
context.phase.briefing | Path template for a phase briefing; {phase} is substituted. |
context.phase.specs[] | Globs for the per-unit spec documents. |
context.phase.supporting[] | Anything else a briefing habitually references. |
vocabulary.spec | What this project calls a spec — spec, audit, brief, ticket. Use their word when you report back. |
If there is no config, do not guess silently. Glob for the usual homes of planning material
(.claude/*.md, docs/*.md, CLAUDE.md, README.md), propose an ordered core set to the user in
one message, and offer to write it into .claude/amphion.config.json so the next session doesn't
have to re-derive it. Then proceed with the confirmed set.
Read every context.core[] entry in array order. A typical set, and why each role sits where
it does:
plan — the phased execution order, the file-modification map, and the pointers to
per-unit specs. This tells you what the other documents are for.decisions — the questions already resolved. Read before any spec, so you implement
decisions rather than reopening them.voice (optional) — tone, register, and naming rules for user-facing copy. Skip the role
entirely on projects with no copy surface.conventions — CLAUDE.md or equivalent: repo conventions, things to avoid, and the
project's "when you hit something unexpected" table.A missing optional document is not an error — note it and continue. A missing plan or
decisions document is worth surfacing, because the rest of the pipeline assumes decisions
exist somewhere.
If several documents match a role and they carry dates in their names, prefer the newest.
If the user gave a phase number, a branch name, or a component they're touching:
context.phase.briefing (e.g. {phase} → 3). If the
template resolves to nothing, fall back to the un-numbered form for phase 1.context.phase.specs[]. Read
only the ones the briefing actually cites; the glob is a search space, not a reading list.context.phase.supporting[].If the user named a component rather than a phase ("I'm working on the checkout flow"), match
it against context.phase.specs[] directly and read the matching spec plus the core set.
Give the user one tight paragraph:
[TBD], spec items marked
deferred, and any conflict between a briefing and the spec it points at.Then ask whether to proceed with implementation or discuss anything first.
fix/… or feat/… branch unrelated to the phased work rarely
needs the full stack. Read the conventions document, plus the voice guide if the change touches
user-facing copy.Context loaded → implement. When implementation hits something the plan doesn't address, use
flag-or-fix.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 skills in this plugin
/flag-or-fixDecision framework for in-flight situations not covered by the project's standard playbook. Use when working through a phase or spec-driven implementation and you encounter something the briefing, spec, or CLAUDE.md doesn't directly address — a missing file, a layout that won't accommodate the spec's copy, an out-of-scope issue, a voice or naming judgment call, or unexpected breakage. Walks through fix-now / fix-and-flag / defer / stop./initialize-ciSet up GitHub Actions CI for a repository that has none. This skill should be used when the user asks to "set up CI", "add CI", "initialize CI", "configure CI", "add a GitHub Actions workflow", "add a CI pipeline", "set up continuous integration", "create a build/test workflow", "add .github/workflows", "this repo has no CI", "this repo needs CI", "there's no CI yet", or "wire up automated tests on push"; and proactively when working in or right after running /init on a git repository whose remote is (or is intended to be) on GitHub and which has no .github/workflows directory. Detects the project type (Java/Spring Boot+Gradle, TypeScript/Vite+React, C#/.NET, Lua, Node, Python, or generic), generates a CI workflow adapted to the repo's real build/test/lint commands, language version, and package manager, flags monorepos, never clobbers existing workflows, and verifies the workflow before finishing. Detects the repo's branch model and emits Git Flow trigger shapes (develop + main) where applicable.npx claudepluginhub kumouri/mesmer-grimoire --plugin amphion