MCPHub LabRegistrydiet103/claude-code-infrastructure-showcase
diet103

diet103/claude code infrastructure showcase

Built by diet103 • 9,354 stars

What is diet103/claude code infrastructure showcase?

Examples of my Claude Code infrastructure with skill auto-activation, hooks, and agents

How to use diet103/claude code infrastructure showcase?

1. Install a compatible MCP client (like Claude Desktop). 2. Open your configuration settings. 3. Add diet103/claude code infrastructure showcase using the following command: npx @modelcontextprotocol/diet103-claude-code-infrastructure-showcase 4. Restart the client and verify the new tools are active.
šŸ›”ļø Scoped (Restricted)
npx @modelcontextprotocol/diet103-claude-code-infrastructure-showcase --scope restricted
šŸ”“ Unrestricted Access
npx @modelcontextprotocol/diet103-claude-code-infrastructure-showcase

Key Features

Native MCP Protocol Support
Real-time Tool Activation & Execution
Verified High-performance Implementation
Secure Resource & Context Handling

Optimized Use Cases

Extending AI models with custom local capabilities
Automating system workflows via natural language
Connecting external data sources to LLM context windows

diet103/claude code infrastructure showcase FAQ

Q

Is diet103/claude code infrastructure showcase safe?

Yes, diet103/claude code infrastructure showcase follows the standardized Model Context Protocol security patterns and only executes tools with explicit user-granted permissions.

Q

Is diet103/claude code infrastructure showcase up to date?

diet103/claude code infrastructure showcase is currently active in the registry with 9,354 stars on GitHub, indicating its reliability and community support.

Q

Are there any limits for diet103/claude code infrastructure showcase?

Usage limits depend on the specific implementation of the MCP server and your system resources. Refer to the official documentation below for technical details.

Official Documentation

View on GitHub

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)

SkillLinesPurposeBest For
skill-developer426Creating and managing skillsMeta-development
backend-dev-guidelines304Express/Prisma/Sentry patternsBackend APIs
frontend-dev-guidelines398React/MUI v7/TypeScriptReact frontends
route-tester389Testing authenticated routesAPI testing
error-tracking~250Sentry integrationError monitoring

All skills follow the modular pattern - main file + resource files for progressive disclosure.

šŸ‘‰ How to integrate skills →

šŸŖ Hooks (6)

HookTypeEssential?Customization
skill-activation-promptUserPromptSubmitāœ… YESāœ… None needed
post-tool-use-trackerPostToolUseāœ… YESāœ… None needed
tsc-checkStopāš ļø Optionalāš ļø Heavy - monorepo only
trigger-build-resolverStopāš ļø Optionalāš ļø Heavy - monorepo only
error-handling-reminderStopāš ļø Optionalāš ļø Moderate
stop-build-check-enhancedStopāš ļø 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!

AgentPurpose
code-architecture-reviewerReview code for architectural consistency
code-refactor-masterPlan and execute refactoring
documentation-architectGenerate comprehensive documentation
frontend-error-fixerDebug frontend errors
plan-reviewerReview development plans
refactor-plannerCreate refactoring strategies
web-research-specialistResearch technical issues online
auth-route-testerTest authenticated endpoints
auth-route-debuggerDebug auth issues
auto-error-resolverAuto-fix TypeScript errors

šŸ‘‰ How agents work →

šŸ’¬ Slash Commands (3)

CommandPurpose
/dev-docsCreate structured dev documentation
/dev-docs-updateUpdate docs before context reset
/route-research-for-testingResearch 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 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

Start here: Copy the two essential hooks, add one skill, and see the auto-activation magic happen.

Global Ranking

8.5
Trust ScoreMCPHub Index

Based on codebase health & activity.

Manual Config

{ "mcpServers": { "diet103-claude-code-infrastructure-showcase": { "command": "npx", "args": ["diet103-claude-code-infrastructure-showcase"] } } }