diet103/claude-code-infrastructure-showcase
Shared coding CLI hooks that surface relevant skills and check activation before edits
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
This is a copy-in reference toolkit for coding CLIs, not a standalone application or a demonstrated MCP server. Bash wrappers and TypeScript hook logic live under .claude/hooks/. UserPromptSubmit evaluates prompt and file context against .claude/skills/skill-rules.json and surfaces matching skills. A PreToolUse guard checks covered writes and edits; post-tool hooks record skill activation and touched files. The post-Skill tracker clears the relevant pending requirement when the Skill tool is invoked.
Project extension happens through JSON rules, Markdown skills, and lifecycle hook registration. Codex registers the same four core hooks in .codex/hooks.json. Its adapter sets CLAUDE_PROJECT_DIR and converts native apply_patch calls into per-file events the guard understands. .agents/skills/ mirrors the canonical .claude/skills/, and the clients share session state and the local state/metrics.jsonl activation log.
Key Capabilities & Differentiators
Skill routing can run in disabled mode, which disables AI rather than skill matching, fallback mode, which tries AI before falling back to regex on failure, or ai-only mode, which has no regex fallback. Providers are Gemini (gemini-3-flash-preview), OpenAI (gpt-4o-mini), Anthropic (claude-haiku-4-5), and local Ollama (llama3.2). Strict, balanced, and aggressive settings let teams tune how readily the classifier suggests a skill.
Rules marked block get a two-try pre-edit enforcement workflow rather than just a prompt-time reminder. The content library includes four skills covering backend, frontend, skill authoring, and Sentry error tracking; eight specialized agents cover work such as architecture review and refactoring; and four slash commands support workflows including setup verification and development notes. The modular skill pattern keeps the main SKILL.md under 500 lines and puts narrower topics in resources that can be loaded when needed.
Trade-offs & Limitations
Compared with native skills and static project instructions, explicit matching rules make it easier to decide when guidance should appear and to enforce activation on covered edit events. The cost is more project-owned code and configuration: teams have to tune triggers, account for false matches, keep skill mirrors synchronized, and check hook behavior across clients. The two-try guard is a workflow control, not a security boundary or a guarantee that generated code follows the activated guidance.
Regex matching keeps classification local and avoids provider charges, but it can miss intent phrased outside the configured patterns. Hosted AI can match intent beyond literal keywords, at the cost of per-prompt network latency, provider usage, and prompt-data review. Ollama avoids the hosted classifier but requires local inference capacity. Start with the core hooks: optional TypeScript and build-resolution Stop hooks target narrower workflows and may require substantial project-specific tuning.
Hardware & Deployment Guide
Run the toolkit with Node.js 18+ (20+ recommended), npm, and Bash on macOS, Linux, or WSL2. jq is only needed for optional Stop hooks that use it. The npx tsx setup.ts <project-path> wizard copies the Claude configuration into a new target, detects the tech stack, configures the classification mode, installs hook dependencies, and sets executable permissions. It accepts --yes for noninteractive setup. Run bash .claude/scripts/verify-setup.sh from the project root to verify the result, including a test prompt through the activation hook.
Default matching is offline and keyless; hosted classification needs the selected provider's credentials. For Codex, use a CLI installed in the same shell environment, start it from the project root, and review the hook configuration before granting trust. The v2.0 design adds explicit pre-edit verification and post-activation tracking; no GitHub release is listed. Rerunning the wizard against an existing .claude/ does not refresh copied files, so new hook or skill files need to be merged separately.
skill-rules.json maps prompt and file signals to skills, with offline regex matching as the default.PreToolUse guard applies two-try blocking to block-configured skills; a post-Skill hook clears pending activation state.apply_patch to per-file events, and uses the same state/metrics.jsonl telemetry.verify-setup.sh runs eight checks, including exercising the live activation hook with a test prompt.Claude Code or Codex teams that repeatedly miss project conventions and want reusable skill routing, activation tracking, and pre-edit checks inside each project.
You need an MCP server, a centrally enforced policy boundary, or a setup that works in native Windows shells without maintaining project hooks.
Quick Start & Installation
# 1. Clone this repo git clone https://github.com/diet103/claude-code-infrastructure-showcase.git # 2. Run the setup wizard, pointing to YOUR project cd claude-code-infrastructure-showcase npx tsx setup.ts ~/my-project
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| claude-code-infrastructure-showcase ★ | 10.1k | — | TypeScript | MIT | Shared coding CLI hooks that surface relevant skills and check activation before |
| rea | 488.8k | +7.6k | TypeScript | MIT | A local CLI and MCP server for evidence-backed app and binary analysis |
| chrome-devtools-mcp | 60.4k | +760 | TypeScript | Apache-2.0 | Chrome DevTools via MCP and CLI for live browser debugging and performance analy |
| skills | 42.3k | +1.1k | TypeScript | MIT | TypeScript CLI for distributing and restoring skills across coding agents |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/diet103/claude-code-infrastructure-showcase.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about claude-code-infrastructure-showcase
Where do I change the skill rules, and how do I keep Claude Code and Codex in sync?
.claude/skills/skill-rules.json to map prompt and file context to skills. Claude Code runs the hooks under .claude/hooks/; Codex registers the same four core hooks in .codex/hooks.json and uses an adapter to translate apply_patch into per-file events. After editing a skill, run .claude/scripts/sync-agent-skills.sh to refresh the .agents/skills/ mirror.What runtime overhead should I budget for, and do I need a GPU?
Can we use this in a commercial repository and keep classification local?
When is this worth adopting over native skills and project instructions alone?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy