oh-my-githubcopilot 1.4.1 → 1.8.0-alpha.f50f59a
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/.claude-plugin/plugin.json +36 -6
- package/.mcp.json +17 -0
- package/AGENTS.md +78 -9
- package/CHANGELOG.md +199 -1
- package/README.de.md +112 -26
- package/README.es.md +115 -29
- package/README.fr.md +114 -28
- package/README.it.md +114 -28
- package/README.ja.md +112 -26
- package/README.ko.md +112 -26
- package/README.md +96 -95
- package/README.pt.md +116 -30
- package/README.ru.md +116 -30
- package/README.tr.md +115 -29
- package/README.vi.md +116 -30
- package/README.zh.md +112 -26
- package/agents/analyst.agent.md +27 -0
- package/agents/architect.agent.md +24 -0
- package/agents/code-reviewer.agent.md +24 -0
- package/agents/critic.agent.md +24 -0
- package/agents/debugger.agent.md +24 -0
- package/agents/designer.agent.md +24 -0
- package/agents/document-specialist.agent.md +24 -0
- package/agents/executor.agent.md +27 -0
- package/agents/explorer.agent.md +23 -0
- package/agents/git-master.agent.md +24 -0
- package/agents/orchestrator.agent.md +26 -0
- package/agents/planner.agent.md +24 -0
- package/agents/qa-tester.agent.md +24 -0
- package/agents/researcher.agent.md +18 -0
- package/agents/reviewer.agent.md +23 -0
- package/agents/scientist.agent.md +20 -0
- package/agents/security-reviewer.agent.md +20 -0
- package/agents/simplifier.agent.md +20 -0
- package/agents/test-engineer.agent.md +20 -0
- package/agents/tester.agent.md +20 -0
- package/agents/tracer.agent.md +24 -0
- package/agents/verifier.agent.md +19 -0
- package/agents/writer.agent.md +24 -0
- package/bin/omp-statusline.mjs +179 -0
- package/bin/omp-statusline.mjs.map +7 -0
- package/bin/omp-statusline.sh +21 -0
- package/bin/omp.mjs +709 -16
- package/bin/omp.mjs.map +4 -4
- package/dist/hooks/hud-emitter.mjs +268 -82
- package/dist/hooks/hud-emitter.mjs.map +4 -4
- package/dist/hooks/keyword-detector.mjs +100 -23
- package/dist/hooks/keyword-detector.mjs.map +2 -2
- package/dist/hooks/model-router.mjs +1 -1
- package/dist/hooks/model-router.mjs.map +1 -1
- package/dist/hooks/stop-continuation.mjs +1 -1
- package/dist/hooks/stop-continuation.mjs.map +1 -1
- package/dist/hooks/token-tracker.mjs +2 -1
- package/dist/hooks/token-tracker.mjs.map +2 -2
- package/dist/mcp/server.mjs +85 -53
- package/dist/mcp/server.mjs.map +4 -4
- package/dist/skills/setup.mjs +39 -27
- package/dist/skills/setup.mjs.map +4 -4
- package/hooks/hooks.json +39 -45
- package/package.json +9 -4
- package/plugin.json +71 -0
- package/skills/ai-slop-cleaner/SKILL.md +137 -0
- package/skills/autopilot/SKILL.md +6 -0
- package/skills/configure-notifications/SKILL.md +6 -0
- package/skills/deep-interview/SKILL.md +6 -0
- package/skills/doctor/SKILL.md +188 -0
- package/skills/ecomode/SKILL.md +6 -0
- package/skills/graph-context/SKILL.md +119 -0
- package/skills/graph-provider/SKILL.md +6 -0
- package/skills/graphify/SKILL.md +6 -0
- package/skills/graphwiki/SKILL.md +6 -0
- package/skills/hud/SKILL.md +6 -0
- package/skills/improve-codebase-architecture/SKILL.md +214 -0
- package/skills/interactive-menu/SKILL.md +102 -0
- package/skills/interview/SKILL.md +203 -0
- package/skills/learner/SKILL.md +6 -0
- package/skills/mcp-setup/SKILL.md +6 -0
- package/skills/note/SKILL.md +6 -0
- package/skills/notifications/SKILL.md +190 -0
- package/skills/omp-doctor/SKILL.md +146 -0
- package/skills/omp-plan/SKILL.md +219 -2
- package/skills/omp-reference/SKILL.md +174 -0
- package/skills/omp-setup/SKILL.md +15 -1
- package/skills/pipeline/SKILL.md +6 -0
- package/skills/psm/SKILL.md +6 -0
- package/skills/ralph/SKILL.md +6 -0
- package/skills/ralplan/SKILL.md +148 -0
- package/skills/release/SKILL.md +6 -0
- package/skills/research/SKILL.md +149 -0
- package/skills/session/SKILL.md +220 -0
- package/skills/setup/SKILL.md +6 -0
- package/skills/skillify/SKILL.md +66 -0
- package/skills/spending/SKILL.md +6 -0
- package/skills/swarm/SKILL.md +6 -0
- package/skills/swe-bench/SKILL.md +6 -0
- package/skills/tdd/SKILL.md +246 -0
- package/skills/team/SKILL.md +6 -0
- package/skills/trace/SKILL.md +6 -0
- package/skills/ultrawork/SKILL.md +6 -0
- package/skills/wiki/SKILL.md +6 -0
- package/src/agents/analyst.md +0 -103
- package/src/agents/architect.md +0 -169
- package/src/agents/code-reviewer.md +0 -135
- package/src/agents/critic.md +0 -196
- package/src/agents/debugger.md +0 -132
- package/src/agents/designer.md +0 -103
- package/src/agents/document-specialist.md +0 -111
- package/src/agents/executor.md +0 -120
- package/src/agents/explorer.md +0 -98
- package/src/agents/git-master.md +0 -92
- package/src/agents/orchestrator.md +0 -125
- package/src/agents/planner.md +0 -106
- package/src/agents/qa-tester.md +0 -129
- package/src/agents/researcher.md +0 -102
- package/src/agents/reviewer.md +0 -100
- package/src/agents/scientist.md +0 -150
- package/src/agents/security-reviewer.md +0 -132
- package/src/agents/simplifier.md +0 -109
- package/src/agents/test-engineer.md +0 -124
- package/src/agents/tester.md +0 -102
- package/src/agents/tracer.md +0 -160
- package/src/agents/verifier.md +0 -100
- package/src/agents/writer.md +0 -96
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: omp-reference
|
|
3
|
+
description: OMP agent catalog, available tools, team pipeline routing, commit protocol, and skills registry. Auto-loads when delegating to agents, using OMP tools, orchestrating teams, making commits, or invoking skills.
|
|
4
|
+
user-invocable: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# OMP Reference
|
|
8
|
+
|
|
9
|
+
Use this built-in reference when you need detailed OMP catalog information that does not need to live in every session context.
|
|
10
|
+
|
|
11
|
+
## Agent Catalog
|
|
12
|
+
|
|
13
|
+
Prefix: `omp:`. See `agents/*.md` for full prompts.
|
|
14
|
+
|
|
15
|
+
| # | ID | Tier | Tools | Role |
|
|
16
|
+
|---|-----|------|-------|------|
|
|
17
|
+
| 1 | `orchestrator` | high | TaskList, SendMessage, Glob, Grep | Top-level coordinator; never writes |
|
|
18
|
+
| 2 | `explorer` | standard | Glob, Grep, Read | Fast codebase surveys, pattern finding |
|
|
19
|
+
| 3 | `planner` | high | Read, Write, TaskCreate | Architecture, sequencing, risk assessment |
|
|
20
|
+
| 4 | `executor` | standard | Read, Write, Edit, Bash | Implementation, refactoring, complex changes |
|
|
21
|
+
| 5 | `verifier` | standard | Bash, Read, Glob | Testing, diagnostics, evidence collection |
|
|
22
|
+
| 6 | `writer` | standard | Read, Write, Glob | Documentation, README, API docs |
|
|
23
|
+
| 7 | `reviewer` | high | Read, Glob, Grep, LSP | Code review, quality gates |
|
|
24
|
+
| 8 | `designer` | high | WebFetch, Figma tools | UI/UX, design system, Figma integration |
|
|
25
|
+
| 9 | `researcher` | standard | WebSearch, WebFetch | External docs, benchmarking, options analysis |
|
|
26
|
+
| 10 | `tester` | standard | Bash, Read, Write | Test writing, execution, CI integration |
|
|
27
|
+
| 11 | `debugger` | high | Bash, Read, LSP, Grep | Error diagnosis, crash analysis |
|
|
28
|
+
| 12 | `architect` | high | Read, Write, Glob | System design, cross-cutting concerns |
|
|
29
|
+
| 13 | `security-reviewer` | high | Grep, Glob, Read | Vulnerability scanning, dependency audit |
|
|
30
|
+
| 14 | `simplifier` | high | Read, Edit, Grep | Code reuse, quality, efficiency improvements |
|
|
31
|
+
| 15 | `test-engineer` | standard | Bash, Read, Write | Test authoring, coverage analysis |
|
|
32
|
+
| 16 | `critic` | high | Read, Grep, Write | Plan review, gap analysis, improvement suggestions |
|
|
33
|
+
| 17 | `tracer` | high | Bash, Read, Grep | Causal investigation, root cause analysis |
|
|
34
|
+
| 18 | `scientist` | high | Read, Write, Bash | Experimental design, hypothesis testing |
|
|
35
|
+
| 19 | `code-reviewer` | standard | Read, Glob, LSP | PR reviews, style enforcement |
|
|
36
|
+
| 20 | `document-specialist` | standard | Read, Write, Grep | Technical docs, API docs, guides |
|
|
37
|
+
| 21 | `qa-tester` | standard | Bash, Read, Write | QA testing, regression verification |
|
|
38
|
+
| 22 | `git-master` | standard | Bash, Read, Grep | Atomic commits, history management |
|
|
39
|
+
| 23 | `analyst` | high | Read, Grep | Requirements analysis, gap identification |
|
|
40
|
+
|
|
41
|
+
## Model Routing
|
|
42
|
+
|
|
43
|
+
| Tier | When to use |
|
|
44
|
+
|------|-------------|
|
|
45
|
+
| high (opus) | Security, architecture, complex multi-file refactors, PR reviews, plan challenges |
|
|
46
|
+
| standard (sonnet) | Feature implementation, testing, documentation, debugging |
|
|
47
|
+
| fast (haiku) | Quick lookups, simple edits, documentation updates, glob/grep passes |
|
|
48
|
+
|
|
49
|
+
## Tools Reference
|
|
50
|
+
|
|
51
|
+
### Team runtime
|
|
52
|
+
- `TaskCreate`, `TaskList`, `TaskGet`, `TaskUpdate`
|
|
53
|
+
- `SendMessage`
|
|
54
|
+
|
|
55
|
+
### OMP state
|
|
56
|
+
- `state_read`, `state_write`, `state_clear`, `state_list_active`, `state_get_status`
|
|
57
|
+
|
|
58
|
+
### Notepad
|
|
59
|
+
- `notepad_read`, `notepad_write_priority`, `notepad_write_working`, `notepad_write_manual`
|
|
60
|
+
|
|
61
|
+
### Project memory
|
|
62
|
+
- `project_memory_read`, `project_memory_write`, `project_memory_add_note`, `project_memory_add_directive`
|
|
63
|
+
|
|
64
|
+
### Code intelligence
|
|
65
|
+
- LSP: `lsp_hover`, `lsp_goto_definition`, `lsp_find_references`, `lsp_diagnostics`, and related helpers
|
|
66
|
+
- AST: `ast_grep_search`, `ast_grep_replace`
|
|
67
|
+
- Utility: `python_repl`
|
|
68
|
+
|
|
69
|
+
## Skills Registry
|
|
70
|
+
|
|
71
|
+
Invoke built-in workflows via `/omp:<name>`.
|
|
72
|
+
|
|
73
|
+
### Workflow skills
|
|
74
|
+
- `autopilot` — full autonomous execution from idea to working code
|
|
75
|
+
- `ralph` — persistence loop until completion with verification
|
|
76
|
+
- `ultrawork` — high-throughput parallel execution
|
|
77
|
+
- `team` — coordinated team orchestration
|
|
78
|
+
- `ultraqa` — QA cycle: test, verify, fix, repeat
|
|
79
|
+
- `omp-plan` — planning workflow
|
|
80
|
+
- `pipeline` — sequential pipeline mode with strict phase ordering
|
|
81
|
+
- `swarm` — swarm orchestration with multiple agents and shared state
|
|
82
|
+
- `ecomode` — token budget mode; prioritize completion over expansion
|
|
83
|
+
- `trace` — evidence-driven causal tracing lane
|
|
84
|
+
- `deep-interview` — Socratic ambiguity-gated requirements workflow
|
|
85
|
+
- `graphify` — knowledge graph generation from any input
|
|
86
|
+
- `graphwiki` — LLM wiki with graph-backed knowledge base
|
|
87
|
+
|
|
88
|
+
### Utility skills
|
|
89
|
+
- `research` / `autoresearch:` — research and investigation workflow
|
|
90
|
+
- `omp-doctor` — diagnose and fix omp installation issues
|
|
91
|
+
- `omp-setup` — install or refresh omp plugin
|
|
92
|
+
- `setup` — install routing entrypoint
|
|
93
|
+
- `mcp-setup` — configure MCP servers
|
|
94
|
+
- `hud` — HUD display options
|
|
95
|
+
- `note` — quick note capture
|
|
96
|
+
- `learner` — extract learned skill from session
|
|
97
|
+
- `spending` — token spend tracking
|
|
98
|
+
- `release` — release assistant
|
|
99
|
+
- `configure-notifications` — notification integrations
|
|
100
|
+
- `wiki` — persistent LLM wiki
|
|
101
|
+
- `psm` — Plugin State Manager control
|
|
102
|
+
|
|
103
|
+
### Keyword triggers
|
|
104
|
+
- `"autopilot"→autopilot`
|
|
105
|
+
- `"ralph"→ralph`
|
|
106
|
+
- `"ulw"→ultrawork`
|
|
107
|
+
- `"ralplan"→omp-plan`
|
|
108
|
+
- `"deep interview"→deep-interview`
|
|
109
|
+
- `"autoresearch:"→research`
|
|
110
|
+
- `"pipeline"→pipeline`
|
|
111
|
+
- `"swarm"→swarm`
|
|
112
|
+
- `"eco"→ecomode`
|
|
113
|
+
- `"plan"→omp-plan`
|
|
114
|
+
- Team orchestration is explicit via `/team`.
|
|
115
|
+
|
|
116
|
+
## Team Pipeline
|
|
117
|
+
|
|
118
|
+
Stages: `team-plan` → `team-prd` → `team-exec` → `team-verify` → `team-fix` (loop).
|
|
119
|
+
|
|
120
|
+
- Use `team-fix` for bounded remediation loops.
|
|
121
|
+
- Prefer team mode when independent parallel lanes justify the coordination overhead.
|
|
122
|
+
|
|
123
|
+
## Execution Mode Handling
|
|
124
|
+
|
|
125
|
+
| Mode | Trigger | Behavior |
|
|
126
|
+
|------|---------|----------|
|
|
127
|
+
| `autopilot` | `/autopilot:` | Autonomous end-to-end execution |
|
|
128
|
+
| `ralph` | `/ralph:` | Self-referential loop with verification |
|
|
129
|
+
| `ultrawork` | `/ulw:` | Parallel execution engine |
|
|
130
|
+
| `team` | `/team:` | Coordinated multi-agent session on shared task list |
|
|
131
|
+
| `ecomode` | `/eco:` | Token budget mode |
|
|
132
|
+
| `swarm` | `/swarm:` | Multiple agents with shared state |
|
|
133
|
+
| `pipeline` | `/pipeline:` | Sequential pipeline with strict phase ordering |
|
|
134
|
+
| `plan` | `/plan:` | Strategic planning via planner agent |
|
|
135
|
+
|
|
136
|
+
## Commit Protocol
|
|
137
|
+
|
|
138
|
+
Use git trailers to preserve decision context in every commit message.
|
|
139
|
+
|
|
140
|
+
### Format
|
|
141
|
+
- Intent line first: why the change was made
|
|
142
|
+
- Optional body with context and rationale
|
|
143
|
+
- Structured trailers when applicable
|
|
144
|
+
|
|
145
|
+
### Common trailers
|
|
146
|
+
- `Constraint:` active constraint shaping the decision
|
|
147
|
+
- `Rejected:` alternative considered | reason for rejection
|
|
148
|
+
- `Directive:` forward-looking warning or instruction
|
|
149
|
+
- `Confidence:` `high` | `medium` | `low`
|
|
150
|
+
- `Scope-risk:` `narrow` | `moderate` | `broad`
|
|
151
|
+
- `Not-tested:` known verification gap
|
|
152
|
+
|
|
153
|
+
### Example
|
|
154
|
+
```text
|
|
155
|
+
feat(skills): add research skill to omp plugin
|
|
156
|
+
|
|
157
|
+
Adds autoresearch workflow with structured output format and
|
|
158
|
+
agent routing to researcher/explorer/architect as appropriate.
|
|
159
|
+
|
|
160
|
+
Constraint: No model routing parameters allowed in omp skills
|
|
161
|
+
Confidence: high
|
|
162
|
+
Scope-risk: narrow
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
## State Paths
|
|
166
|
+
|
|
167
|
+
All OMP runtime state uses `.omp/` prefix:
|
|
168
|
+
- `.omp/state/` — active state files
|
|
169
|
+
- `.omp/state/sessions/{sessionId}/` — per-session state
|
|
170
|
+
- `.omp/notepad.md` — shared notepad
|
|
171
|
+
- `.omp/project-memory.json` — persistent project memory
|
|
172
|
+
- `.omp/plans/` — planning artifacts
|
|
173
|
+
- `.omp/research/` — research outputs
|
|
174
|
+
- `.omp/logs/` — execution logs
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: omp-setup
|
|
3
|
+
description: OMP onboarding and configuration wizard
|
|
4
|
+
trigger: "setup:, /setup, /omp:setup, /omp-setup"
|
|
5
|
+
autoinvoke: false
|
|
6
|
+
---
|
|
1
7
|
# Skill: OMP-Setup
|
|
2
8
|
|
|
3
9
|
## Metadata
|
|
@@ -13,6 +19,8 @@
|
|
|
13
19
|
|
|
14
20
|
Orchestrates the OMP setup wizard:
|
|
15
21
|
- Phase 1: Base OMP setup (directory structure, first-run guidance)
|
|
22
|
+
- Phase 1.5: Merge required Copilot experimental features into `~/.copilot/config.json`
|
|
23
|
+
- Phase 1.5: Ensure Copilot `statusLine` points at OMP's packaged status-line script without overwriting an existing custom command
|
|
16
24
|
- Phase 2: MCP server configuration
|
|
17
25
|
|
|
18
26
|
## Interface
|
|
@@ -34,4 +42,10 @@ export function deactivate(): void
|
|
|
34
42
|
|
|
35
43
|
## Implementation
|
|
36
44
|
|
|
37
|
-
Spawns `bin/omp.mjs setup [args]
|
|
45
|
+
Spawns `bin/omp.mjs setup [args]` from the packaged plugin root so setup works from arbitrary workspaces.
|
|
46
|
+
The spawned process receives default OMP Copilot setup env values:
|
|
47
|
+
|
|
48
|
+
- `OMP_COPILOT_REQUIRED_EXPERIMENTAL_FEATURES`
|
|
49
|
+
- `OMP_COPILOT_STATUS_LINE_COMMAND`
|
|
50
|
+
|
|
51
|
+
No persistent resources are maintained by the skill wrapper itself.
|
package/skills/pipeline/SKILL.md
CHANGED
package/skills/psm/SKILL.md
CHANGED
package/skills/ralph/SKILL.md
CHANGED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ralplan
|
|
3
|
+
description: Consensus planning entrypoint that auto-gates vague ralph/autopilot/team requests before execution
|
|
4
|
+
trigger: "/omp:ralplan"
|
|
5
|
+
autoinvoke: false
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Ralplan (Consensus Planning Alias)
|
|
9
|
+
|
|
10
|
+
Ralplan is a shorthand alias for `/omp:plan --consensus`. It triggers iterative planning with Planner, Architect, and Critic agents until consensus is reached, with **RALPLAN-DR structured deliberation** (short mode by default, deliberate mode for high-risk work).
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
/omp:ralplan "task description"
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Flags
|
|
19
|
+
|
|
20
|
+
- `--interactive`: Enables user prompts at key decision points (draft review in step 2 and final approval in step 6). Without this flag the workflow runs fully automated — Planner → Architect → Critic loop — and outputs the final plan without asking for confirmation.
|
|
21
|
+
- `--deliberate`: Forces deliberate mode for high-risk work. Adds pre-mortem (3 scenarios) and expanded test planning (unit/integration/e2e/observability). Without this flag, deliberate mode can still auto-enable when the request explicitly signals high risk (auth/security, migrations, destructive changes, production incidents, compliance/PII, public API breakage).
|
|
22
|
+
|
|
23
|
+
## Usage with interactive mode
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
/omp:ralplan --interactive "task description"
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Behavior
|
|
30
|
+
|
|
31
|
+
This skill invokes the Plan skill in consensus mode:
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
/omp:plan --consensus <arguments>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
The consensus workflow:
|
|
38
|
+
1. **Planner** creates initial plan and a compact **RALPLAN-DR summary** before review:
|
|
39
|
+
- Principles (3-5)
|
|
40
|
+
- Decision Drivers (top 3)
|
|
41
|
+
- Viable Options (>=2) with bounded pros/cons
|
|
42
|
+
- If only one viable option remains, explicit invalidation rationale for alternatives
|
|
43
|
+
- Deliberate mode only: pre-mortem (3 scenarios) + expanded test plan (unit/integration/e2e/observability)
|
|
44
|
+
2. **User feedback** *(--interactive only)*: If `--interactive` is set, use `AskUserQuestion` to present the draft plan **plus the Principles / Drivers / Options summary** before review (Proceed to review / Request changes / Skip review). Otherwise, automatically proceed to review.
|
|
45
|
+
3. **Architect** reviews for architectural soundness and must provide the strongest steelman antithesis, at least one real tradeoff tension, and (when possible) synthesis — **await completion before step 4**. In deliberate mode, Architect should explicitly flag principle violations.
|
|
46
|
+
|
|
47
|
+
> Adopt the Architect role: "Review this plan for architectural soundness. Provide the strongest steelman antithesis against the favored option, at least one real tradeoff tension, and a synthesis path where possible."
|
|
48
|
+
|
|
49
|
+
4. **Critic** evaluates against quality criteria — run only after step 3 completes. Critic must enforce principle-option consistency, fair alternatives, risk mitigation clarity, testable acceptance criteria, and concrete verification steps. In deliberate mode, Critic must reject missing/weak pre-mortem or expanded test plan.
|
|
50
|
+
|
|
51
|
+
> Adopt the Critic role: "Evaluate this plan. Verify principle-option consistency, fair alternative exploration, risk mitigation clarity, testable acceptance criteria, and concrete verification steps. Explicitly reject shallow alternatives, driver contradictions, vague risks, or weak verification."
|
|
52
|
+
|
|
53
|
+
5. **Re-review loop** (max 5 iterations): Any non-`APPROVE` Critic verdict (`ITERATE` or `REJECT`) MUST run the same full closed loop:
|
|
54
|
+
a. Collect Architect + Critic feedback
|
|
55
|
+
b. Revise the plan with Planner
|
|
56
|
+
c. Return to Architect review
|
|
57
|
+
d. Return to Critic evaluation
|
|
58
|
+
e. Repeat this loop until Critic returns `APPROVE` or 5 iterations are reached
|
|
59
|
+
f. If 5 iterations are reached without `APPROVE`, present the best version to the user
|
|
60
|
+
6. On Critic approval *(--interactive only)*: If `--interactive` is set, use `AskUserQuestion` to present the plan with approval options:
|
|
61
|
+
- **Approve and implement via team** (Recommended) — proceed via `omp:team`
|
|
62
|
+
- **Approve and execute via ralph** — proceed via `omp:ralph`
|
|
63
|
+
- **Clear context and implement** — compact context first, then `omp:ralph` with the saved plan file
|
|
64
|
+
- **Request changes** — return to step 1
|
|
65
|
+
- **Reject** — discard the plan entirely
|
|
66
|
+
Final plan must include ADR (Decision, Drivers, Alternatives considered, Why chosen, Consequences, Follow-ups).
|
|
67
|
+
Otherwise (non-interactive), output the final plan and stop.
|
|
68
|
+
7. *(--interactive only)* User chooses: Approve (team or ralph), Request changes, or Reject
|
|
69
|
+
8. *(--interactive only)* On approval: invoke `omp:team` for parallel team execution (recommended) or `omp:ralph` for sequential execution — never implement directly
|
|
70
|
+
|
|
71
|
+
> **Important:** Steps 3 and 4 MUST run sequentially. Do NOT issue both agent reviews in the same parallel batch. Always await the Architect result before issuing the Critic evaluation.
|
|
72
|
+
|
|
73
|
+
Follow the omp-plan skill's full documentation for consensus mode details.
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## Pre-Execution Gate
|
|
78
|
+
|
|
79
|
+
### Why the Gate Exists
|
|
80
|
+
|
|
81
|
+
Execution modes (omp:ralph, omp:autopilot, omp:team, omp:ultrawork) spin up heavy multi-agent orchestration. When launched on a vague request like "ralph improve the app", agents have no clear target — they waste cycles on scope discovery that should happen during planning, often delivering partial or misaligned work that requires rework.
|
|
82
|
+
|
|
83
|
+
The ralplan-first gate intercepts underspecified execution requests and redirects them through the ralplan consensus planning workflow. This ensures:
|
|
84
|
+
- **Explicit scope**: A PRD defines exactly what will be built
|
|
85
|
+
- **Test specification**: Acceptance criteria are testable before code is written
|
|
86
|
+
- **Consensus**: Planner, Architect, and Critic agree on the approach
|
|
87
|
+
- **No wasted execution**: Agents start with a clear, bounded task
|
|
88
|
+
|
|
89
|
+
### Good vs Bad Prompts
|
|
90
|
+
|
|
91
|
+
**Passes the gate** (specific enough for direct execution):
|
|
92
|
+
- `ralph fix the null check in src/hooks/bridge.ts:326`
|
|
93
|
+
- `autopilot implement issue #42`
|
|
94
|
+
- `team add validation to function processKeywordDetector`
|
|
95
|
+
- `ralph do:\n1. Add input validation\n2. Write tests\n3. Update README`
|
|
96
|
+
- `ultrawork add the user model in src/models/user.ts`
|
|
97
|
+
|
|
98
|
+
**Gated — redirected to ralplan** (needs scoping first):
|
|
99
|
+
- `ralph fix this`
|
|
100
|
+
- `autopilot build the app`
|
|
101
|
+
- `team improve performance`
|
|
102
|
+
- `ralph add authentication`
|
|
103
|
+
- `ultrawork make it better`
|
|
104
|
+
|
|
105
|
+
**Bypass the gate** (when you know what you want):
|
|
106
|
+
- `force: ralph refactor the auth module`
|
|
107
|
+
- `! autopilot optimize everything`
|
|
108
|
+
|
|
109
|
+
### When the Gate Does NOT Trigger
|
|
110
|
+
|
|
111
|
+
The gate auto-passes when it detects **any** concrete signal. You do not need all of them — one is enough:
|
|
112
|
+
|
|
113
|
+
| Signal Type | Example prompt | Why it passes |
|
|
114
|
+
|---|---|---|
|
|
115
|
+
| File path | `ralph fix src/hooks/bridge.ts` | References a specific file |
|
|
116
|
+
| Issue/PR number | `ralph implement #42` | Has a concrete work item |
|
|
117
|
+
| camelCase symbol | `ralph fix processKeywordDetector` | Names a specific function |
|
|
118
|
+
| PascalCase symbol | `ralph update UserModel` | Names a specific class |
|
|
119
|
+
| snake_case symbol | `team fix user_model` | Names a specific identifier |
|
|
120
|
+
| Test runner | `ralph npm test && fix failures` | Has an explicit test target |
|
|
121
|
+
| Numbered steps | `ralph do:\n1. Add X\n2. Test Y` | Structured deliverables |
|
|
122
|
+
| Acceptance criteria | `ralph add login - acceptance criteria: ...` | Explicit success definition |
|
|
123
|
+
| Error reference | `ralph fix TypeError in auth` | Specific error to address |
|
|
124
|
+
| Code block | `ralph add: \`\`\`ts ... \`\`\`` | Concrete code provided |
|
|
125
|
+
| Escape prefix | `force: ralph do it` or `! ralph do it` | Explicit user override |
|
|
126
|
+
|
|
127
|
+
### End-to-End Flow Example
|
|
128
|
+
|
|
129
|
+
1. User types: `ralph add user authentication`
|
|
130
|
+
2. Gate detects: execution keyword (`ralph`) + underspecified prompt (no files, functions, or test spec)
|
|
131
|
+
3. Gate redirects to **ralplan** with message explaining the redirect
|
|
132
|
+
4. Ralplan consensus runs:
|
|
133
|
+
- **Planner** creates initial plan (which files, what auth method, what tests)
|
|
134
|
+
- **Architect** reviews for soundness
|
|
135
|
+
- **Critic** validates quality and testability
|
|
136
|
+
5. On consensus approval, user chooses execution path:
|
|
137
|
+
- **omp:team**: parallel coordinated agents (recommended)
|
|
138
|
+
- **omp:ralph**: sequential execution with verification
|
|
139
|
+
6. Execution begins with a clear, bounded plan
|
|
140
|
+
|
|
141
|
+
### Troubleshooting
|
|
142
|
+
|
|
143
|
+
| Issue | Solution |
|
|
144
|
+
|-------|----------|
|
|
145
|
+
| Gate fires on a well-specified prompt | Add a file reference, function name, or issue number to anchor the request |
|
|
146
|
+
| Want to bypass the gate | Prefix with `force:` or `!` (e.g., `force: ralph fix it`) |
|
|
147
|
+
| Gate does not fire on a vague prompt | The gate only catches prompts with <=15 effective words and no concrete anchors; add more detail or use `/omp:ralplan` explicitly |
|
|
148
|
+
| Redirected to ralplan but want to skip planning | In the ralplan workflow, say "just do it" or "skip planning" to transition directly to execution |
|
package/skills/release/SKILL.md
CHANGED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: research
|
|
3
|
+
description: Research and investigation skills. Use for "research this", "investigate", "find out", "autoresearch:", and "deep dive".
|
|
4
|
+
trigger: /omp:research
|
|
5
|
+
autoinvoke: false
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Skill: research
|
|
9
|
+
|
|
10
|
+
Conduct thorough research and investigation on topics.
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
|
|
14
|
+
- Unknown or unfamiliar topics
|
|
15
|
+
- Need comprehensive understanding
|
|
16
|
+
- Fact-finding missions
|
|
17
|
+
- Competitive analysis
|
|
18
|
+
- Technology evaluation
|
|
19
|
+
|
|
20
|
+
## Research Process
|
|
21
|
+
|
|
22
|
+
### 1. Define Scope
|
|
23
|
+
- What do we need to know?
|
|
24
|
+
- How deep to go?
|
|
25
|
+
- What sources to check?
|
|
26
|
+
- Timeline constraints
|
|
27
|
+
|
|
28
|
+
### 2. Gather Sources
|
|
29
|
+
- Official documentation
|
|
30
|
+
- Expert opinions
|
|
31
|
+
- Community discussions
|
|
32
|
+
- Real-world usage
|
|
33
|
+
|
|
34
|
+
### 3. Synthesize
|
|
35
|
+
- Extract key information
|
|
36
|
+
- Identify patterns
|
|
37
|
+
- Note contradictions
|
|
38
|
+
- Build understanding
|
|
39
|
+
|
|
40
|
+
### 4. Analyze
|
|
41
|
+
- Compare options
|
|
42
|
+
- Evaluate trade-offs
|
|
43
|
+
- Assess quality
|
|
44
|
+
- Rate confidence
|
|
45
|
+
|
|
46
|
+
### 5. Present
|
|
47
|
+
- Clear findings
|
|
48
|
+
- Source attribution
|
|
49
|
+
- Confidence levels
|
|
50
|
+
- Recommendations
|
|
51
|
+
|
|
52
|
+
## Source Types
|
|
53
|
+
|
|
54
|
+
### Primary Sources
|
|
55
|
+
- Official documentation
|
|
56
|
+
- Source code
|
|
57
|
+
- API specifications
|
|
58
|
+
- Original research
|
|
59
|
+
|
|
60
|
+
### Secondary Sources
|
|
61
|
+
- Expert blogs
|
|
62
|
+
- Technical articles
|
|
63
|
+
- Tutorial content
|
|
64
|
+
- Community posts
|
|
65
|
+
|
|
66
|
+
### Social Proof
|
|
67
|
+
- Usage statistics
|
|
68
|
+
- Adoption rates
|
|
69
|
+
- Community size
|
|
70
|
+
- Support availability
|
|
71
|
+
|
|
72
|
+
## Research Methods
|
|
73
|
+
|
|
74
|
+
### Code Archaeology
|
|
75
|
+
- Read source code
|
|
76
|
+
- Trace execution
|
|
77
|
+
- Find patterns
|
|
78
|
+
- Understand internals
|
|
79
|
+
|
|
80
|
+
### Documentation Mining
|
|
81
|
+
- API docs
|
|
82
|
+
- README files
|
|
83
|
+
- Change logs
|
|
84
|
+
- Migration guides
|
|
85
|
+
|
|
86
|
+
### Web Research
|
|
87
|
+
- Search engines
|
|
88
|
+
- Specialized forums
|
|
89
|
+
- Stack Overflow
|
|
90
|
+
- GitHub issues
|
|
91
|
+
|
|
92
|
+
### Expert Consultation
|
|
93
|
+
- Ask practitioners
|
|
94
|
+
- Find case studies
|
|
95
|
+
- Get benchmarks
|
|
96
|
+
- Collect opinions
|
|
97
|
+
|
|
98
|
+
## Agent Routing
|
|
99
|
+
|
|
100
|
+
Delegate research tasks to the `researcher` agent (standard tier). For deep code archaeology, use the `explorer` agent. For architecture trade-offs, escalate to the `architect` agent.
|
|
101
|
+
|
|
102
|
+
State for in-progress research is stored under `.omp/research/`.
|
|
103
|
+
|
|
104
|
+
## Output Format
|
|
105
|
+
|
|
106
|
+
```
|
|
107
|
+
## Research: {topic}
|
|
108
|
+
|
|
109
|
+
### Scope
|
|
110
|
+
**Questions:** {what we need to know}
|
|
111
|
+
**Depth:** {surface/deep/comprehensive}
|
|
112
|
+
**Timeline:** {constraints}
|
|
113
|
+
|
|
114
|
+
### Sources Consulted
|
|
115
|
+
| Source | Type | Relevance | Confidence |
|
|
116
|
+
|--------|------|-----------|------------|
|
|
117
|
+
| {source} | {type} | High | High |
|
|
118
|
+
|
|
119
|
+
### Findings
|
|
120
|
+
|
|
121
|
+
#### Topic 1: {title}
|
|
122
|
+
**Summary:** {what we learned}
|
|
123
|
+
**Source:** {source}
|
|
124
|
+
**Confidence:** {level}
|
|
125
|
+
|
|
126
|
+
#### Topic 2: {title}
|
|
127
|
+
...
|
|
128
|
+
|
|
129
|
+
### Analysis
|
|
130
|
+
{comparisons and synthesis}
|
|
131
|
+
|
|
132
|
+
### Recommendations
|
|
133
|
+
1. **{rec}** — {rationale}
|
|
134
|
+
|
|
135
|
+
### Confidence
|
|
136
|
+
- **Overall:** {level}
|
|
137
|
+
- **Gaps:** {what we don't know}
|
|
138
|
+
|
|
139
|
+
### Further Research
|
|
140
|
+
{what would improve confidence}
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
## Constraints
|
|
144
|
+
|
|
145
|
+
- Verify information independently
|
|
146
|
+
- Note source quality
|
|
147
|
+
- Be clear about confidence
|
|
148
|
+
- Avoid bias in selection
|
|
149
|
+
- Cite your sources
|