Ctx task add

From ActiveMemory/ctx · View interactive version

Ctx task add is an AI agent skill from the GitHub repository ActiveMemory/ctx. Add a task. Use when follow-up work is identified or when breaking down complex work into subtasks.

How to use this skill

Skill file

Add a task to TASKS.md.

Before Recording

Three questions: if any answer is "no", don't record:

  1. "Is this actionable?" → If it's a vague wish, clarify first
  2. "Would someone else know what to do?" → If not, add more detail
  3. "Is this tracked elsewhere?" → If yes, don't duplicate

Tasks should describe what to do and why, not just a topic.

When to Use

When NOT to Use

Gathering Information

If the user provides only a topic, ask:

  1. "What specifically needs to happen?" → Scope the work
  2. "Why does this matter?" → Capture motivation
  3. "Is this high, medium, or low priority?" → Set priority

Execution

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

Authority boundary (vs other skills)

This skill records actionable follow-up work. It does not

unilaterally promote material from adjacent skills:

user hasn't agreed it's worth tracking, ask before recording.

Speculative TODOs clutter the file and degrade everyone's trust

in it.

by an open task (even loosely), reference the existing task

instead of adding a near-duplicate. Drift accumulates fast here.

"We should write this up" is a different ask from "track this

work item"; route to the correct skill.

Light compression for clarity is allowed; new facts are not.

Quality Checklist

Before recording, verify:

Confirm the task was added.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.