← Back to Leaderboard
Cdiet103

diet103/claude-code-infrastructure-showcase

Shared coding CLI hooks that surface relevant skills and check activation before edits

View on GitHub ↗
Engineering Health (Methodology)
B · 59/100
Maintenance Activity
● Updated 4mo ago
Latest Release
Rolling commits (main)
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance12/35
Fork Adoption21/25
Release Cadence6/20
License Clarity20/20
CLI
Total Stars
★ 10,061
24h Growth
+0
7d Growth
+0
Forks
1,193

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

diet103/claude-code-infrastructure-showcase Star History (2025-10-28 - 2026-12-04) ALL-TIME STAR HISTORY (2025-10 – 2026-12) +10.1k in 402d · avg +25/day 10.6k 5.3k 0 2025-10-28: ★ 12025-11-22: ★ 6,7282025-12-20: ★ 7,5192026-01-17: ★ 8,2062026-02-14: ★ 8,6532026-03-14: ★ 9,0112026-04-11: ★ 9,2502026-05-09: ★ 9,4602026-06-06: ★ 9,5592026-07-04: ★ 9,6252026-08-01: ★ 9,8962026-08-29: ★ 9,9542026-09-26: ★ 9,9832026-10-24: ★ 10,0192026-11-18: ★ 10,0522026-12-04: ★ 10,061 ★ 10.1k 2025-10 2026-05 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & 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.

Execution model: Project-local Bash and TypeScript hooks attach to coding CLI lifecycle events; no standalone MCP endpoint is described.
Skill routing: skill-rules.json maps prompt and file signals to skills, with offline regex matching as the default.
Enforcement: A PreToolUse guard applies two-try blocking to block-configured skills; a post-Skill hook clears pending activation state.
Cross-agent reuse: Codex shares four core hooks with Claude Code, normalizes apply_patch to per-file events, and uses the same state/metrics.jsonl telemetry.
Classifier choice: Regex-only, AI-first with regex fallback, or AI-only, with Gemini, OpenAI, Anthropic, and local Ollama backends.
Integration checks: verify-setup.sh runs eight checks, including exercising the live activation hook with a test prompt.
Best For

Claude Code or Codex teams that repeatedly miss project conventions and want reusable skill routing, activation tracking, and pre-edit checks inside each project.

Skip If

You need an MCP server, a centrally enforced policy boundary, or a setup that works in native Windows shells without maintaining project hooks.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

CLI
# 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 →
RepositoryStars7d TrendStackLicenseCore Positioning
claude-code-infrastructure-showcase ★10.1k—TypeScriptMITShared coding CLI hooks that surface relevant skills and check activation before
rea488.8k+7.6kTypeScriptMITA local CLI and MCP server for evidence-backed app and binary analysis
chrome-devtools-mcp60.4k+760TypeScriptApache-2.0Chrome DevTools via MCP and CLI for live browser debugging and performance analy
skills42.3k+1.1kTypeScriptMITTypeScript 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.

Raw .md ↗
curl -sL https://repoforai.com/repo/diet103/claude-code-infrastructure-showcase.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

diet103/claude-code-infrastructure-showcase Star History on RepoForAI

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?

Edit .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?

The default classifier runs locally with Bash, Node.js, and regex or keyword matching. It requires no API key and has no GPU or VRAM requirement of its own. Hosted classifiers add request latency and provider usage; local Ollama shifts inference to your machine, where resource needs depend on the selected model and workload. No fixed memory or VRAM figures are specified.

Can we use this in a commercial repository and keep classification local?

MIT permits copying, modification, and commercial use, subject to retaining the required copyright and license notices when redistributing copies or substantial portions. The hooks run in the project, so there is no separate service to host for regex matching. Review the host CLI and any hosted classifier separately for terms and prompt-data handling; the repository's MIT license does not cover those services.

When is this worth adopting over native skills and project instructions alone?

Native skills and a project instruction file are the simpler option if the main goal is to make guidance available. This toolkit adds project-specific matching, activation tracking, and a pre-edit guard for configured skills. Adopt it when missed guidance is a recurring problem and the team is prepared to maintain the rules and review automated hook behavior.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining diet103/claude-code-infrastructure-showcase? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature diet103/claude-code-infrastructure-showcase on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

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

Saved in your browser · Export Markdown RFC tables or jump into /vs compare