From 5b526f5e53530373ce7046a96e97c3069c652883 Mon Sep 17 00:00:00 2001 From: Florian BRUNIAUX Date: Mon, 12 Jan 2026 14:52:55 +0100 Subject: [PATCH] feat(audit): enhanced stack detection with integrations - Detailed stack breakdown: runtime, framework, test, bundler, database - Generic integration detection (25+ packages: Clerk, Stripe, OpenAI, Sentry...) - jq fallback: grep-based JSON parsing when jq not installed - Stack recap at top of human output + full stack object in JSON - README prompt updated: Stack Recap first, CLAUDE.md template ~100 lines Co-Authored-By: Claude Opus 4.5 --- CHANGELOG.md | 22 ++ README.md | 20 +- claude-code-reference.yaml | 2 +- english-ultimate-claude-code-guide.md | 4 +- examples/scripts/audit-scan.sh | 175 ++++++++- quiz/package.json | 30 ++ quiz/questions/01-quick-start.yaml | 259 +++++++++++++ quiz/questions/02-core-concepts.yaml | 310 +++++++++++++++ quiz/questions/03-memory-settings.yaml | 293 ++++++++++++++ quiz/questions/04-agents.yaml | 293 ++++++++++++++ quiz/questions/05-skills.yaml | 310 +++++++++++++++ quiz/questions/06-commands.yaml | 306 +++++++++++++++ quiz/questions/07-hooks.yaml | 382 +++++++++++++++++++ quiz/questions/08-mcp-servers.yaml | 364 ++++++++++++++++++ quiz/questions/09-advanced-patterns.yaml | 438 +++++++++++++++++++++ quiz/questions/10-reference.yaml | 465 +++++++++++++++++++++++ quiz/src/dynamic.js | 132 +++++++ quiz/src/index.js | 187 +++++++++ quiz/src/prompts.js | 114 ++++++ quiz/src/questions.js | 124 ++++++ quiz/src/quiz.js | 122 ++++++ quiz/src/score.js | 116 ++++++ quiz/src/session.js | 169 ++++++++ quiz/src/ui.js | 122 ++++++ 24 files changed, 4741 insertions(+), 18 deletions(-) create mode 100644 quiz/package.json create mode 100644 quiz/questions/01-quick-start.yaml create mode 100644 quiz/questions/02-core-concepts.yaml create mode 100644 quiz/questions/03-memory-settings.yaml create mode 100644 quiz/questions/04-agents.yaml create mode 100644 quiz/questions/05-skills.yaml create mode 100644 quiz/questions/06-commands.yaml create mode 100644 quiz/questions/07-hooks.yaml create mode 100644 quiz/questions/08-mcp-servers.yaml create mode 100644 quiz/questions/09-advanced-patterns.yaml create mode 100644 quiz/questions/10-reference.yaml create mode 100644 quiz/src/dynamic.js create mode 100644 quiz/src/index.js create mode 100644 quiz/src/prompts.js create mode 100644 quiz/src/questions.js create mode 100644 quiz/src/quiz.js create mode 100644 quiz/src/score.js create mode 100644 quiz/src/session.js create mode 100644 quiz/src/ui.js diff --git a/CHANGELOG.md b/CHANGELOG.md index fea5d2b..9f56a53 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,28 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] +## [2.9.8] - 2026-01-12 + +### Enhanced +- **audit-scan.sh** - Enhanced stack detection with detailed breakdown + - Now detects: runtime, framework, test runner, bundler, database/ORM + - Generic integration detection from package.json (auth, payments, AI, monitoring, etc.) + - Works without jq (grep-based fallback for all JSON parsing) + - Stack recap shown at top of human output + - JSON output includes full `stack` object with all detected components + +- **README.md** - Updated Full Audit prompt + - Now requests Stack Recap as first output item + - CLAUDE.md template increased from ~60 to ~100 lines + - Added integration-aware suggestions in output description + +### Fixed +- **audit-scan.sh** - jq fallback now works for MCP detection in ~/.claude.json + +### Stats +- 2 files modified (audit-scan.sh ~150 lines added, README.md prompt updated) +- Detects 25+ common integrations (Clerk, Stripe, OpenAI, Sentry, etc.) + ## [2.9.7] - 2026-01-12 ### Enhanced diff --git a/README.md b/README.md index d908159..c10bf48 100644 --- a/README.md +++ b/README.md @@ -128,19 +128,21 @@ Local .claude/CLAUDE.md: $LOCAL_CLAUDE_MD Based on ALL this context (tech stack, business domain, existing instructions), provide: -1. Health Score (0-100) with priority breakdown -2. Findings table: Priority|Element|Status|Action -3. Top 3 quick wins (<5 min) tailored to THIS project's domain -4. CLAUDE.md template (~60 lines) that incorporates existing instructions + improvements -5. Suggested agents/commands/hooks specific to THIS project's business context -6. Ideas to leverage Claude Code for this specific domain" +1. Stack Recap: runtime, framework, test runner, bundler, database, key integrations detected +2. Health Score (0-100) with priority breakdown +3. Findings table: Priority|Element|Status|Action +4. Top 3 quick wins (<5 min) tailored to THIS project's domain +5. CLAUDE.md template (~100 lines) that incorporates existing instructions + improvements +6. Suggested agents/commands/hooks specific to THIS project's business context +7. Ideas to leverage Claude Code for this specific domain and integrations" ``` **What you get**: +- **Stack recap**: Runtime, framework, test runner, bundler, database, and key integrations auto-detected - Health score with prioritized findings -- Stack-specific CLAUDE.md template that builds on your existing instructions +- Stack-specific CLAUDE.md template (~100 lines) that builds on your existing instructions - Domain-aware suggestions (e.g., EdTech → session planning agents, E-commerce → inventory commands) -- Custom agents/commands/hooks ideas tailored to your project +- Integration-aware ideas (e.g., Stripe → payment testing commands, Sentry → error monitoring hooks) **Want maximum depth?** Use [claude-setup-audit-prompt.md](./claude-setup-audit-prompt.md) with `claude --ultrathink` @@ -383,7 +385,7 @@ If this guide saved you time, helped you master Claude Code, or inspired your wo --- -*Version 2.9.7 | January 2026 | Crafted with Claude* +*Version 2.9.8 | January 2026 | Crafted with Claude*