Skip to content

Add Superpowers plugin integration#16

Merged
baljanak merged 2 commits intomainfrom
feat/superpowers-integration
Apr 13, 2026
Merged

Add Superpowers plugin integration#16
baljanak merged 2 commits intomainfrom
feat/superpowers-integration

Conversation

@baljanak
Copy link
Copy Markdown
Contributor

Summary

  • Auto-seed methodology decisions: On SessionStart, detect Superpowers via installed_plugins.json and seed 8 decision files documenting the methodology (TDD, design-first, systematic debugging, subagent-driven development, etc.). Uses a general SeedRegistry extensible to other plugins. Idempotent via .seeded.json manifest — deleted decisions stay deleted.

  • Extract decisions from specs/plans: Extend plan-nudge to watch docs/superpowers/specs/ and docs/superpowers/plans/ for decision language. When the agent writes a superpowers spec with trade-offs or approach choices, candidates are extracted and surfaced as a nudge on the first implementation edit. Adds _APPROACH_RE for superpowers-style "Approach 1: ..." sections. dispatch.sh carve-out ensures the /docs/ skip pattern doesn't block these paths.

Test plan

  • make check passes (614 tests, ruff, mypy, shellcheck)
  • Seed validation: all 8 superpowers seeds pass Decision.validate()
  • Detection: registry detects superpowers from various marketplace keys
  • Idempotency: second seed call creates 0 files; deleted files not re-created
  • Spec extraction: superpowers spec with approaches → candidates extracted
  • Nudge message: references superpowers source name and type (spec vs plan)
  • Isolation: autouse fixture prevents seed leakage across unrelated tests

🤖 Generated with Claude Code

baljanak and others added 2 commits April 13, 2026 11:42
…xtract from specs/plans

Two features that make code-decisions aware of the Superpowers plugin (obra/superpowers):

1. **Auto-seed methodology decisions**: On SessionStart, detect Superpowers via
   installed_plugins.json and seed 8 decision files documenting the methodology
   (TDD, design-first, systematic debugging, etc.). Uses a general SeedRegistry
   pattern extensible to other plugins. Idempotent via .seeded.json manifest —
   deleted decisions are not re-created.

2. **Extract decisions from specs/plans**: Extend plan-nudge to watch
   docs/superpowers/specs/ and docs/superpowers/plans/ for decision language.
   When the agent writes a spec with trade-offs or approach choices, candidates
   are extracted and surfaced as a nudge on the first implementation edit.
   Adds _APPROACH_RE for superpowers-style "Approach 1: ..." sections.
   dispatch.sh carve-out ensures /docs/ skip pattern doesn't block these paths.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@baljanak baljanak merged commit 776e3db into main Apr 13, 2026
5 checks passed
@baljanak baljanak deleted the feat/superpowers-integration branch April 13, 2026 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant