superpowers-spec 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/README.md +141 -0
- package/agents/code-reviewer.md +48 -0
- package/bin/openspec.js +3 -0
- package/bin/superpowers.js +3 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +482 -0
- package/dist/commands/change.d.ts +35 -0
- package/dist/commands/change.js +277 -0
- package/dist/commands/completion.d.ts +72 -0
- package/dist/commands/completion.js +257 -0
- package/dist/commands/config.d.ts +36 -0
- package/dist/commands/config.js +552 -0
- package/dist/commands/feedback.d.ts +9 -0
- package/dist/commands/feedback.js +183 -0
- package/dist/commands/schema.d.ts +6 -0
- package/dist/commands/schema.js +869 -0
- package/dist/commands/show.d.ts +14 -0
- package/dist/commands/show.js +132 -0
- package/dist/commands/spec.d.ts +15 -0
- package/dist/commands/spec.js +225 -0
- package/dist/commands/validate.d.ts +24 -0
- package/dist/commands/validate.js +294 -0
- package/dist/commands/workflow/index.d.ts +17 -0
- package/dist/commands/workflow/index.js +12 -0
- package/dist/commands/workflow/instructions.d.ts +29 -0
- package/dist/commands/workflow/instructions.js +381 -0
- package/dist/commands/workflow/new-change.d.ts +11 -0
- package/dist/commands/workflow/new-change.js +44 -0
- package/dist/commands/workflow/schemas.d.ts +10 -0
- package/dist/commands/workflow/schemas.js +34 -0
- package/dist/commands/workflow/shared.d.ts +57 -0
- package/dist/commands/workflow/shared.js +116 -0
- package/dist/commands/workflow/status.d.ts +14 -0
- package/dist/commands/workflow/status.js +75 -0
- package/dist/commands/workflow/templates.d.ts +16 -0
- package/dist/commands/workflow/templates.js +68 -0
- package/dist/core/archive.d.ts +11 -0
- package/dist/core/archive.js +318 -0
- package/dist/core/artifact-graph/graph.d.ts +56 -0
- package/dist/core/artifact-graph/graph.js +141 -0
- package/dist/core/artifact-graph/index.d.ts +7 -0
- package/dist/core/artifact-graph/index.js +13 -0
- package/dist/core/artifact-graph/instruction-loader.d.ts +143 -0
- package/dist/core/artifact-graph/instruction-loader.js +214 -0
- package/dist/core/artifact-graph/resolver.d.ts +81 -0
- package/dist/core/artifact-graph/resolver.js +257 -0
- package/dist/core/artifact-graph/schema.d.ts +13 -0
- package/dist/core/artifact-graph/schema.js +108 -0
- package/dist/core/artifact-graph/state.d.ts +12 -0
- package/dist/core/artifact-graph/state.js +54 -0
- package/dist/core/artifact-graph/types.d.ts +45 -0
- package/dist/core/artifact-graph/types.js +43 -0
- package/dist/core/available-tools.d.ts +16 -0
- package/dist/core/available-tools.js +30 -0
- package/dist/core/command-generation/adapters/amazon-q.d.ts +13 -0
- package/dist/core/command-generation/adapters/amazon-q.js +26 -0
- package/dist/core/command-generation/adapters/antigravity.d.ts +13 -0
- package/dist/core/command-generation/adapters/antigravity.js +26 -0
- package/dist/core/command-generation/adapters/auggie.d.ts +13 -0
- package/dist/core/command-generation/adapters/auggie.js +27 -0
- package/dist/core/command-generation/adapters/claude.d.ts +13 -0
- package/dist/core/command-generation/adapters/claude.js +50 -0
- package/dist/core/command-generation/adapters/cline.d.ts +14 -0
- package/dist/core/command-generation/adapters/cline.js +27 -0
- package/dist/core/command-generation/adapters/codebuddy.d.ts +13 -0
- package/dist/core/command-generation/adapters/codebuddy.js +28 -0
- package/dist/core/command-generation/adapters/codex.d.ts +16 -0
- package/dist/core/command-generation/adapters/codex.js +39 -0
- package/dist/core/command-generation/adapters/continue.d.ts +13 -0
- package/dist/core/command-generation/adapters/continue.js +28 -0
- package/dist/core/command-generation/adapters/costrict.d.ts +13 -0
- package/dist/core/command-generation/adapters/costrict.js +27 -0
- package/dist/core/command-generation/adapters/crush.d.ts +13 -0
- package/dist/core/command-generation/adapters/crush.js +30 -0
- package/dist/core/command-generation/adapters/cursor.d.ts +14 -0
- package/dist/core/command-generation/adapters/cursor.js +44 -0
- package/dist/core/command-generation/adapters/factory.d.ts +13 -0
- package/dist/core/command-generation/adapters/factory.js +27 -0
- package/dist/core/command-generation/adapters/gemini.d.ts +13 -0
- package/dist/core/command-generation/adapters/gemini.js +26 -0
- package/dist/core/command-generation/adapters/github-copilot.d.ts +13 -0
- package/dist/core/command-generation/adapters/github-copilot.js +26 -0
- package/dist/core/command-generation/adapters/iflow.d.ts +13 -0
- package/dist/core/command-generation/adapters/iflow.js +29 -0
- package/dist/core/command-generation/adapters/index.d.ts +29 -0
- package/dist/core/command-generation/adapters/index.js +29 -0
- package/dist/core/command-generation/adapters/kilocode.d.ts +14 -0
- package/dist/core/command-generation/adapters/kilocode.js +23 -0
- package/dist/core/command-generation/adapters/kiro.d.ts +13 -0
- package/dist/core/command-generation/adapters/kiro.js +26 -0
- package/dist/core/command-generation/adapters/opencode.d.ts +13 -0
- package/dist/core/command-generation/adapters/opencode.js +29 -0
- package/dist/core/command-generation/adapters/pi.d.ts +14 -0
- package/dist/core/command-generation/adapters/pi.js +41 -0
- package/dist/core/command-generation/adapters/qoder.d.ts +13 -0
- package/dist/core/command-generation/adapters/qoder.js +30 -0
- package/dist/core/command-generation/adapters/qwen.d.ts +13 -0
- package/dist/core/command-generation/adapters/qwen.js +26 -0
- package/dist/core/command-generation/adapters/roocode.d.ts +14 -0
- package/dist/core/command-generation/adapters/roocode.js +27 -0
- package/dist/core/command-generation/adapters/windsurf.d.ts +14 -0
- package/dist/core/command-generation/adapters/windsurf.js +51 -0
- package/dist/core/command-generation/generator.d.ts +21 -0
- package/dist/core/command-generation/generator.js +27 -0
- package/dist/core/command-generation/index.d.ts +22 -0
- package/dist/core/command-generation/index.js +24 -0
- package/dist/core/command-generation/registry.d.ts +36 -0
- package/dist/core/command-generation/registry.js +92 -0
- package/dist/core/command-generation/types.d.ts +56 -0
- package/dist/core/command-generation/types.js +8 -0
- package/dist/core/completions/command-registry.d.ts +7 -0
- package/dist/core/completions/command-registry.js +461 -0
- package/dist/core/completions/completion-provider.d.ts +60 -0
- package/dist/core/completions/completion-provider.js +102 -0
- package/dist/core/completions/factory.d.ts +64 -0
- package/dist/core/completions/factory.js +75 -0
- package/dist/core/completions/generators/bash-generator.d.ts +32 -0
- package/dist/core/completions/generators/bash-generator.js +174 -0
- package/dist/core/completions/generators/fish-generator.d.ts +32 -0
- package/dist/core/completions/generators/fish-generator.js +157 -0
- package/dist/core/completions/generators/powershell-generator.d.ts +33 -0
- package/dist/core/completions/generators/powershell-generator.js +207 -0
- package/dist/core/completions/generators/zsh-generator.d.ts +44 -0
- package/dist/core/completions/generators/zsh-generator.js +250 -0
- package/dist/core/completions/installers/bash-installer.d.ts +87 -0
- package/dist/core/completions/installers/bash-installer.js +318 -0
- package/dist/core/completions/installers/fish-installer.d.ts +43 -0
- package/dist/core/completions/installers/fish-installer.js +143 -0
- package/dist/core/completions/installers/powershell-installer.d.ts +88 -0
- package/dist/core/completions/installers/powershell-installer.js +327 -0
- package/dist/core/completions/installers/zsh-installer.d.ts +125 -0
- package/dist/core/completions/installers/zsh-installer.js +449 -0
- package/dist/core/completions/templates/bash-templates.d.ts +6 -0
- package/dist/core/completions/templates/bash-templates.js +24 -0
- package/dist/core/completions/templates/fish-templates.d.ts +7 -0
- package/dist/core/completions/templates/fish-templates.js +39 -0
- package/dist/core/completions/templates/powershell-templates.d.ts +6 -0
- package/dist/core/completions/templates/powershell-templates.js +25 -0
- package/dist/core/completions/templates/zsh-templates.d.ts +6 -0
- package/dist/core/completions/templates/zsh-templates.js +36 -0
- package/dist/core/completions/types.d.ts +79 -0
- package/dist/core/completions/types.js +2 -0
- package/dist/core/config-prompts.d.ts +9 -0
- package/dist/core/config-prompts.js +34 -0
- package/dist/core/config-schema.d.ts +86 -0
- package/dist/core/config-schema.js +213 -0
- package/dist/core/config.d.ts +17 -0
- package/dist/core/config.js +33 -0
- package/dist/core/converters/json-converter.d.ts +6 -0
- package/dist/core/converters/json-converter.js +51 -0
- package/dist/core/global-config.d.ts +44 -0
- package/dist/core/global-config.js +125 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +3 -0
- package/dist/core/init.d.ts +39 -0
- package/dist/core/init.js +634 -0
- package/dist/core/legacy-cleanup.d.ts +162 -0
- package/dist/core/legacy-cleanup.js +512 -0
- package/dist/core/list.d.ts +9 -0
- package/dist/core/list.js +171 -0
- package/dist/core/migration.d.ts +23 -0
- package/dist/core/migration.js +108 -0
- package/dist/core/parsers/change-parser.d.ts +13 -0
- package/dist/core/parsers/change-parser.js +193 -0
- package/dist/core/parsers/markdown-parser.d.ts +22 -0
- package/dist/core/parsers/markdown-parser.js +187 -0
- package/dist/core/parsers/requirement-blocks.d.ts +37 -0
- package/dist/core/parsers/requirement-blocks.js +201 -0
- package/dist/core/profile-sync-drift.d.ts +38 -0
- package/dist/core/profile-sync-drift.js +200 -0
- package/dist/core/profiles.d.ts +26 -0
- package/dist/core/profiles.js +40 -0
- package/dist/core/project-config.d.ts +64 -0
- package/dist/core/project-config.js +223 -0
- package/dist/core/schemas/base.schema.d.ts +13 -0
- package/dist/core/schemas/base.schema.js +13 -0
- package/dist/core/schemas/change.schema.d.ts +73 -0
- package/dist/core/schemas/change.schema.js +31 -0
- package/dist/core/schemas/index.d.ts +4 -0
- package/dist/core/schemas/index.js +4 -0
- package/dist/core/schemas/spec.schema.d.ts +18 -0
- package/dist/core/schemas/spec.schema.js +15 -0
- package/dist/core/shared/index.d.ts +8 -0
- package/dist/core/shared/index.js +8 -0
- package/dist/core/shared/skill-generation.d.ts +49 -0
- package/dist/core/shared/skill-generation.js +96 -0
- package/dist/core/shared/tool-detection.d.ts +71 -0
- package/dist/core/shared/tool-detection.js +158 -0
- package/dist/core/specs-apply.d.ts +73 -0
- package/dist/core/specs-apply.js +384 -0
- package/dist/core/styles/palette.d.ts +7 -0
- package/dist/core/styles/palette.js +8 -0
- package/dist/core/templates/index.d.ts +8 -0
- package/dist/core/templates/index.js +9 -0
- package/dist/core/templates/skill-templates.d.ts +19 -0
- package/dist/core/templates/skill-templates.js +18 -0
- package/dist/core/templates/types.d.ts +19 -0
- package/dist/core/templates/types.js +5 -0
- package/dist/core/templates/workflows/apply-change.d.ts +10 -0
- package/dist/core/templates/workflows/apply-change.js +313 -0
- package/dist/core/templates/workflows/archive-change.d.ts +10 -0
- package/dist/core/templates/workflows/archive-change.js +271 -0
- package/dist/core/templates/workflows/bulk-archive-change.d.ts +10 -0
- package/dist/core/templates/workflows/bulk-archive-change.js +488 -0
- package/dist/core/templates/workflows/continue-change.d.ts +10 -0
- package/dist/core/templates/workflows/continue-change.js +232 -0
- package/dist/core/templates/workflows/explore.d.ts +10 -0
- package/dist/core/templates/workflows/explore.js +469 -0
- package/dist/core/templates/workflows/feedback.d.ts +9 -0
- package/dist/core/templates/workflows/feedback.js +108 -0
- package/dist/core/templates/workflows/ff-change.d.ts +10 -0
- package/dist/core/templates/workflows/ff-change.js +198 -0
- package/dist/core/templates/workflows/new-change.d.ts +10 -0
- package/dist/core/templates/workflows/new-change.js +143 -0
- package/dist/core/templates/workflows/onboard.d.ts +10 -0
- package/dist/core/templates/workflows/onboard.js +565 -0
- package/dist/core/templates/workflows/propose.d.ts +10 -0
- package/dist/core/templates/workflows/propose.js +223 -0
- package/dist/core/templates/workflows/sync-specs.d.ts +10 -0
- package/dist/core/templates/workflows/sync-specs.js +272 -0
- package/dist/core/templates/workflows/verify-change.d.ts +10 -0
- package/dist/core/templates/workflows/verify-change.js +332 -0
- package/dist/core/update.d.ts +77 -0
- package/dist/core/update.js +537 -0
- package/dist/core/validation/constants.d.ts +34 -0
- package/dist/core/validation/constants.js +40 -0
- package/dist/core/validation/types.d.ts +18 -0
- package/dist/core/validation/types.js +2 -0
- package/dist/core/validation/validator.d.ts +33 -0
- package/dist/core/validation/validator.js +409 -0
- package/dist/core/view.d.ts +8 -0
- package/dist/core/view.js +168 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/prompts/searchable-multi-select.d.ts +28 -0
- package/dist/prompts/searchable-multi-select.js +159 -0
- package/dist/telemetry/config.d.ts +32 -0
- package/dist/telemetry/config.js +68 -0
- package/dist/telemetry/index.d.ts +31 -0
- package/dist/telemetry/index.js +180 -0
- package/dist/ui/ascii-patterns.d.ts +16 -0
- package/dist/ui/ascii-patterns.js +133 -0
- package/dist/ui/welcome-screen.d.ts +10 -0
- package/dist/ui/welcome-screen.js +146 -0
- package/dist/utils/change-metadata.d.ts +51 -0
- package/dist/utils/change-metadata.js +147 -0
- package/dist/utils/change-utils.d.ts +62 -0
- package/dist/utils/change-utils.js +121 -0
- package/dist/utils/command-references.d.ts +18 -0
- package/dist/utils/command-references.js +20 -0
- package/dist/utils/file-system.d.ts +36 -0
- package/dist/utils/file-system.js +281 -0
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/index.js +9 -0
- package/dist/utils/interactive.d.ts +18 -0
- package/dist/utils/interactive.js +21 -0
- package/dist/utils/item-discovery.d.ts +4 -0
- package/dist/utils/item-discovery.js +72 -0
- package/dist/utils/match.d.ts +3 -0
- package/dist/utils/match.js +22 -0
- package/dist/utils/shell-detection.d.ts +20 -0
- package/dist/utils/shell-detection.js +41 -0
- package/dist/utils/task-progress.d.ts +8 -0
- package/dist/utils/task-progress.js +36 -0
- package/extension-manifest.json +9 -0
- package/hooks/hooks.json +16 -0
- package/hooks/run-hook.cmd +46 -0
- package/hooks/session-start +51 -0
- package/package.json +87 -0
- package/schemas/spec-driven/schema.yaml +153 -0
- package/schemas/spec-driven/templates/design.md +19 -0
- package/schemas/spec-driven/templates/proposal.md +23 -0
- package/schemas/spec-driven/templates/spec.md +8 -0
- package/schemas/spec-driven/templates/tasks.md +9 -0
- package/scripts/postinstall.js +147 -0
- package/skills/dispatching-parallel-agents/SKILL.md +113 -0
- package/skills/finishing-a-development-branch/SKILL.md +200 -0
- package/skills/receiving-code-review/SKILL.md +213 -0
- package/skills/requesting-code-review/SKILL.md +73 -0
- package/skills/requesting-code-review/code-reviewer.md +146 -0
- package/skills/subagent-driven-development/SKILL.md +98 -0
- package/skills/subagent-driven-development/code-quality-reviewer-prompt.md +20 -0
- package/skills/subagent-driven-development/implementer-prompt.md +78 -0
- package/skills/systematic-debugging/CREATION-LOG.md +119 -0
- package/skills/systematic-debugging/SKILL.md +296 -0
- package/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
- package/skills/systematic-debugging/condition-based-waiting.md +115 -0
- package/skills/systematic-debugging/defense-in-depth.md +122 -0
- package/skills/systematic-debugging/find-polluter.sh +63 -0
- package/skills/systematic-debugging/root-cause-tracing.md +169 -0
- package/skills/systematic-debugging/test-academic.md +14 -0
- package/skills/systematic-debugging/test-pressure-1.md +58 -0
- package/skills/systematic-debugging/test-pressure-2.md +68 -0
- package/skills/systematic-debugging/test-pressure-3.md +69 -0
- package/skills/test-driven-development/SKILL.md +356 -0
- package/skills/test-driven-development/testing-anti-patterns.md +299 -0
- package/skills/using-git-worktrees/SKILL.md +212 -0
- package/skills/using-superpowers/SKILL.md +95 -0
- package/skills/verification-before-completion/SKILL.md +126 -0
- package/skills/writing-skills/SKILL.md +148 -0
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
export function getFfChangeSkillTemplate() {
|
|
2
|
+
return {
|
|
3
|
+
name: 'superpowers-ff-change',
|
|
4
|
+
description: 'Fast-forward through Superpowers artifact creation. Use when the user wants to quickly create all artifacts needed for implementation without stepping through each one individually.',
|
|
5
|
+
instructions: `Fast-forward through artifact creation - generate everything needed to start implementation in one go.
|
|
6
|
+
|
|
7
|
+
**Input**: The user's request should include a change name (kebab-case) OR a description of what they want to build.
|
|
8
|
+
|
|
9
|
+
**Steps**
|
|
10
|
+
|
|
11
|
+
1. **If no clear input provided, ask what they want to build**
|
|
12
|
+
|
|
13
|
+
Use the **AskUserQuestion tool** (open-ended, no preset options) to ask:
|
|
14
|
+
> "What change do you want to work on? Describe what you want to build or fix."
|
|
15
|
+
|
|
16
|
+
From their description, derive a kebab-case name (e.g., "add user authentication" → \`add-user-auth\`).
|
|
17
|
+
|
|
18
|
+
**IMPORTANT**: Do NOT proceed without understanding what the user wants to build.
|
|
19
|
+
|
|
20
|
+
2. **Create the change directory**
|
|
21
|
+
\`\`\`bash
|
|
22
|
+
superpowers new change "<name>"
|
|
23
|
+
\`\`\`
|
|
24
|
+
This creates a scaffolded change at \`superpowers/changes/<name>/\`.
|
|
25
|
+
|
|
26
|
+
3. **Get the artifact build order**
|
|
27
|
+
\`\`\`bash
|
|
28
|
+
superpowers status --change "<name>" --json
|
|
29
|
+
\`\`\`
|
|
30
|
+
Parse the JSON to get:
|
|
31
|
+
- \`applyRequires\`: array of artifact IDs needed before implementation (e.g., \`["tasks"]\`)
|
|
32
|
+
- \`artifacts\`: list of all artifacts with their status and dependencies
|
|
33
|
+
|
|
34
|
+
4. **Create artifacts in sequence until apply-ready**
|
|
35
|
+
|
|
36
|
+
Use the **TodoWrite tool** to track progress through the artifacts.
|
|
37
|
+
|
|
38
|
+
Loop through artifacts in dependency order (artifacts with no pending dependencies first):
|
|
39
|
+
|
|
40
|
+
a. **For each artifact that is \`ready\` (dependencies satisfied)**:
|
|
41
|
+
- Get instructions:
|
|
42
|
+
\`\`\`bash
|
|
43
|
+
superpowers instructions <artifact-id> --change "<name>" --json
|
|
44
|
+
\`\`\`
|
|
45
|
+
- The instructions JSON includes:
|
|
46
|
+
- \`context\`: Project background (constraints for you - do NOT include in output)
|
|
47
|
+
- \`rules\`: Artifact-specific rules (constraints for you - do NOT include in output)
|
|
48
|
+
- \`template\`: The structure to use for your output file
|
|
49
|
+
- \`instruction\`: Schema-specific guidance for this artifact type
|
|
50
|
+
- \`outputPath\`: Where to write the artifact
|
|
51
|
+
- \`dependencies\`: Completed artifacts to read for context
|
|
52
|
+
- Read any completed dependency files for context
|
|
53
|
+
- Create the artifact file using \`template\` as the structure
|
|
54
|
+
- Apply \`context\` and \`rules\` as constraints - but do NOT copy them into the file
|
|
55
|
+
- Show brief progress: "✓ Created <artifact-id>"
|
|
56
|
+
|
|
57
|
+
b. **Continue until all \`applyRequires\` artifacts are complete**
|
|
58
|
+
- After creating each artifact, re-run \`superpowers status --change "<name>" --json\`
|
|
59
|
+
- Check if every artifact ID in \`applyRequires\` has \`status: "done"\` in the artifacts array
|
|
60
|
+
- Stop when all \`applyRequires\` artifacts are done
|
|
61
|
+
|
|
62
|
+
c. **If an artifact requires user input** (unclear context):
|
|
63
|
+
- Use **AskUserQuestion tool** to clarify
|
|
64
|
+
- Then continue with creation
|
|
65
|
+
|
|
66
|
+
5. **Show final status**
|
|
67
|
+
\`\`\`bash
|
|
68
|
+
superpowers status --change "<name>"
|
|
69
|
+
\`\`\`
|
|
70
|
+
|
|
71
|
+
**Output**
|
|
72
|
+
|
|
73
|
+
After completing all artifacts, summarize:
|
|
74
|
+
- Change name and location
|
|
75
|
+
- List of artifacts created with brief descriptions
|
|
76
|
+
- What's ready: "All artifacts created! Ready for implementation."
|
|
77
|
+
- Prompt: "Run \`/sp:apply\` or ask me to implement to start working on the tasks."
|
|
78
|
+
|
|
79
|
+
**Artifact Creation Guidelines**
|
|
80
|
+
|
|
81
|
+
- Follow the \`instruction\` field from \`superpowers instructions\` for each artifact type
|
|
82
|
+
- The schema defines what each artifact should contain - follow it
|
|
83
|
+
- Read dependency artifacts for context before creating new ones
|
|
84
|
+
- Use \`template\` as the structure for your output file - fill in its sections
|
|
85
|
+
- **IMPORTANT**: \`context\` and \`rules\` are constraints for YOU, not content for the file
|
|
86
|
+
- Do NOT copy \`<context>\`, \`<rules>\`, \`<project_context>\` blocks into the artifact
|
|
87
|
+
- These guide what you write, but should never appear in the output
|
|
88
|
+
|
|
89
|
+
**Guardrails**
|
|
90
|
+
- Create ALL artifacts needed for implementation (as defined by schema's \`apply.requires\`)
|
|
91
|
+
- Always read dependency artifacts before creating a new one
|
|
92
|
+
- If context is critically unclear, ask the user - but prefer making reasonable decisions to keep momentum
|
|
93
|
+
- If a change with that name already exists, suggest continuing that change instead
|
|
94
|
+
- Verify each artifact file exists after writing before proceeding to next`,
|
|
95
|
+
license: 'MIT',
|
|
96
|
+
compatibility: 'Requires superpowers CLI.',
|
|
97
|
+
metadata: { author: 'superpowers', version: '1.0' },
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
export function getSpFfCommandTemplate() {
|
|
101
|
+
return {
|
|
102
|
+
name: 'SP: Fast Forward',
|
|
103
|
+
description: 'Create a change and generate all artifacts needed for implementation in one go',
|
|
104
|
+
category: 'Workflow',
|
|
105
|
+
tags: ['workflow', 'artifacts', 'experimental'],
|
|
106
|
+
content: `Fast-forward through artifact creation - generate everything needed to start implementation.
|
|
107
|
+
|
|
108
|
+
**Input**: The argument after \`/sp:ff\` is the change name (kebab-case), OR a description of what the user wants to build.
|
|
109
|
+
|
|
110
|
+
**Steps**
|
|
111
|
+
|
|
112
|
+
1. **If no input provided, ask what they want to build**
|
|
113
|
+
|
|
114
|
+
Use the **AskUserQuestion tool** (open-ended, no preset options) to ask:
|
|
115
|
+
> "What change do you want to work on? Describe what you want to build or fix."
|
|
116
|
+
|
|
117
|
+
From their description, derive a kebab-case name (e.g., "add user authentication" → \`add-user-auth\`).
|
|
118
|
+
|
|
119
|
+
**IMPORTANT**: Do NOT proceed without understanding what the user wants to build.
|
|
120
|
+
|
|
121
|
+
2. **Create the change directory**
|
|
122
|
+
\`\`\`bash
|
|
123
|
+
superpowers new change "<name>"
|
|
124
|
+
\`\`\`
|
|
125
|
+
This creates a scaffolded change at \`superpowers/changes/<name>/\`.
|
|
126
|
+
|
|
127
|
+
3. **Get the artifact build order**
|
|
128
|
+
\`\`\`bash
|
|
129
|
+
superpowers status --change "<name>" --json
|
|
130
|
+
\`\`\`
|
|
131
|
+
Parse the JSON to get:
|
|
132
|
+
- \`applyRequires\`: array of artifact IDs needed before implementation (e.g., \`["tasks"]\`)
|
|
133
|
+
- \`artifacts\`: list of all artifacts with their status and dependencies
|
|
134
|
+
|
|
135
|
+
4. **Create artifacts in sequence until apply-ready**
|
|
136
|
+
|
|
137
|
+
Use the **TodoWrite tool** to track progress through the artifacts.
|
|
138
|
+
|
|
139
|
+
Loop through artifacts in dependency order (artifacts with no pending dependencies first):
|
|
140
|
+
|
|
141
|
+
a. **For each artifact that is \`ready\` (dependencies satisfied)**:
|
|
142
|
+
- Get instructions:
|
|
143
|
+
\`\`\`bash
|
|
144
|
+
superpowers instructions <artifact-id> --change "<name>" --json
|
|
145
|
+
\`\`\`
|
|
146
|
+
- The instructions JSON includes:
|
|
147
|
+
- \`context\`: Project background (constraints for you - do NOT include in output)
|
|
148
|
+
- \`rules\`: Artifact-specific rules (constraints for you - do NOT include in output)
|
|
149
|
+
- \`template\`: The structure to use for your output file
|
|
150
|
+
- \`instruction\`: Schema-specific guidance for this artifact type
|
|
151
|
+
- \`outputPath\`: Where to write the artifact
|
|
152
|
+
- \`dependencies\`: Completed artifacts to read for context
|
|
153
|
+
- Read any completed dependency files for context
|
|
154
|
+
- Create the artifact file using \`template\` as the structure
|
|
155
|
+
- Apply \`context\` and \`rules\` as constraints - but do NOT copy them into the file
|
|
156
|
+
- Show brief progress: "✓ Created <artifact-id>"
|
|
157
|
+
|
|
158
|
+
b. **Continue until all \`applyRequires\` artifacts are complete**
|
|
159
|
+
- After creating each artifact, re-run \`superpowers status --change "<name>" --json\`
|
|
160
|
+
- Check if every artifact ID in \`applyRequires\` has \`status: "done"\` in the artifacts array
|
|
161
|
+
- Stop when all \`applyRequires\` artifacts are done
|
|
162
|
+
|
|
163
|
+
c. **If an artifact requires user input** (unclear context):
|
|
164
|
+
- Use **AskUserQuestion tool** to clarify
|
|
165
|
+
- Then continue with creation
|
|
166
|
+
|
|
167
|
+
5. **Show final status**
|
|
168
|
+
\`\`\`bash
|
|
169
|
+
superpowers status --change "<name>"
|
|
170
|
+
\`\`\`
|
|
171
|
+
|
|
172
|
+
**Output**
|
|
173
|
+
|
|
174
|
+
After completing all artifacts, summarize:
|
|
175
|
+
- Change name and location
|
|
176
|
+
- List of artifacts created with brief descriptions
|
|
177
|
+
- What's ready: "All artifacts created! Ready for implementation."
|
|
178
|
+
- Prompt: "Run \`/sp:apply\` to start implementing."
|
|
179
|
+
|
|
180
|
+
**Artifact Creation Guidelines**
|
|
181
|
+
|
|
182
|
+
- Follow the \`instruction\` field from \`superpowers instructions\` for each artifact type
|
|
183
|
+
- The schema defines what each artifact should contain - follow it
|
|
184
|
+
- Read dependency artifacts for context before creating new ones
|
|
185
|
+
- Use \`template\` as the structure for your output file - fill in its sections
|
|
186
|
+
- **IMPORTANT**: \`context\` and \`rules\` are constraints for YOU, not content for the file
|
|
187
|
+
- Do NOT copy \`<context>\`, \`<rules>\`, \`<project_context>\` blocks into the artifact
|
|
188
|
+
- These guide what you write, but should never appear in the output
|
|
189
|
+
|
|
190
|
+
**Guardrails**
|
|
191
|
+
- Create ALL artifacts needed for implementation (as defined by schema's \`apply.requires\`)
|
|
192
|
+
- Always read dependency artifacts before creating a new one
|
|
193
|
+
- If context is critically unclear, ask the user - but prefer making reasonable decisions to keep momentum
|
|
194
|
+
- If a change with that name already exists, ask if user wants to continue it or create a new one
|
|
195
|
+
- Verify each artifact file exists after writing before proceeding to next`
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
//# sourceMappingURL=ff-change.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skill Template Workflow Modules
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by splitting the legacy monolithic
|
|
5
|
+
* templates file into workflow-focused modules.
|
|
6
|
+
*/
|
|
7
|
+
import type { SkillTemplate, CommandTemplate } from '../types.js';
|
|
8
|
+
export declare function getNewChangeSkillTemplate(): SkillTemplate;
|
|
9
|
+
export declare function getSpNewCommandTemplate(): CommandTemplate;
|
|
10
|
+
//# sourceMappingURL=new-change.d.ts.map
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
export function getNewChangeSkillTemplate() {
|
|
2
|
+
return {
|
|
3
|
+
name: 'superpowers-new-change',
|
|
4
|
+
description: 'Start a new Superpowers change using the experimental artifact workflow. Use when the user wants to create a new feature, fix, or modification with a structured step-by-step approach.',
|
|
5
|
+
instructions: `Start a new change using the experimental artifact-driven approach.
|
|
6
|
+
|
|
7
|
+
**Input**: The user's request should include a change name (kebab-case) OR a description of what they want to build.
|
|
8
|
+
|
|
9
|
+
**Steps**
|
|
10
|
+
|
|
11
|
+
1. **If no clear input provided, ask what they want to build**
|
|
12
|
+
|
|
13
|
+
Use the **AskUserQuestion tool** (open-ended, no preset options) to ask:
|
|
14
|
+
> "What change do you want to work on? Describe what you want to build or fix."
|
|
15
|
+
|
|
16
|
+
From their description, derive a kebab-case name (e.g., "add user authentication" → \`add-user-auth\`).
|
|
17
|
+
|
|
18
|
+
**IMPORTANT**: Do NOT proceed without understanding what the user wants to build.
|
|
19
|
+
|
|
20
|
+
2. **Determine the workflow schema**
|
|
21
|
+
|
|
22
|
+
Use the default schema (omit \`--schema\`) unless the user explicitly requests a different workflow.
|
|
23
|
+
|
|
24
|
+
**Use a different schema only if the user mentions:**
|
|
25
|
+
- A specific schema name → use \`--schema <name>\`
|
|
26
|
+
- "show workflows" or "what workflows" → run \`superpowers schemas --json\` and let them choose
|
|
27
|
+
|
|
28
|
+
**Otherwise**: Omit \`--schema\` to use the default.
|
|
29
|
+
|
|
30
|
+
3. **Create the change directory**
|
|
31
|
+
\`\`\`bash
|
|
32
|
+
superpowers new change "<name>"
|
|
33
|
+
\`\`\`
|
|
34
|
+
Add \`--schema <name>\` only if the user requested a specific workflow.
|
|
35
|
+
This creates a scaffolded change at \`superpowers/changes/<name>/\` with the selected schema.
|
|
36
|
+
|
|
37
|
+
4. **Show the artifact status**
|
|
38
|
+
\`\`\`bash
|
|
39
|
+
superpowers status --change "<name>"
|
|
40
|
+
\`\`\`
|
|
41
|
+
This shows which artifacts need to be created and which are ready (dependencies satisfied).
|
|
42
|
+
|
|
43
|
+
5. **Get instructions for the first artifact**
|
|
44
|
+
The first artifact depends on the schema (e.g., \`proposal\` for spec-driven).
|
|
45
|
+
Check the status output to find the first artifact with status "ready".
|
|
46
|
+
\`\`\`bash
|
|
47
|
+
superpowers instructions <first-artifact-id> --change "<name>"
|
|
48
|
+
\`\`\`
|
|
49
|
+
This outputs the template and context for creating the first artifact.
|
|
50
|
+
|
|
51
|
+
6. **STOP and wait for user direction**
|
|
52
|
+
|
|
53
|
+
**Output**
|
|
54
|
+
|
|
55
|
+
After completing the steps, summarize:
|
|
56
|
+
- Change name and location
|
|
57
|
+
- Schema/workflow being used and its artifact sequence
|
|
58
|
+
- Current status (0/N artifacts complete)
|
|
59
|
+
- The template for the first artifact
|
|
60
|
+
- Prompt: "Ready to create the first artifact? Just describe what this change is about and I'll draft it, or ask me to continue."
|
|
61
|
+
|
|
62
|
+
**Guardrails**
|
|
63
|
+
- Do NOT create any artifacts yet - just show the instructions
|
|
64
|
+
- Do NOT advance beyond showing the first artifact template
|
|
65
|
+
- If the name is invalid (not kebab-case), ask for a valid name
|
|
66
|
+
- If a change with that name already exists, suggest continuing that change instead
|
|
67
|
+
- Pass --schema if using a non-default workflow`,
|
|
68
|
+
license: 'MIT',
|
|
69
|
+
compatibility: 'Requires superpowers CLI.',
|
|
70
|
+
metadata: { author: 'superpowers', version: '1.0' },
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
export function getSpNewCommandTemplate() {
|
|
74
|
+
return {
|
|
75
|
+
name: 'SP: New',
|
|
76
|
+
description: 'Start a new change using the experimental artifact workflow (OPSX)',
|
|
77
|
+
category: 'Workflow',
|
|
78
|
+
tags: ['workflow', 'artifacts', 'experimental'],
|
|
79
|
+
content: `Start a new change using the experimental artifact-driven approach.
|
|
80
|
+
|
|
81
|
+
**Input**: The argument after \`/sp:new\` is the change name (kebab-case), OR a description of what the user wants to build.
|
|
82
|
+
|
|
83
|
+
**Steps**
|
|
84
|
+
|
|
85
|
+
1. **If no input provided, ask what they want to build**
|
|
86
|
+
|
|
87
|
+
Use the **AskUserQuestion tool** (open-ended, no preset options) to ask:
|
|
88
|
+
> "What change do you want to work on? Describe what you want to build or fix."
|
|
89
|
+
|
|
90
|
+
From their description, derive a kebab-case name (e.g., "add user authentication" → \`add-user-auth\`).
|
|
91
|
+
|
|
92
|
+
**IMPORTANT**: Do NOT proceed without understanding what the user wants to build.
|
|
93
|
+
|
|
94
|
+
2. **Determine the workflow schema**
|
|
95
|
+
|
|
96
|
+
Use the default schema (omit \`--schema\`) unless the user explicitly requests a different workflow.
|
|
97
|
+
|
|
98
|
+
**Use a different schema only if the user mentions:**
|
|
99
|
+
- A specific schema name → use \`--schema <name>\`
|
|
100
|
+
- "show workflows" or "what workflows" → run \`superpowers schemas --json\` and let them choose
|
|
101
|
+
|
|
102
|
+
**Otherwise**: Omit \`--schema\` to use the default.
|
|
103
|
+
|
|
104
|
+
3. **Create the change directory**
|
|
105
|
+
\`\`\`bash
|
|
106
|
+
superpowers new change "<name>"
|
|
107
|
+
\`\`\`
|
|
108
|
+
Add \`--schema <name>\` only if the user requested a specific workflow.
|
|
109
|
+
This creates a scaffolded change at \`superpowers/changes/<name>/\` with the selected schema.
|
|
110
|
+
|
|
111
|
+
4. **Show the artifact status**
|
|
112
|
+
\`\`\`bash
|
|
113
|
+
superpowers status --change "<name>"
|
|
114
|
+
\`\`\`
|
|
115
|
+
This shows which artifacts need to be created and which are ready (dependencies satisfied).
|
|
116
|
+
|
|
117
|
+
5. **Get instructions for the first artifact**
|
|
118
|
+
The first artifact depends on the schema. Check the status output to find the first artifact with status "ready".
|
|
119
|
+
\`\`\`bash
|
|
120
|
+
superpowers instructions <first-artifact-id> --change "<name>"
|
|
121
|
+
\`\`\`
|
|
122
|
+
This outputs the template and context for creating the first artifact.
|
|
123
|
+
|
|
124
|
+
6. **STOP and wait for user direction**
|
|
125
|
+
|
|
126
|
+
**Output**
|
|
127
|
+
|
|
128
|
+
After completing the steps, summarize:
|
|
129
|
+
- Change name and location
|
|
130
|
+
- Schema/workflow being used and its artifact sequence
|
|
131
|
+
- Current status (0/N artifacts complete)
|
|
132
|
+
- The template for the first artifact
|
|
133
|
+
- Prompt: "Ready to create the first artifact? Run \`/sp:continue\` or just describe what this change is about and I'll draft it."
|
|
134
|
+
|
|
135
|
+
**Guardrails**
|
|
136
|
+
- Do NOT create any artifacts yet - just show the instructions
|
|
137
|
+
- Do NOT advance beyond showing the first artifact template
|
|
138
|
+
- If the name is invalid (not kebab-case), ask for a valid name
|
|
139
|
+
- If a change with that name already exists, suggest using \`/sp:continue\` instead
|
|
140
|
+
- Pass --schema if using a non-default workflow`
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
//# sourceMappingURL=new-change.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skill Template Workflow Modules
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by splitting the legacy monolithic
|
|
5
|
+
* templates file into workflow-focused modules.
|
|
6
|
+
*/
|
|
7
|
+
import type { SkillTemplate, CommandTemplate } from '../types.js';
|
|
8
|
+
export declare function getOnboardSkillTemplate(): SkillTemplate;
|
|
9
|
+
export declare function getSpOnboardCommandTemplate(): CommandTemplate;
|
|
10
|
+
//# sourceMappingURL=onboard.d.ts.map
|