Agent Skillstzachbon/smart-ralph › ralph-specum-refactor

ralph-specum-refactor

GitHub

协调 Ralph Specum 重构流程,根据实施反馈委派子代理更新需求、设计及任务文档。新增原型阶段处理逻辑,包括状态协调与下游选择,确保规范一致性。

plugins/ralph-specum-codex/skills/ralph-specum-refactor/SKILL.md tzachbon/smart-ralph

Trigger Scenarios

用户显式请求使用 $ralph-specum-refactor 需要在实施后修订规格工件

Install

npx skills add tzachbon/smart-ralph --skill ralph-specum-refactor -g -y
More Options

Non-standard path

npx skills add https://github.com/tzachbon/smart-ralph/tree/main/plugins/ralph-specum-codex/skills/ralph-specum-refactor -g -y

Use without installing

npx skills use tzachbon/smart-ralph@ralph-specum-refactor

指定 Agent (Claude Code)

npx skills add tzachbon/smart-ralph --skill ralph-specum-refactor -a claude-code -g -y

安装 repo 全部 skill

npx skills add tzachbon/smart-ralph --all -g -y

预览 repo 内 skill

npx skills add tzachbon/smart-ralph --list

SKILL.md

Frontmatter
{
    "name": "ralph-specum-refactor",
    "metadata": {
        "action": "refactor",
        "surface": "helper"
    },
    "description": "This skill should be used only when the user explicitly asks to use `$ralph-specum-refactor`, or explicitly asks Ralph Specum in Codex to revise spec artifacts after implementation learnings."
}

Ralph Specum Refactor

You are a coordinator, not a refactor specialist -- delegate spec revision to a refactor-specialist sub-agent.

Contract

  • Resolve the active spec by explicit path, exact name, or .current-spec
  • Review files in order: requirements.md, design.md, tasks.md
  • Cascade downstream updates when upstream content changes
  • Reconcile activePrototypes and preserve unrelated refactor work

Action

  1. Resolve the target spec.
  2. Read .progress.md and existing spec files.
  3. Run prototype_records.py reconcile whenever .ralph-state.json exists, including when activePrototypes is empty, then run select-downstream --state "$BASE_PATH/.ralph-state.json" --target "$FILE" --path "$FILE" with the resolved basePath. Stop a file's refactor when its targetDecisions entry is not both proofAvailable: true and eligible: true, including an active blocker, stale dependency, approved-transfer overlap, or unavailable proof.
  4. When refactor returns to execution, restore taskIndex from the blocking entry's returnTaskIndex through merge_state.py before dispatch.
  5. Delegate spec revision to a refactor-specialist sub-agent. Pass .progress.md, existing spec files, and implementation learnings. The sub-agent identifies what changed, what stayed accurate, and what is obsolete. Do NOT revise spec files yourself.
  6. The sub-agent preserves newer Ralph concepts already expressed in the spec, including approval checkpoints, granularity choices, [P] tasks, [VERIFY] tasks, VE tasks, and epic constraints when relevant.
  7. The sub-agent updates files in order:
    • requirements.md
    • design.md
    • tasks.md
  8. If requirements changed, revisit design and tasks.
  9. If design changed, revisit tasks.
  10. Record the rationale and cascade decisions in .progress.md.

Response Handoff

  • After revising spec files, name the files that changed and summarize the updates briefly.
  • End with exactly one explicit choice prompt:
    • approve current artifact
    • request changes
    • continue to implementation
  • Treat continue to implementation as approval of the updated spec files.

Version History

  • 183c1be Current 2026-09-02 23:24

    新增可选的原型阶段处理逻辑,包括在 .ralph-state.json 存在时运行 reconcile 和 select-downstream 命令,以支持更复杂的状态管理和依赖解析。

  • 1b33202 2026-07-05 09:17

Same Skill Collection

.agents/skills/Command Development/SKILL.md
.agents/skills/MCP Integration/SKILL.md
.agents/skills/Plugin Settings/SKILL.md
.agents/skills/Plugin Structure/SKILL.md
.agents/skills/Skill Development/SKILL.md
plugins/ralph-speckit/skills/communication-style/SKILL.md
plugins/ralph-speckit/skills/delegation-principle/SKILL.md
plugins/ralph-speckit/skills/smart-ralph/SKILL.md
plugins/ralph-speckit/skills/speckit-workflow/SKILL.md
plugins/ralph-specum-codex/skills/interview-framework-codex/SKILL.md
plugins/ralph-specum-codex/skills/ralph-specum-cancel/SKILL.md
plugins/ralph-specum-codex/skills/ralph-specum-design/SKILL.md
plugins/ralph-specum-codex/skills/ralph-specum-feedback/SKILL.md
plugins/ralph-specum-codex/skills/ralph-specum-help/SKILL.md
plugins/ralph-specum-codex/skills/ralph-specum-implement/SKILL.md
plugins/ralph-specum-codex/skills/ralph-specum-index/SKILL.md
plugins/ralph-specum-codex/skills/ralph-specum-prototype/SKILL.md
plugins/ralph-specum-codex/skills/ralph-specum-requirements/SKILL.md
plugins/ralph-specum-codex/skills/ralph-specum-research/SKILL.md
plugins/ralph-specum-codex/skills/ralph-specum-start/SKILL.md
plugins/ralph-specum-codex/skills/ralph-specum-status/SKILL.md
plugins/ralph-specum-codex/skills/ralph-specum-switch/SKILL.md
plugins/ralph-specum-codex/skills/ralph-specum-tasks/SKILL.md
plugins/ralph-specum-codex/skills/ralph-specum-triage/SKILL.md
plugins/ralph-specum-codex/skills/ralph-specum/SKILL.md
plugins/ralph-specum/skills/communication-style/SKILL.md
plugins/ralph-specum/skills/interview-framework/SKILL.md
plugins/ralph-specum/skills/reality-verification/SKILL.md
plugins/ralph-specum/skills/smart-ralph/SKILL.md
plugins/ralph-specum/skills/spec-workflow/SKILL.md
.agents/skills/Hook Development/SKILL.md

Metadata

Files
0
Version
183c1be
Hash
8c134994
Indexed
2026-07-05 09:17

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-04 09:50
浙ICP备14020137号-1 $お客様$