github davila7/claude-code-templates v1.18.0
๐Ÿš€ Release v1.18.0 - Settings & Hooks System with Installation Location Selection

latest releases: v1.19.1, v1.19.0
20 days ago

๐ŸŽฏ Major Features

โš™๏ธ Settings System

  • ๐Ÿ—๏ธ Hierarchical Configuration: Full support for user, project, local, and enterprise settings
  • ๐Ÿ“ฆ Modular Components: Individual settings for permissions, model selection, telemetry, and cleanup policies
  • ๐Ÿ”ง Interactive Installation: Choose installation location with guided prompts
  • ๐Ÿ›ก๏ธ Security-First: Proper handling of sensitive data with local settings

๐Ÿช Hooks System Overhaul

  • โœ… Claude Code Specification Compliance: All hooks now follow official array/matcher format
  • ๐ŸŽฏ Event-Driven Automation: Complete support for PreToolUse, PostToolUse, Stop, and more
  • ๐Ÿ“ฑ Telegram Integration: Three notification hooks with comprehensive setup guide
  • ๐Ÿ”ง Development Tools: Smart formatting, file backup, change tracking, and linting integration
  • ๐Ÿ”„ Git Workflow: Auto-staging and intelligent commit message generation
  • ๐Ÿ“Š Performance Monitoring: System health tracking and optimization alerts

๐ŸŒ Installation Location Selection

  • ๐Ÿ  User Settings (~/.claude/settings.json) - Global configuration
  • ๐Ÿ“ Project Settings (.claude/settings.json) - Team-shared settings
  • โš™๏ธ Local Settings (.claude/settings.local.json) - Personal, not committed
  • ๐Ÿข Enterprise Settings - System-wide policies with admin requirements

๐Ÿ“š Comprehensive Documentation

  • Complete Docusaurus Integration: Full documentation at https://docs.aitmpl.com
  • Settings Guide: 300+ lines covering all configuration levels
  • Hooks Manual: 400+ lines with automation examples and best practices
  • Telegram Setup: Step-by-step bot creation and integration guide

๐Ÿ”ง Technical Improvements

Hook Structure Compliance

  • โœ… Fixed all 20+ hooks to use proper Claude Code array/matcher specification
  • ๐ŸŽฏ Enhanced pattern matching with tool-specific matchers
  • ๐Ÿ” Environment variable integration (CLAUDE_TOOL_NAME, CLAUDE_TOOL_FILE_PATH)
  • ๐Ÿ›ก๏ธ Error handling improvements with graceful fallbacks

CLI Enhancements

  • ๐Ÿ”„ Interactive location selection for both Settings and Hooks
  • ๐Ÿ“ฆ Support for multiple component installation in single command
  • ๐Ÿš€ Improved error handling and validation
  • ๐Ÿ“‹ Better user feedback and progress indication

Cross-Platform Support

  • ๐ŸŽ macOS: /Library/Application Support/ClaudeCode/
  • ๐Ÿง Linux/WSL: /etc/claude-code/
  • ๐ŸชŸ Windows: C:\ProgramData\ClaudeCode\

๐Ÿ“ฆ Available Components

Settings Categories

  • ๐Ÿ›ก๏ธ Permissions: allow-npm-commands, deny-sensitive-files
  • ๐Ÿค– Model: use-sonnet, use-haiku
  • ๐Ÿ“Š Telemetry: enable-telemetry, disable-telemetry
  • ๐Ÿงน Cleanup: retention-7-days, retention-90-days

Hook Categories

  • ๐Ÿ”ง Development Tools: file-backup, smart-formatting, lint-on-save
  • ๐Ÿ”„ Git Workflow: auto-git-add, smart-commit
  • ๐Ÿงช Testing: test-runner
  • โšก Automation: telegram-notifications, simple-notifications, build-on-change
  • ๐Ÿ”’ Security: file-protection, security-scanner
  • ๐Ÿ“Š Performance: performance-monitor

๐Ÿš€ Installation

# Install Settings with location selection
npx claude-code-templates@latest --setting=model/use-sonnet

# Install Hooks with location selection  
npx claude-code-templates@latest --hook=git-workflow/auto-git-add

# Install multiple components
npx claude-code-templates@latest --setting=model/use-sonnet,telemetry/enable-telemetry

# Skip location prompt (defaults to local settings)
npx claude-code-templates@latest --hook=automation/telegram-notifications --yes

๐Ÿ“š Documentation

๐Ÿ”„ Migration from Previous Versions

If you have existing hook configurations, they will continue to work. However, we recommend updating to the new format for better compatibility:

Old Format (deprecated):

{"PreToolUse": "echo 'starting'"}

New Format (recommended):

{
  "PreToolUse": [{
    "matcher": "*",
    "hooks": [{"type": "command", "command": "echo 'starting'"}]
  }]
}

๐Ÿ› ๏ธ Contributors

Thanks to all contributors who helped make this release possible!


Full Changelog: v1.17.1...v1.18.0

Don't miss a new claude-code-templates release

NewReleases is sending notifications on new releases.