ctx-plugin
Alpha — I'm building this in public. It works for my workflow. It may break for yours. Issues welcome.
A context economy plugin for Claude Code. Controls what the model sees at every phase of development — from first idea to merged PR.
What it looks like
You: "I need to add search to the dashboard"
/ctx-discuss → Think it through — what kind of search? What are the tradeoffs?
/ctx-align → Make sure Claude understands the intent before moving forward
/ctx-brainstorm → Spec with blind spots caught before you write code
/ctx-lean → Discover first, derive a compact plan, then risk-route ruthless review
/ctx-plan → Execution graph with ownership, safe parallelism, and review batches
/ctx-ruthless → Cut scope creep without cutting verified safety
/ctx-worktree → Isolated git worktree, deps installed, ready to go
/ctx-execute → Subagents implement each task, reviewers verify
/ctx-ship → Preflight checks, verification gate, PR created
# End of day
/ctx-park → Context saved — decisions, learnings, next steps
# Next morning
/ctx-grab → Pick up exactly where you left off
No re-explaining. No lost context. No "wait, what were we doing?"
Install
/plugin marketplace add Garabed96/ctx-plugin
/plugin install ctx@ctx-plugin
Oh My Pi
/marketplace add Garabed96/ctx-plugin
/marketplace install ctx-omp@ctx-plugin
Restart the OMP session after installation so its extension tools and typed lifecycle hooks load. The OMP adapter exposes 24 curated CTX skills, three named agents, and ctx_paths, ctx_workflow, and ctx_remote_approval; Factory V1 and the superseded brainstorm skills remain available only in the Claude and Codex packages. Its supported shipping sequence is ship_preflight → local ship_prepare → interactive, final-HEAD-bound approval → ship_publish. The direct-command hook blocks only top-level model-issued bash forms of gh pr create, GitHub /pulls gh api, and GitHub /pulls curl; it does not claim to sandbox arbitrary interpreters.
Platform: macOS (tmux, iTerm2, Terminal.app). Core skills are POSIX-compatible. Windows untested.
How I use it
Before building anything:
/ctx-discuss — think before you build. No code changes, just conversation. Explore the problem, challenge assumptions, discover what to build
/ctx-align — make sure Claude clearly understands what you're saying. Flags prompts that are too brittle or too vague before they waste a cycle. If you say CTX Engineering, use this skill.
Either can come first. Once the direction is clear, move to brainstorm.
Full feature workflow:
/ctx-brainstorm — surfaces blind spots, writes a spec, and self-reviews (or escalates to a subagent reviewer for complex features)
/ctx-plan — turns the spec into an execution graph with tagged tasks, dependency chains, ownership, safe parallelism, review batches, and tiered verification
/ctx-ruthless — for HIGH, multi-system, or time-boxed plans, audits every task against approved requirements and verified safety before touching the plan
/ctx-worktree — spins up an isolated git worktree with env files copied and deps installed
/ctx-execute — walks the plan task by task, dispatching implementer and reviewer agents based on complexity
/ctx-ship — preflight risk scan, verification gate, PR creation. Each phase is gated — I approve before it continues
Quick fix workflow:
/ctx-worktree — isolate the change
- Make the fix
/ctx-verify — prove it works before claiming it does
/ctx-ship — PR it
When I get stuck:
/ctx-debug — blocks me from jumping to fixes before investigating root cause
/ctx-tdd — enforces Red-Green-Refactor. Catches me when I write the implementation first
End of session:
/ctx-park — saves a handoff: what happened, what I learned, what's next. Also captures non-obvious learnings as memories that accumulate into skill-level gotchas over time
/ctx-grab — next session, picks up the handoff and re-aligns context
Architecture
The plugin separates judgment from execution:
- Skills (28) — markdown instruction sets that handle decisions: when to create a worktree, what context to preserve, which risk signals matter
- Scripts (11) — shell scripts that handle deterministic operations: git worktrees, artifact scanning, PR creation. Args in, structured output out
- Agents (3) — fresh-context subagents dispatched by
ctx-execute for implementation and review
- Hooks (7) — guardrails that fire automatically: block edits outside your worktree, prevent direct pushes to main, detect altitude oscillation