Importar un backlog de Spec Kit en OrgGen
Spec Kit regenera su archivo de tareas: la identidad de una tarea depende por tanto de su funcionalidad Y de su número, y un número que vuelve con otro título no sobrescribe nada. Esta guía dice qué lee OrgGen de la versión 1.1.0, qué devuelve el plan y qué queda a mano.
Esta guía solo está disponible en inglés. El título y el resumen de arriba sí están traducidos.
What OrgGen reads: a feature's `tasks.md`
OrgGen reads the `tasks.md` file that Spec Kit generates for a feature, as is — Spec Kit v1.1.0 (github/spec-kit repository, revision e1fa857, read on 2026-10-03). A task line has the form Spec Kit documents: a checkbox, an identifier, optional markers, a description.
- [ ] T006 [P] [US1] Create Album model in src/models/album.tsYour agent calls `import_tasks` with `format: "speckit-tasks"` and the file contents in `text`. For several features, or if the file does not carry the line "Design documents from /specs/<NNN-feature>/", prefix each file with `=== FILE: specs/<NNN-feature>/tasks.md ===`.
What each element becomes
| In `tasks.md` | In OrgGen |
|---|---|
| `- [ ] T001 …` / `- [x] T001 …` | a to-do task / a done task |
| `[P]` | the `parallel` label |
| the phase title ("Phase 1: Setup") | the `phase:<name>` label |
| `## … User Story 1 – Title (Priority: P1)` | a PARENT task `<feature>:US1` — its goal and independent test in the body, the priority as a label; its `[US1]` tasks are its subtasks |
| a user story's status | DERIVED from its tasks (all done = done, one started = in progress), recalculated on every replay in update mode |
| the feature | not a task: an identity prefix and the `feature:<folder>` label; the block that carries it is the one you designate (`cellRef` or `cellId`) |
Identity: `T001` is unique only per feature
Spec Kit regenerates its file: one feature's number `T001` is not another's, and it can change when the file is regenerated. An imported task's identity is therefore `<feature>:T001`. The feature folder comes from the path you supply, otherwise from the "Design documents from …" line; with neither, the file is refused rather than guessed.
- A number that comes back with a DIFFERENT title overwrites nothing: it comes out as a conflict (`title-changed`) and the existing task stays as it is.
- A task inserted in the middle shifts everything after it: a new number whose title matches an existing task under another number comes out as a conflict (`renumbered`) instead of being created twice.
- After a renumbering, nothing that shifted is written: roll back the batch (`rollback_import`, as a dry run first) and re-import the file, or import it under another `source`.
The steps, in order
- You paste the `tasks.md` to your agent — OrgGen's chat, or an MCP client that sends an API key.
- It calls `import_tasks` with `format: "speckit-tasks"`. By default this is a dry run: the plan is returned (created, updated, skipped, conflicts, errors) without writing anything.
- Your agent is instructed to show you this plan. Pay particular attention to the conflicts and errors.
- Nothing is written without a second, explicit call, with `dryRun: false` and the same batch. The agent keeps the returned `importId`.
- Doubts 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, identity)`. Pasting the same file again creates nothing.
- With `onExisting: "update"`, the import rewrites the supplied fields of an already-imported task — only if nobody has changed it since; otherwise it comes out as a conflict, never overwritten. This is how progress (checked boxes) propagates, user stories included.
- Rolling back a batch deletes what it created and keeps what a human modified. The updates it made are not restored.
- A finished task keeps its completion date when the export carries one — `tasks.md` does not: a checked task takes the import date.
What does not carry over
- The file's non-task sections: "Dependencies & Execution Order", "Notes", the parallel launch examples.
- Dependencies written in prose in a task's description: only phases and user stories give structure.
- The feature itself: it is not a task; it is filed in a block (`cellRef` or `cellId`).
¿Viene de otra herramienta? Vea cómo pasarse a OrgGen
Pruébalo con tu propio caso
Describe tu situación en una frase — OrgGen construye el diagrama y hace el cálculo.
Pruébalo con tu propio caso