Modular Claude Code Architecture Standardization

Modular Claude Code project architecture with rules, commands, and subagents
92% ai_automation · aifolksorg · 0s · tfww
Do this: Our current 1.4k token monolithic standards.md forces developers to load irrelevant context every session—modularizing will immediately reduce API costs and make the 8-agent QA system maintainable.

Comparison to Current State

new value DIFFERENT ANGLE

Current:

New: This reel provides a concrete, standardized filesystem structure (rules/, commands/, agents/) for organizing Claude Code projects, including a crucial git-versioned vs. git-ignored distinction (.CLAUDE.md vs .local.md) which the existing framework only touches on abstractly.

Similar to: Claude Code Workflow Orchestration Framework (0% overlap)
Overlap: AI project architecture, Claude interaction patterns, modular AI instructions
Different enough to proceed.
Reduces Claude Code API token consumption by 15-20% through modular context loading while standardizing developer workflows across AIAS, ReelBot, and CloserSim projects, decreasing onboarding time for new technical contributors.

Refactor monolithic standards.md into modular rules/commands/agents directories to reduce token consumption by 30-40% and standardize development workflows across AI projects.

Business Applications

MEDIUM AIAS and ReelBot development standards (general)

Refactor the existing ~/.claude/rules/standards.md into modular rules/code-style.md, rules/testing.md, and rules/api-conventions.md within each project's .claude/ directory. Add commands/deploy.md and commands/review.md to standardize common operations across the 3 active developers.

LOW Claude-dispatcher VPS2 infrastructure (general)

Implement the agents/ directory pattern for the dispatcher's subagent system - create isolated personals for 'system-admin.md' (VPS maintenance) vs 'code-reviewer.md' (git operations) to prevent context bleeding between system-level and code-level tasks.

MEDIUM Cross-project knowledge base (general)

Create a shared-context/ repository using this structure to house common rules that apply across AIAS, TFWW, and CloserSim, while keeping project-specific skills local to each repo - solving the current skill scoping challenges mentioned in the project context.

Implementation Levels

Tasks

0 selected

Social Media Play

React Angle

We should migrate our existing consolidated standards.md into this modular rules/ directory structure across the AIAS and ReelBot projects - the token efficiency gains align perfectly with our recent context optimization work.

Corrections
Repurpose Ideas
Engagement Hook

We've been running the modular rules/ approach in our appointment setter project for a month - 40% reduction in token overhead. Curious: do you commit your CLAUDE.local.md to a private fork, or keep it strictly uncommitted local?

What This Video Covers

aifollsorg is an AI education/community account focused on agentic workflows and Claude Code infrastructure patterns for developers.
Hook: Claude Project Structure
“Turn Claude into a structured AI engineer”
“Team instructions vs Personal overrides”
“Custom slash commands”
“Modular instruction files”
“Auto invoked workflows”
“Subagent personals - isolated context”
“Build cleaner workflows, automate reviews, and scale dev productivity with agentic systems”

Key Insights

Analysis Notes

What it is: A visual architectural guide proposing a specific directory convention (.claude/ with subdirectories for commands, rules, skills, agents) to organize Claude Code configuration, instruction files, and subagent contexts to move from ad-hoc prompting to systematic AI engineering.

How it helps us: Directly applicable to Lead Needle's existing 'Claude Upgrades' work. We already use a consolidated standards.md (~1.4k tokens) and have skills for handoffs - this provides the missing structural pattern to formalize our 8-agent QA system, separate committed project rules from Dylan's personal VPS2 overrides, and create explicit slash commands for common AIAS/ReelBot operations. The modular rules/ approach solves token bloat in the current single-file standards.md.

Limitations: Lead Needle has multiple distinct projects (AIAS, TFWW, GnomeGuys, ReelBot) rather than a single 'your-project' monorepo, so the exact flat structure shown doesn't map cleanly - we'd need a multi-project adaptation. Also, 'auto-invoked' skills actually require custom tooling (like our existing GSD plugin context monitor) - this isn't native Claude Code behavior out of the box.

Who should see this: Systems architect (Dylan) and claude-dispatcher maintainer - anyone managing Claude Code infrastructure across multiple Lead Needle projects.

Cost Breakdown →

StepPromptCompletionCost
analysis10,2203,979$0.0134
similarity1,339347$0.0004
plan10,8795,502$0.0170
Total$0.0308