spec-finish
@martinffx · 收录于 1 周前
Post-implementation completion workflow. Use after spec-implement completes to validate, review, create stacked commits, and prepare for PR. Triggers when implementation is done, when the user says "finish", "done", "complete", or after implementation tasks are finished.
适合你,如果每次实现完成后都需要走一遍验证、审查和提PR的流程
/ 下载安装
用别的 agent?下载 .zip 解压,把文件夹放进它的技能目录
Claude Code
~/.claude/skills/(项目级 .claude/skills/)Codex CLI
~/.codex/skills/Cursor自动读取上面两处目录
其他工具见其文档的「skills」目录;两个下载是同一份文件,只是名字不同
/ 通过 npx 安装 校验哈希
npx oh-my-skill add martinffx/atelier/spec-finish/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- martinffx/atelier/spec-finish/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify martinffx/atelier/spec-finish安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
34GitHub stars
~579上下文体积 · 单文件
镜像托管
怎么用
技能原文 SKILL.md
Spec Finish
Post-implementation workflow: validate → review → stack commits → prepare PR.
Prerequisites
Before starting, verify:
- All implementation tasks complete
- Working directory is clean (committed or staged)
- Tests pass
If not complete → go back to spec-implement.
Step 1: Validate
Run validation checks.
Test Suite
npm test # or pytest # or cargo test
Type Check
npm run typecheck # or python -m mypy # or cargo check
Lint
npm run lint # or ruff check . # or cargo clippy
Build
npm run build # or go build ./...
If any fail: Return to spec-implement to fix.
If all pass: Proceed.
Step 2: Review
Use the Skill tool to invoke code-review skill for comprehensive code review.
What to Review
- All changed files since feature branch
- Test coverage
- Documentation updates
- No debug code left
If code-review finds issues
- Fix or note for follow-up
- Re-validate
Step 3: Stack Commits
Workflow
- Review current commits:
git log --oneline - Ensure commits are organized logically
- Rebase if needed:
git rebase -i <base-branch> - Ensure each commit is clean and functional
Commit Guidelines
- Each commit should pass tests
- Use conventional commit format
- Meaningful commit messages
Step 4: Update Documentation
Optional - use code-docs skill if needed.
Check for Updates
- README changes needed?
- API documentation updated?
- Changelog updated?
If documentation needed
- Load code-docs
- Update relevant docs
- Commit with docs
Step 5: Prepare for PR
Verify
- All tests passing
- All reviews complete
- Documentation updated
- Commits stacked properly
Summary for Human
## Completion Summary **Feature:** [name] **Tests:** [passed/failed] **Type Check:** [passed/failed] **Lint:** [passed/failed] **Commits:** [N commits in stack] **Ready for PR:** [yes/no]
Handoff
"Implementation complete. [N] commits stacked. Ready for [submit/open PR]."
Integration
This skill orchestrates other skills:
- Invokes code-review for quality check
- Invokes code-docs if documentation needs updates
When NOT to Use
- If implementation still in progress → use spec-implement
- If tests failing → go back to spec-implement
- If review found blocking issues → go back to spec-implement
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →
评论
登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。
…