Token导航 LogoToken导航TokenDH.com
前端设计只读github未标认证来源可访问许可证需确认审计异常

kata-complete-milestone卡塔完成里程碑

Agent Skill

kata-complete-milestone 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

408

周安装

17

GitHub Stars

1

下载量

136
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/gannonh/kata-skills --skill kata-complete-milestone

简介

kata-complete-milestone 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。
  • 通过 npx skills add 命令从 gannonh/kata-skills 仓库安装。
  • 安装前建议确认权限范围、维护状态及是否会触发联网或文件读写。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Purpose: Create historical record of shipped version, archive milestone artifacts (roadmap + requirements), and prepare for next milestone. Output: Milestone archived (roadmap + requirements), PROJECT.md evolved, git tagged.

<execution_context> Load these files NOW (before proceeding):

  • @./references/milestone-complete.md (main workflow)
  • @./references/milestone-archive-template.md (archive template)
  • @./references/version-detector.md (version detection functions)
  • @./references/changelog-generator.md (changelog generation functions) </execution_context>

User input:

  • Version: {{version}} (e.g., "1.0", "1.1", "2.0")

Follow milestone-complete.md workflow:

  1. CRITICAL: Branch setup (if pr_workflow=true) Check pr_workflow config FIRST before any other work: PR_WORKFLOW=$(node scripts/kata-lib.cjs read-config "pr_workflow" "false") CURRENT_BRANCH=$(git branch --show-current) WORKTREE_ENABLED=$(node scripts/kata-lib.cjs read-config "worktree.enabled" "false") If PR_WORKFLOW=true AND on main: You MUST create a release branch BEFORE proceeding. All milestone completion work goes on that branch. # Determine version from user input or detect from project files # (version-detector.md handles detection across project types) VERSION="X.Y.Z" # Set from user input or detection Release branches always use the main/ working directory. Do NOT create a separate worktree for release work. Milestone completion is sequential admin work with no parallelism — a separate worktree adds complexity with no benefit. Create the release branch in the current working directory. In bare repo layout, CWD is already main/. In normal repos, CWD is the project root. Both cases use the same command: RELEASE_BRANCH="release/v$VERSION" git checkout -b "$RELEASE_BRANCH" Display: ⚠ pr_workflow is enabled — creating release branch. Branch: $RELEASE_BRANCH All milestone completion commits will go to this branch. After completion, a PR will be created to merge to main. If PR_WORKFLOW=false OR already on a non-main branch: Proceed with current branch (commits go to main or current branch). GATE: Do NOT proceed until branch is correct: All subsequent steps work in the current working directory. Do NOT cd to any other directory.

- If pr_workflow=true, you must be on release/vX.Y.Z branch - If pr_workflow=false, main branch is OK

0.1. Pre-flight: Check roadmap format (auto-migration)

Read workflow-specific overrides for milestone completion. Also check and auto-migrate roadmap format if needed:

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.

# Validate config and template overrides
node scripts/kata-lib.cjs check-config 2>/dev/null || true
node scripts/kata-lib.cjs check-template-drift 2>/dev/null || true

0.2. Read workflow config:

Read workflow-specific overrides for milestone completion:

VERSION_FILES_JSON=$(node scripts/kata-lib.cjs read-pref "workflows.complete-milestone.version_files" "[]")
PRE_RELEASE_CMDS_JSON=$(node scripts/kata-lib.cjs read-pref "workflows.complete-milestone.pre_release_commands" "[]")
  • version_files: overrides version-detector.md auto-detection when non-empty
  • pre_release_commands: run after version bump, before archive (failures blocking)

Store for use in release workflow steps. See milestone-complete.md read_workflow_config step.

0.2. Generate release artifacts:

Proactively generate changelog and version bump. Use the functions defined in version-detector.md and changelog-generator.md. Run these steps using the exact function definitions from those references:

# 1. Get current version (version-detector.md: get_current_version)
CURRENT_VERSION=$(node -p "require('./package.json').version" 2>/dev/null || git describe --tags --abbrev=0 2>/dev/null | sed 's/^v//' || echo "0.0.0")

# 2. Get commits since last tag (version-detector.md: commit_parsing)
LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
if [ -n "$LAST_TAG" ]; then
  COMMITS=$(git log --oneline --format="%s" "$LAST_TAG"..HEAD)
else
  COMMITS=$(git log --oneline --format="%s")
