一键导入
task-context
Compose a rich per-task context file (specs/<branch>/task-context/<TID>-<slug>.md) before each implementer dispatch. Opt-in; default off.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Compose a rich per-task context file (specs/<branch>/task-context/<TID>-<slug>.md) before each implementer dispatch. Opt-in; default off.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Check for drift between spec.md, plan.md, tasks.md, and the actual code. Reports the gaps; does not fix them.
Run a category-specific quality pass (security / performance / accessibility / i18n / privacy / observability) against the current plan and code.
Surface [NEEDS CLARIFICATION] markers in spec.md (or plan.md) to the user, one at a time, and edit the file with the answers.
Bootstrap or amend constitution.md (framework, preset, or project). Inspects existing project context first; enforces the amendment process: issue first, one article per PR, reviewer non-author.
Print the pipeline quick-reference — a one-screen summary of every /aia:* command and its hand-offs, prefixed by a state-aware "Próximo passo" line.
Execute an approved plan + tasks list by dispatching one fresh subagent per task and applying two-stage review (spec compliance, then code quality) before moving on.
| name | task-context |
| description | Compose a rich per-task context file (specs/<branch>/task-context/<TID>-<slug>.md) before each implementer dispatch. Opt-in; default off. |
| metadata | {"aiadev":{"version":"0.1.0","inputs":[{"type":"text","description":"Task ID (e.g. T003) the implementer is about to pick up."}],"outputs":[{"type":"file","path":"specs/<branch>/task-context/<TID>-<slug>.md","description":"Self-contained per-task brief consumed by the implementer subagent."}],"requires":["templates/task-context-template.md","aiadev.task_context"],"handoffs":["implement"]}} |
Produce a per-task context file that gives the implementer subagent everything it needs in one self-contained artifact: the spec scenarios this task exercises, the matching plan block, an excerpt of every file to modify, the TDD checklist, and a pointer back to the previous task-context for continuity.
Announce at start: "Using the task-context skill. I will compose the per-task context file before the next implementer dispatch."
task_context: true in its preset.yaml, ORaiadev preflight implement --task-context.When neither flag is set, the implement skill uses its inline prompt
(default behavior, byte-for-byte unchanged from before this skill
existed). The task-context skill never runs implicitly.
Read the task ID from the orchestrator (e.g. T003).
Render the file via the helper:
python -c "from pathlib import Path; from aiadev.task_context import compose; print(compose(Path.cwd(), 'T003'))"
The helper handles spec/plan/tasks slicing, file excerpts (40-line
cap on modify: paths, no excerpt for create: / test: paths),
the static TDD checklist, and the previous-task pointer.
Optionally check staleness before reuse:
python -c "from pathlib import Path; from aiadev.task_context import is_stale; print(is_stale(Path('specs/0001-x/task-context/T003-foo.md')))"
Recompose if the call returns True — a referenced file changed
after the brief was generated.
Hand the resulting path to the implementer subagent prompt as the primary context artifact.
aiadev.task_context via python -c is a
tooling invocation, not a skill invocation.specs/<branch>/task-context/ are
regenerated each loop. Do not hand-edit them; changes are lost on
the next compose.newest_modification callable in
is_stale(...).The implement skill consumes the rendered file as the implementer's
primary context. See skills/implement/SKILL.md for the wiring
details (opt-in via preset.yaml task_context: true or the
--task-context preflight flag).