- discuss-phase --assumptions: add 'Stop here' + convert If→Otherwise chain so the flag is an exclusive route (CodeRabbit major) - import --from-gsd2: add 'Stop here' + convert final 'Execute...' to 'Otherwise...' to prevent fall-through to standard import (CodeRabbit major, inline comment) - .changeset/rewire-orphaned-workflows-3131.md: add missing changeset
42 lines
1.3 KiB
Markdown
42 lines
1.3 KiB
Markdown
---
|
|
name: gsd:import
|
|
description: Ingest external plans with conflict detection against project decisions before writing anything.
|
|
argument-hint: "--from <filepath> | --from-gsd2"
|
|
allowed-tools:
|
|
- Read
|
|
- Write
|
|
- Edit
|
|
- Bash
|
|
- Glob
|
|
- Grep
|
|
- AskUserQuestion
|
|
- Task
|
|
---
|
|
|
|
<objective>
|
|
Import external plan files into the GSD planning system with conflict detection against PROJECT.md decisions.
|
|
|
|
- **--from**: Import an external plan file, detect conflicts, write as GSD PLAN.md, validate via gsd-plan-checker.
|
|
- **--from-gsd2**: Reverse-migrate a GSD-2 project (`.gsd/` directory) back to GSD v1 (`.planning/`) format. Runs `gsd-tools.cjs from-gsd2`. Pass `--path <dir>` to migrate a project at a different path.
|
|
</objective>
|
|
|
|
<execution_context>
|
|
@~/.claude/get-shit-done/workflows/import.md
|
|
@~/.claude/get-shit-done/references/ui-brand.md
|
|
@~/.claude/get-shit-done/references/gate-prompts.md
|
|
@~/.claude/get-shit-done/references/doc-conflict-engine.md
|
|
</execution_context>
|
|
|
|
<context>
|
|
$ARGUMENTS
|
|
</context>
|
|
|
|
<process>
|
|
If `--from-gsd2` is in $ARGUMENTS:
|
|
Run: `node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" from-gsd2`
|
|
Pass `--path <dir>` if provided. Present the migration result to the user.
|
|
Stop here (do not run the standard import workflow).
|
|
|
|
Otherwise, execute the import workflow end-to-end.
|
|
</process>
|