fi

# 3. Categorize commits
BREAKING=$(echo "$COMMITS" | grep -E "^[a-z]+(\(.+\))?!:|BREAKING CHANGE:" || true)
FEATURES=$(echo "$COMMITS" | grep -E "^feat(\(.+\))?:" || true)
FIXES=$(echo "$COMMITS" | grep -E "^fix(\(.+\))?:" || true)

# 4. Determine bump type
if [ -n "$BREAKING" ]; then BUMP_TYPE="major"
elif [ -n "$FEATURES" ]; then BUMP_TYPE="minor"
elif [ -n "$FIXES" ]; then BUMP_TYPE="patch"
else BUMP_TYPE="none"
fi

echo "CURRENT=$CURRENT_VERSION BUMP=$BUMP_TYPE"
echo "FEATURES: $FEATURES"
echo "FIXES: $FIXES"

Calculate next version using calculate_next_version from version-detector.md. Generate changelog entry using changelog-generator.md format. Update version in project files using update_versions from version-detector.md (if version changed).

Present all proposed changes for review:

## Release Preview

**Current version:** $CURRENT_VERSION
**Bump type:** $BUMP_TYPE
**Next version:** $NEXT_VERSION

**Changelog entry:**
## [$NEXT_VERSION] - $DATE

### Added
[feat commits formatted]

### Fixed
[fix commits formatted]

### Changed
[docs/refactor/perf commits formatted]

**Files updated:**
[list each version file detected and updated]
- CHANGELOG.md → new entry prepended

Use AskUserQuestion:

  • header: "Release Changes"
  • question: "Review the release changes above. Approve?"
  • options:

- "Approve" — Keep changes and proceed to verify readiness - "Edit changelog first" — Pause for user edits, then confirm - "Revert and skip release" — Undo release file changes, proceed to verify readiness without release artifacts

  1. Check for audit: ` ## Pre-flight Check {If no v{{version}}-MILESTONE-AUDIT.md:} ⚠ No milestone audit found. Run /kata-audit-milestone first to verify requirements coverage, cross-phase integration, and E2E flows. {If audit has gaps:} ⚠ Milestone audit found gaps. Run /kata-plan-milestone-gaps to create phases that close the gaps, or proceed anyway to accept as tech debt. {If audit passed:} ✓ Milestone audit passed. Proceeding with completion. `

- Look for .planning/v{{version}}-MILESTONE-AUDIT.md - If missing or stale: recommend /kata-audit-milestone first - If audit status is gaps_found: recommend /kata-plan-milestone-gaps first - If audit status is passed: proceed to step 1

  1. Verify readiness:

- Check all phases in milestone have completed plans (SUMMARY.md exists) - Present milestone scope and stats - Wait for confirmation

  1. Gather stats:

- Count phases, plans, tasks - Calculate git range, file changes, LOC - Extract timeline from git log - Present summary, confirm

  1. Extract accomplishments:

- Read all phase SUMMARY.md files in milestone range - Extract 4-6 key accomplishments - Present for approval

  1. Archive milestone:

- Create .planning/milestones/v{{version}}-ROADMAP.md - Extract full phase details from ROADMAP.md - Fill milestone-archive.md template - Update ROADMAP.md to one-line summary with link

  1. Archive requirements:

- Create .planning/milestones/v{{version}}-REQUIREMENTS.md - Mark all v1 requirements as complete (checkboxes checked) - Note requirement outcomes (validated, adjusted, dropped) - Delete .planning/REQUIREMENTS.md (fresh one created for next milestone)

  1. Update PROJECT.md:

- Add "Current State" section with shipped version - Add "Next Milestone Goals" section - Archive previous content in <details> (if v1.1+)

6.5. Review Documentation (Non-blocking):

Before committing, offer final README review:

Use AskUserQuestion:

  • header: "Final README Review"
  • question: "Revise README before completing milestone v{{version}}?"
  • options:

- "Yes, draft an update for my review" — Revise README and present to the user for approval - "No, I'll make the edits myself" — Pause for user review, wait for "continue" - "Skip for now" — Proceed directly to commit

If "Yes, I'll review now":

Review README.md for the complete v{{version}} milestone.
Ensure all shipped features are documented.
Say "continue" when ready to proceed.

If "Show README": Display README.md, then use AskUserQuestion:

  • header: "README Accuracy"
  • question: "Does this look accurate for v{{version}}?"
  • options:

