自動発動スキルとフレームワーク検出を備えたインフラキット。Tailwind CSSキットはv4ユーティリティ、レスポンシブデザイン、テーマをカバー。6フック、6エージェント、6コマンド搭載。
Claude Code infrastructure with auto-activating skills and framework-specific kits.
Install complete Claude Code infrastructure in 30 seconds with automatic framework detection and skill auto-activation.
npx github:blencorp/claude-code-kit
What happens:
.claude/skill-rules.jsonResult: Skills automatically activate when you need them based on your prompts, file edits, and technology usage.
A kit is a framework-specific package that includes:
When installed, kits make Claude Code an expert in your stack.
| Kit | Description | Documentation |
|---|---|---|
| Next.js | Next.js 15+ App Router, Server Components, Server Actions | README |
| React | React 19 hooks, Suspense, lazy loading, TypeScript patterns | README |
| shadcn/ui | shadcn/ui component library with Tailwind CSS | README |
| Tailwind CSS | Tailwind v4 utilities, responsive design, theming | README |
| Material-UI | MUI v7 components, sx prop styling, theming | README |
| TanStack Router | File-based routing, loaders, type-safe navigation | README |
| TanStack Query | Data fetching with useSuspenseQuery, cache management | README |
| Kit | Description | Documentation |
|---|---|---|
| Express | Express.js routing, middleware, controllers | README |
| Node.js | Layered architecture, async patterns, error handling | README |
| Prisma | Prisma ORM query patterns, repository pattern, transactions | README |
All kits are auto-detected during installation based on your package.json and project structure.
Every installation includes:
Essential (Auto-configured):
Optional (Requires customization):
Specialized assistants for complex tasks:
Slash commands for common workflows:
Skills automatically activate based on:
Prompt Keywords
Intent Patterns (Regex)
File Path Triggers
app/**/*.tsx → Next.js skill activatesprisma/schema.prisma → Prisma skill activatesContent Patterns
useQuery( → TanStack Query skill activatescreateFileRoute → TanStack Router skill activatesAll configured in .claude/skills/skill-rules.json (auto-generated during install).
your-project/
└── .claude/
├── hooks/ # Automation scripts
│ ├── skill-activation-prompt.*
│ ├── post-tool-use-tracker.sh
│ └── ... (4 optional hooks)
├── agents/ # Specialized assistants
│ ├── code-architecture-reviewer.md
│ ├── refactor-planner.md
│ └── ... (4 more agents)
├── commands/ # Slash commands
│ ├── dev-docs.md
│ ├── build-and-fix.md
│ └── ... (4 more commands)
└── skills/ # Skills + auto-activation
├── skill-developer/
├── nextjs/ # If installed
├── react/ # If installed
├── shadcn/ # If installed
└── skill-rules.json # Auto-activation config
cd my-nextjs-app
npx github:blencorp/claude-code-kit
Detects:
Prompts: "Install these detected kits? (Y/n)"
Result: Next.js, React, shadcn, and Tailwind skills auto-activate when you:
app/dashboard/page.tsxcd my-api
npx github:blencorp/claude-code-kit
Detects:
Prompts: "Install these detected kits? (Y/n)"
Result: Express, Node.js, and Prisma skills auto-activate when you:
routes/users.tscd my-fullstack-app
npx github:blencorp/claude-code-kit
Detects both frontend and backend kits automatically
Prompts: Select from detected frameworks
Result: Complete coverage of your entire stack
npx github:blencorp/claude-code-kit
Detects: Existing installation
Offers:
Want to add support for a new framework? Here's how to create a kit:
cli/kits/your-framework/
├── kit.json # Metadata and detection
├── skills/
│ └── your-framework/
│ ├── SKILL.md # Main skill file (<500 lines)
│ ├── skill-rules-fragment.json # Auto-activation triggers
│ └── resources/ # Optional: detailed guides
│ ├── topic-1.md
│ └── topic-2.md
└── agents/ # Optional: kit-specific agents
└── your-framework-agent.md
{
"name": "your-framework",
"displayName": "Your Framework",
"description": "Short description of what this kit provides",
"detect": "command to detect framework",
"provides": ["skill:your-framework"]
}
Detection Examples:
# Detect from package.json
"detect": "grep -q '\"your-framework\"' package.json"
# Detect from config file
"detect": "test -f your-framework.config.js"
# Detect from directory
"detect": "test -d src/your-framework"
Follow Anthropic best practices:
---
name: your-framework
displayName: Your Framework
description: Complete description with all keywords for trigger matching (max 1024 chars)
version: 1.0.0
---
# Your Framework Development Guide
Best practices for using Your Framework...
## Table of Contents
- [Getting Started](#getting-started)
- [Core Concepts](#core-concepts)
...
## Additional Resources
For detailed information, see:
- [Advanced Patterns](resources/advanced-patterns.md)
- [API Reference](resources/api-reference.md)
{
"your-framework": {
"type": "domain",
"enforcement": "suggest",
"priority": "high",
"promptTriggers": {
"keywords": [
"your framework",
"framework name",
"key concepts"
],
"intentPatterns": [
"create.*(component|route|feature)",
"add.*framework.*feature"
]
},
"fileTriggers": {
"pathPatterns": [
"**/your-framework/**/*.ts",
"**/config.framework.js"
],
"contentPatterns": [
"import.*from.*your-framework"
]
}
}
}
Test detection:
cd test-project
bash cli/kits/your-framework/kit.json # run detect command
Test installation:
./claude-setup
# Select your kit
# Verify files copied to .claude/
Test auto-activation:
cli/kits/your-framework/claude-code-kit/
├── cli/
│ ├── core/ # Always installed
│ │ ├── hooks/ # 6 hooks
│ │ ├── agents/ # 6 agents
│ │ ├── commands/ # 6 commands
│ │ └── skills/
│ │ └── skill-developer/ # Meta-skill
│ └── kits/ # Framework-specific (optional)
│ ├── nextjs/
│ ├── react/
│ ├── shadcn/
│ ├── tailwindcss/
│ ├── mui/
│ ├── tanstack-router/
│ ├── tanstack-query/
│ ├── express/
│ ├── nodejs/
│ └── prisma/
├── claude-setup # Installation script
├── package.json
└── README.md
Template vs Installation:
cli/ directory = Template (what gets copied).claude/ = Installation (what they get)Re-run the installer to update or add kits:
npx github:blencorp/claude-code-kit
The installer detects existing installations and offers:
MIT - See LICENSE for details.
Born from solving "skills don't activate automatically" problem.
The Problem: Claude Code skills just sat there. You had to remember to use them.
The Solution: Auto-activation hooks + framework detection + skill-rules.json = Skills that activate when you need them.
Available as a reference implementation for the community.
This project was inspired by claude-code-infrastructure-showcase by @diet103. Their work on Claude Code infrastructure demonstrated the potential of organized skills and hooks, which motivated the development of this auto-activation system and framework-specific kit approach.
.claude/skills/skill-rules.json was generated互換性