rpi-kit 2.4.0 → 2.5.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.
Files changed (47) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/.gemini/commands/opsx/apply.toml +149 -0
  4. package/.gemini/commands/opsx/archive.toml +154 -0
  5. package/.gemini/commands/opsx/bulk-archive.toml +239 -0
  6. package/.gemini/commands/opsx/continue.toml +111 -0
  7. package/.gemini/commands/opsx/explore.toml +170 -0
  8. package/.gemini/commands/opsx/ff.toml +94 -0
  9. package/.gemini/commands/opsx/new.toml +66 -0
  10. package/.gemini/commands/opsx/onboard.toml +547 -0
  11. package/.gemini/commands/opsx/propose.toml +103 -0
  12. package/.gemini/commands/opsx/sync.toml +131 -0
  13. package/.gemini/commands/opsx/verify.toml +161 -0
  14. package/.gemini/commands/rpi/archive.toml +140 -0
  15. package/.gemini/commands/rpi/docs-gen.toml +210 -0
  16. package/.gemini/commands/rpi/docs.toml +153 -0
  17. package/.gemini/commands/rpi/evolve.toml +411 -0
  18. package/.gemini/commands/rpi/fix.toml +290 -0
  19. package/.gemini/commands/rpi/implement.toml +272 -0
  20. package/.gemini/commands/rpi/init.toml +180 -0
  21. package/.gemini/commands/rpi/learn.toml +105 -0
  22. package/.gemini/commands/rpi/new.toml +158 -0
  23. package/.gemini/commands/rpi/onboarding.toml +236 -0
  24. package/.gemini/commands/rpi/party.toml +204 -0
  25. package/.gemini/commands/rpi/plan.toml +623 -0
  26. package/.gemini/commands/rpi/research.toml +265 -0
  27. package/.gemini/commands/rpi/review.toml +443 -0
  28. package/.gemini/commands/rpi/rpi.toml +114 -0
  29. package/.gemini/commands/rpi/simplify.toml +214 -0
  30. package/.gemini/commands/rpi/status.toml +194 -0
  31. package/.gemini/commands/rpi/update.toml +107 -0
  32. package/.gemini/skills/openspec-apply-change/SKILL.md +156 -0
  33. package/.gemini/skills/openspec-archive-change/SKILL.md +114 -0
  34. package/.gemini/skills/openspec-bulk-archive-change/SKILL.md +246 -0
  35. package/.gemini/skills/openspec-continue-change/SKILL.md +118 -0
  36. package/.gemini/skills/openspec-explore/SKILL.md +288 -0
  37. package/.gemini/skills/openspec-ff-change/SKILL.md +101 -0
  38. package/.gemini/skills/openspec-new-change/SKILL.md +74 -0
  39. package/.gemini/skills/openspec-onboard/SKILL.md +554 -0
  40. package/.gemini/skills/openspec-propose/SKILL.md +110 -0
  41. package/.gemini/skills/openspec-sync-specs/SKILL.md +138 -0
  42. package/.gemini/skills/openspec-verify-change/SKILL.md +168 -0
  43. package/CHANGELOG.md +9 -0
  44. package/README.md +6 -6
  45. package/bin/cli.js +60 -18
  46. package/marketplace.json +2 -2
  47. package/package.json +2 -1
