From ctx
Imports Claude Code plan files from ~/.claude/plans/*.md into project's specs/ directory using slugified H1 headings as filenames. Supports interactive selection, --today, --since, --all filters, conflict checks.
npx claudepluginhub activememory/ctx --plugin ctxThis skill is limited to using the following tools:
Import Claude Code plan files (`~/.claude/plans/*.md`) into the
Imports external plans or PRDs into Plan-Build-Run format. Validates context, detects conflicts with existing architecture, generates PLAN.md.
Imports external plan files into GSD planning system with conflict detection against PROJECT.md decisions before generating validated PLAN.md. Useful when integrating outside plans.
Generates PLAN.md execution plan from SPEC.md, task directory, or existing plan file; creates phases/*.md, KNOWLEDGE.jsonl, artifacts/, and backups.
Share bugs, ideas, or general feedback.
Import Claude Code plan files (~/.claude/plans/*.md) into the
project's specs/ directory so they become part of project memory.
/ctx-spec)~/.claude/plans/ directory or it's emptyList plan files with modification dates:
ls -lt ~/.claude/plans/*.md 2>/dev/null
If no files are found, tell the user and stop.
The user may pass arguments to narrow the selection:
| Argument | Behavior |
|---|---|
--today | Only plans modified today |
--since YYYY-MM-DD | Only plans modified on or after the given date |
--all | Import all plans without prompting |
| (none) | Interactive: present the list and ask the user to pick |
Filtering with --today:
find ~/.claude/plans/ -name '*.md' -newermt "$(date +%Y-%m-%d)" -type f
Filtering with --since:
find ~/.claude/plans/ -name '*.md' -newermt "YYYY-MM-DD" -type f
For each plan file, extract the first H1 heading and show it with the modification date:
1. 2026-02-28 Add authentication middleware
2. 2026-02-27 Refactor database connection pool
3. 2026-02-25 Import plans skill
Ask the user which plans to import (comma-separated numbers, or "all").
For each selected plan:
# line)Add Authentication Middleware → add-authentication-middlewarespecs/{slug}.md already exists, ask
the user whether to overwrite or pick a different namespecs/{slug}.md/ctx-add-task if yes)After importing, summarize what was done:
Imported 2 plan(s):
~/.claude/plans/abc123.md → specs/add-authentication-middleware.md
~/.claude/plans/def456.md → specs/refactor-database-pool.md
~/.claude/plans/ are typically UUIDs or hashes:
always use the H1 heading for the spec filename, not the original namespecs/ directory must exist (it should already be present in
the project root)