trace-claude-code
Automatically trace Claude Code conversations to Braintrust for observability. Captures sessions, conversation turns, and tool…
Modular Code Organization
Claude Code
$ npx -y skills add parcadei/Continuous-Claude-v3 --skill modular-code --agent claude-code
Codex
$ npx skills add parcadei/Continuous-Claude-v3 --skill modular-code -a codex -y
Cursor
$ npx skills add parcadei/Continuous-Claude-v3 --skill modular-code -a cursor -y
Gemini CLI
$ npx skills add parcadei/Continuous-Claude-v3 --skill modular-code -a gemini-cli -y
GitHub Copilot
$ npx skills add parcadei/Continuous-Claude-v3 --skill modular-code -a github-copilot -y
OpenCode
$ npx skills add parcadei/Continuous-Claude-v3 --skill modular-code -a opencode -y
Windsurf
$ npx skills add parcadei/Continuous-Claude-v3 --skill modular-code -a windsurf -y
name: modular-code description: Modular Code Organization user-invocable: false
Write modular Python code with files sized for maintainability and AI-assisted development.
| Lines | Status | Action | |-------|--------|--------| | 150-500 | Optimal | Sweet spot for AI code editors and human comprehension | | 500-1000 | Large | Look for natural split points | | 1000-2000 | Too large | Refactor into focused modules | | 2000+ | Critical | Must split - causes tooling issues and cognitive overload |
Split when ANY of these apply:
1. **By domain concept**: `auth.py` → `auth/login.py`, `auth/tokens.py`, `auth/permissions.py` 2. **By abstraction layer**: Separate interface from implementation 3. **By data type**: Group operations on related data structures 4. **By I/O boundary**: Isolate database, API, file operations
feature/ ├── __init__.py # Keep minimal, just exports ├── core.py # Main logic (under 500 lines) ├── models.py # Data structures ├── handlers.py # I/O and side effects └── utils.py # Pure helper functions
When splitting an existing large file:
1. **Identify clusters**: Find groups of related functions 2. **Extract incrementally**: Move one cluster at a time 3. **Update imports**: Fix all import statements 4. **Run tests**: Verify nothing broke after each move 5. **Document**: Update any references to old locations
Files over 2000 lines that need attention:
A persistent, learning, multi-agent development environment built on Claude Code Continuous Claude transforms Claude Code into a continuously learning system that maintains context across sessions, orchestrates specialized agents, and eliminates wasting
Automatically trace Claude Code conversations to Braintrust for observability. Captures sessions, conversation turns, and tool…
Guide for integrating Agentica SDK with Claude Code CLI proxy
Reference guide for Agentica multi-agent infrastructure APIs
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.