원클릭으로
cwf-new-task
Create categorised implementation guide (v2.0 - hierarchical)
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Create categorised implementation guide (v2.0 - hierarchical)
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Create sub-implementation task within existing task (v2.0)
Guide user through planning phase
Guide user through implementation execution phase
Guide user through maintenance phase
Guide user through retrospective phase
Guide user through rollout phase
| name | cwf-new-task |
| description | Create categorised implementation guide (v2.0 - hierarchical) |
| user-invocable | true |
| allowed-tools | ["Read","Write","Bash"] |
This step: Create a new task directory with template files and git branch. Not this step: Planning, design, or implementation — those are separate workflow phases.
Task arguments: {arguments}
First: Run .cwf/scripts/command-helpers/context-manager location using the Bash tool to confirm git root.
Parse arguments: <num> [<type>] "description"
Disambiguation rule: if a token between <num> and the quoted
description matches a value in cwf-project.json:supported-task-types,
treat it as <type> and proceed with the existing 3-arg flow (no
inference). Otherwise <type> is treated as omitted and Type Inference
runs. To use a bare type-name word as the description, provide <type>
explicitly.
Examples:
/cwf-new-task 1 feature "Add user authentication" (explicit type)/cwf-new-task 1.1 chore "Setup database schema" (explicit type)/cwf-new-task 2 "Migrate Bash helpers to Perl" (type inferred)<type> is omitted)When <type> is not supplied, infer it before validation:
.cwf/docs/skills/task-type-inference.md using the Read tool.S, always including the
always-required steps the rubric names.T listed in the rubric's Canonical Step
Sets table, compute the symmetric-difference distance
|S Δ C_T| between S and the canonical step set C_T of T.0, use it silently as the
resolved <type> and continue to step 1 of the normal flow.
Otherwise show the rubric's Ambiguity Prompt Format with the top
candidates, let the user pick, and use the picked type. Cancel
(no directory, no branch) on any non-numeric or out-of-range
response.If the rubric file is unreadable, or the minimum distance across all
candidate types is >= 3, refuse the 2-arg form and tell the user to
rerun with explicit <type>. No directory creation, no branch
checkout in either failure path.
num is valid decimal notation (numbers and dots only)type is in supported-task-types from cwf-project.json
(either supplied explicitly or resolved by Type Inference above)description is provided--description raw to the script; the script slugifies (lowercase, spaces to hyphens, remove special chars) and rejects overlong descriptions (>50 chars) with [CWF] ERROR:. Do not pre-truncate.implementation-guide/<num>-<type>-<slug>/implementation-guide/48-feature-parent/48.1-bugfix-slug/)Verify you are on the intended base branch (typically the trunk) before running — the
recorded Baseline Commit is whatever HEAD points to at this moment, and the
security-review-changeset helper uses it as the anchor for diffing. Detached HEAD or
branching off another task's branch is allowed but the user owns that decision.
.cwf/scripts/command-helpers/task-workflow create \
--task-type="{type}" --destination="{task-dir}" \
--task-num="{num}" --description="{description}"
Creates directory automatically, copies templates, substitutes variables (including
{{baselineCommit}} in a-task-plan.md, resolved to current HEAD by the helper),
sets permissions. To pin a specific non-HEAD baseline, pass
--baseline-commit=<40-char-sha> explicitly.
git checkout -b "<type>/<num>-<slug>"
Create this task's per-project scratch parent and leaf so one-off scripts and
captured output have a home from the first phase. The CWF PATHS block injected
into context each turn already carries the scratch parent for this repo — do
not derive it. Append task-<num> as a literal and create it, substituting the
injected scratch path and this task's <num> into an all-literal command
(no $/substitution, so it does not prompt):
mkdir -m 0700 -p <injected-scratch-parent>/task-<num>
Non-fatal: a failed mkdir must NOT block directory or branch creation
(task creation does not need scratch). On failure, do not print the path as
if it exists — say it will be created on first use. Consumers re-create on
demand if a reaper later removes it.
/cwf-task-plan <num>