Import a CCPM epic into OrgGen

By the OrgGen AI team

With CCPM, a file's path carries the task's identity: you paste each file under its path, and the path is what OrgGen reads. This guide says how to paste an epic, what each field becomes, and what changes identity when CCPM renames its files at sync time.

What OrgGen reads: the files of an epic

OrgGen reads the folder of a CCPM epic (`.claude/epics/<epic>/`): `epic.md`, then one numbered file per task (`001.md`, `002.md`…). Revision used: the automazeio/ccpm repository, revision 7d7e462 (no published release), read on 2026-10-07 — taken from the frontmatter schemas that this repository publishes; the repository itself contains no real epic.

An epic spans SEVERAL files, and the path carries the identity: you paste each file preceded by its path, on a line of its own. Without a path, the batch is refused.

=== FILE: .claude/epics/user-auth/epic.md ===
---
name: user-auth
status: in-progress
---
=== FILE: .claude/epics/user-auth/001.md ===
---
name: Create user table
status: closed
depends_on: []
parallel: true
---
The envelope to paste into `text` (one marker per file)

What each field becomes

In the epicIn OrgGen
`epic.md`a PARENT task `<epic>/epic` — title = `name`, status (backlog → to do, in-progress → in progress, completed → done), body = the Markdown
`001.md`a subtask `<epic>/1` — `name` as the title, status (open → to do, in-progress → in progress, closed → done)
`depends_on: [001, 2]`the task's dependencies: `001`, `1` and `"001"` all designate the same task `<epic>/1`
`parallel: true`the `parallel` label
`github`the task's link, if it is a URL (`(will be set on sync)` is not one)
`conflicts_with`written at the top of the body ("Conflicts with: …") — it has no slot of its own
`## Effort Estimate` → `- Size: M`the task's complexity (XS to XL, in relative human time); `- Hours: N` stays in the body

Identity follows the file name

A task's identity is `<epic>/<number>`, read from the path. CCPM renames `001.md` to `<issue number>.md` at GitHub sync time, and rewrites `depends_on` accordingly: an epic pasted before and after the sync is therefore a DIFFERENT set of identifiers.

The steps, in order

  1. You paste the epic's files into the conversation with your agent, each under its path — the OrgGen chat, or an MCP client that sends an API key.
  2. It calls `import_tasks` with `format: "ccpm-epic"`. By default this is a dry run: the plan is returned (created, updated, skipped, conflicts, errors) and nothing is written.
  3. Your agent is instructed to show you this plan. Read the notes: they list the ignored files and the sizes that were not recognized.
  4. Nothing is written without a second, explicit call, with `dryRun: false` and the same batch. The agent keeps the `importId` that is returned.
  5. If in doubt afterwards: `list_imports` finds the batch, `rollback_import` rolls it back — as a dry run first.

Replay, update, roll back

  • Replaying never duplicates: the replay key is `(source, <epic>/<number>)`. Pasting the same files again creates nothing.
  • With `onExisting: "update"`, statuses that have moved on are rewritten — only if nobody has edited the task in OrgGen since; otherwise it is reported as a conflict and never overwritten.
  • Rolling back a batch deletes what it created and keeps what a human edited. The updates it made are not restored.
  • A finished task keeps its completion date when the export carries one — an epic's files carry none: the closed task takes the import date.

What does not carry over

  • The `…-analysis.md` files, `github-mapping.md` and the `updates/` folder: ignored, and named in the plan's notes.
  • The estimate in hours (`Hours`): with no numeric slot, it stays in the task's body; only the size (`Size`) becomes a complexity.
  • `conflicts_with`: written at the top of the task's body, it is not a relationship between tasks.

Moving from another tool? See how to switch to OrgGen

Try it on your own case

Describe your situation in one sentence — OrgGen builds the diagram and runs the numbers.

Try it on your own case

← All guides