Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计异常

kata-move-phase型移动阶段

Agent Skill

kata-move-phase 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

424

周安装

17

GitHub Stars

1

下载量

137
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:kata-move-phase(型移动阶段)
来源仓库:https://github.com/gannonh/kata-skills
仓库路径:skills/kata-move-phase
安装命令:
npx skills add https://github.com/gannonh/kata-skills --skill kata-move-phase
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/gannonh/kata-skills --skill kata-move-phase

简介

kata-move-phase 用于查找、检索和筛选相关信息。

  • 适合在关键词、任务场景或来源线索下快速定位候选结果。
  • 通过 npx skills add 命令从 gannonh/kata-skills 仓库安装。
  • 安装前应确认权限范围、维护状态及是否触发联网或文件操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Purpose: Enable flexible phase reorganization (cross-milestone moves and within-milestone reordering). Output: Phase moved/reordered, directories renamed, ROADMAP.md updated, STATE.md updated, git commit as historical record.

Supported operations:

  • Cross-milestone move: /kata-move-phase 3 to v1.6.0
  • Reorder within milestone: /kata-move-phase 3 before 1 or /kata-move-phase 3 after 1

<execution_context> @.planning/ROADMAP.md @.planning/STATE.md </execution_context>

Detect operation type from second arg:

  • "to" + milestone version → cross-milestone move
  • "before" or "after" + target phase number → reorder within milestone

Cross-milestone move:

  • /kata-move-phase 3 to v1.6.0

Reorder within milestone:

  • /kata-move-phase 3 before 1 → Phase 3 takes position 1, everything shifts up
  • /kata-move-phase 3 after 1 → Phase 3 takes position 2, phases 2+ shift up

Validation:

  • If no arguments or missing second arg:
ERROR: Phase number and operation required
Usage: /kata-move-phase <phase> to <milestone>
       /kata-move-phase <phase> before|after <position>

Exit.

  • If second arg is not "to", "before", or "after":
ERROR: Invalid operation "{arg}"
Expected: to, before, or after

Exit.

Store: PHASE_NUM, OPERATION (move|reorder), and either TARGET_MILESTONE or POSITION+TARGET_POSITION.

If ROADMAP.md exists, check format and auto-migrate if old:

if [ -f .planning/ROADMAP.md ]; then
  node scripts/kata-lib.cjs check-roadmap 2>/dev/null
  FORMAT_EXIT=$?

  if [ $FORMAT_EXIT -eq 1 ]; then
    echo "Old roadmap format detected. Running auto-migration..."
  fi
fi

If exit code 1 (old format):

Invoke kata-doctor in auto mode:

Skill("kata-doctor", "--auto")

Continue after migration completes.

If exit code 0 or 2: Continue silently.

cat .planning/STATE.md 2>/dev/null
cat .planning/ROADMAP.md 2>/dev/null

Parse current milestone version from ROADMAP.md. Use the "Current Milestone:" heading or 🔄 line marker:

VERSION=$(grep -E "Current Milestone:|🔄" .planning/ROADMAP.md | grep -oE 'v[0-9]+\.[0-9]+(\.[0-9]+)?' | head -1 | tr -d 'v')
  1. Search for #### Phase {N}: heading within the current milestone
  2. Use universal phase discovery (search active/pending/completed with padded and unpadded names, fallback to flat)
  3. If not found: ERROR: Phase {N} not found in roadmap + list available phases. Exit.
  1. Must be in pending/ (not active or completed). If not: ERROR: Phase {N} is in {state}/ and cannot be moved. Exit.
  2. Must not have SUMMARY.md files (no executed plans). If found: ERROR: Phase {N} has completed work. Exit.
  1. Target milestone heading must exist in ROADMAP.md. If not: ERROR: Milestone {target} not found + list available. Exit.
  2. Target must differ from source. If same: ERROR: Phase already in {milestone}. Use before/after to reorder. Exit.

Validate the target position phase exists in the same milestone:

  1. Target position phase must exist in ROADMAP.md within the current milestone
  2. Target can be any state (active, pending, completed) since we're reordering the roadmap listing
  3. The phase being moved must be pending (already validated in validate_phase_movable)

Calculate the effective target position:

  • before N → target position = N (phase takes position N, everything at N+ shifts up)
  • after N → target position = N+1 (phase takes position N+1, everything at N+1+ shifts up)

If target position phase not found:

ERROR: Phase {target_position} not found in current milestone
Available phases: [list phase numbers]

Exit.

Show the planned reorder and wait for confirmation:

Reordering Phase {N}: {Name}

Current order:
  Phase 1: {name}
  Phase 2: {name}
  Phase 3: {name}

New order:
  Phase 1: {name}  (was Phase 3)
  Phase 2: {name}  (was Phase 1)
  Phase 3: {name}  (was Phase 2)

This will renumber all phase directories and update ROADMAP.md.

Proceed? (y/n)

Wait for confirmation.

Update ROADMAP.md to reflect the new phase order:

  1. Extract all phase sections within the current milestone
  2. Remove the moving phase section from its current position
  3. Insert it at the target position
  4. Renumber ALL phase headings in the milestone sequentially (1, 2, 3,...)
  5. Update all references within the milestone:

- Phase headings: #### Phase {old}: -> #### Phase {new}: - Phase list entries - Progress table rows - Plan references: {old}-01: -> {new}-01: - Dependency references: Depends on: Phase {old} -> Depends on: Phase {new} - Decimal phase references if any

Write updated ROADMAP.md.

Rename ALL phase directories in the milestone to match new numbering. Use a three-pass approach to avoid collision:

  1. Pass 1: Move the reordering phase to a temp name (tmp-{slug})
  2. Pass 2: Renumber all remaining phases sequentially. Process order matters:

