Phase B-provide of epic #1258. Adds a build-generated skills/ dir + a skills manifest field so plugin-installed GSD exposes gsd-core:<skill> the native Claude Code way. Closes the gap where plugin-only installs lacked the skill surface because bin/install.js never ran. - scripts/gen-plugin-skills.cjs: build step converting commands/gsd/*.md to skills/gsd-<stem>/SKILL.md via convertClaudeCommandToClaudeSkill - .claude-plugin/plugin.json: add "skills": "./skills/" - package.json: add skills to files, gen:plugin-skills to build chain - tests/issue-766-plugin-manifest.test.cjs: Section H conformance (manifest field + dir + frontmatter + count parity) + C2 skills symlink - docs/adr/766-*.md: dated amendment adding skills surface row - .changeset/rapid-bears-hum.md: type Added - skills/: 69 generated gsd-<stem>/SKILL.md files (build-committed) Closes #1596
68 lines
2.5 KiB
Markdown
68 lines
2.5 KiB
Markdown
---
|
|
name: gsd-capture
|
|
description: "Capture ideas, tasks, notes, and seeds to their destination"
|
|
argument-hint: "[--note | --backlog | --seed | --list | --list-seeds] [text]"
|
|
allowed-tools:
|
|
- Read
|
|
- Write
|
|
- Edit
|
|
- Bash
|
|
- Glob
|
|
- Grep
|
|
- AskUserQuestion
|
|
---
|
|
|
|
|
|
<objective>
|
|
Capture ideas, tasks, notes, and seeds to their appropriate destination in the GSD system.
|
|
|
|
Mode routing:
|
|
- **default** (no flag): Capture as a structured todo for later work → add-todo workflow
|
|
- **--note**: Zero-friction idea capture (append/list/promote) → note workflow
|
|
- **--backlog**: Add an idea to the backlog parking lot (999.x numbering) → add-backlog workflow
|
|
- **--seed**: Capture a forward-looking idea with trigger conditions → plant-seed workflow
|
|
- **--list**: List pending todos and select one to work on → check-todos workflow
|
|
- **--list-seeds**: List/audit captured seeds (optional status filter) → list-seeds workflow
|
|
</objective>
|
|
|
|
<routing>
|
|
|
|
| Flag | Destination | Workflow |
|
|
|------|-------------|----------|
|
|
| (none) | Structured todo in .planning/todos/ | add-todo |
|
|
| --note | Timestamped note file, list, or promote | note |
|
|
| --backlog | ROADMAP.md backlog section (999.x) | add-backlog |
|
|
| --seed | .planning/seeds/SEED-NNN-slug.md | plant-seed |
|
|
| --list | Interactive todo browser + action router | check-todos |
|
|
| --list-seeds | Read-only seed list/audit (optional status filter) | list-seeds |
|
|
|
|
</routing>
|
|
|
|
<execution_context>
|
|
@~/.claude/gsd-core/workflows/add-todo.md
|
|
@~/.claude/gsd-core/workflows/note.md
|
|
@~/.claude/gsd-core/workflows/add-backlog.md
|
|
@~/.claude/gsd-core/workflows/plant-seed.md
|
|
@~/.claude/gsd-core/workflows/check-todos.md
|
|
@~/.claude/gsd-core/workflows/list-seeds.md
|
|
@~/.claude/gsd-core/references/ui-brand.md
|
|
</execution_context>
|
|
|
|
<context>
|
|
Arguments: $ARGUMENTS
|
|
|
|
Parse the first token of $ARGUMENTS:
|
|
- If it is `--note`: strip the flag, pass remainder to note workflow
|
|
- If it is `--backlog`: strip the flag, pass remainder to add-backlog workflow
|
|
- If it is `--seed`: strip the flag, pass remainder to plant-seed workflow
|
|
- If it is `--list-seeds`: strip the flag, pass remainder (optional status filter) to list-seeds workflow
|
|
- If it is `--list`: pass remainder (optional area filter) to check-todos workflow
|
|
- Otherwise: pass all of $ARGUMENTS to add-todo workflow
|
|
</context>
|
|
|
|
<process>
|
|
1. Parse the leading flag (if any) from $ARGUMENTS.
|
|
2. Load and execute the appropriate workflow end-to-end based on the routing table above.
|
|
3. Preserve all workflow gates from the target workflow (directory structure, duplicate detection, commits, etc.).
|
|
</process>
|