oh-my-claude-sisyphus 3.3.10 → 3.4.1
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/README.md +74 -8
- package/agents/explore-high.md +195 -0
- package/agents/qa-tester-high.md +141 -0
- package/agents/templates/README.md +110 -0
- package/agents/templates/base-agent.md +54 -0
- package/agents/templates/tier-instructions.md +94 -0
- package/commands/cancel-ecomode.md +71 -0
- package/commands/cancel.md +75 -0
- package/commands/ecomode.md +60 -0
- package/commands/help.md +1 -1
- package/commands/mcp-setup.md +7 -6
- package/commands/pipeline.md +231 -0
- package/commands/planner.md +174 -0
- package/commands/ralplan.md +8 -1
- package/commands/swarm.md +280 -0
- package/commands/ultrapilot.md +158 -0
- package/commands/ultrawork.md +1 -0
- package/dist/__tests__/delegation-enforcer-integration.test.d.ts +6 -0
- package/dist/__tests__/delegation-enforcer-integration.test.d.ts.map +1 -0
- package/dist/__tests__/delegation-enforcer-integration.test.js +136 -0
- package/dist/__tests__/delegation-enforcer-integration.test.js.map +1 -0
- package/dist/__tests__/delegation-enforcer.test.d.ts +5 -0
- package/dist/__tests__/delegation-enforcer.test.d.ts.map +1 -0
- package/dist/__tests__/delegation-enforcer.test.js +208 -0
- package/dist/__tests__/delegation-enforcer.test.js.map +1 -0
- package/dist/__tests__/hooks.test.js +2 -2
- package/dist/__tests__/hooks.test.js.map +1 -1
- package/dist/__tests__/installer.test.js +4 -6
- package/dist/__tests__/installer.test.js.map +1 -1
- package/dist/__tests__/ralph-prd.test.js +1 -1
- package/dist/__tests__/ralph-prd.test.js.map +1 -1
- package/dist/__tests__/ralph-progress.test.js +1 -1
- package/dist/__tests__/ralph-progress.test.js.map +1 -1
- package/dist/__tests__/skills.test.js +31 -24
- package/dist/__tests__/skills.test.js.map +1 -1
- package/dist/agents/analyst.d.ts.map +1 -1
- package/dist/agents/analyst.js +1 -0
- package/dist/agents/analyst.js.map +1 -1
- package/dist/agents/architect.d.ts.map +1 -1
- package/dist/agents/architect.js +1 -0
- package/dist/agents/architect.js.map +1 -1
- package/dist/agents/critic.d.ts.map +1 -1
- package/dist/agents/critic.js +1 -0
- package/dist/agents/critic.js.map +1 -1
- package/dist/agents/definitions.d.ts +5 -1
- package/dist/agents/definitions.d.ts.map +1 -1
- package/dist/agents/definitions.js +53 -155
- package/dist/agents/definitions.js.map +1 -1
- package/dist/agents/designer.d.ts.map +1 -1
- package/dist/agents/designer.js +1 -0
- package/dist/agents/designer.js.map +1 -1
- package/dist/agents/executor.d.ts.map +1 -1
- package/dist/agents/executor.js +1 -0
- package/dist/agents/executor.js.map +1 -1
- package/dist/agents/explore.d.ts.map +1 -1
- package/dist/agents/explore.js +1 -0
- package/dist/agents/explore.js.map +1 -1
- package/dist/agents/planner.d.ts.map +1 -1
- package/dist/agents/planner.js +1 -0
- package/dist/agents/planner.js.map +1 -1
- package/dist/agents/qa-tester.d.ts.map +1 -1
- package/dist/agents/qa-tester.js +1 -0
- package/dist/agents/qa-tester.js.map +1 -1
- package/dist/agents/researcher.d.ts.map +1 -1
- package/dist/agents/researcher.js +1 -0
- package/dist/agents/researcher.js.map +1 -1
- package/dist/agents/scientist.d.ts.map +1 -1
- package/dist/agents/scientist.js +1 -0
- package/dist/agents/scientist.js.map +1 -1
- package/dist/agents/types.d.ts +2 -0
- package/dist/agents/types.d.ts.map +1 -1
- package/dist/agents/types.js.map +1 -1
- package/dist/agents/vision.d.ts.map +1 -1
- package/dist/agents/vision.js +1 -0
- package/dist/agents/vision.js.map +1 -1
- package/dist/agents/writer.d.ts.map +1 -1
- package/dist/agents/writer.js +1 -0
- package/dist/agents/writer.js.map +1 -1
- package/dist/analytics/cost-estimator.d.ts +14 -0
- package/dist/analytics/cost-estimator.d.ts.map +1 -0
- package/dist/analytics/cost-estimator.js +70 -0
- package/dist/analytics/cost-estimator.js.map +1 -0
- package/dist/analytics/export.d.ts +7 -0
- package/dist/analytics/export.d.ts.map +1 -0
- package/dist/analytics/export.js +93 -0
- package/dist/analytics/export.js.map +1 -0
- package/dist/analytics/index.d.ts +14 -0
- package/dist/analytics/index.d.ts.map +1 -0
- package/dist/analytics/index.js +14 -0
- package/dist/analytics/index.js.map +1 -0
- package/dist/analytics/metrics-collector.d.ts +30 -0
- package/dist/analytics/metrics-collector.d.ts.map +1 -0
- package/dist/analytics/metrics-collector.js +96 -0
- package/dist/analytics/metrics-collector.js.map +1 -0
- package/dist/analytics/query-engine.d.ts +32 -0
- package/dist/analytics/query-engine.d.ts.map +1 -0
- package/dist/analytics/query-engine.js +151 -0
- package/dist/analytics/query-engine.js.map +1 -0
- package/dist/analytics/session-manager.d.ts +26 -0
- package/dist/analytics/session-manager.d.ts.map +1 -0
- package/dist/analytics/session-manager.js +201 -0
- package/dist/analytics/session-manager.js.map +1 -0
- package/dist/analytics/session-types.d.ts +37 -0
- package/dist/analytics/session-types.d.ts.map +1 -0
- package/dist/analytics/session-types.js +2 -0
- package/dist/analytics/session-types.js.map +1 -0
- package/dist/analytics/token-tracker.d.ts +24 -0
- package/dist/analytics/token-tracker.d.ts.map +1 -0
- package/dist/analytics/token-tracker.js +161 -0
- package/dist/analytics/token-tracker.js.map +1 -0
- package/dist/analytics/types.d.ts +37 -0
- package/dist/analytics/types.d.ts.map +1 -0
- package/dist/analytics/types.js +21 -0
- package/dist/analytics/types.js.map +1 -0
- package/dist/cli/analytics.d.ts +3 -0
- package/dist/cli/analytics.d.ts.map +1 -0
- package/dist/cli/analytics.js +74 -0
- package/dist/cli/analytics.js.map +1 -0
- package/dist/cli/commands/agents.d.ts +5 -0
- package/dist/cli/commands/agents.d.ts.map +1 -0
- package/dist/cli/commands/agents.js +29 -0
- package/dist/cli/commands/agents.js.map +1 -0
- package/dist/cli/commands/cleanup.d.ts +4 -0
- package/dist/cli/commands/cleanup.d.ts.map +1 -0
- package/dist/cli/commands/cleanup.js +17 -0
- package/dist/cli/commands/cleanup.js.map +1 -0
- package/dist/cli/commands/cost.d.ts +4 -0
- package/dist/cli/commands/cost.d.ts.map +1 -0
- package/dist/cli/commands/cost.js +53 -0
- package/dist/cli/commands/cost.js.map +1 -0
- package/dist/cli/commands/export.d.ts +5 -0
- package/dist/cli/commands/export.d.ts.map +1 -0
- package/dist/cli/commands/export.js +30 -0
- package/dist/cli/commands/export.js.map +1 -0
- package/dist/cli/commands/sessions.d.ts +5 -0
- package/dist/cli/commands/sessions.d.ts.map +1 -0
- package/dist/cli/commands/sessions.js +37 -0
- package/dist/cli/commands/sessions.js.map +1 -0
- package/dist/cli/commands/stats.d.ts +4 -0
- package/dist/cli/commands/stats.d.ts.map +1 -0
- package/dist/cli/commands/stats.js +43 -0
- package/dist/cli/commands/stats.js.map +1 -0
- package/dist/cli/index.js +0 -3
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/utils/formatting.d.ts +22 -0
- package/dist/cli/utils/formatting.d.ts.map +1 -0
- package/dist/cli/utils/formatting.js +70 -0
- package/dist/cli/utils/formatting.js.map +1 -0
- package/dist/config/loader.d.ts.map +1 -1
- package/dist/config/loader.js +1 -6
- package/dist/config/loader.js.map +1 -1
- package/dist/features/delegation-enforcer.d.ts +71 -0
- package/dist/features/delegation-enforcer.d.ts.map +1 -0
- package/dist/features/delegation-enforcer.js +128 -0
- package/dist/features/delegation-enforcer.js.map +1 -0
- package/dist/features/index.d.ts +3 -0
- package/dist/features/index.d.ts.map +1 -1
- package/dist/features/index.js +18 -0
- package/dist/features/index.js.map +1 -1
- package/dist/features/state-manager/index.d.ts +100 -0
- package/dist/features/state-manager/index.d.ts.map +1 -0
- package/dist/features/state-manager/index.js +407 -0
- package/dist/features/state-manager/index.js.map +1 -0
- package/dist/features/state-manager/types.d.ts +147 -0
- package/dist/features/state-manager/types.d.ts.map +1 -0
- package/dist/features/state-manager/types.js +30 -0
- package/dist/features/state-manager/types.js.map +1 -0
- package/dist/features/task-decomposer/index.d.ts +33 -0
- package/dist/features/task-decomposer/index.d.ts.map +1 -0
- package/dist/features/task-decomposer/index.js +698 -0
- package/dist/features/task-decomposer/index.js.map +1 -0
- package/dist/features/task-decomposer/types.d.ts +133 -0
- package/dist/features/task-decomposer/types.d.ts.map +1 -0
- package/dist/features/task-decomposer/types.js +8 -0
- package/dist/features/task-decomposer/types.js.map +1 -0
- package/dist/features/verification/example.d.ts +49 -0
- package/dist/features/verification/example.d.ts.map +1 -0
- package/dist/features/verification/example.js +235 -0
- package/dist/features/verification/example.js.map +1 -0
- package/dist/features/verification/index.d.ts +97 -0
- package/dist/features/verification/index.d.ts.map +1 -0
- package/dist/features/verification/index.js +439 -0
- package/dist/features/verification/index.js.map +1 -0
- package/dist/features/verification/types.d.ts +142 -0
- package/dist/features/verification/types.d.ts.map +1 -0
- package/dist/features/verification/types.js +7 -0
- package/dist/features/verification/types.js.map +1 -0
- package/dist/hooks/agent-usage-reminder/constants.d.ts.map +1 -1
- package/dist/hooks/agent-usage-reminder/constants.js +0 -1
- package/dist/hooks/agent-usage-reminder/constants.js.map +1 -1
- package/dist/hooks/autopilot/__tests__/cancel.test.js +4 -4
- package/dist/hooks/autopilot/__tests__/cancel.test.js.map +1 -1
- package/dist/hooks/autopilot/__tests__/summary.test.js +1 -1
- package/dist/hooks/autopilot/__tests__/summary.test.js.map +1 -1
- package/dist/hooks/autopilot/__tests__/transition.test.js +1 -2
- package/dist/hooks/autopilot/__tests__/transition.test.js.map +1 -1
- package/dist/hooks/autopilot/cancel.js +2 -2
- package/dist/hooks/autopilot/cancel.js.map +1 -1
- package/dist/hooks/autopilot/enforcement.d.ts +16 -2
- package/dist/hooks/autopilot/enforcement.d.ts.map +1 -1
- package/dist/hooks/autopilot/enforcement.js +78 -4
- package/dist/hooks/autopilot/enforcement.js.map +1 -1
- package/dist/hooks/autopilot/index.d.ts +3 -6
- package/dist/hooks/autopilot/index.d.ts.map +1 -1
- package/dist/hooks/autopilot/index.js +6 -12
- package/dist/hooks/autopilot/index.js.map +1 -1
- package/dist/hooks/autopilot/state.d.ts +36 -2
- package/dist/hooks/autopilot/state.d.ts.map +1 -1
- package/dist/hooks/autopilot/state.js +216 -2
- package/dist/hooks/autopilot/state.js.map +1 -1
- package/dist/hooks/autopilot/validation.d.ts +23 -2
- package/dist/hooks/autopilot/validation.d.ts.map +1 -1
- package/dist/hooks/autopilot/validation.js +158 -1
- package/dist/hooks/autopilot/validation.js.map +1 -1
- package/dist/hooks/bridge.js +3 -3
- package/dist/hooks/bridge.js.map +1 -1
- package/dist/hooks/index.d.ts +5 -9
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +31 -21
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/learner/promotion.js +1 -1
- package/dist/hooks/learner/promotion.js.map +1 -1
- package/dist/hooks/persistent-mode/index.d.ts.map +1 -1
- package/dist/hooks/persistent-mode/index.js +2 -3
- package/dist/hooks/persistent-mode/index.js.map +1 -1
- package/dist/hooks/ralph/index.d.ts +11 -0
- package/dist/hooks/ralph/index.d.ts.map +1 -0
- package/dist/hooks/ralph/index.js +53 -0
- package/dist/hooks/ralph/index.js.map +1 -0
- package/dist/hooks/ralph/loop.d.ts +116 -0
- package/dist/hooks/ralph/loop.d.ts.map +1 -0
- package/dist/hooks/ralph/loop.js +322 -0
- package/dist/hooks/ralph/loop.js.map +1 -0
- package/dist/hooks/ralph/prd.d.ts +130 -0
- package/dist/hooks/ralph/prd.d.ts.map +1 -0
- package/dist/hooks/ralph/prd.js +310 -0
- package/dist/hooks/ralph/prd.js.map +1 -0
- package/dist/hooks/ralph/progress.d.ts +102 -0
- package/dist/hooks/ralph/progress.d.ts.map +1 -0
- package/dist/hooks/ralph/progress.js +408 -0
- package/dist/hooks/ralph/progress.js.map +1 -0
- package/dist/hooks/ralph/verifier.d.ts +72 -0
- package/dist/hooks/ralph/verifier.d.ts.map +1 -0
- package/dist/hooks/ralph/verifier.js +223 -0
- package/dist/hooks/ralph/verifier.js.map +1 -0
- package/dist/hooks/recovery/constants.d.ts +114 -0
- package/dist/hooks/recovery/constants.d.ts.map +1 -0
- package/dist/hooks/recovery/constants.js +227 -0
- package/dist/hooks/recovery/constants.js.map +1 -0
- package/dist/hooks/recovery/context-window.d.ts +24 -0
- package/dist/hooks/recovery/context-window.d.ts.map +1 -0
- package/dist/hooks/recovery/context-window.js +321 -0
- package/dist/hooks/recovery/context-window.js.map +1 -0
- package/dist/hooks/recovery/edit-error.d.ts +24 -0
- package/dist/hooks/recovery/edit-error.d.ts.map +1 -0
- package/dist/hooks/recovery/edit-error.js +56 -0
- package/dist/hooks/recovery/edit-error.js.map +1 -0
- package/dist/hooks/recovery/index.d.ts +102 -0
- package/dist/hooks/recovery/index.d.ts.map +1 -0
- package/dist/hooks/recovery/index.js +166 -0
- package/dist/hooks/recovery/index.js.map +1 -0
- package/dist/hooks/recovery/session-recovery.d.ts +24 -0
- package/dist/hooks/recovery/session-recovery.d.ts.map +1 -0
- package/dist/hooks/recovery/session-recovery.js +281 -0
- package/dist/hooks/recovery/session-recovery.js.map +1 -0
- package/dist/hooks/recovery/storage.d.ts +75 -0
- package/dist/hooks/recovery/storage.d.ts.map +1 -0
- package/dist/hooks/recovery/storage.js +382 -0
- package/dist/hooks/recovery/storage.js.map +1 -0
- package/dist/hooks/recovery/types.d.ts +196 -0
- package/dist/hooks/recovery/types.d.ts.map +1 -0
- package/dist/hooks/recovery/types.js +32 -0
- package/dist/hooks/recovery/types.js.map +1 -0
- package/dist/hooks/ultrapilot/index.d.ts +90 -0
- package/dist/hooks/ultrapilot/index.d.ts.map +1 -0
- package/dist/hooks/ultrapilot/index.js +310 -0
- package/dist/hooks/ultrapilot/index.js.map +1 -0
- package/dist/hooks/ultrapilot/state.d.ts +72 -0
- package/dist/hooks/ultrapilot/state.d.ts.map +1 -0
- package/dist/hooks/ultrapilot/state.js +258 -0
- package/dist/hooks/ultrapilot/state.js.map +1 -0
- package/dist/hooks/ultrapilot/types.d.ts +113 -0
- package/dist/hooks/ultrapilot/types.d.ts.map +1 -0
- package/dist/hooks/ultrapilot/types.js +36 -0
- package/dist/hooks/ultrapilot/types.js.map +1 -0
- package/dist/hooks/ultraqa/index.d.ts +94 -0
- package/dist/hooks/ultraqa/index.d.ts.map +1 -0
- package/dist/hooks/ultraqa/index.js +216 -0
- package/dist/hooks/ultraqa/index.js.map +1 -0
- package/dist/hooks/ultrawork/index.d.ts +62 -0
- package/dist/hooks/ultrawork/index.d.ts.map +1 -0
- package/dist/hooks/ultrawork/index.js +208 -0
- package/dist/hooks/ultrawork/index.js.map +1 -0
- package/dist/hud/analytics-display.d.ts +28 -0
- package/dist/hud/analytics-display.d.ts.map +1 -0
- package/dist/hud/analytics-display.js +105 -0
- package/dist/hud/analytics-display.js.map +1 -0
- package/dist/hud/background-cleanup.d.ts +28 -0
- package/dist/hud/background-cleanup.d.ts.map +1 -0
- package/dist/hud/background-cleanup.js +92 -0
- package/dist/hud/background-cleanup.js.map +1 -0
- package/dist/hud/index.js +4 -2
- package/dist/hud/index.js.map +1 -1
- package/dist/hud/render.d.ts +1 -1
- package/dist/hud/render.d.ts.map +1 -1
- package/dist/hud/render.js +32 -1
- package/dist/hud/render.js.map +1 -1
- package/dist/hud/state.d.ts +5 -0
- package/dist/hud/state.d.ts.map +1 -1
- package/dist/hud/state.js +13 -0
- package/dist/hud/state.js.map +1 -1
- package/dist/hud/types.d.ts +11 -1
- package/dist/hud/types.d.ts.map +1 -1
- package/dist/hud/types.js +19 -0
- package/dist/hud/types.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/installer/index.d.ts +1 -1
- package/dist/installer/index.d.ts.map +1 -1
- package/dist/installer/index.js +1 -1
- package/dist/installer/index.js.map +1 -1
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +1 -1
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/servers.d.ts +2 -18
- package/dist/mcp/servers.d.ts.map +1 -1
- package/dist/mcp/servers.js +4 -36
- package/dist/mcp/servers.js.map +1 -1
- package/dist/shared/types.d.ts +1 -3
- package/dist/shared/types.d.ts.map +1 -1
- package/docs/CLAUDE.md +170 -44
- package/docs/DELEGATION-ENFORCER.md +282 -0
- package/docs/FULL-README.md +130 -16
- package/docs/LOCAL_PLUGIN_INSTALL.md +1 -1
- package/docs/MIGRATION.md +513 -98
- package/docs/SYNC-SYSTEM.md +528 -0
- package/package.json +9 -3
- package/scripts/sync-metadata.ts +363 -0
- package/scripts/test-mutual-exclusion.ts +1 -1
- package/skills/analyze/SKILL.md +0 -1
- package/skills/autopilot/SKILL.md +0 -1
- package/skills/build-fix/SKILL.md +123 -0
- package/skills/cancel/SKILL.md +580 -0
- package/skills/cancel-autopilot/SKILL.md +0 -1
- package/skills/cancel-ecomode/SKILL.md +41 -0
- package/skills/cancel-ralph/SKILL.md +0 -1
- package/skills/cancel-ultraqa/SKILL.md +0 -1
- package/skills/cancel-ultrawork/SKILL.md +0 -1
- package/skills/code-review/SKILL.md +179 -0
- package/skills/deepinit/SKILL.md +0 -1
- package/skills/deepsearch/SKILL.md +0 -1
- package/skills/doctor/SKILL.md +0 -1
- package/skills/ecomode/SKILL.md +128 -0
- package/skills/frontend-ui-ux/SKILL.md +0 -1
- package/skills/git-master/SKILL.md +0 -1
- package/skills/help/SKILL.md +1 -2
- package/skills/hud/SKILL.md +0 -1
- package/skills/learner/SKILL.md +0 -1
- package/skills/mcp-setup/SKILL.md +8 -7
- package/skills/note/SKILL.md +0 -1
- package/skills/omc-default/SKILL.md +0 -1
- package/skills/omc-default-global/SKILL.md +0 -1
- package/skills/omc-setup/SKILL.md +176 -10
- package/skills/orchestrate/SKILL.md +0 -1
- package/skills/pipeline/SKILL.md +417 -0
- package/skills/plan/SKILL.md +138 -21
- package/skills/planner/SKILL.md +0 -1
- package/skills/ralph/SKILL.md +65 -1
- package/skills/ralph-init/SKILL.md +0 -1
- package/skills/ralplan/SKILL.md +0 -1
- package/skills/release/SKILL.md +0 -1
- package/skills/research/SKILL.md +0 -1
- package/skills/review/SKILL.md +0 -1
- package/skills/security-review/SKILL.md +254 -0
- package/skills/swarm/SKILL.md +349 -0
- package/skills/tdd/SKILL.md +0 -1
- package/skills/ultrapilot/SKILL.md +563 -0
- package/skills/ultraqa/SKILL.md +0 -1
- package/skills/ultrawork/SKILL.md +0 -1
- package/docs/MIGRATION-v3.md +0 -186
|
@@ -1,14 +1,28 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: omc-setup
|
|
3
|
-
description:
|
|
4
|
-
user-invocable: true
|
|
3
|
+
description: Setup and configure oh-my-claudecode (the ONLY command you need to learn)
|
|
5
4
|
---
|
|
6
5
|
|
|
7
6
|
# OMC Setup
|
|
8
7
|
|
|
9
8
|
This is the **only command you need to learn**. After running this, everything else is automatic.
|
|
10
9
|
|
|
11
|
-
##
|
|
10
|
+
## Usage Modes
|
|
11
|
+
|
|
12
|
+
This skill handles three scenarios:
|
|
13
|
+
|
|
14
|
+
1. **Initial Setup (no flags)**: First-time installation wizard
|
|
15
|
+
2. **Local Configuration (`--local`)**: Configure project-specific settings (.claude/CLAUDE.md)
|
|
16
|
+
3. **Global Configuration (`--global`)**: Configure global settings (~/.claude/CLAUDE.md)
|
|
17
|
+
|
|
18
|
+
## Mode Detection
|
|
19
|
+
|
|
20
|
+
Check for flags in the user's invocation:
|
|
21
|
+
- If `--local` flag present → Skip to Local Configuration (Step 2A)
|
|
22
|
+
- If `--global` flag present → Skip to Global Configuration (Step 2B)
|
|
23
|
+
- If no flags → Run Initial Setup wizard (Step 1)
|
|
24
|
+
|
|
25
|
+
## Step 1: Initial Setup Wizard (Default Behavior)
|
|
12
26
|
|
|
13
27
|
Use the AskUserQuestion tool to prompt the user:
|
|
14
28
|
|
|
@@ -18,14 +32,20 @@ Use the AskUserQuestion tool to prompt the user:
|
|
|
18
32
|
1. **Local (this project)** - Creates `.claude/CLAUDE.md` in current project directory. Best for project-specific configurations.
|
|
19
33
|
2. **Global (all projects)** - Creates `~/.claude/CLAUDE.md` for all Claude Code sessions. Best for consistent behavior everywhere.
|
|
20
34
|
|
|
21
|
-
## Step
|
|
35
|
+
## Step 2A: Local Configuration (--local flag or user chose LOCAL)
|
|
36
|
+
|
|
37
|
+
**CRITICAL**: This ALWAYS downloads fresh CLAUDE.md from GitHub to the local project. DO NOT use the Write tool - use bash curl exclusively.
|
|
22
38
|
|
|
23
|
-
###
|
|
39
|
+
### Create Local .claude Directory
|
|
24
40
|
|
|
25
41
|
```bash
|
|
26
42
|
# Create .claude directory in current project
|
|
27
|
-
mkdir -p .claude
|
|
43
|
+
mkdir -p .claude && echo ".claude directory ready"
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Download Fresh CLAUDE.md
|
|
28
47
|
|
|
48
|
+
```bash
|
|
29
49
|
# Extract old version before download
|
|
30
50
|
OLD_VERSION=$(grep -m1 "^# oh-my-claudecode" .claude/CLAUDE.md 2>/dev/null | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+' || echo "none")
|
|
31
51
|
|
|
@@ -44,7 +64,40 @@ else
|
|
|
44
64
|
fi
|
|
45
65
|
```
|
|
46
66
|
|
|
47
|
-
|
|
67
|
+
**Note**: The downloaded CLAUDE.md includes Context Persistence instructions with `<remember>` tags for surviving conversation compaction.
|
|
68
|
+
|
|
69
|
+
**MANDATORY**: Always run this command. Do NOT skip. Do NOT use Write tool.
|
|
70
|
+
|
|
71
|
+
**FALLBACK** if curl fails:
|
|
72
|
+
Tell user to manually download from:
|
|
73
|
+
https://raw.githubusercontent.com/Yeachan-Heo/oh-my-claudecode/main/docs/CLAUDE.md
|
|
74
|
+
|
|
75
|
+
### Verify Plugin Installation
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
grep -q "oh-my-claudecode" ~/.claude/settings.json && echo "Plugin verified" || echo "Plugin NOT found - run: claude /install-plugin oh-my-claudecode"
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Confirm Local Configuration Success
|
|
82
|
+
|
|
83
|
+
After completing local configuration, report:
|
|
84
|
+
|
|
85
|
+
**OMC Project Configuration Complete**
|
|
86
|
+
- CLAUDE.md: Updated with latest configuration from GitHub at ./.claude/CLAUDE.md
|
|
87
|
+
- Scope: **PROJECT** - applies only to this project
|
|
88
|
+
- Hooks: Provided by plugin (no manual installation needed)
|
|
89
|
+
- Agents: 28+ available (base + tiered variants)
|
|
90
|
+
- Model routing: Haiku/Sonnet/Opus based on task complexity
|
|
91
|
+
|
|
92
|
+
**Note**: This configuration is project-specific and won't affect other projects or global settings.
|
|
93
|
+
|
|
94
|
+
If `--local` flag was used, **STOP HERE**. Do not continue to HUD setup or other steps.
|
|
95
|
+
|
|
96
|
+
## Step 2B: Global Configuration (--global flag or user chose GLOBAL)
|
|
97
|
+
|
|
98
|
+
**CRITICAL**: This ALWAYS downloads fresh CLAUDE.md from GitHub to global config. DO NOT use the Write tool - use bash curl exclusively.
|
|
99
|
+
|
|
100
|
+
### Download Fresh CLAUDE.md
|
|
48
101
|
|
|
49
102
|
```bash
|
|
50
103
|
# Extract old version before download
|
|
@@ -65,6 +118,44 @@ else
|
|
|
65
118
|
fi
|
|
66
119
|
```
|
|
67
120
|
|
|
121
|
+
### Clean Up Legacy Hooks (if present)
|
|
122
|
+
|
|
123
|
+
Check if old manual hooks exist and remove them to prevent duplicates:
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
# Remove legacy bash hook scripts (now handled by plugin system)
|
|
127
|
+
rm -f ~/.claude/hooks/keyword-detector.sh
|
|
128
|
+
rm -f ~/.claude/hooks/stop-continuation.sh
|
|
129
|
+
rm -f ~/.claude/hooks/persistent-mode.sh
|
|
130
|
+
rm -f ~/.claude/hooks/session-start.sh
|
|
131
|
+
echo "Legacy hooks cleaned"
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Check `~/.claude/settings.json` for manual hook entries. If the "hooks" key exists with UserPromptSubmit, Stop, or SessionStart entries pointing to bash scripts, inform the user:
|
|
135
|
+
|
|
136
|
+
> **Note**: Found legacy hooks in settings.json. These should be removed since the plugin now provides hooks automatically. Remove the "hooks" section from ~/.claude/settings.json to prevent duplicate hook execution.
|
|
137
|
+
|
|
138
|
+
### Verify Plugin Installation
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
grep -q "oh-my-claudecode" ~/.claude/settings.json && echo "Plugin verified" || echo "Plugin NOT found - run: claude /install-plugin oh-my-claudecode"
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### Confirm Global Configuration Success
|
|
145
|
+
|
|
146
|
+
After completing global configuration, report:
|
|
147
|
+
|
|
148
|
+
**OMC Global Configuration Complete**
|
|
149
|
+
- CLAUDE.md: Updated with latest configuration from GitHub at ~/.claude/CLAUDE.md
|
|
150
|
+
- Scope: **GLOBAL** - applies to all Claude Code sessions
|
|
151
|
+
- Hooks: Provided by plugin (no manual installation needed)
|
|
152
|
+
- Agents: 28+ available (base + tiered variants)
|
|
153
|
+
- Model routing: Haiku/Sonnet/Opus based on task complexity
|
|
154
|
+
|
|
155
|
+
**Note**: Hooks are now managed by the plugin system automatically. No manual hook installation required.
|
|
156
|
+
|
|
157
|
+
If `--global` flag was used, **STOP HERE**. Do not continue to HUD setup or other steps.
|
|
158
|
+
|
|
68
159
|
## Step 3: Setup HUD Statusline
|
|
69
160
|
|
|
70
161
|
The HUD shows real-time status in Claude Code's status bar. **Invoke the hud skill** to set up and configure:
|
|
@@ -145,6 +236,36 @@ elif [ -n "$LATEST_VERSION" ]; then
|
|
|
145
236
|
fi
|
|
146
237
|
```
|
|
147
238
|
|
|
239
|
+
## Step 3.7: Set Default Execution Mode
|
|
240
|
+
|
|
241
|
+
Use the AskUserQuestion tool to prompt the user:
|
|
242
|
+
|
|
243
|
+
**Question:** "Which parallel execution mode should be your default when you say 'fast' or 'parallel'?"
|
|
244
|
+
|
|
245
|
+
**Options:**
|
|
246
|
+
1. **ultrawork (maximum capability)** - Uses all agent tiers including Opus for complex tasks. Best for challenging work where quality matters most. (Recommended)
|
|
247
|
+
2. **ecomode (token efficient)** - Prefers Haiku/Sonnet agents, avoids Opus. Best for pro-plan users who want cost efficiency.
|
|
248
|
+
|
|
249
|
+
Store the preference in `~/.claude/.omc-config.json`:
|
|
250
|
+
|
|
251
|
+
```bash
|
|
252
|
+
# Read existing config or create empty object
|
|
253
|
+
CONFIG_FILE="$HOME/.claude/.omc-config.json"
|
|
254
|
+
mkdir -p "$(dirname "$CONFIG_FILE")"
|
|
255
|
+
|
|
256
|
+
if [ -f "$CONFIG_FILE" ]; then
|
|
257
|
+
EXISTING=$(cat "$CONFIG_FILE")
|
|
258
|
+
else
|
|
259
|
+
EXISTING='{}'
|
|
260
|
+
fi
|
|
261
|
+
|
|
262
|
+
# Set defaultExecutionMode (replace USER_CHOICE with "ultrawork" or "ecomode")
|
|
263
|
+
echo "$EXISTING" | jq --arg mode "USER_CHOICE" '. + {defaultExecutionMode: $mode, configuredAt: (now | todate)}' > "$CONFIG_FILE"
|
|
264
|
+
echo "Default execution mode set to: USER_CHOICE"
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
**Note**: This preference ONLY affects generic keywords ("fast", "parallel"). Explicit keywords ("ulw", "eco") always override this preference.
|
|
268
|
+
|
|
148
269
|
## Step 4: Verify Plugin Installation
|
|
149
270
|
|
|
150
271
|
```bash
|
|
@@ -197,6 +318,7 @@ Just include these words naturally in your request:
|
|
|
197
318
|
| ralph | Persistence mode | "ralph: fix the auth bug" |
|
|
198
319
|
| ralplan | Iterative planning | "ralplan this feature" |
|
|
199
320
|
| ulw | Max parallelism | "ulw refactor the API" |
|
|
321
|
+
| eco | Token-efficient mode | "eco refactor the API" |
|
|
200
322
|
| plan | Planning interview | "plan the new endpoints" |
|
|
201
323
|
|
|
202
324
|
Combine them: "ralph ulw: migrate the database"
|
|
@@ -231,6 +353,7 @@ MAGIC KEYWORDS (power-user shortcuts):
|
|
|
231
353
|
| ralph | /ralph | "ralph: fix the bug" |
|
|
232
354
|
| ralplan | /ralplan | "ralplan this feature" |
|
|
233
355
|
| ulw | /ultrawork | "ulw refactor API" |
|
|
356
|
+
| eco | (new!) | "eco fix all errors" |
|
|
234
357
|
| plan | /planner | "plan the endpoints" |
|
|
235
358
|
|
|
236
359
|
HUD STATUSLINE:
|
|
@@ -275,7 +398,50 @@ echo " https://github.com/Yeachan-Heo/oh-my-claudecode"
|
|
|
275
398
|
echo ""
|
|
276
399
|
```
|
|
277
400
|
|
|
278
|
-
##
|
|
401
|
+
## Keeping Up to Date
|
|
279
402
|
|
|
280
|
-
|
|
281
|
-
|
|
403
|
+
After installing oh-my-claudecode updates (via npm or plugin update), run:
|
|
404
|
+
- `/oh-my-claudecode:omc-setup --local` to update project config
|
|
405
|
+
- `/oh-my-claudecode:omc-setup --global` to update global config
|
|
406
|
+
|
|
407
|
+
This ensures you have the newest features and agent configurations.
|
|
408
|
+
|
|
409
|
+
## Help Text
|
|
410
|
+
|
|
411
|
+
When user runs `/oh-my-claudecode:omc-setup --help` or just `--help`, display:
|
|
412
|
+
|
|
413
|
+
```
|
|
414
|
+
OMC Setup - Configure oh-my-claudecode
|
|
415
|
+
|
|
416
|
+
USAGE:
|
|
417
|
+
/oh-my-claudecode:omc-setup Run initial setup wizard
|
|
418
|
+
/oh-my-claudecode:omc-setup --local Configure local project (.claude/CLAUDE.md)
|
|
419
|
+
/oh-my-claudecode:omc-setup --global Configure global settings (~/.claude/CLAUDE.md)
|
|
420
|
+
/oh-my-claudecode:omc-setup --help Show this help
|
|
421
|
+
|
|
422
|
+
MODES:
|
|
423
|
+
Initial Setup (no flags)
|
|
424
|
+
- Interactive wizard for first-time setup
|
|
425
|
+
- Configures CLAUDE.md (local or global)
|
|
426
|
+
- Sets up HUD statusline
|
|
427
|
+
- Checks for updates
|
|
428
|
+
- Offers MCP server configuration
|
|
429
|
+
|
|
430
|
+
Local Configuration (--local)
|
|
431
|
+
- Downloads fresh CLAUDE.md to ./.claude/
|
|
432
|
+
- Project-specific settings
|
|
433
|
+
- Use this to update project config after OMC upgrades
|
|
434
|
+
|
|
435
|
+
Global Configuration (--global)
|
|
436
|
+
- Downloads fresh CLAUDE.md to ~/.claude/
|
|
437
|
+
- Applies to all Claude Code sessions
|
|
438
|
+
- Cleans up legacy hooks
|
|
439
|
+
- Use this to update global config after OMC upgrades
|
|
440
|
+
|
|
441
|
+
EXAMPLES:
|
|
442
|
+
/oh-my-claudecode:omc-setup # First time setup
|
|
443
|
+
/oh-my-claudecode:omc-setup --local # Update this project
|
|
444
|
+
/oh-my-claudecode:omc-setup --global # Update all projects
|
|
445
|
+
|
|
446
|
+
For more info: https://github.com/Yeachan-Heo/oh-my-claudecode
|
|
447
|
+
```
|
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pipeline
|
|
3
|
+
description: Chain agents together in sequential or branching workflows with data passing
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Pipeline Skill
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
The pipeline skill enables chaining multiple agents together in defined workflows where the output of one agent becomes the input to the next. This creates powerful agent pipelines similar to Unix pipes but designed for AI agent orchestration.
|
|
11
|
+
|
|
12
|
+
## Core Concepts
|
|
13
|
+
|
|
14
|
+
### 1. Sequential Pipelines
|
|
15
|
+
|
|
16
|
+
The simplest form: Agent A's output flows to Agent B, which flows to Agent C.
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
explore -> architect -> executor
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
**Flow:**
|
|
23
|
+
1. Explore agent searches codebase and produces findings
|
|
24
|
+
2. Architect receives findings and produces analysis/recommendations
|
|
25
|
+
3. Executor receives recommendations and implements changes
|
|
26
|
+
|
|
27
|
+
### 2. Branching Pipelines
|
|
28
|
+
|
|
29
|
+
Route to different agents based on output conditions.
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
explore -> {
|
|
33
|
+
if "complex refactoring" -> architect -> executor-high
|
|
34
|
+
if "simple change" -> executor-low
|
|
35
|
+
if "UI work" -> designer -> executor
|
|
36
|
+
}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### 3. Parallel-Then-Merge Pipelines
|
|
40
|
+
|
|
41
|
+
Run multiple agents in parallel, merge their outputs.
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
parallel(explore, researcher) -> architect -> executor
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Built-in Pipeline Presets
|
|
48
|
+
|
|
49
|
+
### Review Pipeline
|
|
50
|
+
**Purpose:** Comprehensive code review and implementation
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
/pipeline review <task>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
**Stages:**
|
|
57
|
+
1. `explore` - Find relevant code and patterns
|
|
58
|
+
2. `architect` - Analyze architecture and design implications
|
|
59
|
+
3. `critic` - Review and critique the analysis
|
|
60
|
+
4. `executor` - Implement with full context
|
|
61
|
+
|
|
62
|
+
**Use for:** Major features, refactorings, complex changes
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
### Implement Pipeline
|
|
67
|
+
**Purpose:** Planned implementation with testing
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
/pipeline implement <task>
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
**Stages:**
|
|
74
|
+
1. `planner` - Create detailed implementation plan
|
|
75
|
+
2. `executor` - Implement the plan
|
|
76
|
+
3. `tdd-guide` - Add/verify tests
|
|
77
|
+
|
|
78
|
+
**Use for:** New features with clear requirements
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
### Debug Pipeline
|
|
83
|
+
**Purpose:** Systematic debugging workflow
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
/pipeline debug <issue>
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
**Stages:**
|
|
90
|
+
1. `explore` - Locate error locations and related code
|
|
91
|
+
2. `architect` - Analyze root cause
|
|
92
|
+
3. `build-fixer` - Apply fixes and verify
|
|
93
|
+
|
|
94
|
+
**Use for:** Bugs, build errors, test failures
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
### Research Pipeline
|
|
99
|
+
**Purpose:** External research + internal analysis
|
|
100
|
+
|
|
101
|
+
```
|
|
102
|
+
/pipeline research <topic>
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
**Stages:**
|
|
106
|
+
1. `parallel(researcher, explore)` - External docs + internal code
|
|
107
|
+
2. `architect` - Synthesize findings
|
|
108
|
+
3. `writer` - Document recommendations
|
|
109
|
+
|
|
110
|
+
**Use for:** Technology decisions, API integrations
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
### Refactor Pipeline
|
|
115
|
+
**Purpose:** Safe, verified refactoring
|
|
116
|
+
|
|
117
|
+
```
|
|
118
|
+
/pipeline refactor <target>
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
**Stages:**
|
|
122
|
+
1. `explore` - Find all usages and dependencies
|
|
123
|
+
2. `architect-medium` - Design refactoring strategy
|
|
124
|
+
3. `executor-high` - Execute refactoring
|
|
125
|
+
4. `qa-tester` - Verify no regressions
|
|
126
|
+
|
|
127
|
+
**Use for:** Architectural changes, API redesigns
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
### Security Pipeline
|
|
132
|
+
**Purpose:** Security audit and fixes
|
|
133
|
+
|
|
134
|
+
```
|
|
135
|
+
/pipeline security <scope>
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
**Stages:**
|
|
139
|
+
1. `explore` - Find potential vulnerabilities
|
|
140
|
+
2. `security-reviewer` - Audit and identify issues
|
|
141
|
+
3. `executor` - Implement fixes
|
|
142
|
+
4. `security-reviewer-low` - Re-verify
|
|
143
|
+
|
|
144
|
+
**Use for:** Security reviews, vulnerability fixes
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## Custom Pipeline Syntax
|
|
149
|
+
|
|
150
|
+
### Basic Sequential
|
|
151
|
+
|
|
152
|
+
```
|
|
153
|
+
/pipeline agent1 -> agent2 -> agent3 "task description"
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
**Example:**
|
|
157
|
+
```
|
|
158
|
+
/pipeline explore -> architect -> executor "add authentication"
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
### With Model Specification
|
|
162
|
+
|
|
163
|
+
```
|
|
164
|
+
/pipeline explore:haiku -> architect:opus -> executor:sonnet "optimize performance"
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
### With Branching
|
|
168
|
+
|
|
169
|
+
```
|
|
170
|
+
/pipeline explore -> (
|
|
171
|
+
complexity:high -> architect:opus -> executor-high:opus
|
|
172
|
+
complexity:medium -> executor:sonnet
|
|
173
|
+
complexity:low -> executor-low:haiku
|
|
174
|
+
) "fix reported issues"
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
### With Parallel Stages
|
|
178
|
+
|
|
179
|
+
```
|
|
180
|
+
/pipeline [explore, researcher] -> architect -> executor "implement OAuth"
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
## Data Passing Protocol
|
|
184
|
+
|
|
185
|
+
Each agent in the pipeline receives structured context from the previous stage:
|
|
186
|
+
|
|
187
|
+
```json
|
|
188
|
+
{
|
|
189
|
+
"pipeline_context": {
|
|
190
|
+
"original_task": "user's original request",
|
|
191
|
+
"previous_stages": [
|
|
192
|
+
{
|
|
193
|
+
"agent": "explore",
|
|
194
|
+
"model": "haiku",
|
|
195
|
+
"findings": "...",
|
|
196
|
+
"files_identified": ["src/auth.ts", "src/user.ts"]
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
"current_stage": "architect",
|
|
200
|
+
"next_stage": "executor"
|
|
201
|
+
},
|
|
202
|
+
"task": "specific task for this agent"
|
|
203
|
+
}
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
## Error Handling
|
|
207
|
+
|
|
208
|
+
### Retry Logic
|
|
209
|
+
|
|
210
|
+
When an agent fails, the pipeline can:
|
|
211
|
+
|
|
212
|
+
1. **Retry** - Re-run the same agent (up to 3 times)
|
|
213
|
+
2. **Skip** - Continue to next stage with partial output
|
|
214
|
+
3. **Abort** - Stop entire pipeline
|
|
215
|
+
4. **Fallback** - Route to alternative agent
|
|
216
|
+
|
|
217
|
+
**Configuration:**
|
|
218
|
+
|
|
219
|
+
```
|
|
220
|
+
/pipeline explore -> architect -> executor --retry=3 --on-error=abort
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
### Error Recovery Patterns
|
|
224
|
+
|
|
225
|
+
**Pattern 1: Fallback to Higher Tier**
|
|
226
|
+
```
|
|
227
|
+
executor-low -> on-error -> executor:sonnet
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
**Pattern 2: Consult Architect**
|
|
231
|
+
```
|
|
232
|
+
executor -> on-error -> architect -> executor
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
**Pattern 3: Human-in-the-Loop**
|
|
236
|
+
```
|
|
237
|
+
any-stage -> on-error -> pause-for-user-input
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
## Pipeline State Management
|
|
241
|
+
|
|
242
|
+
Pipelines maintain state in `.omc/pipeline-state.json`:
|
|
243
|
+
|
|
244
|
+
```json
|
|
245
|
+
{
|
|
246
|
+
"pipeline_id": "uuid",
|
|
247
|
+
"name": "review",
|
|
248
|
+
"active": true,
|
|
249
|
+
"current_stage": 2,
|
|
250
|
+
"stages": [
|
|
251
|
+
{
|
|
252
|
+
"name": "explore",
|
|
253
|
+
"agent": "explore",
|
|
254
|
+
"model": "haiku",
|
|
255
|
+
"status": "completed",
|
|
256
|
+
"output": "..."
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"name": "architect",
|
|
260
|
+
"agent": "architect",
|
|
261
|
+
"model": "opus",
|
|
262
|
+
"status": "in_progress",
|
|
263
|
+
"started_at": "2026-01-23T10:30:00Z"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"name": "executor",
|
|
267
|
+
"agent": "executor",
|
|
268
|
+
"model": "sonnet",
|
|
269
|
+
"status": "pending"
|
|
270
|
+
}
|
|
271
|
+
],
|
|
272
|
+
"task": "original user task",
|
|
273
|
+
"created_at": "2026-01-23T10:25:00Z"
|
|
274
|
+
}
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
## Verification Rules
|
|
278
|
+
|
|
279
|
+
Before pipeline completion, verify:
|
|
280
|
+
|
|
281
|
+
- [ ] All stages completed successfully
|
|
282
|
+
- [ ] Output from final stage addresses original task
|
|
283
|
+
- [ ] No unhandled errors in any stage
|
|
284
|
+
- [ ] All files modified pass lsp_diagnostics
|
|
285
|
+
- [ ] Tests pass (if applicable)
|
|
286
|
+
|
|
287
|
+
## Advanced Features
|
|
288
|
+
|
|
289
|
+
### Conditional Branching
|
|
290
|
+
|
|
291
|
+
Based on agent output, route to different paths:
|
|
292
|
+
|
|
293
|
+
```
|
|
294
|
+
explore -> {
|
|
295
|
+
if files_found > 5 -> architect:opus -> executor-high:opus
|
|
296
|
+
if files_found <= 5 -> executor:sonnet
|
|
297
|
+
}
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
### Loop Constructs
|
|
301
|
+
|
|
302
|
+
Repeat stages until condition met:
|
|
303
|
+
|
|
304
|
+
```
|
|
305
|
+
repeat_until(tests_pass) {
|
|
306
|
+
executor -> qa-tester
|
|
307
|
+
}
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
### Merge Strategies
|
|
311
|
+
|
|
312
|
+
When parallel agents complete:
|
|
313
|
+
|
|
314
|
+
- **concat**: Concatenate all outputs
|
|
315
|
+
- **summarize**: Use architect to summarize findings
|
|
316
|
+
- **vote**: Use critic to choose best output
|
|
317
|
+
|
|
318
|
+
## Usage Examples
|
|
319
|
+
|
|
320
|
+
### Example 1: Feature Implementation
|
|
321
|
+
```
|
|
322
|
+
/pipeline review "add rate limiting to API"
|
|
323
|
+
```
|
|
324
|
+
→ Triggers: explore → architect → critic → executor
|
|
325
|
+
|
|
326
|
+
### Example 2: Bug Fix
|
|
327
|
+
```
|
|
328
|
+
/pipeline debug "login fails with OAuth"
|
|
329
|
+
```
|
|
330
|
+
→ Triggers: explore → architect → build-fixer
|
|
331
|
+
|
|
332
|
+
### Example 3: Custom Chain
|
|
333
|
+
```
|
|
334
|
+
/pipeline explore:haiku -> architect:opus -> executor:sonnet -> tdd-guide:sonnet "refactor auth module"
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
### Example 4: Research-Driven Implementation
|
|
338
|
+
```
|
|
339
|
+
/pipeline research "implement GraphQL subscriptions"
|
|
340
|
+
```
|
|
341
|
+
→ Triggers: parallel(researcher, explore) → architect → writer
|
|
342
|
+
|
|
343
|
+
## Cancellation
|
|
344
|
+
|
|
345
|
+
Stop active pipeline:
|
|
346
|
+
|
|
347
|
+
```
|
|
348
|
+
/pipeline cancel
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
Or use the general cancel command which detects active pipeline.
|
|
352
|
+
|
|
353
|
+
## Integration with Other Skills
|
|
354
|
+
|
|
355
|
+
Pipelines can be used within other skills:
|
|
356
|
+
|
|
357
|
+
- **Ralph**: Loop pipelines until verified complete
|
|
358
|
+
- **Ultrawork**: Run multiple pipelines in parallel
|
|
359
|
+
- **Autopilot**: Use pipelines as building blocks
|
|
360
|
+
|
|
361
|
+
## Best Practices
|
|
362
|
+
|
|
363
|
+
1. **Start with presets** - Use built-in pipelines before creating custom ones
|
|
364
|
+
2. **Match model to complexity** - Don't waste opus on simple tasks
|
|
365
|
+
3. **Keep stages focused** - Each agent should have one clear responsibility
|
|
366
|
+
4. **Use parallel stages** - Run independent work simultaneously
|
|
367
|
+
5. **Verify at checkpoints** - Use architect or critic to verify progress
|
|
368
|
+
6. **Document custom pipelines** - Save successful patterns for reuse
|
|
369
|
+
|
|
370
|
+
## Troubleshooting
|
|
371
|
+
|
|
372
|
+
### Pipeline Hangs
|
|
373
|
+
|
|
374
|
+
**Check:** `.omc/pipeline-state.json` for current stage
|
|
375
|
+
**Fix:** Resume with `/pipeline resume` or cancel and restart
|
|
376
|
+
|
|
377
|
+
### Agent Fails Repeatedly
|
|
378
|
+
|
|
379
|
+
**Check:** Retry count and error messages
|
|
380
|
+
**Fix:** Route to higher-tier agent or add architect consultation
|
|
381
|
+
|
|
382
|
+
### Output Not Flowing
|
|
383
|
+
|
|
384
|
+
**Check:** Data passing structure in agent prompts
|
|
385
|
+
**Fix:** Ensure each agent is prompted with `pipeline_context`
|
|
386
|
+
|
|
387
|
+
## Technical Implementation
|
|
388
|
+
|
|
389
|
+
The pipeline orchestrator:
|
|
390
|
+
|
|
391
|
+
1. **Parses pipeline definition** - Validates syntax and agent names
|
|
392
|
+
2. **Initializes state** - Creates pipeline-state.json
|
|
393
|
+
3. **Executes stages sequentially** - Spawns agents with Task tool
|
|
394
|
+
4. **Passes context between stages** - Structures output for next agent
|
|
395
|
+
5. **Handles branching logic** - Evaluates conditions and routes
|
|
396
|
+
6. **Manages parallel execution** - Spawns concurrent agents and merges
|
|
397
|
+
7. **Persists state** - Updates state file after each stage
|
|
398
|
+
8. **Enforces verification** - Runs checks before completion
|
|
399
|
+
|
|
400
|
+
## Skill Invocation
|
|
401
|
+
|
|
402
|
+
This skill activates when:
|
|
403
|
+
|
|
404
|
+
- User types `/pipeline` command
|
|
405
|
+
- User mentions "agent chain", "workflow", "pipe agents"
|
|
406
|
+
- Pattern detected: "X then Y then Z" with agent names
|
|
407
|
+
|
|
408
|
+
**Explicit invocation:**
|
|
409
|
+
```
|
|
410
|
+
/oh-my-claudecode:pipeline review "task"
|
|
411
|
+
```
|
|
412
|
+
|
|
413
|
+
**Auto-detection:**
|
|
414
|
+
```
|
|
415
|
+
"First explore the codebase, then architect should analyze it, then executor implements"
|
|
416
|
+
```
|
|
417
|
+
→ Automatically creates pipeline: explore → architect → executor
|