setup-context-system: offer Superpowers install in Phase 4
This commit is contained in:
@@ -13,7 +13,7 @@ Skills follow the [Agent Skills](https://agentskills.io) open standard, so each
|
|||||||
|
|
||||||
Guides a person through building a **layered context system** for their agent — global/project/initiative context files, index files, knowledge management (Rules/Hypotheses), decision logging, tone rules, an optional discovery methodology, and a maintenance command that keeps it all current. It teaches the pattern and interviews the user for their own content; the result is their system, not a copy.
|
Guides a person through building a **layered context system** for their agent — global/project/initiative context files, index files, knowledge management (Rules/Hypotheses), decision logging, tone rules, an optional discovery methodology, and a maintenance command that keeps it all current. It teaches the pattern and interviews the user for their own content; the result is their system, not a copy.
|
||||||
|
|
||||||
It runs in phases (essentials first), gating after each so a user can stop with a working system at any point.
|
It runs in phases (essentials first), gating after each so a user can stop with a working system at any point. Its final phase optionally offers to install [Superpowers](https://github.com/obra/superpowers) — obra's skills library that adds an automatic spec → plan → TDD workflow — as a process companion to this context layer.
|
||||||
|
|
||||||
## Installing a skill
|
## Installing a skill
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
name: setup-context-system
|
name: setup-context-system
|
||||||
description: "Guide a person through building a layered AI context system for their coding agent: global/project/initiative context files, index files, knowledge management with Rules and Hypotheses, decision logging, tone and behavior rules, optional discovery methodology, and a maintenance command. Use when someone wants to set up CLAUDE.md / AGENTS.md context from scratch, stop re-explaining context every session, or replicate a self-maintaining context setup."
|
description: "Guide a person through building a layered AI context system for their coding agent: global/project/initiative context files, index files, knowledge management with Rules and Hypotheses, decision logging, tone and behavior rules, optional discovery methodology, a maintenance command, and an optional offer to install obra's Superpowers. Use when someone wants to set up CLAUDE.md / AGENTS.md context from scratch, stop re-explaining context every session, or replicate a self-maintaining context setup."
|
||||||
compatibility: "claude-code, opencode"
|
compatibility: "claude-code, opencode"
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -319,6 +319,22 @@ Draft the command file, preview, approve, write.
|
|||||||
|
|
||||||
Ask: "Do you run multi-step initiatives or projects that would benefit from a scaffolding command?" If yes, draft a `/create-initiative`-style command that interviews the user and creates an initiative folder with its own `CONTEXT_FILE`, overview file, and index entry.
|
Ask: "Do you run multi-step initiatives or projects that would benefit from a scaffolding command?" If yes, draft a `/create-initiative`-style command that interviews the user and creates an initiative folder with its own `CONTEXT_FILE`, overview file, and index entry.
|
||||||
|
|
||||||
|
### Step 4.4 — Optional: install Superpowers
|
||||||
|
|
||||||
|
[Superpowers](https://github.com/obra/superpowers) (by obra) is a composable skills library that adds a development methodology — brainstorming → writing-plans → TDD → subagent-driven development — that triggers automatically. It complements this context system: this skill gives the agent *context*, Superpowers gives it *process*.
|
||||||
|
|
||||||
|
First, **detect** whether it's already installed before offering:
|
||||||
|
- OpenCode → check for `~/.config/opencode/skills/` entries from superpowers (e.g., a `brainstorming` skill) or a superpowers plugin in `~/.config/opencode/`.
|
||||||
|
- Claude Code → check for a superpowers plugin/skills under `~/.claude/`.
|
||||||
|
- If already present, say so and skip.
|
||||||
|
|
||||||
|
If not installed, ask: "Want to install Superpowers? It adds an automatic spec → plan → TDD workflow." If yes, give the install method for the **detected platform** (verify against the current Superpowers README — methods change; do not hardcode from memory):
|
||||||
|
- **Claude Code:** `/plugin install superpowers@claude-plugins-official` (official marketplace), or via `obra/superpowers-marketplace`.
|
||||||
|
- **OpenCode:** tell the agent: "Fetch and follow instructions from `https://raw.githubusercontent.com/obra/superpowers/refs/heads/main/.opencode/INSTALL.md`".
|
||||||
|
- **Other platforms** (Codex, Cursor, Copilot CLI, Gemini CLI): point the user to the install section of the Superpowers README, since each differs.
|
||||||
|
|
||||||
|
Do not run the install silently — present the command/instruction and let the user run it. This skill only *offers and points*; it does not modify the user's plugin setup without consent.
|
||||||
|
|
||||||
**Phase gate: confirm. System complete.**
|
**Phase gate: confirm. System complete.**
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -331,5 +347,6 @@ Summarize what was built and how to use it:
|
|||||||
3. **Index files** — navigation to granular context.
|
3. **Index files** — navigation to granular context.
|
||||||
4. **Knowledge / Decisions** — the learning layer; grows lazily.
|
4. **Knowledge / Decisions** — the learning layer; grows lazily.
|
||||||
5. **Maintenance command** — run it at the end of sessions to keep everything current.
|
5. **Maintenance command** — run it at the end of sessions to keep everything current.
|
||||||
|
6. **Superpowers** (if installed) — provides the development process layer alongside this context layer.
|
||||||
|
|
||||||
Remind them: the system is meant to grow incrementally. Run the maintenance command regularly; add Knowledge and Decisions only when there's real content. Re-run this skill anytime to add a phase they skipped.
|
Remind them: the system is meant to grow incrementally. Run the maintenance command regularly; add Knowledge and Decisions only when there's real content. Re-run this skill anytime to add a phase they skipped.
|
||||||
|
|||||||
Reference in New Issue
Block a user