- "Yes, looks good" — Proceed to Step 7 - "Needs updates" — Pause for user edits, wait for "continue"

If "Skip" or review complete: Proceed to Step 7.

*Non-blocking: milestone completion continues regardless of choice.*

6.7. Close GitHub Milestone:

If github.enabled, close the GitHub Milestone for this version. See milestone-complete.md close_github_milestone step for details.

  1. Commit and finalize: PR workflow handling (branch was created in step 0): PR_WORKFLOW=$(node scripts/kata-lib.cjs read-config "pr_workflow" "false") CURRENT_BRANCH=$(git branch --show-current) If PR_WORKFLOW=true (on release/vX.Y.Z branch): Push branch and create PR: ` # Push branch (use --head for bare repo layout where gh can't auto-detect) git push -u origin "$CURRENT_BRANCH" # Collect all phase issues for this milestone GITHUB_ENABLED=$(node scripts/kata-lib.cjs read-config "github.enabled" "false") ISSUE_MODE=$(node scripts/kata-lib.cjs read-config "github.issue_mode" "never") CLOSES_LINES="" if ["$GITHUB_ENABLED" = "true"] && ["$ISSUE_MODE"!= "never"]; then # Get all phase issue numbers for this milestone # --state all includes already-closed issues (GitHub ignores redundant Closes #X, # but including them ensures PR body reflects all related work) # gh issue list --milestone only searches open milestones; use API to include closed REPO_SLUG=$(gh repo view --json nameWithOwner --jq '.nameWithOwner' 2>/dev/null) MS_NUM=$(gh api "repos/${REPO_SLUG}/milestones?state=all" --jq ".[] | select(.title==\"v{{version}}\") |.number" 2>/dev/null) PHASE_ISSUES="" if [-n "$MS_NUM"]; then PHASE_ISSUES=$(gh api "repos/${REPO_SLUG}/issues?milestone=${MS_NUM}&state=all&labels=phase&per_page=100" \ --jq '.[].number' 2>/dev/null) fi if [-z "$PHASE_ISSUES"]; then echo "Note: No phase issues found for milestone v{{version}}. This is expected for milestones without GitHub issues." fi # Build multi-line closes section for num in ${PHASE_ISSUES}; do CLOSES_LINES="${CLOSES_LINES}Closes #${num} " done fi # Create PR (--head required for bare repo worktree layout) gh pr create \ --head "$CURRENT_BRANCH" \ --base main \ --title "v{{version}}: [Milestone Name]" \ --body "$(cat <<EOF ## Summary Completes milestone v{{version}}. **Key accomplishments:** - [accomplishment 1] - [accomplishment 2] - [accomplishment 3] ## Release Files [list version files that were updated] - CHANGELOG.md — v{{version}} entry added ## After Merge Create GitHub Release with tag v{{version}}. ## Closes ${CLOSES_LINES} EOF)" Display: ✓ PR created: [PR URL] After merge: → Create GitHub Release with tag v{{version}} **Offer to merge PR:** Use AskUserQuestion: **If "Yes, merge now":** gh pr merge "$PR_NUMBER" --merge Then update local state: if ["$WORKTREE_ENABLED" = "true"]; then # Bare repo layout: update main/ worktree, reset workspace/ to workspace-base git -C main pull bash "scripts/manage-worktree.sh" cleanup-phase workspace "$PHASE_BRANCH" else git checkout main git pull fi **If PR_WORKFLOW=false` (on main):** Create tag locally:

