feat: add Learning Paths, examples, and project governance files

### New Content
- Learning Paths section in README (Junior/Senior/Power User/PM tracks)
- examples/ folder with 18 ready-to-use templates:
  - 4 agents (code-reviewer, test-writer, security-auditor, refactoring)
  - 2 skills (TDD workflow, security checklist)
  - 3 commands (commit, review-pr, generate-tests)
  - 4 hooks (bash + PowerShell for security, formatting)
  - 3 config templates (settings, MCP, gitignore)
  - 2 memory templates (project + personal CLAUDE.md)

### Governance
- CHANGELOG.md: Version history (1.0.0 → 1.1.0 → Unreleased)
- CONTRIBUTING.md: Contribution guidelines for community

### Documentation
- llms.txt: Updated structure with new files/folders

This update makes the guide more actionable with concrete templates
and provides clear learning paths for different skill levels.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Florian BRUNIAUX 2026-01-10 14:25:22 +01:00
parent a4eed95f47
commit b2acc9b115
24 changed files with 1744 additions and 4 deletions

View file

@ -0,0 +1,50 @@
# PostToolUse hook - Auto-format files after editing
# Place in: .claude\hooks\auto-format.ps1
# Register in: .claude\settings.json (with -ExecutionPolicy Bypass)
$inputJson = [Console]::In.ReadToEnd() | ConvertFrom-Json
$tool = $inputJson.tool_name
# Only run after Write or Edit operations
if ($tool -eq "Write" -or $tool -eq "Edit") {
$file = $inputJson.tool_input.file_path
if (-not $file) {
$file = $inputJson.tool_input.path
}
if (-not $file -or $file -eq "null") {
exit 0
}
# Get file extension
$ext = [System.IO.Path]::GetExtension($file).TrimStart('.')
switch ($ext) {
{ $_ -in @("js", "jsx", "ts", "tsx", "json", "css", "scss", "md", "html", "vue") } {
# Format with Prettier if available
if (Test-Path "node_modules\.bin\prettier.cmd") {
& npx prettier --write $file 2>$null
}
}
"py" {
# Format with Black if available
if (Get-Command black -ErrorAction SilentlyContinue) {
& black $file 2>$null
}
}
"go" {
# Format with gofmt
if (Get-Command gofmt -ErrorAction SilentlyContinue) {
& gofmt -w $file 2>$null
}
}
"rs" {
# Format with rustfmt
if (Get-Command rustfmt -ErrorAction SilentlyContinue) {
& rustfmt $file 2>$null
}
}
}
}
exit 0

View file

@ -0,0 +1,45 @@
# PreToolUse hook - Block commands containing secrets
# Place in: .claude\hooks\security-check.ps1
# Register in: .claude\settings.json (with -ExecutionPolicy Bypass)
$inputJson = [Console]::In.ReadToEnd() | ConvertFrom-Json
$tool = $inputJson.tool_name
if ($tool -eq "Bash") {
$command = $inputJson.tool_input.command
# Check for common secret patterns
$patterns = @(
"password=",
"PASSWORD=",
"secret=",
"SECRET=",
"api_key=",
"API_KEY=",
"apikey=",
"token=",
"TOKEN=",
"aws_access_key",
"AWS_ACCESS_KEY",
"aws_secret",
"AWS_SECRET",
"private_key",
"PRIVATE_KEY"
)
foreach ($pattern in $patterns) {
if ($command -match [regex]::Escape($pattern)) {
Write-Output "{`"decision`": `"block`", `"reason`": `"Potential secret detected: $pattern`"}"
exit 2
}
}
# Check for hardcoded API keys
if ($command -match "(sk-[a-zA-Z0-9]{20,}|pk_[a-zA-Z0-9]{20,}|[a-f0-9]{32,})") {
Write-Output "{`"decision`": `"block`", `"reason`": `"Potential API key or hash detected`"}"
exit 2
}
}
# Allow the command
exit 0