Ctx next

From ActiveMemory/ctx · View interactive version

Ctx next is an AI agent skill from the GitHub repository ActiveMemory/ctx. Suggest what to work on next. Use when starting a session, finishing a task, or when unsure what to prioritize.

How to use this skill

Skill file

Analyze current tasks and recent session activity, then suggest

1-3 concrete next actions with rationale.

When to Use

When NOT to Use

Usage Examples

/ctx-next
/ctx-next (just finished the auth refactor)

Process

Do all of this silently: do not narrate the steps:

  1. Read TASKS.md to get the full task list with statuses,

priorities, and phases

  1. Check recent sessions to understand what was just worked

on and avoid suggesting already-completed work:

```bash

ctx journal source --limit 3

```

  1. Read the most recent session file (if any) to understand

what was accomplished and what follow-up items were noted

  1. Analyze and rank tasks using the priority logic below
  2. Present 1-3 recommendations in the output format below

Priority Logic

Rank candidate tasks using these criteria (in order):

  1. Explicit priority: #priority:high > #priority:medium

> #priority:low > untagged

  1. Unblocked: tasks not tagged #blocked or listed under a

"Blocked" section

  1. In-progress first: #in-progress tasks should be resumed

before starting new ones (finishing > starting)

  1. Momentum: prefer tasks related to recent session work

(continuing a thread is cheaper than context-switching)

  1. Phase order: earlier phases before later phases (Phase 0

before Phase 1, etc.) unless priority overrides

  1. Quick wins: if two tasks have equal priority, prefer the

one that seems smaller/faster (builds momentum)

Skip these tasks:

(user likely wants variety or the session ended because it

was done)

Output Format

Present your recommendations like this:

Recommended Next

1. [Task title or summary] #priority:X

[1-2 sentence rationale: why this, why now]

2. [Task title or summary] #priority:X

[1-2 sentence rationale]

3. [Task title or summary] *(optional: only if genuinely

useful)*

[1-2 sentence rationale]


*Based on N pending tasks across M phases. Last session:

[topic] ([date]).*

Rules for recommendations:

"work on hooks"

just what it is. Connect to recent work, priority, or

dependencies

recommendation #1 (don't abandon unfinished work)

Examples

Good Output

### Recommended Next

1. Fix block-non-path-ctx hook #priority:high

> Still open from yesterday's session. The hook is too

> aggressive: it blocks git -C path commands that don't

> invoke ctx. Quick fix, clears a blocker.

2. Add Context.File(name) method #priority:high

> Eliminates 10+ linear scan boilerplate instances across

> 5 packages. High impact, low effort: good consolidation

> target.

3. Topics system (T1.1) #priority:medium

> Journal site's most impactful remaining feature. Metadata

> is already in place from the enrichment work.

---

*Based on 24 pending tasks across 3 phases. Last session:

doc-drift-cleanup (2026-02-11).*

Bad Output

"You have many tasks. Here are some options:

- Do some stuff with hooks

- Maybe work on tests

- There's also some docs to write"

(Too vague, no priorities, no rationale, no connection to

context.)

Quality Checklist

Before presenting recommendations, verify:

completed work

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.