- Stage: MILESTONES.md, PROJECT.md, ROADMAP.md, STATE.md, archive files - Commit: chore: complete v{{version}} milestone - header: "Merge Release PR" - question: "PR is ready. Merge now?" - options: - "Yes, merge now" — merge and return to main - "No, I'll merge later" — leave PR open - Tag: git tag -a v{{version}} -m "[milestone summary]" - Ask about pushing tag

  1. Post-release verification: After the release PR is merged (or tag is pushed), offer active verification tasks. Task menu loop: Present available tasks, execute the selected one, then re-present remaining tasks until the user exits. Use AskUserQuestion: If "Run smoke tests": Execute the project's test suite: npm test 2>&1 || echo "SMOKE_TEST_FAILED" Report pass/fail results. If failures found, use AskUserQuestion: If "Help me fix": Stop milestone completion and help debug. If "Verify release artifacts": Run artifact checks: VERSION="{{version}}" echo "=== Version File Check ===" # Use version-detector.md detected files or workflow config overrides for f in $(cat.planning/config.json 2>/dev/null | grep -o '"version_files"[[:space:]]*:[[:space:]]*\[[^]]*\]' | grep -o '"[^"]*"' | tr -d '"' | grep -v version_files); do if [-f "$f"]; then grep -q "$VERSION" "$f" && echo "✓ $f contains $VERSION" || echo "✗ $f missing $VERSION" fi done echo "=== Changelog Check ===" grep -q "$VERSION" CHANGELOG.md 2>/dev/null && echo "✓ CHANGELOG.md has $VERSION entry" || echo "✗ CHANGELOG.md missing $VERSION entry" echo "=== Git Tag Check ===" git tag -l "v$VERSION" | grep -q. && echo "✓ Tag v$VERSION exists" || echo "✗ Tag v$VERSION not found" Report results. If mismatches found, use AskUserQuestion: If "Fix issues": Apply fixes, commit, then return to task menu. If "Check CI/CD status": Query recent workflow runs: gh run list --limit 3 2>/dev/null || echo "No CI/CD runs found (gh CLI not configured or no workflows)" Report status. If failures found, use AskUserQuestion: If "Investigate": Display failure logs, then return to task menu. If "Everything looks good": Proceed to step 9. Loop behavior: After each completed task, remove it from the options and re-present the menu. When all three tasks have been run or user selects "Everything looks good", proceed to step 9.

- header: "Post-Release Tasks" - question: "Release committed. What would you like to verify?" - options (show only uncompleted tasks): - "Run smoke tests" — Execute the project's test suite and report results - "Verify release artifacts" — Check version files, changelog entry, and git tag - "Check CI/CD status" — Show recent workflow runs and their status - "Everything looks good" — Skip remaining verification, proceed to step 9 - header: "Test Failures" - question: "Smoke tests reported failures. How to proceed?" - options: - "Help me fix" — Stop and debug the failing tests - "Continue anyway" — Return to task menu - header: "Artifact Issues" - question: "Release artifact issues detected. How to proceed?" - options: - "Fix issues" — Correct the mismatches (update version files, create missing tag) - "Continue anyway" — Return to task menu - header: "CI/CD Failures" - question: "CI/CD failures detected. How to proceed?" - options: - "Investigate" — Show logs for the failed run (gh run view --log-failed) - "Continue anyway" — Return to task menu

  1. Offer next steps:

- /kata-add-milestone — start next milestone (questioning → research → requirements → roadmap)

<success_criteria>

  • Milestone archived to .planning/milestones/v{{version}}-ROADMAP.md
  • Requirements archived to .planning/milestones/v{{version}}-REQUIREMENTS.md
  • .planning/REQUIREMENTS.md deleted (fresh for next milestone)
  • ROADMAP.md collapsed to one-line entry
  • PROJECT.md updated with current state
  • Git tag v{{version}} created (if pr_workflow=false) OR PR created/instructions given (if pr_workflow=true)
  • GitHub Milestone v{{version}} closed (if github.enabled)
  • Commit successful
  • User knows next steps (including need for fresh requirements)

If release workflow was run:

  • CHANGELOG.md updated with v{{version}} entry (reviewed and approved)
  • Version bumped in all detected project version files
  • GitHub Release created (if pr_workflow=false) OR instructions provided (if pr_workflow=true) </success_criteria>

<critical_rules>

  • Load workflow first: Read milestone-complete.md before executing
  • Verify completion: All phases must have SUMMARY.md files
  • User confirmation: Wait for approval at verification gates
  • Archive before deleting: Always create archive files before updating/deleting originals
  • One-line summary: Collapsed milestone in ROADMAP.md should be single line with link
  • Context efficiency: Archive keeps ROADMAP.md and REQUIREMENTS.md constant size per milestone
  • Fresh requirements: Next milestone starts with /kata-add-milestone which includes requirements definition </critical_rules>

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.31%
按下载量换算48

Claude

26.89%
按下载量换算37

Cursor

18.97%
按下载量换算26

Gemini CLI

9.23%
按下载量换算13

安全审计

Gen Agent Trust Hub

未通过

Socket

可疑

Snyk

可疑

权限和风险

只读

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

安装前确认

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

来源信息

继续浏览同类 Skills