一键导入
work
Run only on explicit invocation. Orchestrates end-to-end implementation, scales from direct work to subagents, and finishes with code-polish.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run only on explicit invocation. Orchestrates end-to-end implementation, scales from direct work to subagents, and finishes with code-polish.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use only when explicitly asked to archive/prune/compact/roll over checked tasks from TODO.md into `.ai/todos/TODO_UNTIL_YYYY_MM_DD.md`, leaving unchecked tasks.
Use only when explicitly invoked for Git commit workflows: stage intended changes, craft Conventional Prefix Format messages by default, Natural Language messages with --natural or configured repos, commit, and optionally --all, --staged, --deep, --close, or --push.
Use for dependency updates: update/bump deps, npm/pnpm/yarn/bun package upgrades, outdated checks, package.json updates, or taze.
Use for release versioning: bump/cut/tag a release, bump version, create a release, changelog updates, or version tagging.
Use for GitHub PR/issue/discussion workflows: create/update PRs or issues, post comments, start discussions; triggers include create/open PR, file/update issue, yeet.
Use to polish recently changed code: simplify for readability/maintainability and run a risk-profiled review that autonomously applies fixes. Default runs both passes; pass --simplify or --review for one. Covers code/PR review, audits, bug/security checks, reviewing diffs or changes, cleanup, refactoring, and reducing complexity.
| argument-hint | <task> |
| disable-model-invocation | true |
| name | work |
| user-invocable | true |
| description | Run only on explicit invocation. Orchestrates end-to-end implementation, scales from direct work to subagents, and finishes with code-polish. |
Orchestrate end-to-end task implementation: understand the task, assess complexity, implement directly or distribute across a team, then polish the result.
Read the task description from $ARGUMENTS.
$ARGUMENTS is empty, ask the user for a task description and stop.Classify the task as simple or complex using these heuristics:
| Signal | Simple | Complex |
|---|---|---|
| File count | 1-3 files | 4+ files |
| Module span | Single module or package | Cross-module or cross-package |
| Dependency chain | No new dependencies | New packages or service integrations |
| Risk surface | Low (UI, docs, config) | High (auth, payments, data, infra) |
| Parallelism | Sequential steps only | Independent subtasks benefit from concurrency |
A task is complex when 3 or more signals fall in the complex column. When in doubt, prefer the simple path — team overhead is only justified when parallelism provides a real speedup.
Execute the task directly without spawning subagents.
Distribute work across a team of subagents.
Break the task into independent subtasks. Each subtask should:
Avoid over-decomposition. If subtasks cannot run in parallel, prefer the simple path.
Create a team with a name derived from the task (e.g., "add-auth", "refactor-api"). Create a task for each subtask. Set up dependencies when ordering matters.
Spawn implementation agents as teammates. Assign each agent one or more tasks.
Recommended team sizing:
Monitor progress. As agents complete tasks:
After all tasks complete:
Invoke the code-polish skill to simplify and review all session-modified files. If the harness cannot invoke skills directly (e.g., Codex), read ../code-polish/SKILL.md — sibling skill directory relative to this file — and follow its instructions inline.
Wait for completion. If it reports residual risks or stop conditions, relay them to the user.
This step is mandatory — always run it, even if the implementation seems clean.
| Error | Response |
|---|---|
Empty $ARGUMENTS | Ask for a task description and stop |
| Verification failures after impl | Attempt to fix; if unfixable, report to user before polishing |
| Team agent fails or times out | Reclaim the task and complete it directly |
code-polish reports stop condition | Relay to user with context |
Stop and ask for direction when: