Skip to content
Skills Library
AI & agents · Conversion & formats

ctx-plan-import

/ctx-plan-import

Import Claude Code plan files into project specs. Use when plan files in ~/.claude/plans/ should become permanent project specs.

Repository
ctx ↗
Licence
Apache-2.0
Last repository change
18.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 18.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Import Claude Code plan files into project specs. Use when plan files in ~/.claude/plans/ should become permanent project specs.

Original author description

Import Claude Code plan files into project specs. Use when plan files in ~/.claude/plans/ should become permanent project specs.

How it works

  1. When to Use
  2. When NOT to Use
  3. Process
  4. Important Notes
Original SKILL.md headings · 100 lines, 466 words
SKILL.md preview
---
name: ctx-plan-import
description: "Import Claude Code plan files into project specs. Use when plan files in ~/.claude/plans/ should become permanent project specs."
allowed-tools: Bash(ls:*), Bash(stat:*), Read, Write
---

Import Claude Code plan files (`~/.claude/plans/*.md`) into the
project's `specs/` directory so they become part of project memory.

## When to Use

- User says "import plans", "save that plan", "keep the plan"
- User wants to preserve a Claude Code plan as a project spec
- After a planning session produced a plan worth keeping
- User asks to review or archive recent plans

## When NOT to Use

- User wants to create a new spec from scratch (use `/ctx-spec`)
- User wants to edit an existing spec directly
- No `~/.claude/plans/` directory or it's empty

## Process

### 1. Discover Plans

List plan files with modification dates:

```bash
ls -lt ~/.claude/plans/*.md 2>/dev/null
```

If no files are found, tell the user and stop.

### 2. Filter by Arguments

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`:**
```bash
find ~/.claude/plans/ -name '*.md' -newermt "$(date +%Y-%m-%d)" -type f
```

**Filtering with `--since`:**
```bash
find ~/.claude/plans/ -name '*.md' -newermt "YYYY-MM-DD" -type f
```

### 3. Present for Selection (Interactive Mode)

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").

### 4. Import Each Selected Plan

For each selected plan:

1. **Read the file** to extract the H1 heading (first `# ` line)
2. **Slugify the heading** for the filename:
   - Lowercase
   - Replace spaces and non-alphanumeric characters with hyphens
   - Collapse multiple hyphens
   - Trim leading/trailing hyphens
   - Example: `Add Authentication Middleware` → `add-authentication-middleware`
3. **Check for conflicts**: if `specs/{slug}.md` already exists, ask
   the user whether to overwrite or pick a different name
4. **Copy the file** to `specs/{slug}.md`
5. **Optionally add a task**: ask the user if they want a task in
   TASKS.md referencing the imported spec (use `/ctx-task-add` if yes)

### 5. Report

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
```

## Important Notes

- Plan filenames in `~/.claude/plans/` are typically UUIDs or hashes:
  always use the H1 heading for the spec filename, not the original name
- If a plan has no H1 heading, use the original filename (minus extension)
  as the slug
- Do not modify the original plan files: this is a copy, not a move
- The `specs/` directory must exist (it should already be present in
  the project root)

Versions

The database has no other skills named ctx-plan-import.

Database snapshot: 13.11.2026 · package version 1f79d9c23bdc (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90ctx-import-plans
    Import plan files into project specs directory. Use to convert external plans into project-tracked specs.
  • 100ctx-init
    Initialize AGENTS.md + CLAUDE.md + rules/ in a code repo (fresh mode). Triggers on "/ctx-init", "init context", "scaffold AGENTS.md", or when user asks to set up project context in a new repo.
  • 100ctx-implement
    Execute a plan step-by-step with verification. Use when you have a plan document — canonically specs/plans/<milestone>.md from /ctx-task-out — and need disciplined, checkpointed implementation.
  • 100import
    Adopt a project's existing AI config (CLAUDE.md, AGENTS.md, .cursor/rules, and friends) into agnostic-ai specs, then fan it out to every other tool. Use when the project already has config for one AI CLI and should feed the rest.
  • 100claude-md-manager
    Create, audit, and maintain CLAUDE.md documentation files that configure Claude Code for projects. Use this skill when (1) initializing a new project with Claude Code configuration, (2) reviewing or improving existing CLAUDE.md files, (3) organizing project instructions using…
  • 100claude-blog-sources
    Fetch Claude Blog and official Claude Code docs. Use when researching Claude Code capabilities, CLAUDE.md optimization, memory hierarchy, or @import patterns.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.