- Phases shifting down (higher->lower): process lowest first - Phases shifting up (lower->higher): process highest first - For each: find across state subdirectories, rename directory and internal files

  1. Pass 3: Move temp directory to its final numbered position, rename internal files

Handle decimal phases: they follow their parent integer phase and renumber accordingly.

Find next phase number in target milestone: parse #### Phase N: headings, take highest + 1 (or 1 if empty). Format as two-digit padded.

Show: source milestone, target milestone, new phase number, directory rename, number of phases to renumber in source. Wait for confirmation.

Remove phase section from source milestone in ROADMAP.md and renumber remaining phases to close the gap. Follow the same renumbering approach as kata-remove-phase:

  • Phase headings, list entries, progress table rows
  • Plan references ({old}-01: -> {new}-01:)
  • Dependency references (Depends on: Phase {old} -> Phase {new})
  • Decimal phase references

Insert phase section into target milestone in ROADMAP.md at the calculated destination number. Preserve goal, requirements, success criteria. Remove or note cross-milestone dependency references that no longer apply.

Rename phase directory to new number within pending/. Rename all files inside (PLAN.md, RESEARCH.md, etc.) to match. Handle decimal phases (N.1, N.2) by moving them with the parent, renumbering to NEW_NUM.1, NEW_NUM.2.

Renumber directories of phases that shifted in the source milestone. Process ascending order (for downward shifts). For each: find across state subdirectories, rename directory and internal files within same state.

For cross-milestone move:

  1. Add roadmap evolution note:
- **Phase {N} moved from {source_milestone} to {target_milestone}** as Phase {NEW_NUM}
  1. Update total phase count if the source milestone is the current milestone
  2. Recalculate progress percentage

For reorder:

  1. Add roadmap evolution note:
- **Phase {N} reordered {before|after} Phase {M}** in {milestone}
  1. Phase count unchanged (same milestone, same phases)

Both operations: Update REQUIREMENTS.md traceability if requirements reference affected phases. Update phase numbers in traceability table for all renumbered phases.

COMMIT_PLANNING_DOCS=$(node scripts/kata-lib.cjs read-config "commit_docs" "true")
git check-ignore -q .planning 2>/dev/null && COMMIT_PLANNING_DOCS=false

If COMMIT_PLANNING_DOCS=false: Skip git operations

If COMMIT_PLANNING_DOCS=true (default):

git add .planning/
# Cross-milestone move:
git commit -m "chore: move phase {N} to {target_milestone}"
# Reorder:
git commit -m "chore: reorder phase {N} {before|after} {M}"

<anti_patterns>

  • Don't move active or completed phases (only pending phases can be moved/reordered)
  • Don't move phases with executed plans (SUMMARY.md exists)
  • Don't move to the same milestone (use reorder instead)
  • Don't reorder to the same position (no-op)
  • Don't forget decimal phases (they move with parent integer phase)
  • Don't commit if commit_docs is false
  • Don't leave gaps in phase numbering after move or reorder
  • Don't modify phases outside the source and target milestones
  • Don't rename directories without the two-pass temp approach (avoids collisions during reorder)

</anti_patterns>

<edge_cases>

Phase has PLAN.md files but no SUMMARY.md:

  • Allowed. Rename plan files inside the directory as part of the move/reorder.
  • Update plan frontmatter phase references.

Target milestone is empty (no phases):

  • First phase becomes Phase 1.
  • calculate_destination_number handles this (NEW_NUM=1 when HIGHEST is empty).

Last phase in source milestone removed:

  • No renumbering needed in source milestone.
  • Source milestone section in ROADMAP.md still has its heading.

Decimal phases under moved integer phase:

  • Find all decimal phases (N.1, N.2) belonging to the moved integer phase.
  • Move them together with the parent.
  • Renumber to NEW_NUM.1, NEW_NUM.2 at destination.

Phase directory doesn't exist yet:

  • Phase may be in ROADMAP.md but directory not created.
  • Skip directory operations, proceed with ROADMAP.md updates only.
  • Note in completion summary: "No directory to move (phase not yet created)"

Reorder: moving to adjacent position:

  • before N+1 or after N-1 when phase is at position N is a no-op.
  • Detect and report: "Phase {N} is already at that position."

Reorder: only two phases in milestone:

  • Swap positions. Both directories and all references renumbered.

</edge_cases>

<success_criteria> Cross-milestone move is complete when:

  • Source phase validated as pending/unstarted
  • Target milestone validated as existing and different from source
  • Phase section removed from source milestone in ROADMAP.md
  • Remaining source phases renumbered to close gap
  • Phase section added to target milestone with correct number
  • Phase directory renamed to match new number
  • Files inside directory renamed ({old}-NN-PLAN.md -> {new}-NN-PLAN.md)
  • Decimal phases moved with parent (if any)
  • Source directories renumbered (if phases shifted)
  • STATE.md updated with roadmap evolution note
  • Changes committed with descriptive message
  • No gaps in phase numbering at source or destination

Reorder is complete when:

  • Phase validated as pending/unstarted
  • Target position validated as existing in same milestone
  • Phase sections reordered in ROADMAP.md
  • All phases in milestone renumbered sequentially
  • All phase directories renamed (two-pass temp approach)
  • Files inside directories renamed to match new numbers
  • Decimal phases renumbered with parent (if any)
  • STATE.md updated with roadmap evolution note
  • Changes committed with descriptive message
  • No gaps in phase numbering

Both operations: User informed of all changes. </success_criteria>

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.86%
按下载量换算52

Claude

28.31%
按下载量换算39

Cursor

19.96%
按下载量换算27

Gemini CLI

10.11%
按下载量换算14

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills