Files
davila7__claude-code-templates/cli-tool/components/commands/setup/setup-formatting.md
Dani 054c0e56e9 fix(commands): Remove deprecated 'model: sonnet' field from 142 command files
Removed the deprecated 'model: sonnet' field from command frontmatter to fix
compatibility issues with Claude Code. Commands will now inherit the model from
the active conversation instead of using a hardcoded deprecated model identifier.

Changes:
- Removed 'model: sonnet' from 142 command files across all categories
- Commands now use default model inheritance behavior
- Preserved 'model: claude-sonnet-4-5-20250929' in gemini-review.md (valid model)
- 67 commands without model field remain unchanged

This resolves the "model: sonnet not found" error reported in GitHub issues
and aligns with Claude Code's recommended practice of letting commands inherit
the conversation model.

Affected categories:
- Database/Supabase commands (8 files)
- Documentation commands (8 files)
- Deployment commands (11 files)
- Setup commands (14 files)
- Performance commands (8 files)
- Team commands (14 files)
- Security commands (6 files)
- NextJS/Vercel commands (10 files)
- Sync commands (14 files)
- And more across other categories

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-21 10:08:58 -04:00

1.8 KiB

allowed-tools: Read, Write, Edit, Bash argument-hint: [language] | --javascript | --typescript | --python | --multi-language description: Configure comprehensive code formatting tools with consistent style enforcement

Setup Code Formatting

Configure comprehensive code formatting with consistent style enforcement: $ARGUMENTS

Current Project State

  • Languages detected: !find . -name "*.js" -o -name "*.ts" -o -name "*.py" -o -name "*.rs" | head -5
  • Existing formatters: @.prettierrc or @pyproject.toml or @rustfmt.toml
  • Package manager: @package.json or @requirements.txt or @Cargo.toml
  • IDE config: @.vscode/settings.json or @.editorconfig

Task

Setup comprehensive code formatting system with automated enforcement and team consistency:

Language Focus: Use $ARGUMENTS to configure JavaScript/TypeScript, Python, Rust, or multi-language formatting

Formatting Setup:

  1. Tool Installation - Prettier, Black, rustfmt, language-specific formatters and plugins
  2. Configuration - Style rules, line length, indentation, quotes, trailing commas, language-specific options
  3. IDE Integration - Editor extensions, format-on-save, keyboard shortcuts, workspace settings
  4. Automation - Pre-commit hooks, CI/CD formatting checks, automated formatting scripts
  5. Team Sync - Shared configurations, style guides, enforcement policies, onboarding documentation
  6. Validation - Formatting verification, CI integration, team compliance monitoring

Advanced Features: Custom rules, framework-specific formatting, performance optimization, incremental formatting.

Consistency: Cross-platform compatibility, team standardization, legacy code migration strategies.

Output: Complete formatting system with automated enforcement, team configurations, and style compliance monitoring.