/amphion:flag-or-fixfrom amphion
Decision 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.
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.
You're mid-implementation and you've hit something the briefing or spec doesn't directly address. This skill walks a decision framework rather than letting you improvise.
The default for spec-driven work is: the decisions are already made — implement, don't re-decide. This skill helps you act consistently with that default when the spec runs out.
Before invoking it, check the project's CLAUDE.md "when you hit something unexpected" table, if
one exists — most situations are covered there. This skill is for the ones that aren't.
Pick the closest match. If several fit, use the most severe.
| Class | What it looks like | Default action |
|---|---|---|
| Trivial breakage | Build/type error from your last edit, unclosed tag, missing import | Fix now, no flag |
| Layout/spec mismatch | The spec's content is longer or shorter than the slot it goes in | Adapt the layout — the spec's content is the constraint |
| Out-of-scope issue | A real problem in another phase's territory | Flag in the PR, don't fix |
| Voice / naming judgment call | Two phrasings both plausible; the spec didn't pick one | Defer to the project's voice guide (context.core[].role == "voice"); flag if still ambiguous |
| Missing reference | A file the spec cites doesn't exist | Verify the path with Glob, then flag if it really is missing |
| Regression of a verified fix | An earlier phase's fix has un-fixed itself | Stop, investigate why; don't re-fix forward over it |
| Briefing/spec conflict | The two say different things | The spec wins; note the briefing's drift in the PR |
| Genuine novel situation | None of the above fit | Continue to Step 2 |
If your situation matched a row, take that action and stop. You don't need the rest of this skill.
Answer in order. Stop at the first "yes."
Is the cost of getting it wrong reversible in under five minutes? → Take your best guess and proceed. Note the choice in the PR description so a reviewer can correct it cheaply.
Does it block the rest of your phase? → Stop and ask the user. Don't proceed against an unknown constraint.
Does it change a user-visible surface, a public claim, or an outbound link? → Flag it in the PR description without making the change. The reviewer decides.
Is it a refactor or cleanup unrelated to your phase?
→ Don't take it opportunistically. Flag it with file:line under the PR's "Noticed but out of
scope" heading. If your harness can spawn an independent task and the fix is genuinely
standalone, that's the place for it — not this branch.
Otherwise → Take the action closest to existing patterns in the codebase. Note what you chose and why in the PR.
Whichever path you took, capture it. A reviewer should see what you did and why without reading
the full diff. These headings are the ones pr-description emits:
If the situation cost you real time or had no clear path, it is also a friction point —
log-friction, Amphion's skill, where it is installed.
try/catch, a stub, or a // TODO: investigate to make it
pass.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub kumouri/mesmer-grimoire --plugin amphion6 skills in this plugin
/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./load-contextRead 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./log-frictionLog a friction point or pain point encountered during a workflow to the project's configured friction log — a markdown file, a Notion page, or GitHub issues. Use when something is harder than it should be, takes unexpected effort, has no clear path, or produced a workaround worth remembering./pr-descriptionWrites pull request descriptions. Use when creating a PR, writing a PR, or when the user asks to summarize changes for a pull request. Diffs against the repo's real integration branch and emits the headings the flag-or-fix skill files decisions under./resume-interrupted-phaseRecovery runbook for orchestration interruptions in phase or spec-driven implementation. Use when a delegated implementation sub-agent returned no usable report — an API error string, an empty or truncated result, or a generic "completed" with no commits/PR/test results — or when picking up multi-commit phase work cold after a crash, context compaction, user interruption, or machine restart. Reconstructs progress and per-sub-phase validation status from git history plus the in-repo progress ledger (never the agent's memory), re-validates the frontier, and resumes from the first unverified sub-phase. Not for normal phase work where the implementer returned a clean structured report (that is the orchestrator's ordinary validate step); not for in-implementer judgment calls (that is flag-or-fix).