Claude Code Infrastructure Showcase
A curated reference library of production-tested Claude Code infrastructure.
Born from 6 months of real-world use managing a complex TypeScript microservices project, this showcase provides the patterns and systems that solved the "skills don't activate automatically" problem and scaled Claude Code for enterprise development.
This is NOT a working application - it's a reference library. Copy what you need into your own projects.
What's Inside
Production-tested infrastructure for:
- ā Auto-activating skills via hooks
- ā Modular skill pattern (500-line rule with progressive disclosure)
- ā Specialized agents for complex tasks
- ā Dev docs system that survives context resets
- ā Comprehensive examples using generic blog domain
Time investment to build: 6 months of iteration Time to integrate into your project: 15-30 minutes
Quick Start - Pick Your Path
š¤ Using Claude Code to Integrate?
Claude: Read CLAUDE_INTEGRATION_GUIDE.md for step-by-step integration instructions tailored for AI-assisted setup.
šÆ I want skill auto-activation
The breakthrough feature: Skills that actually activate when you need them.
What you need:
- The skill-activation hooks (2 files)
- A skill or two relevant to your work
- 15 minutes
š Setup Guide: .claude/hooks/README.md
š I want to add ONE skill
Browse the skills catalog and copy what you need.
Available:
- backend-dev-guidelines - Node.js/Express/TypeScript patterns
- frontend-dev-guidelines - React/TypeScript/MUI v7 patterns
- skill-developer - Meta-skill for creating skills
- route-tester - Test authenticated API routes
- error-tracking - Sentry integration patterns
š Skills Guide: .claude/skills/README.md
š¤ I want specialized agents
10 production-tested agents for complex tasks:
- Code architecture review
- Refactoring assistance
- Documentation generation
- Error debugging
- And more...
š Agents Guide: .claude/agents/README.md
What Makes This Different?
The Auto-Activation Breakthrough
Problem: Claude Code skills just sit there. You have to remember to use them.
Solution: UserPromptSubmit hook that:
- Analyzes your prompts
- Checks file context
- Automatically suggests relevant skills
- Works via
skill-rules.jsonconfiguration
Result: Skills activate when you need them, not when you remember them.
Production-Tested Patterns
These aren't theoretical examples - they're extracted from:
- ā 6 microservices in production
- ā 50,000+ lines of TypeScript
- ā React frontend with complex data grids
- ā Sophisticated workflow engine
- ā 6 months of daily Claude Code use
The patterns work because they solved real problems.
Modular Skills (500-Line Rule)
Large skills hit context limits. The solution:
skill-name/
SKILL.md # <500 lines, high-level guide
resources/
topic-1.md # <500 lines each
topic-2.md
topic-3.md
Progressive disclosure: Claude loads main skill first, loads resources only when needed.
Repository Structure
.claude/
āāā skills/ # 5 production skills
ā āāā backend-dev-guidelines/ (12 resource files)
ā āāā frontend-dev-guidelines/ (11 resource files)
ā āāā skill-developer/ (7 resource files)
ā āāā route-tester/
ā āāā error-tracking/
ā āāā skill-rules.json # Skill activation configuration
āāā hooks/ # 6 hooks for automation
ā āāā skill-activation-prompt.* (ESSENTIAL)
ā āāā post-tool-use-tracker.sh (ESSENTIAL)
ā āāā tsc-check.sh (optional, needs customization)
ā āāā trigger-build-resolver.sh (optional)
āāā agents/ # 10 specialized agents
ā āāā code-architecture-reviewer.md
ā āāā refactor-planner.md
ā āāā frontend-error-fixer.md
ā āāā ... 7 more
āāā commands/ # 3 slash commands
āāā dev-docs.md
āāā ...
dev/
āāā active/ # Dev docs pattern examples
āāā public-infrastructure-repo/
Component Catalog
šØ Skills (5)
| Skill | Lines | Purpose | Best For |
|---|---|---|---|
| skill-developer | 426 | Creating and managing skills | Meta-development |
| backend-dev-guidelines | 304 | Express/Prisma/Sentry patterns | Backend APIs |
| frontend-dev-guidelines | 398 | React/MUI v7/TypeScript | React frontends |
| route-tester | 389 | Testing authenticated routes | API testing |
| error-tracking | ~250 | Sentry integration | Error monitoring |
All skills follow the modular pattern - main file + resource files for progressive disclosure.
š How to integrate skills ā
šŖ Hooks (6)
| Hook | Type | Essential? | Customization |
|---|---|---|---|
| skill-activation-prompt | UserPromptSubmit | ā YES | ā None needed |
| post-tool-use-tracker | PostToolUse | ā YES | ā None needed |
| tsc-check | Stop | ā ļø Optional | ā ļø Heavy - monorepo only |
| trigger-build-resolver | Stop | ā ļø Optional | ā ļø Heavy - monorepo only |
| error-handling-reminder | Stop | ā ļø Optional | ā ļø Moderate |
| stop-build-check-enhanced | Stop | ā ļø Optional | ā ļø Moderate |
Start with the two essential hooks - they enable skill auto-activation and work out of the box.
š Hook setup guide ā
š¤ Agents (10)
Standalone - just copy and use!
| Agent | Purpose |
|---|---|
| code-architecture-reviewer | Review code for architectural consistency |
| code-refactor-master | Plan and execute refactoring |
| documentation-architect | Generate comprehensive documentation |
| frontend-error-fixer | Debug frontend errors |
| plan-reviewer | Review development plans |
| refactor-planner | Create refactoring strategies |
| web-research-specialist | Research technical issues online |
| auth-route-tester | Test authenticated endpoints |
| auth-route-debugger | Debug auth issues |
| auto-error-resolver | Auto-fix TypeScript errors |
š How agents work ā
š¬ Slash Commands (3)
| Command | Purpose |
|---|---|
| /dev-docs | Create structured dev documentation |
| /dev-docs-update | Update docs before context reset |
| /route-research-for-testing | Research route patterns for testing |
Key Concepts
Hooks + skill-rules.json = Auto-Activation
The system:
- skill-activation-prompt hook runs on every user prompt
- Checks skill-rules.json for trigger patterns
- Suggests relevant skills automatically
- Skills load only when needed
This solves the #1 problem with Claude Code skills: they don't activate on their own.
Progressive Disclosure (500-Line Rule)
Problem: Large skills hit context limits
Solution: Modular structure
- Main SKILL.md <500 lines (overview + navigation)
- Resource files <500 lines each (deep dives)
- Claude loads incrementally as needed
Example: backend-dev-guidelines has 12 resource files covering routing, controllers, services, repositories, testing, etc.
Dev Docs Pattern
Problem: Context resets lose project context
Solution: Three-file structure
[task]-plan.md- Strategic plan[task]-context.md- Key decisions and files[task]-tasks.md- Checklist format
Works with: /dev-docs slash command to generate these automatically
ā ļø Important: What Won't Work As-Is
settings.json
The included settings.json is an example only:
- Stop hooks reference specific monorepo structure
- Service names (blog-api, etc.) are examples
- MCP servers may not exist in your setup
To use it:
- Extract ONLY UserPromptSubmit and PostToolUse hooks
- Customize or skip Stop hooks
- Update MCP server list for your setup
Blog Domain Examples
Skills use generic blog examples (Post/Comment/User):
- These are teaching examples, not requirements
- Patterns work for any domain (e-commerce, SaaS, etc.)
- Adapt the patterns to your business logic
Hook Directory Structures
Some hooks expect specific structures:
tsc-check.shexpects service directories- Customize based on YOUR project layout
Integration Workflow
Recommended approach:
Phase 1: Skill Activation (15 min)
- Copy skill-activation-prompt hook
- Copy post-tool-use-tracker hook
- Update settings.json
- Install hook dependencies
Phase 2: Add First Skill (10 min)
- Pick ONE relevant skill
- Copy skill directory
- Create/update skill-rules.json
- Customize path patterns
Phase 3: Test & Iterate (5 min)
- Edit a file - skill should activate
- Ask a question - skill should be suggested
- Add more skills as needed
Phase 4: Optional Enhancements
- Add agents you find useful
- Add slash commands
- Customize Stop hooks (advanced)
Getting Help
For Users
Issues with integration?
- Check CLAUDE_INTEGRATION_GUIDE.md
- Ask Claude: "Why isn't [skill] activating?"
- Open an issue with your project structure
For Claude Code
When helping users integrate:
- Read CLAUDE_INTEGRATION_GUIDE.md FIRST
- Ask about their project structure
- Customize, don't blindly copy
- Verify after integration
What This Solves
Before This Infrastructure
ā Skills don't activate automatically ā Have to remember which skill to use ā Large skills hit context limits ā Context resets lose project knowledge ā No consistency across development ā Manual agent invocation every time
After This Infrastructure
ā Skills suggest themselves based on context ā Hooks trigger skills at the right time ā Modular skills stay under context limits ā Dev docs preserve knowledge across resets ā Consistent patterns via guardrails ā Agents streamline complex tasks
Community
Found this useful?
- ā Star this repo
- š Report issues or suggest improvements
- š¬ Share your own skills/hooks/agents
- š Contribute examples from your domain
Background: This infrastructure was detailed in a post I made to Reddit "Claude Code is a Beast ā Tips from 6 Months of Hardcore Use". After hundreds of requests, this showcase was created to help the community implement these patterns.
License
MIT License - Use freely in your projects, commercial or personal.
Quick Links
- š Claude Integration Guide - For AI-assisted setup
- šØ Skills Documentation
- šŖ Hooks Setup
- š¤ Agents Guide
- š Dev Docs Pattern
Start here: Copy the two essential hooks, add one skill, and see the auto-activation magic happen.