Agent Skills
› tzachbon/smart-ralph
› ralph-specum-switch
ralph-specum-switch
GitHub用于在 Codex 中切换活跃规范(spec)。支持列出可用规范、解析路径、更新当前状态,并只读报告原型依赖与阻塞信息。
Trigger Scenarios
用户明确要求使用 ralph-specum-switch
需要切换或查看当前活跃规范
Install
npx skills add tzachbon/smart-ralph --skill ralph-specum-switch -g -y
SKILL.md
Frontmatter
{
"name": "ralph-specum-switch",
"metadata": {
"action": "switch",
"surface": "helper"
},
"description": "This skill should be used only when the user explicitly asks to use `$ralph-specum-switch`, or explicitly asks Ralph Specum in Codex to switch the active spec."
}
Ralph Specum Switch
Use this to switch the active spec.
Derive RALPH_CODEX_PLUGIN_ROOT from this loaded skill by resolving two parent directories from the SKILL.md directory. Never derive it from the project working directory.
Contract
- Read
.claude/ralph-specum.local.mdwhen present - Parse
specs_dirsfrom frontmatter to discover all spec roots - Treat the first
specs_dirsentry as the default root - Default specs root is
./specs .current-speclives in the default specs root- Do not guess on ambiguous names
Action
- Resolve the requested target by full path or exact name.
- If no target was provided, list available specs grouped by root.
- If the name is ambiguous across roots, stop and require a full path.
- Update
.current-spec:- bare name for the default root
- full path for non-default roots
- Read the target spec state and summarize phase, progress, approval state, and present files.
- Report prototype dependencies without mutating them:
- Treat a missing
activePrototypesfield as an empty map. - When state exists, run
"$RALPH_CODEX_PLUGIN_ROOT/scripts/prototype_records.py" select-downstream --base-path "$BASE_PATH" --state "$BASE_PATH/.ralph-state.json"using the selected spec's resolvedbasePath. - Show each blocker from
activeBlockerswith prototype ID, status, blocked artifact or transition,returnPhase, andreturnTaskIndex. - Show
staleArtifactsandstaleTaskIndexesfrom the selection result. - Do not reconcile, remove active entries, edit records, or change blocker data. If no overlay or stale dependency exists, preserve the existing switch output.
- Treat a missing
Version History
-
183c1be
Current 2026-09-02 23:25
新增可选的原型阶段功能,增强了对原型依赖和阻塞状态的报告能力。
- 1b33202 2026-07-05 09:17