@@ -0,0 +1,170 @@
1
+ description = "Enter explore mode - think through ideas, investigate problems, clarify requirements"
2
+
3
+ prompt = """
4
+ Enter explore mode. Think deeply. Visualize freely. Follow the conversation wherever it goes.
5
+
6
+ **IMPORTANT: Explore mode is for thinking, not implementing.** You may read files, search code, and investigate the codebase, but you must NEVER write code or implement features. If the user asks you to implement something, remind them to exit explore mode first and create a change proposal. You MAY create OpenSpec artifacts (proposals, designs, specs) if the user asks—that's capturing thinking, not implementing.
7
+
8
+ **This is a stance, not a workflow.** There are no fixed steps, no required sequence, no mandatory outputs. You're a thinking partner helping the user explore.
9
+
10
+ **Input**: The argument after `/opsx:explore` is whatever the user wants to think about. Could be:
11
+ - A vague idea: "real-time collaboration"
12
+ - A specific problem: "the auth system is getting unwieldy"
13
+ - A change name: "add-dark-mode" (to explore in context of that change)
14
+ - A comparison: "postgres vs sqlite for this"
15
+ - Nothing (just enter explore mode)
16
+
17
+ ---
18
+
19
+ ## The Stance
20
+
21
+ - **Curious, not prescriptive** - Ask questions that emerge naturally, don't follow a script
22
+ - **Open threads, not interrogations** - Surface multiple interesting directions and let the user follow what resonates. Don't funnel them through a single path of questions.
23
+ - **Visual** - Use ASCII diagrams liberally when they'd help clarify thinking
24
+ - **Adaptive** - Follow interesting threads, pivot when new information emerges
25
+ - **Patient** - Don't rush to conclusions, let the shape of the problem emerge
26
+ - **Grounded** - Explore the actual codebase when relevant, don't just theorize
27
+
28
+ ---
29
+
30
+ ## What You Might Do
31
+
32
+ Depending on what the user brings, you might:
33
+
34
+ **Explore the problem space**
35
+ - Ask clarifying questions that emerge from what they said
36
+ - Challenge assumptions
37
+ - Reframe the problem
38
+ - Find analogies
39
+
40
+ **Investigate the codebase**
41
+ - Map existing architecture relevant to the discussion
42
+ - Find integration points
43
+ - Identify patterns already in use
44
+ - Surface hidden complexity
45
+
46
+ **Compare options**
47
+ - Brainstorm multiple approaches
48
+ - Build comparison tables
49
+ - Sketch tradeoffs
50
+ - Recommend a path (if asked)
51
+
52
+ **Visualize**
53
+ ```
54
+ ┌─────────────────────────────────────────┐
55
+ │ Use ASCII diagrams liberally │
56
+ ├─────────────────────────────────────────┤
57
+ │ │
58
+ │ ┌────────┐ ┌────────┐ │
59
+ │ │ State │────────▶│ State │ │
60
+ │ │ A │ │ B │ │
61
+ │ └────────┘ └────────┘ │
62
+ │ │
63
+ │ System diagrams, state machines, │
64
+ │ data flows, architecture sketches, │
65
+ │ dependency graphs, comparison tables │
66
+ │ │
67
+ └─────────────────────────────────────────┘
68
+ ```
69
+
70
+ **Surface risks and unknowns**
71
+ - Identify what could go wrong
72
+ - Find gaps in understanding
73
+ - Suggest spikes or investigations
74
+
75
+ ---
76
+
77
+ ## OpenSpec Awareness
78
+
79
+ You have full context of the OpenSpec system. Use it naturally, don't force it.
80
+
81
+ ### Check for context
82
+
83
+ At the start, quickly check what exists:
84
+ ```bash
85
+ openspec list --json
86
+ ```
87
+
88
+ This tells you:
89
+ - If there are active changes
90
+ - Their names, schemas, and status
91
+ - What the user might be working on
92
+
93
+ If the user mentioned a specific change name, read its artifacts for context.
94
+
95
+ ### When no change exists
96
+
97
+ Think freely. When insights crystallize, you might offer:
98
+
99
+ - "This feels solid enough to start a change. Want me to create a proposal?"
100
+ - Or keep exploring - no pressure to formalize
101
+
102
+ ### When a change exists
103
+
104
+ If the user mentions a change or you detect one is relevant:
105
+
106
+ 1. **Read existing artifacts for context**
107
+ - `openspec/changes/<name>/proposal.md`
108
+ - `openspec/changes/<name>/design.md`
109
+ - `openspec/changes/<name>/tasks.md`
110
+ - etc.
111
+
112
+ 2. **Reference them naturally in conversation**
113
+ - "Your design mentions using Redis, but we just realized SQLite fits better..."
114
+ - "The proposal scopes this to premium users, but we're now thinking everyone..."
115
+
116
+ 3. **Offer to capture when decisions are made**
117
+
118
+ | Insight Type | Where to Capture |
119
+ |--------------|------------------|
120
+ | New requirement discovered | `specs/<capability>/spec.md` |
121
+ | Requirement changed | `specs/<capability>/spec.md` |
122
+ | Design decision made | `design.md` |
123
+ | Scope changed | `proposal.md` |
124
+ | New work identified | `tasks.md` |
125
+ | Assumption invalidated | Relevant artifact |
126
+
127
+ Example offers:
128
+ - "That's a design decision. Capture it in design.md?"
129
+ - "This is a new requirement. Add it to specs?"
130
+ - "This changes scope. Update the proposal?"
131
+
132
+ 4. **The user decides** - Offer and move on. Don't pressure. Don't auto-capture.
133
+
134
+ ---
135
+
136
+ ## What You Don't Have To Do
137
+
138
+ - Follow a script
139
+ - Ask the same questions every time
140
+ - Produce a specific artifact
141
+ - Reach a conclusion
142
+ - Stay on topic if a tangent is valuable
143
+ - Be brief (this is thinking time)
144
+
145
+ ---
146
+
147
+ ## Ending Discovery
148
+
149
+ There's no required ending. Discovery might:
150
+
151
+ - **Flow into a proposal**: "Ready to start? I can create a change proposal."
152
+ - **Result in artifact updates**: "Updated design.md with these decisions"
153
+ - **Just provide clarity**: User has what they need, moves on
154
+ - **Continue later**: "We can pick this up anytime"
155
+
156
+ When things crystallize, you might offer a summary - but it's optional. Sometimes the thinking IS the value.
157
+
158
+ ---
159
+
160
+ ## Guardrails
161
+
162
+ - **Don't implement** - Never write code or implement features. Creating OpenSpec artifacts is fine, writing application code is not.
163
+ - **Don't fake understanding** - If something is unclear, dig deeper
164
+ - **Don't rush** - Discovery is thinking time, not task time
165
+ - **Don't force structure** - Let patterns emerge naturally
166
+ - **Don't auto-capture** - Offer to save insights, don't just do it
167
+ - **Do visualize** - A good diagram is worth many paragraphs
168
+ - **Do explore the codebase** - Ground discussions in reality
169
+ - **Do question assumptions** - Including the user's and your own
170
+ """
@@ -0,0 +1,94 @@
1
+ description = "Create a change and generate all artifacts needed for implementation in one go"
2
+
3
+ prompt = """
4
+ Fast-forward through artifact creation - generate everything needed to start implementation.
5
+
6
+ **Input**: The argument after `/opsx:ff` is the change name (kebab-case), OR a description of what the user wants to build.
7
+
8
+ **Steps**
9
+
10
+ 1. **If no input provided, ask what they want to build**
11
+
12
+ Use the **AskUserQuestion tool** (open-ended, no preset options) to ask:
13
+ > "What change do you want to work on? Describe what you want to build or fix."
14
+
15
+ From their description, derive a kebab-case name (e.g., "add user authentication" → `add-user-auth`).
16
+
17
+ **IMPORTANT**: Do NOT proceed without understanding what the user wants to build.
18
+
19
+ 2. **Create the change directory**
20
+ ```bash
21
+ openspec new change "<name>"
22
+ ```
23
+ This creates a scaffolded change at `openspec/changes/<name>/`.
24
+
25
+ 3. **Get the artifact build order**
26
+ ```bash
27
+ openspec status --change "<name>" --json
28
+ ```
29
+ Parse the JSON to get:
30
+ - `applyRequires`: array of artifact IDs needed before implementation (e.g., `["tasks"]`)
31
+ - `artifacts`: list of all artifacts with their status and dependencies
32
+
33
+ 4. **Create artifacts in sequence until apply-ready**
34
+
35
+ Use the **TodoWrite tool** to track progress through the artifacts.
36
+
37
+ Loop through artifacts in dependency order (artifacts with no pending dependencies first):
38
+
39
+ a. **For each artifact that is `ready` (dependencies satisfied)**:
40
+ - Get instructions:
41
+ ```bash
42
+ openspec instructions <artifact-id> --change "<name>" --json
43
+ ```
44
+ - The instructions JSON includes:
45
+ - `context`: Project background (constraints for you - do NOT include in output)
46
+ - `rules`: Artifact-specific rules (constraints for you - do NOT include in output)
47
+ - `template`: The structure to use for your output file
48
+ - `instruction`: Schema-specific guidance for this artifact type
49
+ - `outputPath`: Where to write the artifact
50
+ - `dependencies`: Completed artifacts to read for context
51
+ - Read any completed dependency files for context
52
+ - Create the artifact file using `template` as the structure
53
+ - Apply `context` and `rules` as constraints - but do NOT copy them into the file
54
+ - Show brief progress: "✓ Created <artifact-id>"
55
+
56
+ b. **Continue until all `applyRequires` artifacts are complete**
57
+ - After creating each artifact, re-run `openspec status --change "<name>" --json`
58
+ - Check if every artifact ID in `applyRequires` has `status: "done"` in the artifacts array
59
+ - Stop when all `applyRequires` artifacts are done
60
+
61
+ c. **If an artifact requires user input** (unclear context):
62
+ - Use **AskUserQuestion tool** to clarify
63
+ - Then continue with creation
64
+
65
+ 5. **Show final status**
66
+ ```bash
67
+ openspec status --change "<name>"
68
+ ```
69
+
70
+ **Output**
71
+
72
+ After completing all artifacts, summarize:
73
+ - Change name and location
74
+ - List of artifacts created with brief descriptions
75
+ - What's ready: "All artifacts created! Ready for implementation."
76
+ - Prompt: "Run `/opsx:apply` to start implementing."
77
+
78
+ **Artifact Creation Guidelines**
79
+
80
+ - Follow the `instruction` field from `openspec instructions` for each artifact type
81
+ - The schema defines what each artifact should contain - follow it
82
+ - Read dependency artifacts for context before creating new ones
83
+ - Use `template` as the structure for your output file - fill in its sections
84
+ - **IMPORTANT**: `context` and `rules` are constraints for YOU, not content for the file
85
+ - Do NOT copy `<context>`, `<rules>`, `<project_context>` blocks into the artifact
86
+ - These guide what you write, but should never appear in the output
87
+
88
+ **Guardrails**
89
+ - Create ALL artifacts needed for implementation (as defined by schema's `apply.requires`)
90
+ - Always read dependency artifacts before creating a new one
91
+ - If context is critically unclear, ask the user - but prefer making reasonable decisions to keep momentum
92
+ - If a change with that name already exists, ask if user wants to continue it or create a new one
93
+ - Verify each artifact file exists after writing before proceeding to next
94
+ """
@@ -0,0 +1,66 @@
1
+ description = "Start a new change using the experimental artifact workflow (OPSX)"
2
+
3
+ prompt = """
4
+ Start a new change using the experimental artifact-driven approach.
5
+
6
+ **Input**: The argument after `/opsx:new` is the change name (kebab-case), OR a description of what the user wants to build.
7
+
8
+ **Steps**
9
+
10
+ 1. **If no input provided, ask what they want to build**
11
+
12
+ Use the **AskUserQuestion tool** (open-ended, no preset options) to ask:
13
+ > "What change do you want to work on? Describe what you want to build or fix."
14
+
15
+ From their description, derive a kebab-case name (e.g., "add user authentication" → `add-user-auth`).
16
+
17
+ **IMPORTANT**: Do NOT proceed without understanding what the user wants to build.
18
+
19
+ 2. **Determine the workflow schema**
20
+
21
+ Use the default schema (omit `--schema`) unless the user explicitly requests a different workflow.
22
+
23
+ **Use a different schema only if the user mentions:**
24
+ - A specific schema name → use `--schema <name>`
25
+ - "show workflows" or "what workflows" → run `openspec schemas --json` and let them choose
26
+
27
+ **Otherwise**: Omit `--schema` to use the default.
28
+
29
+ 3. **Create the change directory**
30
+ ```bash
31
+ openspec new change "<name>"
32
+ ```
33
+ Add `--schema <name>` only if the user requested a specific workflow.
34
+ This creates a scaffolded change at `openspec/changes/<name>/` with the selected schema.
35
+
36
+ 4. **Show the artifact status**
37
+ ```bash
38
+ openspec status --change "<name>"
39
+ ```
40
+ This shows which artifacts need to be created and which are ready (dependencies satisfied).
41
+
42
+ 5. **Get instructions for the first artifact**
43
+ The first artifact depends on the schema. Check the status output to find the first artifact with status "ready".
44
+ ```bash
45
+ openspec instructions <first-artifact-id> --change "<name>"
46
+ ```
47
+ This outputs the template and context for creating the first artifact.
48
+
49
+ 6. **STOP and wait for user direction**
50
+
51
+ **Output**
52
+
53
+ After completing the steps, summarize:
54
+ - Change name and location
55
+ - Schema/workflow being used and its artifact sequence
56
+ - Current status (0/N artifacts complete)
57
+ - The template for the first artifact
58
+ - Prompt: "Ready to create the first artifact? Run `/opsx:continue` or just describe what this change is about and I'll draft it."
59
+
60
+ **Guardrails**
61
+ - Do NOT create any artifacts yet - just show the instructions
62
+ - Do NOT advance beyond showing the first artifact template
63
+ - If the name is invalid (not kebab-case), ask for a valid name
64
+ - If a change with that name already exists, suggest using `/opsx:continue` instead
65
+ - Pass --schema if using a non-default workflow
66
+ """