oh-my-codex-cli 0.1.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/.agent/skills/agent-kb/HOW_TO_USE.md +428 -0
- package/.agent/skills/agent-kb/README.md +46 -0
- package/.agent/skills/agent-kb/SKILL.md +128 -0
- package/.agent/skills/agent-kb/references/intelligent-analysis-explained.md +333 -0
- package/.agent/skills/agent-kb/references/query-optimization.md +225 -0
- package/.agent/skills/aireview/SKILL.md +704 -0
- package/.agent/skills/analyze/SKILL.md +81 -0
- package/.agent/skills/architect-planner/HOW_TO_USE.md +238 -0
- package/.agent/skills/architect-planner/README.md +41 -0
- package/.agent/skills/architect-planner/SKILL.md +539 -0
- package/.agent/skills/auto-mbti/SKILL.md +291 -0
- package/.agent/skills/autopilot/SKILL.md +222 -0
- package/.agent/skills/backend-patterns/SKILL.md +602 -0
- package/.agent/skills/bdd-generator/README.md +78 -0
- package/.agent/skills/bdd-generator/SKILL.md +436 -0
- package/.agent/skills/brainstorming/HOW_TO_USE.md +289 -0
- package/.agent/skills/brainstorming/README.md +41 -0
- package/.agent/skills/brainstorming/SKILL.md +165 -0
- package/.agent/skills/build-fix/SKILL.md +190 -0
- package/.agent/skills/cancel/SKILL.md +658 -0
- package/.agent/skills/checkpoint/SKILL.md +94 -0
- package/.agent/skills/code-review/SKILL.md +273 -0
- package/.agent/skills/coding-standards/SKILL.md +535 -0
- package/.agent/skills/conductor/SKILL.md +128 -0
- package/.agent/skills/conductor/commands/conductor/implement.toml +358 -0
- package/.agent/skills/conductor/commands/conductor/newTrack.toml +142 -0
- package/.agent/skills/conductor/commands/conductor/revert.toml +123 -0
- package/.agent/skills/conductor/commands/conductor/setup.toml +429 -0
- package/.agent/skills/conductor/commands/conductor/status.toml +57 -0
- package/.agent/skills/conductor/scripts/install.sh +89 -0
- package/.agent/skills/conductor/templates/code_styleguides/csharp.md +115 -0
- package/.agent/skills/conductor/templates/code_styleguides/dart.md +238 -0
- package/.agent/skills/conductor/templates/code_styleguides/general.md +23 -0
- package/.agent/skills/conductor/templates/code_styleguides/go.md +48 -0
- package/.agent/skills/conductor/templates/code_styleguides/html-css.md +49 -0
- package/.agent/skills/conductor/templates/code_styleguides/javascript.md +51 -0
- package/.agent/skills/conductor/templates/code_styleguides/python.md +37 -0
- package/.agent/skills/conductor/templates/code_styleguides/typescript.md +43 -0
- package/.agent/skills/conductor/templates/rules/README.md +23 -0
- package/.agent/skills/conductor/templates/rules/agents.md +49 -0
- package/.agent/skills/conductor/templates/rules/coding-style.md +70 -0
- package/.agent/skills/conductor/templates/rules/dev.md +20 -0
- package/.agent/skills/conductor/templates/rules/git-workflow.md +45 -0
- package/.agent/skills/conductor/templates/rules/hooks.md +6 -0
- package/.agent/skills/conductor/templates/rules/patterns.md +55 -0
- package/.agent/skills/conductor/templates/rules/performance.md +47 -0
- package/.agent/skills/conductor/templates/rules/research.md +26 -0
- package/.agent/skills/conductor/templates/rules/review.md +22 -0
- package/.agent/skills/conductor/templates/rules/security.md +36 -0
- package/.agent/skills/conductor/templates/rules/testing.md +30 -0
- package/.agent/skills/conductor/templates/workflow.md +333 -0
- package/.agent/skills/consensus/HOW_TO_USE.md +191 -0
- package/.agent/skills/consensus/README.md +41 -0
- package/.agent/skills/consensus/SKILL.md +317 -0
- package/.agent/skills/content-research-writer/SKILL.md +537 -0
- package/.agent/skills/debug-analysis/SKILL.md +331 -0
- package/.agent/skills/deepinit/SKILL.md +347 -0
- package/.agent/skills/deepsearch/SKILL.md +56 -0
- package/.agent/skills/doctor/SKILL.md +158 -0
- package/.agent/skills/drawio/EXAMPLES.md +382 -0
- package/.agent/skills/drawio/QUICK_START.md +237 -0
- package/.agent/skills/drawio/README.md +315 -0
- package/.agent/skills/drawio/SETUP_GUIDE.md +254 -0
- package/.agent/skills/drawio/SKILL.md +1176 -0
- package/.agent/skills/e2e/SKILL.md +396 -0
- package/.agent/skills/ecomode/SKILL.md +160 -0
- package/.agent/skills/electron-driver/SKILL.md +144 -0
- package/.agent/skills/electron-driver/scripts/driver-template.js +71 -0
- package/.agent/skills/eval/SKILL.md +140 -0
- package/.agent/skills/eval-harness/SKILL.md +242 -0
- package/.agent/skills/evolve/SKILL.md +213 -0
- package/.agent/skills/frontend-design/SKILL.md +42 -0
- package/.agent/skills/frontend-patterns/SKILL.md +646 -0
- package/.agent/skills/frontend-ui-ux/SKILL.md +70 -0
- package/.agent/skills/git-master/SKILL.md +75 -0
- package/.agent/skills/help/SKILL.md +89 -0
- package/.agent/skills/iterative-retrieval/SKILL.md +217 -0
- package/.agent/skills/local-skills-setup/SKILL.md +483 -0
- package/.agent/skills/log-analyzer/SKILL.md +187 -0
- package/.agent/skills/mcp-setup/SKILL.md +226 -0
- package/.agent/skills/multi-model-research/HOW_TO_USE.md +614 -0
- package/.agent/skills/multi-model-research/README.md +233 -0
- package/.agent/skills/multi-model-research/SKILL.md +541 -0
- package/.agent/skills/multi-model-research/references/troubleshooting.md +415 -0
- package/.agent/skills/note/SKILL.md +80 -0
- package/.agent/skills/omc-setup/SKILL.md +219 -0
- package/.agent/skills/orchestrate/SKILL.md +620 -0
- package/.agent/skills/patent-workflow/IMPLEMENTATION_SUMMARY.md +500 -0
- package/.agent/skills/patent-workflow/README.md +455 -0
- package/.agent/skills/patent-workflow/SKILL.md +1036 -0
- package/.agent/skills/patent-workflow/tools/irr_checker.py +260 -0
- package/.agent/skills/patent-workflow/tools/sample_terminology.json +49 -0
- package/.agent/skills/patent-workflow/tools/term_checker.py +355 -0
- package/.agent/skills/pattern-recognition/SKILL.md +792 -0
- package/.agent/skills/pipeline/SKILL.md +448 -0
- package/.agent/skills/plan/SKILL.md +309 -0
- package/.agent/skills/planning-methodology/SKILL.md +370 -0
- package/.agent/skills/planning-with-files/SKILL.md +210 -0
- package/.agent/skills/planning-with-files/examples.md +202 -0
- package/.agent/skills/planning-with-files/reference.md +218 -0
- package/.agent/skills/planning-with-files/scripts/check-complete.ps1 +42 -0
- package/.agent/skills/planning-with-files/scripts/check-complete.sh +44 -0
- package/.agent/skills/planning-with-files/scripts/init-session.ps1 +120 -0
- package/.agent/skills/planning-with-files/scripts/init-session.sh +120 -0
- package/.agent/skills/planning-with-files/scripts/session-catchup.py +208 -0
- package/.agent/skills/planning-with-files/templates/findings.md +95 -0
- package/.agent/skills/planning-with-files/templates/progress.md +114 -0
- package/.agent/skills/planning-with-files/templates/task_plan.md +132 -0
- package/.agent/skills/project-analyze/CLAUDE.md +18 -0
- package/.agent/skills/project-analyze/HOW_TO_USE.md +145 -0
- package/.agent/skills/project-analyze/README.md +42 -0
- package/.agent/skills/project-analyze/SKILL.md +289 -0
- package/.agent/skills/project-analyze/SKILL.md.backup +287 -0
- package/.agent/skills/project-analyze/SKILL.md.backup_20260105_093646 +287 -0
- package/.agent/skills/project-analyze/assets/analysis-report-template.md +433 -0
- package/.agent/skills/project-analyze/references/analysis-patterns.md +422 -0
- package/.agent/skills/project-analyze/references/projectmind-explained.md +535 -0
- package/.agent/skills/project-session-manager/SKILL.md +428 -0
- package/.agent/skills/project-session-manager/lib/config.sh +86 -0
- package/.agent/skills/project-session-manager/lib/parse.sh +121 -0
- package/.agent/skills/project-session-manager/lib/session.sh +132 -0
- package/.agent/skills/project-session-manager/lib/tmux.sh +103 -0
- package/.agent/skills/project-session-manager/lib/worktree.sh +171 -0
- package/.agent/skills/project-session-manager/psm.sh +629 -0
- package/.agent/skills/project-session-manager/templates/feature.md +56 -0
- package/.agent/skills/project-session-manager/templates/issue-fix.md +57 -0
- package/.agent/skills/project-session-manager/templates/pr-review.md +65 -0
- package/.agent/skills/project-session-manager/templates/projects.json +19 -0
- package/.agent/skills/quality-check/HOW_TO_USE.md +171 -0
- package/.agent/skills/quality-check/README.md +50 -0
- package/.agent/skills/quality-check/SKILL.md +240 -0
- package/.agent/skills/quality-check/SKILL.md.backup +238 -0
- package/.agent/skills/quality-check/SKILL.md.backup_20260105_093646 +238 -0
- package/.agent/skills/quality-check/assets/quality-report-template.md +437 -0
- package/.agent/skills/quality-check/references/refactoring-patterns.md +550 -0
- package/.agent/skills/quality-check/references/scoring-criteria.md +454 -0
- package/.agent/skills/quality-validation/SKILL.md +519 -0
- package/.agent/skills/quality-validation/SKILL.md.backup +573 -0
- package/.agent/skills/quality-validation/SKILL.md.backup_20260105_093646 +573 -0
- package/.agent/skills/ralph/SKILL.md +236 -0
- package/.agent/skills/ralph-init/SKILL.md +78 -0
- package/.agent/skills/ralplan/SKILL.md +58 -0
- package/.agent/skills/refactor-clean/SKILL.md +49 -0
- package/.agent/skills/release/SKILL.md +84 -0
- package/.agent/skills/research/SKILL.md +526 -0
- package/.agent/skills/research-methodology/SKILL.md +268 -0
- package/.agent/skills/review/SKILL.md +53 -0
- package/.agent/skills/security-review/SKILL.md +509 -0
- package/.agent/skills/security-review/cloud-infrastructure-security.md +361 -0
- package/.agent/skills/setup-pm/SKILL.md +102 -0
- package/.agent/skills/skill/SKILL.md +424 -0
- package/.agent/skills/skill-create/SKILL.md +209 -0
- package/.agent/skills/skill-debugger/HOW_TO_USE.md +244 -0
- package/.agent/skills/skill-debugger/README.md +44 -0
- package/.agent/skills/skill-debugger/SKILL.md +326 -0
- package/.agent/skills/skill-debugger/diagnostic_checklist.md +115 -0
- package/.agent/skills/skill-development/SKILL.md +661 -0
- package/.agent/skills/skill-development/references/skill-creator-original.md +209 -0
- package/.agent/skills/skill-doc-generator/README.md +37 -0
- package/.agent/skills/skill-doc-generator/SKILL.md +331 -0
- package/.agent/skills/skill-quality-analyzer/HOW_TO_USE.md +243 -0
- package/.agent/skills/skill-quality-analyzer/README.md +61 -0
- package/.agent/skills/skill-quality-analyzer/SKILL.md +247 -0
- package/.agent/skills/skill-quality-analyzer/analyzer.py +209 -0
- package/.agent/skills/skill-quality-analyzer/expected_output.json +81 -0
- package/.agent/skills/skill-quality-analyzer/sample_input.json +9 -0
- package/.agent/skills/skill-tester/README.md +46 -0
- package/.agent/skills/skill-tester/SKILL.md +345 -0
- package/.agent/skills/start-dev/SKILL.md +701 -0
- package/.agent/skills/swarm/SKILL.md +691 -0
- package/.agent/skills/task-kb-lookup/SKILL.md +211 -0
- package/.agent/skills/task-kb-record/SKILL.md +417 -0
- package/.agent/skills/tdd/SKILL.md +446 -0
- package/.agent/skills/tdd-generator/DEMO.md +516 -0
- package/.agent/skills/tdd-generator/README.md +89 -0
- package/.agent/skills/tdd-generator/SKILL.md +278 -0
- package/.agent/skills/tdd-workflow/SKILL.md +424 -0
- package/.agent/skills/test-coverage/SKILL.md +48 -0
- package/.agent/skills/thinkdeep/HOW_TO_USE.md +183 -0
- package/.agent/skills/thinkdeep/README.md +41 -0
- package/.agent/skills/thinkdeep/SKILL.md +343 -0
- package/.agent/skills/ui-ux-pro-max/SKILL.md +228 -0
- package/.agent/skills/ui-ux-pro-max/data/charts.csv +26 -0
- package/.agent/skills/ui-ux-pro-max/data/colors.csv +97 -0
- package/.agent/skills/ui-ux-pro-max/data/landing.csv +31 -0
- package/.agent/skills/ui-ux-pro-max/data/products.csv +97 -0
- package/.agent/skills/ui-ux-pro-max/data/prompts.csv +24 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/.agent/skills/ui-ux-pro-max/data/styles.csv +59 -0
- package/.agent/skills/ui-ux-pro-max/data/typography.csv +58 -0
- package/.agent/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/.agent/skills/ui-ux-pro-max/scripts/core.py +236 -0
- package/.agent/skills/ui-ux-pro-max/scripts/search.py +61 -0
- package/.agent/skills/ultrapilot/SKILL.md +647 -0
- package/.agent/skills/ultraqa/SKILL.md +152 -0
- package/.agent/skills/ultrawork/SKILL.md +123 -0
- package/.agent/skills/update-codemaps/SKILL.md +38 -0
- package/.agent/skills/update-docs/SKILL.md +52 -0
- package/.agent/skills/verification-loop/SKILL.md +140 -0
- package/.agent/skills/verify/SKILL.md +80 -0
- package/.agent/skills/writer-memory/SKILL.md +459 -0
- package/.agent/skills/writer-memory/lib/character-tracker.ts +338 -0
- package/.agent/skills/writer-memory/lib/memory-manager.ts +804 -0
- package/.agent/skills/writer-memory/lib/relationship-graph.ts +400 -0
- package/.agent/skills/writer-memory/lib/scene-organizer.ts +544 -0
- package/.agent/skills/writer-memory/lib/synopsis-builder.ts +339 -0
- package/.agent/skills/writer-memory/templates/synopsis-template.md +46 -0
- package/.governance/skill-lint.allowlist +4 -0
- package/.governance/skill-llm.allowlist +4 -0
- package/AGENTS.md +59 -0
- package/LICENSE +21 -0
- package/README.md +169 -0
- package/README.zh.md +145 -0
- package/bin/omcodex.js +8 -0
- package/commands/conductor/implement.toml +358 -0
- package/commands/conductor/newTrack.toml +142 -0
- package/commands/conductor/revert.toml +123 -0
- package/commands/conductor/setup.toml +429 -0
- package/commands/conductor/status.toml +57 -0
- package/docs/ALIGNMENT.md +40 -0
- package/docs/CODEX.md +133 -0
- package/docs/NOTIFY.md +81 -0
- package/docs/SKILL_GOVERNANCE.md +72 -0
- package/docs/SKILL_GOVERNANCE_FRAMEWORK.md +182 -0
- package/docs/SKILL_GOVERNANCE_FRAMEWORK.zh.md +170 -0
- package/package.json +50 -0
- package/prompts/architect.md +105 -0
- package/prompts/executor.md +134 -0
- package/prompts/planner.md +113 -0
- package/scripts/check-skill-governance.sh +84 -0
- package/scripts/check-skill-llm-governance.js +302 -0
- package/scripts/eval-skills.js +217 -0
- package/scripts/generate-catalog-docs.js +95 -0
- package/scripts/generate-codex-mcp-config.sh +22 -0
- package/scripts/install-codex-force.sh +5 -0
- package/scripts/install-codex-incremental.sh +5 -0
- package/scripts/install-codex.sh +79 -0
- package/scripts/notify-dispatch.js +15 -0
- package/scripts/setup-package-manager.js +137 -0
- package/src/catalog/generated/public-catalog.json +547 -0
- package/src/catalog/manifest.json +542 -0
- package/src/catalog/reader.js +43 -0
- package/src/catalog/schema.js +79 -0
- package/src/cli/doctor.js +62 -0
- package/src/cli/index.js +85 -0
- package/src/cli/notify.js +127 -0
- package/src/cli/route.js +43 -0
- package/src/cli/setup.js +155 -0
- package/src/cli/team.js +125 -0
- package/src/config/generator.js +119 -0
- package/src/mcp/memory-server.js +241 -0
- package/src/mcp/state-server.js +112 -0
- package/src/mcp/trace-server.js +168 -0
- package/src/notify/dispatch.js +74 -0
- package/src/notify/extensibility/dispatcher.js +113 -0
- package/src/notify/extensibility/events.js +15 -0
- package/src/notify/extensibility/loader.js +54 -0
- package/src/router/skill-router.js +90 -0
- package/src/team/auto-advance.js +72 -0
- package/src/team/orchestrator.js +82 -0
- package/src/team/state-store.js +33 -0
- package/src/utils/paths.js +33 -0
- package/templates/AGENTS.md +15 -0
- package/templates/catalog-manifest.json +542 -0
- package/templates/code_styleguides/csharp.md +115 -0
- package/templates/code_styleguides/dart.md +238 -0
- package/templates/code_styleguides/general.md +23 -0
- package/templates/code_styleguides/go.md +48 -0
- package/templates/code_styleguides/html-css.md +49 -0
- package/templates/code_styleguides/javascript.md +51 -0
- package/templates/code_styleguides/python.md +37 -0
- package/templates/code_styleguides/typescript.md +43 -0
- package/templates/rules/README.md +23 -0
- package/templates/rules/agents.md +49 -0
- package/templates/rules/coding-style.md +70 -0
- package/templates/rules/dev.md +20 -0
- package/templates/rules/git-workflow.md +45 -0
- package/templates/rules/notify.md +6 -0
- package/templates/rules/patterns.md +55 -0
- package/templates/rules/performance.md +47 -0
- package/templates/rules/research.md +26 -0
- package/templates/rules/review.md +22 -0
- package/templates/rules/security.md +36 -0
- package/templates/rules/testing.md +30 -0
- package/templates/workflow.md +333 -0
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ralph
|
|
3
|
+
description: Self-referential loop until task completion with architect verification
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Ralph Skill
|
|
7
|
+
|
|
8
|
+
> Codex invocation: use `$ralph ...` or `ralph: ...`
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
[RALPH + ULTRAWORK - ITERATION {{ITERATION}}/{{MAX}}]
|
|
12
|
+
|
|
13
|
+
Your previous attempt did not output the completion promise. Continue working on the task.
|
|
14
|
+
|
|
15
|
+
## Native Subagent Protocol (Codex)
|
|
16
|
+
|
|
17
|
+
Codex supports native subagents. Delegate with `spawn_agent`, coordinate with `send_input`, collect via `wait`, and clean up with `close_agent`.
|
|
18
|
+
|
|
19
|
+
Required per-iteration output:
|
|
20
|
+
```
|
|
21
|
+
[ANALYST] Requirements + risks
|
|
22
|
+
[ARCHITECT] Approach + file list
|
|
23
|
+
[EXECUTOR] What changed + why
|
|
24
|
+
[REVIEWER] Verify criteria + tests
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## PRD MODE (OPTIONAL)
|
|
28
|
+
|
|
29
|
+
If the user provides the `--prd` flag, initialize a PRD (Product Requirements Document) BEFORE starting the ralph loop.
|
|
30
|
+
|
|
31
|
+
### Detecting PRD Mode
|
|
32
|
+
|
|
33
|
+
Check if `{{PROMPT}}` contains the flag pattern: `--prd` or `--PRD`
|
|
34
|
+
|
|
35
|
+
### PRD Initialization Workflow
|
|
36
|
+
|
|
37
|
+
When `--prd` flag detected:
|
|
38
|
+
|
|
39
|
+
1. **Create PRD File Structure** (`.omc/prd.json` and `.omc/progress.txt`)
|
|
40
|
+
2. **Parse the task** (everything after `--prd` flag)
|
|
41
|
+
3. **Break down into user stories** with this structure:
|
|
42
|
+
|
|
43
|
+
```json
|
|
44
|
+
{
|
|
45
|
+
"project": "[Project Name]",
|
|
46
|
+
"branchName": "ralph/[feature-name]",
|
|
47
|
+
"description": "[Feature description]",
|
|
48
|
+
"userStories": [
|
|
49
|
+
{
|
|
50
|
+
"id": "US-001",
|
|
51
|
+
"title": "[Short title]",
|
|
52
|
+
"description": "As a [user], I want to [action] so that [benefit].",
|
|
53
|
+
"acceptanceCriteria": ["Criterion 1", "Typecheck passes"],
|
|
54
|
+
"priority": 1,
|
|
55
|
+
"passes": false
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
4. **Create progress.txt**:
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
# Ralph Progress Log
|
|
65
|
+
Started: [ISO timestamp]
|
|
66
|
+
|
|
67
|
+
## Codebase Patterns
|
|
68
|
+
(No patterns discovered yet)
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
5. **Guidelines for PRD creation**:
|
|
74
|
+
- Right-sized stories: Each completable in one focused session
|
|
75
|
+
- Verifiable criteria: Include "Typecheck passes", "Tests pass"
|
|
76
|
+
- Independent stories: Minimize dependencies
|
|
77
|
+
- Priority order: Foundational work (DB, types) before UI
|
|
78
|
+
|
|
79
|
+
6. **After PRD created**: Proceed to normal ralph loop execution using the user stories as your task list
|
|
80
|
+
|
|
81
|
+
### Example Usage
|
|
82
|
+
|
|
83
|
+
User input: `--prd build a todo app with React and TypeScript`
|
|
84
|
+
|
|
85
|
+
Your workflow:
|
|
86
|
+
1. Detect `--prd` flag
|
|
87
|
+
2. Extract task: "build a todo app with React and TypeScript"
|
|
88
|
+
3. Create `.omc/prd.json` with user stories
|
|
89
|
+
4. Create `.omc/progress.txt`
|
|
90
|
+
5. Begin ralph loop using user stories as task breakdown
|
|
91
|
+
|
|
92
|
+
## ULTRAWORK MODE (AUTO-ACTIVATED)
|
|
93
|
+
|
|
94
|
+
Ralph automatically activates Ultrawork for maximum parallel execution. You MUST follow these rules:
|
|
95
|
+
|
|
96
|
+
### Parallel Execution Rules
|
|
97
|
+
- **PARALLEL**: Fire independent calls simultaneously - NEVER wait sequentially
|
|
98
|
+
- **BACKGROUND FIRST**: Use background worker execution for long operations (10+ concurrent)
|
|
99
|
+
- **DELEGATE**: Route tasks to specialist agents immediately
|
|
100
|
+
|
|
101
|
+
### Smart Model Routing (SAVE TOKENS)
|
|
102
|
+
|
|
103
|
+
| Task Complexity | Tier | Examples |
|
|
104
|
+
|-----------------|------|----------|
|
|
105
|
+
| Simple lookups | LOW (haiku) | "What does this function return?", "Find where X is defined" |
|
|
106
|
+
| Standard work | MEDIUM (sonnet) | "Add error handling", "Implement this feature" |
|
|
107
|
+
| Complex analysis | HIGH (opus) | "Debug this race condition", "Refactor auth module" |
|
|
108
|
+
|
|
109
|
+
### Available Agents by Tier
|
|
110
|
+
|
|
111
|
+
| Domain | LOW (Haiku) | MEDIUM (Sonnet) | HIGH (Opus) |
|
|
112
|
+
|--------|-------------|-----------------|-------------|
|
|
113
|
+
| **Analysis** | `architect-low` | `architect-medium` | `architect` |
|
|
114
|
+
| **Execution** | `executor-low` | `executor` | `executor-high` |
|
|
115
|
+
| **Search** | `explore` | `explore-medium` | - |
|
|
116
|
+
| **Research** | `researcher-low` | `researcher` | - |
|
|
117
|
+
| **Frontend** | `designer-low` | `designer` | `designer-high` |
|
|
118
|
+
| **Docs** | `writer` | - | - |
|
|
119
|
+
| **Visual** | - | `vision` | - |
|
|
120
|
+
| **Planning** | - | - | `planner` |
|
|
121
|
+
| **Critique** | - | - | `critic` |
|
|
122
|
+
| **Pre-Planning** | - | - | `analyst` |
|
|
123
|
+
| **Testing** | - | `qa-tester` | - |
|
|
124
|
+
| **Security** | `security-reviewer-low` | - | `security-reviewer` |
|
|
125
|
+
| **Build** | `build-fixer-low` | `build-fixer` | - |
|
|
126
|
+
| **TDD** | `tdd-guide-low` | `tdd-guide` | - |
|
|
127
|
+
| **Code Review** | `code-reviewer-low` | - | `code-reviewer` |
|
|
128
|
+
|
|
129
|
+
**CRITICAL: Always pass `model` parameter explicitly!**
|
|
130
|
+
```
|
|
131
|
+
[ARCHITECT-LOW | haiku] "..."
|
|
132
|
+
[EXECUTOR | sonnet] "..."
|
|
133
|
+
[ARCHITECT | opus] "..."
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### Background Execution Rules
|
|
137
|
+
|
|
138
|
+
**Run in Background** (set `run_in_background: true`):
|
|
139
|
+
- Package installation: npm install, pip install, cargo build
|
|
140
|
+
- Build processes: npm run build, make, tsc
|
|
141
|
+
- Test suites: npm test, pytest, cargo test
|
|
142
|
+
- Docker operations: docker build, docker pull
|
|
143
|
+
|
|
144
|
+
**Run Blocking** (foreground):
|
|
145
|
+
- Quick status checks: git status, ls, pwd
|
|
146
|
+
- File reads, edits
|
|
147
|
+
- Simple commands
|
|
148
|
+
|
|
149
|
+
## COMPLETION REQUIREMENTS
|
|
150
|
+
|
|
151
|
+
Before claiming completion, you MUST:
|
|
152
|
+
1. Verify ALL requirements from the original task are met
|
|
153
|
+
2. Ensure no partial implementations
|
|
154
|
+
3. Check that code compiles/runs without errors
|
|
155
|
+
4. Verify tests pass (if applicable)
|
|
156
|
+
5. TODO LIST: Zero pending/in_progress tasks
|
|
157
|
+
|
|
158
|
+
## VERIFICATION BEFORE COMPLETION (IRON LAW)
|
|
159
|
+
|
|
160
|
+
**NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE**
|
|
161
|
+
|
|
162
|
+
Before outputting the completion promise:
|
|
163
|
+
|
|
164
|
+
### Steps (MANDATORY)
|
|
165
|
+
1. **IDENTIFY**: What command proves the task is complete?
|
|
166
|
+
2. **RUN**: Execute verification (test, build, lint)
|
|
167
|
+
3. **READ**: Check output - did it actually pass?
|
|
168
|
+
4. **ONLY THEN**: Proceed to Architect verification
|
|
169
|
+
|
|
170
|
+
### Red Flags (STOP and verify)
|
|
171
|
+
- Using "should", "probably", "seems to"
|
|
172
|
+
- About to output completion without fresh evidence
|
|
173
|
+
- Expressing satisfaction before verification
|
|
174
|
+
|
|
175
|
+
### Evidence Chain
|
|
176
|
+
1. Fresh test run output showing pass
|
|
177
|
+
2. Fresh build output showing success
|
|
178
|
+
3. lsp_diagnostics showing 0 errors
|
|
179
|
+
4. THEN Architect verification
|
|
180
|
+
5. THEN completion promise
|
|
181
|
+
|
|
182
|
+
**Skipping verification = Task NOT complete**
|
|
183
|
+
|
|
184
|
+
## ARCHITECT VERIFICATION (MANDATORY)
|
|
185
|
+
|
|
186
|
+
When you believe the task is complete:
|
|
187
|
+
1. **First**, spawn Architect to verify your work (ALWAYS pass model explicitly!):
|
|
188
|
+
```
|
|
189
|
+
[ARCHITECT | opus] "Verify this implementation is complete: [describe what you did]"
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
2. **Wait for Architect's assessment**
|
|
193
|
+
|
|
194
|
+
3. **If Architect approves**: Output `<promise>{{PROMISE}}</promise>`
|
|
195
|
+
4. **If Architect finds issues**: Fix them, then repeat verification
|
|
196
|
+
|
|
197
|
+
DO NOT output the completion promise without Architect verification.
|
|
198
|
+
|
|
199
|
+
## ZERO TOLERANCE
|
|
200
|
+
|
|
201
|
+
- NO Scope Reduction - deliver FULL implementation
|
|
202
|
+
- NO Partial Completion - finish 100%
|
|
203
|
+
- NO Premature Stopping - ALL TODOs must be complete
|
|
204
|
+
- NO TEST DELETION - fix code, not tests
|
|
205
|
+
|
|
206
|
+
## STATE CLEANUP ON COMPLETION
|
|
207
|
+
|
|
208
|
+
**IMPORTANT: Delete state files on successful completion - do NOT just set `active: false`**
|
|
209
|
+
|
|
210
|
+
When outputting the completion promise after Architect verification:
|
|
211
|
+
|
|
212
|
+
```bash
|
|
213
|
+
# Delete ralph state file (and linked ultrawork if applicable)
|
|
214
|
+
rm -f .omc/state/ralph-state.json
|
|
215
|
+
rm -f .omc/state/ralph-verification.json
|
|
216
|
+
rm -f ~/.codex/ralph-state.json
|
|
217
|
+
|
|
218
|
+
# If ultrawork was linked, delete it too
|
|
219
|
+
rm -f .omc/state/ultrawork-state.json
|
|
220
|
+
rm -f ~/.codex/ultrawork-state.json
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
This ensures clean state for future sessions. Stale state files with `active: false` should not be left behind.
|
|
224
|
+
|
|
225
|
+
## INSTRUCTIONS
|
|
226
|
+
|
|
227
|
+
- Review your progress so far
|
|
228
|
+
- Continue from where you left off
|
|
229
|
+
- Use parallel execution and background tasks
|
|
230
|
+
- When FULLY complete AND Architect verified:
|
|
231
|
+
1. Clean up state files (delete ralph-state.json, ultrawork-state.json)
|
|
232
|
+
2. Output: <promise>{{PROMISE}}</promise>
|
|
233
|
+
- Do not stop until the task is truly done
|
|
234
|
+
|
|
235
|
+
Original task:
|
|
236
|
+
{{PROMPT}}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ralph-init
|
|
3
|
+
description: Initialize a PRD (Product Requirements Document) for structured ralph-loop execution
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Ralph Init Skill
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## Native Subagent Protocol (Codex)
|
|
10
|
+
|
|
11
|
+
Codex supports native subagents. Delegate with `spawn_agent`, coordinate with `send_input`, collect via `wait`, and clean up with `close_agent`.
|
|
12
|
+
|
|
13
|
+
Execution preference:
|
|
14
|
+
1. Use native subagents first for independent workstreams (parallel when possible).
|
|
15
|
+
2. Merge results in main thread and run final verification.
|
|
16
|
+
3. Fallback only when delegation is blocked: use the `[ANALYST]`/`[ARCHITECT]`/`[EXECUTOR]`/`[REVIEWER]` structure in a single response.
|
|
17
|
+
|
|
18
|
+
Minimal orchestration pattern:
|
|
19
|
+
```text
|
|
20
|
+
spawn_agent -> send_input (optional) -> wait -> close_agent
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
> Codex invocation: use `$ralph-init ...` or `ralph-init: ...`
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
[RALPH-INIT - PRD CREATION MODE]
|
|
27
|
+
|
|
28
|
+
## What is PRD?
|
|
29
|
+
|
|
30
|
+
A PRD (Product Requirements Document) structures your task into discrete user stories for ralph-loop.
|
|
31
|
+
|
|
32
|
+
## Your Task
|
|
33
|
+
|
|
34
|
+
Create `.omc/prd.json` and `.omc/progress.txt` based on the task description.
|
|
35
|
+
|
|
36
|
+
### prd.json Structure
|
|
37
|
+
|
|
38
|
+
```json
|
|
39
|
+
{
|
|
40
|
+
"project": "[Project Name]",
|
|
41
|
+
"branchName": "ralph/[feature-name]",
|
|
42
|
+
"description": "[Feature description]",
|
|
43
|
+
"userStories": [
|
|
44
|
+
{
|
|
45
|
+
"id": "US-001",
|
|
46
|
+
"title": "[Short title]",
|
|
47
|
+
"description": "As a [user], I want to [action] so that [benefit].",
|
|
48
|
+
"acceptanceCriteria": ["Criterion 1", "Typecheck passes"],
|
|
49
|
+
"priority": 1,
|
|
50
|
+
"passes": false
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### progress.txt Structure
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
# Ralph Progress Log
|
|
60
|
+
Started: [ISO timestamp]
|
|
61
|
+
|
|
62
|
+
## Codebase Patterns
|
|
63
|
+
(No patterns discovered yet)
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Guidelines
|
|
69
|
+
|
|
70
|
+
1. **Right-sized stories**: Each completable in one focused session
|
|
71
|
+
2. **Verifiable criteria**: Include "Typecheck passes", "Tests pass"
|
|
72
|
+
3. **Independent stories**: Minimize dependencies between stories
|
|
73
|
+
4. **Priority order**: Foundational work (DB, types) before UI
|
|
74
|
+
|
|
75
|
+
After creating files, report summary and suggest running `$ralph-loop` to start.
|
|
76
|
+
|
|
77
|
+
Task to break down:
|
|
78
|
+
{{ARGUMENTS}}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ralplan
|
|
3
|
+
description: Iterative planning with Planner, Architect, and Critic until consensus
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Ralplan Command
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## Native Subagent Protocol (Codex)
|
|
10
|
+
|
|
11
|
+
Codex supports native subagents. Delegate with `spawn_agent`, coordinate with `send_input`, collect via `wait`, and clean up with `close_agent`.
|
|
12
|
+
|
|
13
|
+
Execution preference:
|
|
14
|
+
1. Use native subagents first for independent workstreams (parallel when possible).
|
|
15
|
+
2. Merge results in main thread and run final verification.
|
|
16
|
+
3. Fallback only when delegation is blocked: use the `[ANALYST]`/`[ARCHITECT]`/`[EXECUTOR]`/`[REVIEWER]` structure in a single response.
|
|
17
|
+
|
|
18
|
+
Minimal orchestration pattern:
|
|
19
|
+
```text
|
|
20
|
+
spawn_agent -> send_input (optional) -> wait -> close_agent
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
> Codex invocation: use `$ralplan ...` or `ralplan: ...`
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
**This is an alias for `$plan --consensus`**
|
|
27
|
+
|
|
28
|
+
Ralplan orchestrates three specialized agents—Planner, Architect, and Critic—in an iterative loop until consensus is reached on a comprehensive work plan.
|
|
29
|
+
|
|
30
|
+
## Usage
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
$ralplan [task]
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## What It Does
|
|
37
|
+
|
|
38
|
+
Invokes the plan skill with --consensus mode, which:
|
|
39
|
+
1. Creates initial plan with Planner agent
|
|
40
|
+
2. Consults Architect for architectural questions
|
|
41
|
+
3. Reviews with Critic agent
|
|
42
|
+
4. Iterates until Critic approves (max 5 iterations)
|
|
43
|
+
|
|
44
|
+
## Implementation
|
|
45
|
+
|
|
46
|
+
When this skill is invoked, immediately invoke the plan skill with consensus mode:
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
Invoke Skill: plan --consensus {{ARGUMENTS}}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Pass all arguments to the plan skill. The plan skill handles all consensus logic, state management, and iteration.
|
|
53
|
+
|
|
54
|
+
## See Also
|
|
55
|
+
|
|
56
|
+
- `$plan` - Base planning skill with all modes
|
|
57
|
+
- `$plan --consensus` - Direct invocation of consensus mode
|
|
58
|
+
- `$cancel` - Cancel active planning session
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: refactor-clean
|
|
3
|
+
description: Imported from everything-codex command refactor-clean
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Refactor Clean
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## Native Subagent Protocol (Codex)
|
|
10
|
+
|
|
11
|
+
Codex supports native subagents. Delegate with `spawn_agent`, coordinate with `send_input`, collect via `wait`, and clean up with `close_agent`.
|
|
12
|
+
|
|
13
|
+
Execution preference:
|
|
14
|
+
1. Use native subagents first for independent workstreams (parallel when possible).
|
|
15
|
+
2. Merge results in main thread and run final verification.
|
|
16
|
+
3. Fallback only when delegation is blocked: use the `[ANALYST]`/`[ARCHITECT]`/`[EXECUTOR]`/`[REVIEWER]` structure in a single response.
|
|
17
|
+
|
|
18
|
+
Minimal orchestration pattern:
|
|
19
|
+
```text
|
|
20
|
+
spawn_agent -> send_input (optional) -> wait -> close_agent
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Safely identify and remove dead code with test verification:
|
|
24
|
+
|
|
25
|
+
1. Run dead code analysis tools:
|
|
26
|
+
- knip: Find unused exports and files
|
|
27
|
+
- depcheck: Find unused dependencies
|
|
28
|
+
- ts-prune: Find unused TypeScript exports
|
|
29
|
+
|
|
30
|
+
2. Generate comprehensive report in .reports/dead-code-analysis.md
|
|
31
|
+
|
|
32
|
+
3. Categorize findings by severity:
|
|
33
|
+
- SAFE: Test files, unused utilities
|
|
34
|
+
- CAUTION: API routes, components
|
|
35
|
+
- DANGER: Config files, main entry points
|
|
36
|
+
|
|
37
|
+
4. Propose safe deletions only
|
|
38
|
+
|
|
39
|
+
5. Before each deletion:
|
|
40
|
+
- Run full test suite
|
|
41
|
+
- Verify tests pass
|
|
42
|
+
- Apply change
|
|
43
|
+
- Re-run tests
|
|
44
|
+
- Rollback if tests fail
|
|
45
|
+
|
|
46
|
+
6. Show summary of cleaned items
|
|
47
|
+
|
|
48
|
+
Never delete code without running tests first!
|
|
49
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: release
|
|
3
|
+
description: Automated release workflow for oh-my-codex
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Release Skill
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## Native Subagent Protocol (Codex)
|
|
10
|
+
|
|
11
|
+
Codex supports native subagents. Delegate with `spawn_agent`, coordinate with `send_input`, collect via `wait`, and clean up with `close_agent`.
|
|
12
|
+
|
|
13
|
+
Execution preference:
|
|
14
|
+
1. Use native subagents first for independent workstreams (parallel when possible).
|
|
15
|
+
2. Merge results in main thread and run final verification.
|
|
16
|
+
3. Fallback only when delegation is blocked: use the `[ANALYST]`/`[ARCHITECT]`/`[EXECUTOR]`/`[REVIEWER]` structure in a single response.
|
|
17
|
+
|
|
18
|
+
Minimal orchestration pattern:
|
|
19
|
+
```text
|
|
20
|
+
spawn_agent -> send_input (optional) -> wait -> close_agent
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
> Codex invocation: use `$release ...` or `release: ...`
|
|
24
|
+
|
|
25
|
+
Automate the release process for oh-my-codex.
|
|
26
|
+
|
|
27
|
+
## Usage
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
$release <version>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Example: `$release 0.2.0` or `$release patch` or `$release minor`
|
|
34
|
+
|
|
35
|
+
## Release Checklist
|
|
36
|
+
|
|
37
|
+
Execute these steps in order:
|
|
38
|
+
|
|
39
|
+
### 1. Version Bump
|
|
40
|
+
Update version in all locations:
|
|
41
|
+
- `package.json`
|
|
42
|
+
- `README.md`
|
|
43
|
+
- `AGENTS.md`
|
|
44
|
+
- `docs/CODEX.md`
|
|
45
|
+
- `CHANGELOG.md`
|
|
46
|
+
|
|
47
|
+
### 2. Run Tests (optional)
|
|
48
|
+
```bash
|
|
49
|
+
npm run test:run
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### 3. Commit Version Bump
|
|
53
|
+
```bash
|
|
54
|
+
git add -A
|
|
55
|
+
git commit -m "chore: bump version to <version>"
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### 4. Create & Push Tag
|
|
59
|
+
```bash
|
|
60
|
+
git tag v<version>
|
|
61
|
+
git push origin main
|
|
62
|
+
git push origin v<version>
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### 5. Create GitHub Release
|
|
66
|
+
```bash
|
|
67
|
+
gh release create v<version> --title "v<version> - <title>" --notes "<release notes>"
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Version Files Reference
|
|
71
|
+
|
|
72
|
+
| File | Field/Line |
|
|
73
|
+
|------|------------|
|
|
74
|
+
| `package.json` | `"version": "X.Y.Z"` |
|
|
75
|
+
| `README.md` | Title/metadata |
|
|
76
|
+
| `AGENTS.md` | Version line |
|
|
77
|
+
| `docs/CODEX.md` | Version mention (if any) |
|
|
78
|
+
| `CHANGELOG.md` | New entry |
|
|
79
|
+
|
|
80
|
+
## Semantic Versioning
|
|
81
|
+
|
|
82
|
+
- **patch** (X.Y.Z+1): Bug fixes, minor improvements
|
|
83
|
+
- **minor** (X.Y+1.0): New features, backward compatible
|
|
84
|
+
- **major** (X+1.0.0): Breaking changes
|