commit
Reviews code, runs tests, lints, and commits changes. Use when ready to commit work with quality checks.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
commit
Multi-step workflow: Reviews code, runs tests, lints, and commits changes. Use when ready to commit work with quality checks.
CRITICAL: Always invoke steps using the Skill tool. Never copy/paste step instructions directly.
A workflow for preparing and committing code changes with quality checks.
This job starts with a code review to catch issues early, runs tests until they pass, formats and lints code with ruff, then reviews changed files before committing and pushing. The review and lint steps use sub-agents to reduce context usage.
Steps:
- review - Code review for issues, DRY opportunities, naming, and test coverage (runs in sub-agent)
- test - Pull latest code and run tests until they pass
- lint - Format and lint code with ruff (runs in sub-agent)
- commit_and_push - Review changes and commit/push
Available Steps
- review - Reviews changed code for issues, DRY opportunities, naming clarity, and test coverage using a sub-agent. Use as the first step before testing.
- test - Pulls latest code and runs tests until all pass. Use after code review passes to verify changes work correctly. (requires: review)
- lint - Formats and lints code with ruff using a sub-agent. Use after tests pass to ensure code style compliance. (requires: test)
- commit_and_push - Verifies changed files, creates commit, and pushes to remote. Use after linting passes to finalize changes. (requires: lint)
Execution Instructions
Step 1: Analyze Intent
Parse any text following /commit to determine user intent:
- "review" or related terms → start at
commit.review - "test" or related terms → start at
commit.test - "lint" or related terms → start at
commit.lint - "commit_and_push" or related terms → start at
commit.commit_and_push
Step 2: Invoke Starting Step
Use the Skill tool to invoke the identified starting step:
Skill tool: commit.review
Step 3: Continue Workflow Automatically
After each step completes:
- Check if there's a next step in the sequence
- Invoke the next step using the Skill tool
- Repeat until workflow is complete or user intervenes
Handling Ambiguous Intent
If user intent is unclear, use AskUserQuestion to clarify:
- Present available steps as numbered options
- Let user select the starting point
Guardrails
- Do NOT copy/paste step instructions directly; always use the Skill tool to invoke steps
- Do NOT skip steps in the workflow unless the user explicitly requests it
- Do NOT proceed to the next step if the current step's outputs are incomplete
- Do NOT make assumptions about user intent; ask for clarification when ambiguous
Context Files
- Job definition:
.deepwork/jobs/commit/job.yml
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-02-05
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!