一键导入
mach6-implement
Implement a plan from a PR, or fix review findings / CI failures. Usage: mach6-implement 42 [finding-numbers] or mach6-implement 42 ci
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Implement a plan from a PR, or fix review findings / CI failures. Usage: mach6-implement 42 [finding-numbers] or mach6-implement 42 ci
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Commit changes, push to remote, and post a progress comment on the associated PR or issue. Stages files by name (never git add -A), matches existing commit style, auto-detects PR from branch. Usage: mach6-push [optional commit message]
Run specialized review agents in parallel on a PR (code-reviewer, error-auditor, test-reviewer, completeness-checker, simplifier), post findings, then independently assess each finding to separate genuine issues from nitpicks and false positives. Usage: mach6-review 42 [aspects]
Assess an existing GitHub issue (explore codebase, identify scope/risks/ambiguities, post assessment) or create a new structured issue. Usage: mach6-issue 42 (assess) or mach6-issue (create) or mach6-issue <description> (create with context)
Explore codebase, create implementation plan, create feature branch with dummy commit, open draft PR, post plan as PR comment. Everything lives on the PR from this point forward. Usage: mach6-plan 42
Pre-merge checks, version bump, merge PR, git tag, GitHub release. Version bump happens BEFORE merge (on the feature branch) because master requires PRs. Usage: mach6-publish 42
Semantic codebase search — use for exploring code, finding implementations, and answering questions about any project. Searches using natural language queries, identifier names, or file paths. Returns ranked results using embedding-based similarity, BM25 keyword matching, symbol matching, import graph analysis, and git recency. Use this as the default exploration tool instead of grep when you don't know the exact text to search for.
| name | mach6-implement |
| description | Implement a plan from a PR, or fix review findings / CI failures. Usage: mach6-implement 42 [finding-numbers] or mach6-implement 42 ci |
| argument-hint | <pr-number> [finding-numbers | ci] |
User input: $ARGUMENTS
This skill has two modes:
ci): fixes specific review findings or CI failures#N in comment bodies — Use "finding 3", "item 3" etc. instead.git add -A or git add .. Stage files by name. Never stage secrets.tasks_update tool to show progress.gh — Set GH_PAGER=cat and GH_EDITOR=cat before all gh commands to prevent interactive prompts from hanging the agent. Use --body-file instead of inline --body for all gh pr comment, gh pr create, and gh issue create calls to avoid shell interpretation of backticks. Write each body to a unique per-invocation temp file via mktemp (e.g. GH_BODY="$(mktemp /tmp/gh-comment.XXXXXX.md)") — never a fixed path like /tmp/gh-comment.md, which concurrent mach6 sessions on the same machine would clobber, cross-posting one session's body to another's PR/issue.These rules apply in both implement and fix modes, even if you never load the mach6-push or mach6-review skills:
feature-dev is optional and is most useful for high-volume, repetitive, mechanically scoped grunt work after you have settled the rules—for example, applying a content-dependent transformation across dozens of files. Ordinary reading and writing alone is not a reason to delegate.mach6-review. After implementation and direct verification, do not invoke mach6-review and do not begin a review cycle. Use suggest_next to offer /skill:mach6-push, then stop. After the push is complete, the user decides whether to explicitly invoke review.Extract:
1,2,3)ci flag (optional — fix CI failures instead of review findings)If only a PR number is given → implement mode.
If finding numbers or ci → fix mode.
gh pr checkout <pr-number>
git pull
Read ALL PR comments and the PR body to get complete context:
gh pr view <pr-number> --json title,body,comments
Find the plan comment (contains <!-- mach6-plan --> marker) from the comments. If no plan comment exists, tell the user and suggest running /skill:mach6-plan first.
Also read any progress updates, prior review findings, assessments, and discussion — all of this context informs implementation.
Create tasks based on the plan's deliverables/features. Example:
tasks_update([
{ id: "read", title: "Read plan and codebase", status: "in_progress" },
{ id: "feature-1", title: "Implement feature 1", status: "pending" },
{ id: "feature-2", title: "Implement feature 2", status: "pending" },
{ id: "test", title: "Add/update tests", status: "pending" },
{ id: "verify", title: "Build and verify", status: "pending" }
])
Read all files mentioned in the plan. Understand the existing code before making changes.
For each deliverable, first decide the implementation yourself: map it to the approved plan, inspect the relevant code, settle the design and decision rules, identify exact files and patterns, and define the required tests and verification.
Implement directly unless delegation has a concrete context-preservation benefit. Direct parent implementation is generally acceptable regardless of plan size. Use the pre-existing feature-dev agent only for execution that is sufficiently high-volume, repetitive, and mechanically specified to justify delegation; do not delegate merely because a task involves reading and writing code.
When delegating, provide a complete execution plan containing:
A feature-dev agent should be able to execute without inventing design decisions. If direction is ambiguous, the parent must resolve it before delegation. Do not override the agent's model unless there is a specific reason.
Test coverage is part of the deliverable, not an afterthought. Implement all planned tests with the behavior they cover. If the target package lacks test infrastructure, add it.
Parallelism: Parallelize only independent, mechanically specified tasks that do not overlap files or depend on unresolved work. Otherwise implement directly or sequence the work.
Update task tracking as each deliverable completes.
After all feature-dev agents complete:
Stop at the accountability checkpoint. Do not invoke mach6-review or begin a formal review cycle. Explain that the implementation must be committed, pushed, and recorded before the user decides whether to review. Use suggest_next to offer /skill:mach6-push, then end the turn.
ci)tasks_update([
{ id: "gather", title: "Gather findings to fix", status: "in_progress" },
{ id: "fix", title: "Implement fixes", status: "pending" },
{ id: "verify", title: "Verify fixes", status: "pending" }
])
ci was specified:gh pr checks <pr-number>
gh run view <run-id> --log-failed
Note: gh pr checks returns exit code 8 while checks are still pending — this is expected, not a failure. Wait and re-run if needed.
Read the failed CI logs and identify issues. Extract test failures, stack traces, error messages. If all checks pass, report this and stop.
Read ALL PR comments to get full context:
gh pr view <pr-number> --json title,body,comments
Find the review (<!-- mach6-review -->) and assessment (<!-- mach6-assessment -->) comments, then extract the specific findings to fix. Prior progress comments and discussion may also provide useful context.
ci:Read ALL PR comments, find review/assessment comments, present genuine findings, and ask which to fix.
If more than batch size, fix first batch and tell user to re-run.
For each authorized finding, the parent must verify the assessment against the current code, decide the exact fix, identify affected files and patterns, and define the regression tests and validation before editing or delegating.
Implement fixes directly by default. Use the pre-existing feature-dev agent only when a fix has high-volume, repetitive, mechanically settled execution that benefits from context isolation. Direct parent implementation is acceptable for simple and complex fixes alike.
When delegating, provide:
Do not ask feature-dev to determine the design. Resolve ambiguity before delegation, and do not override its model unless there is a specific reason.
Parallelism: Parallelize only independent, mechanically specified fixes that do not overlap files. Otherwise implement directly or sequence them.
Defer only review-surfaced items that are factually valid but outside the authoritative PR scope. User-approved requirements are in scope. Update task tracking per finding.
After all feature-dev agents complete:
Stop at the accountability checkpoint. Do not invoke mach6-review or begin a formal re-review cycle. Explain that the fixes must be committed, pushed, and recorded before the user decides whether to re-review. Use suggest_next to offer /skill:mach6-push, then end the turn.