一键导入
coder-task
Use when given a GitHub issue URL to autonomously implement — forks the repo, writes a spec if needed, decomposes into tasks, implements, and opens a PR
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when given a GitHub issue URL to autonomously implement — forks the repo, writes a spec if needed, decomposes into tasks, implements, and opens a PR
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Audit repository test suites for low-value, brittle, duplicative, or AI-generated tests. Use when Codex needs to review tests across a single project or monorepo, identify tests to delete or merge, upgrade weak tests, consolidate repeated setup into helpers, or produce a precise test quality cleanup plan.
Use when you have a plan directory from decomposing-specs and need to execute it — loads phases on demand, dispatches phase-elaborator for sketched phases, runs implementers with size-scaled phase reviews, and validates the full spec at the end
Use when you have a design spec from writing-specs and need to break it into an implementable, phased task plan with behavior-focused verification before writing any code
Use when given a GitHub issue URL to autonomously implement — forks the repo, writes a spec if needed, decomposes into tasks, implements, and opens a PR
Use when a GitHub issue receives new comments during autonomous work — decides whether to update the spec and re-decompose, or just make the change inline
Use when configuring a repository to run with Code Factory — creates `.code-factory/config.toml`, sets up a devcontainer if missing, and validates that build/lint/test work inside it. Triggers on "setup code factory", "configure code factory", "onboard this repo to code factory".
| name | coder-task |
| description | Use when given a GitHub issue URL to autonomously implement — forks the repo, writes a spec if needed, decomposes into tasks, implements, and opens a PR |
Autonomous end-to-end workflow: GitHub issue → spec → multi-file plan → implementation → PR on a fork.
The following must be provided or derived from the issue URL:
ISSUE_URL — full GitHub issue URLREPO_URL — repository URLREPO_OWNER — upstream repo ownerREPO_NAME — upstream repo nameISSUE_NUMBER — issue numberState-machine diagram: flow.md. Open it once for orientation if you need it.
gh issue view ${ISSUE_URL} --json title,body,comments
Extract: problem description, reproduction steps, acceptance criteria, any existing spec content, and user comments that add context.
gh repo fork ${REPO_URL} --clone=false
git remote add fork https://github.com/$(gh api user --jq .login)/${REPO_NAME}.git
git checkout -b fix/issue-${ISSUE_NUMBER}
Skip the fork if one already exists. Skip adding the remote if it's already configured.
Dispatch one or two Explore subagents to confirm what's needed for classifying the issue and writing the spec — nothing more. The decomposer agent in Step 6 will do its own deep codebase exploration in its own context; replicating it here just bloats the main context.
Scope:
Do NOT explore:
standards.md)After exploring the codebase, determine whether this issue describes a bug or a feature by analyzing the issue content.
Indicators of a bug:
Indicators of a feature:
Do NOT rely on issue labels — read the issue body and comments to make this determination.
First, check whether the issue body already contains a spec matching the writing-specs format (EARS requirements, system design, testing & validation sections). If so, post a short comment and use it directly:
gh issue comment ${ISSUE_URL} --body "Working on implementing the spec from this issue."
If the issue is a bug: Use the bugfix skill to produce a 3-section spec (Current Behavior / Expected Behavior / Unchanged Behavior). Write it to docs/plans/YYYY-MM-DD-issue-${ISSUE_NUMBER}-design.md.
If the issue is a feature: Write a spec using the writing-specs format. Write it to docs/plans/YYYY-MM-DD-issue-${ISSUE_NUMBER}-design.md.
In both cases, post the spec as a comment on the issue:
gh issue comment ${ISSUE_URL} --body "<spec in markdown>"
Clarification markers: If the spec contains [NEEDS CLARIFICATION] markers, post them as a separate issue comment listing each question and the assumed answer. Then proceed immediately — do not wait for a response.
gh issue comment ${ISSUE_URL} --body "## Open Questions
While writing the spec, I made the following assumptions. Please correct me if any are wrong:
1. [question] — I assumed [answer]
2. [question] — I assumed [answer]
I'm proceeding with these assumptions. If you respond with corrections, I'll update the spec and adjust the implementation."
Do not wait for user approval — proceed to decomposition. If the user later comments with corrections, handle them as described in "Receiving Comments" below.
Use the decomposing-specs skill to break the spec into a multi-file phased task plan. Output: directory docs/plans/YYYY-MM-DD-issue-${ISSUE_NUMBER}/ containing plan.md, standards.md, and phases/NN-<name>.md files (Phase 1 + Verification fully elaborated; intermediate phases as sketches that the executor elaborates just-in-time).
Use the executing-plans skill to implement the plan. Pass it the plan directory path (docs/plans/YYYY-MM-DD-issue-${ISSUE_NUMBER}/), not individual files. This handles:
plan.md + standards.md at startup; phase files load one at a time)phase-elaborator for sketched phases (so Phase N is fleshed out against the post-Phase-N-1 codebase)Once execution completes and final validation passes:
git push fork fix/issue-${ISSUE_NUMBER}
gh pr create \
--repo ${REPO_OWNER}/${REPO_NAME} \
--head $(gh api user --jq .login):fix/issue-${ISSUE_NUMBER} \
--draft \
--title "<concise title>" \
--body "Resolves ${ISSUE_URL}
<description of changes>"
The PR body must include Resolves ${ISSUE_URL} to link the issue.
If the issue cannot be resolved after executing-plans exhausts its remediation cycles, do not create a PR. Instead, comment on the issue explaining what was attempted and where it failed:
gh issue comment ${ISSUE_URL} --body "<explanation of what was tried and why it failed>"
The user may interrupt with comments adding requirements or clarifications. When this happens:
decomposing-specs — the decomposer rewrites plan.md, standards.md, and the phase files in place. Phases already executed stay on disk; the new plan should preserve their structure where the requirements still hold.executing-plans from the earliest affected phase. Sketched phases automatically pick up the new requirements when the phase-elaborator runs at their boundary — no manual rework for sketches. Don't redo work whose requirements are unchanged.This workflow never blocks on human input. Three places where questions arise, all handled the same way — post to the GitHub issue and continue:
NEEDS_HUMAN verdict (from auto-debugger during executing-plans) → post root-cause analysis to issue, treat as BLOCK_TASK, continue with unblocked workIn all three cases, the PR description (or issue comment if no PR) should include a "Needs Human Input" section listing each unresolved question or blocker with the context needed to make a decision.
Resolves ${ISSUE_URL}