obra

139 mods across 14 repositories, 285k stars between them.

UserPromptSubmit

97

obra/claude-session-driver

Hook

Runs when you submit a prompt, before the agent sees it, executing emit-event.cjs via node. From obra/claude-session-driver.

107 2mo ago A tokens not measured copy · 55% MIT

SessionEnd

98

obra/claude-session-driver

Hook

Runs when a session ends, executing emit-event.cjs via node. From obra/claude-session-driver.

107 2mo ago A tokens not measured copy · 50% MIT

obra/claude-session-driver

Skill Claude CodeCodex

Use when acting as a project manager that delegates tasks to other coding-agent sessions (Claude Code, Codex, or Pi) - launch workers, assign them work, monitor progress, review their tool calls, and collect results.

107 2mo ago A 53 tokens original MIT

brainstorm

100

obra/clank

Command

@skills/collaboration/brainstorming/SKILL.md.

41 10mo ago A 0 tokens

execute-plan

101

obra/clank

Command

@skills/collaboration/executing-plans/SKILL.md.

41 10mo ago A 0 tokens

write-plan

102

obra/clank

Command

@skills/collaboration/writing-plans/SKILL.md.

41 10mo ago A 0 tokens

obra/clank

Skill Claude CodeCodex

Hide implementation details behind interfaces - work at domain level (what), not implementation level (how).

41 10mo ago A 24 tokens

obra/clank

Skill Claude CodeCodex

Class interfaces present one cohesive abstraction - don't mix domain logic with serialization, persistence, or unrelated concerns.

41 10mo ago A 27 tokens

Reducing Complexity

105

obra/clank

Skill Claude CodeCodex

Managing complexity is software's primary technical imperative - all other goals are secondary.

41 10mo ago A 18 tokens

Commenting Intent

106

obra/clank

Skill Claude CodeCodex

Comment WHY code exists and non-obvious decisions, not WHAT code does (mechanics).

41 10mo ago A 22 tokens

obra/clank

Skill Claude CodeCodex

Design in pseudocode first, iterate approaches, then translate to code.

41 10mo ago A 18 tokens

obra/clank

Skill Claude CodeCodex

Try 2-3 different approaches before implementing - don't settle for first design you think of.

41 10mo ago A 22 tokens

obra/clank

Skill Claude CodeCodex

Each routine does one thing and does it well - extract when routines have multiple responsibilities.

41 10mo ago A 22 tokens

Localizing Variables

110

obra/clank

Skill Claude CodeCodex

Declare variables in smallest possible scope, initialize close to first use, minimize span and live time.

41 10mo ago A 22 tokens

Domain-Focused Naming

111

obra/clank

Skill Claude CodeCodex

Name code by what it does in the domain, not how it's implemented or its history.

41 10mo ago A 22 tokens

Naming Variables

112

obra/clank

Skill Claude CodeCodex

Choose names that fully and accurately describe what the variable represents.

41 10mo ago A 14 tokens

Refactoring Safely

113

obra/clank

Skill Claude CodeCodex

Refactor with tests first, one change at a time, never mix refactoring with bug fixes or new features.

41 10mo ago A 27 tokens

obra/clank

Skill Claude CodeCodex

Flatten nested conditionals with early returns or table-driven methods - keep nesting depth under 3 levels.

41 10mo ago A 24 tokens

obra/clank

Skill Claude CodeCodex

Use each variable for exactly one purpose - no hybrid coupling or hidden meanings.

41 10mo ago A 18 tokens

Validating Inputs

116

obra/clank

Skill Claude CodeCodex

Check all external inputs for validity - garbage in, nothing out, never garbage out.

41 10mo ago A 20 tokens

obra/clank

Skill Claude CodeCodex

Use multiple Claude agents to investigate and fix independent problems concurrently.

41 10mo ago A 16 tokens

Executing Plans

120

obra/clank

Skill Claude CodeCodex

Execute detailed plans in batches with review checkpoints.

41 10mo ago A 11 tokens