用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ActiveMemory/ctx --skill ctx-task-add命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | ctx-task-add |
| description | Add a task. Use when follow-up work is identified or when breaking down complex work into subtasks. |
| allowed-tools | Bash(ctx:*) |
Add a task to TASKS.md.
Three questions: if any answer is "no", don't record:
Tasks should describe what to do and why, not just a topic.
If the user provides only a topic, ask:
ctx task add "Task description" \
--session-id SESSION --branch BRANCH --commit HASH \
[--priority high|medium|low] [--section "Phase N"]
Provenance flags (--session-id, --branch, --commit) are required.
Get these values from the hook-relayed provenance line in your context
(e.g., Session: abc12345 | Branch: main @ 68fbc00a).
Prefer this skill over raw ctx task add: the conversational
approach lets you automatically pick up session ID, branch, and commit
from the provenance line already in your context window.
Placement: Without --section, the task is inserted before the
first unchecked task in TASKS.md. Use --section only when you need
a specific section (e.g., --section "Maintenance").
Example: specific and actionable:
ctx task add "Add --cooldown flag to ctx agent to suppress repeated output within a time window. Use tombstone file per session for isolation." \
--session-id abc12345 --branch main --commit 68fbc00a \
--priority medium
Example: with context for why:
ctx task add "Investigate ctx init overwriting user-generated content in context files. Commit a9df9dd wiped 18 decisions from DECISIONS.md. Need guard to prevent reinit from destroying user data." \
--session-id abc12345 --branch main --commit 68fbc00a \
--priority high
Example: scoped subtask:
ctx task add "Add topic-based navigation to blog when post count reaches 15+" \
--session-id abc12345 --branch main --commit 68fbc00a \
--priority low
JSON payload (when content would trip a permissions.deny rule): pass
--json-file <path> instead of the positional content + flags. The
title (plus an optional body, space-joined) becomes the task text;
priority, section, and a provenance envelope map to the flags:
ctx task add --json-file /tmp/task.json # {"title","body","priority","section","provenance"}
Bad examples (too shallow):
ctx task add "Fix bug" # What bug? Where?
ctx task add "Improve performance" # Of what? How?
ctx task add "Authentication" # That's a topic, not a task
# Also bad: missing --session-id, --branch, --commit
This skill records actionable follow-up work. It does not unilaterally promote material from adjacent skills:
Light compression for clarity is allowed; new facts are not.
Before recording, verify:
Confirm the task was added.
Recall project context and present structured readback. Use when the user asks 'do you remember?', at session start, or when context seems lost.
End-of-session context persistence ceremony. Use when wrapping up a session to capture learnings, decisions, conventions, and tasks.
Recall project context and present structured readback. Use when the user asks 'do you remember?', at session start, or when context seems lost.