بنقرة واحدة
task-add
Create a structured, execution-ready task file in wiki/work/tasks/
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Create a structured, execution-ready task file in wiki/work/tasks/
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | task-add |
| description | Create a structured, execution-ready task file in wiki/work/tasks/ |
| category | planning |
| model | claude-sonnet-4-6 |
| argument-hint | <task description> [--decision DEC-NNNN#DM] [--roadmap ROADMAP-NNN] |
| disable-model-invocation | false |
| user-invocable | true |
Always obey .docs/guides/mcp-tools.md. Read it now if not already in context.
Run /primer first if you have not already this session.
$ARGUMENTS
Instructions:
Extract the core task objective, scope, and any specific requirements from $ARGUMENTS.
$ARGUMENTS contains --decision or a DEC- token)Detect a decision reference in any of these forms:
DEC-NNNN#DM (e.g. DEC-0007#D2) — specific decisionNNNN#DM (e.g. 0007#D2) — specific decision--decision DEC-NNNN#DM or --decision NNNN#DM — flag formDEC-NNNN (no #DM) — auto-detect first accepted decision without a taskStrip the decision token and any --decision flag from $ARGUMENTS to get the clean task description.
Locate the decision file: use mcp__serena__find_file to find NNNN-*.md in wiki/work/decisions/.
If no #DM was given (auto-detect): walk ## D1., ## D2., … blocks in order; find the first where status: accepted and the ### Links section has no Source task(s): line. If every accepted decision already has a task reference, STOP and tell the user. If no accepted decisions exist, STOP and tell the user to run /decision-finalize first.
Refuse if the resolved decision is not accepted: STOP and tell the user to run /decision-finalize <file>#DM first.
Store (decision_file_path, decision_id, decision_anchor) for later steps.
If no decision reference: skip this step entirely.
$ARGUMENTS contains --roadmap or a ROADMAP- token)Detect:
ROADMAP-NNN — bare token--roadmap ROADMAP-NNN or --roadmap NNN — flag formStrip the roadmap token from $ARGUMENTS.
Locate: mcp__serena__find_file for NNN-*.md in wiki/work/roadmaps/. If not found, STOP and report.
Confirm the file has status: active in its frontmatter. If status: done, warn the user and ask whether to proceed.
Store (roadmap_file_path, roadmap_number) for Step 9.
If no roadmap reference: skip this step entirely.
Scan wiki/work/tasks/ using mcp__serena__list_dir. Collect every TASK-NNN prefix from filenames. Take max + 1, zero-pad to 3 digits. The first task is TASK-001.
Do not look in completed/ or trashed/ subdirectories — files never move; all tasks live in wiki/work/tasks/ regardless of status.
This number is a preview for planning; re-verify immediately before writing (Step 7a).
Review active tasks by listing wiki/work/tasks/ and reading the index at wiki/work/tasks/index.md. For each active task, determine whether the new task:
Present a compact table and confirm with the user via AskUserQuestion before proceeding.
Investigate relevant code via Serena, consult Context7 for library docs if needed, use Brave Search for best practices. If multiple valid approaches exist, present a comparison and ask via AskUserQuestion before committing.
Before writing, present:
Confirm with the user via AskUserQuestion.
Re-run the scan from Step 4. If the number planned in Step 7 is now taken, silently bump to the new next-available number. Never call Write before completing this re-scan.
Create wiki/work/tasks/TASK-NNN-slug.md using the Write tool.
Frontmatter (required):
---
id: TASK-NNN
title: "<task title>"
status: todo
created: YYYY-MM-DD
updated: YYYY-MM-DD
depends_on: []
blocks: []
parallel_safe_with: []
uat: ""
tags: []
---
Populate depends_on, blocks, and parallel_safe_with from Step 5 as lists of TASK-NNN IDs (empty list if none).
Body structure:
# TASK-NNN — Task Title
implements::[[DEC-NNNN#DM]] ← only when a decision reference was provided
## Objective
<one paragraph describing what this task achieves>
## Approach
<design decisions, trade-offs, chosen solution>
## Steps
### 1. Section Name <!-- agent: general-purpose -->
- [ ] Step detail
- Sub-detail: specific file paths, function names, etc.
### 2. Next Section <!-- agent: general-purpose -->
- [ ] Step detail
The task file IS the plan. /tackle executes steps verbatim. Every step must include specific file paths, function/component names, and enough implementation detail that an agent can execute without ambiguity.
Agent type annotations: valid types are general-purpose, Explore, Plan.
Decision link (only when Step 2 found an accepted decision reference): Insert implements::[[DEC-NNNN#DM]] as a typed link on the line immediately after the H1, before ## Objective.
Append to wiki/work/tasks/index.md:
- [TASK-NNN — Title](TASK-NNN-slug.md) — one-line objective · todo
If the file does not exist, create it with a # Tasks heading and the list entry. Insert in numeric order.
In the decision's ### Links section, add or append a Source task(s): line:
- Source task(s): [[TASK-NNN]] — **WIP** (added YYYY-MM-DD)
If no ### Links section exists, create one before the closing --- separator of that decision block. Use Read then Edit — never shell redirection.
Read the roadmap file. Identify the last ## Phase N: section (or any checklist section). Append a new - [ ] line:
- [ ] [[TASK-NNN: <task title>]]
Update the roadmap's updated: frontmatter field to today's date. Use Read then Edit.
Append:
## [YYYY-MM-DD] task | TASK-NNN <task title>
Created task TASK-NNN: <one sentence summarising the objective>.
Report:
wiki/work/tasks/TASK-NNN-slug.mdTASK-NNNtodoTo implement: /tackle wiki/work/tasks/TASK-NNN-slug.md
To generate tests: /uat-generate TASK-NNN
If linked to a roadmap, mention which roadmap was updated and suggest:
To see what's next: /roadmap-next wiki/work/roadmaps/NNN-slug.md
File a new bug report in wiki/work/bugs/ with required-on-report fields and append it to the bug index
Audit all project functionality at a high level and produce a 2-3 minute demo run book plus a Marp slideshow
Orchestrator for parallel agent teams. When invoked with a roadmap file path, drives every item through the full tackle → uat-generate → uat-auto pipeline until complete. When invoked with a task file path, runs that pipeline once and stops.
Refresh codebase context via Serena memories
Append a new item (task link or inline) to an existing roadmap in wiki/work/roadmaps/, optionally under a named phase
Create a structured execution-plan roadmap in wiki/work/roadmaps/ via short Socratic Q&A — captures goal, phases, and the initial hybrid (task-link OR inline) checklist