Auto-Pilot
Updated a month ago

claude-code-infrastructure-showcase

Ddiet103
8.6k
diet103/claude-code-infrastructure-showcase
80
Agent Score

πŸ’‘ Summary

A reference library for integrating auto-activating Claude Code skills into projects.

🎯 Target Audience

AI developers looking to enhance skill activationSoftware engineers managing microservicesTechnical leads overseeing project documentationDevOps professionals integrating automation toolsEducators teaching AI development practices

πŸ€– AI Roast: β€œIt's like a Swiss Army knife, but for skills that still need a little sharpening.”

Security AnalysisLow Risk

The project may expose risks related to shell execution and dependency supply chain vulnerabilities. Ensure to validate and sanitize inputs and regularly update dependencies.

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:

  1. The skill-activation hooks (2 files)
  2. A skill or two relevant to your work
  3. 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.json configuration

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:

  1. skill-activation-prompt hook runs on every user prompt
  2. Checks skill-rules.json for trigger patterns
  3. Suggests relevant skills automatically
  4. 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:

  1. Extract ONLY UserPromptSubmit and PostToolUse hooks
  2. Customize or skip Stop hooks
  3. 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.sh expects service directories
  • Customize based on YOUR project layout

Integration Workflow

Recommended approach:

Phase 1: Skill Activation (15 min)

  1. Copy skill-activation-prompt hook
  2. Copy post-tool-use-tracker hook
  3. Update settings.json
  4. Install hook dependencies

Phase 2: Add First Skill (10 min)

  1. Pick ONE relevant skill
  2. Copy skill directory
  3. Create/update skill-rules.json
  4. Customize path patterns

Phase 3: Test & Iterate (5 min)

  1. Edit a file - skill should activate
  2. Ask a question - skill should be suggested
  3. 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?

  1. Check CLAUDE_INTEGRATION_GUIDE.md
  2. Ask Claude: "Why isn't [skill] activating?"
  3. Open an issue with your project structure

For Claude Code

When helping users integrate:

  1. Read CLAUDE_INTEGRATION_GUIDE.md FIRST
  2. Ask about their project structure
  3. Customize, don't blindly copy
  4. 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 ba

5-Dim Analysis
Clarity8/10
Novelty8/10
Utility9/10
Completeness8/10
Maintainability7/10
Pros & Cons

Pros

  • Production-tested patterns for real-world applications
  • Modular skills for easy integration
  • Auto-activation of skills enhances usability
  • Comprehensive documentation and examples

Cons

  • Not a standalone application, requires integration
  • Customization needed for specific project structures
  • Potential learning curve for new users
  • Dependency on Claude Code environment

Related Skills

pytorch

S
toolCode Lib
92/ 100

β€œIt's the Swiss Army knife of deep learning, but good luck figuring out which of the 47 installation methods is the one that won't break your system.”

agno

S
toolCode Lib
90/ 100

β€œIt promises to be the Kubernetes for agents, but let's see if developers have the patience to learn yet another orchestration layer.”

nuxt-skills

S
toolCo-Pilot
90/ 100

β€œIt's essentially a well-organized cheat sheet that turns your AI assistant into a Nuxt framework parrot.”

Disclaimer: This content is sourced from GitHub open source projects for display and rating purposes only.

Copyright belongs to the original author diet103.