[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CD37Z7VD22BH42TG0GM66V":3,"skill-same:01M6CD37Z7VD22BH42TG0GM66V":74},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":14,"repositoryHtmlUrl":51,"repositoryHomepageUrl":6,"ownerHtmlUrl":52,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":53,"install":54,"resources":67},"01M6CD37Z7VD22BH42TG0GM66V","style-enforcement",null,"Validate code against style rules from .editorconfig, StyleCop.json, and Directory.Build.props. Detects line ending violations, naming convention issues, indentation problems, and charset mismatches across C#, Python, TypeScript, and JavaScript. Produces JSON reports for pre-commit hooks and CI pipelines.","loriensleafs\u002Fbrain","loriensleafs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F315385?v=4","01M6CCYZETMCJPTHNS258YRCBC","Peter Kloss","01M6CCYZK25T8516A39S9PCJT7",0,"MIT","https:\u002F\u002Fgithub.com\u002Floriensleafs\u002Fbrain\u002Fblob\u002Fmain\u002Ftemplates\u002Fskills\u002Fstyle-enforcement\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"style enforcement","enforcement","editorconfig","reports","pipelines","hooks","implementer","Rules","json","pre-commit","directory","ci","qa","issues","code","validate","commit","javascript","python","typescript","2026-11-10 10:12:30",false,"---\nname: style-enforcement\ndescription: Validate code against style rules from .editorconfig, StyleCop.json, and Directory.Build.props. Detects line ending violations, naming convention issues, indentation problems, and charset mismatches across C#, Python, TypeScript, and JavaScript. Produces JSON reports for pre-commit hooks and CI pipelines.\nlicense: MIT\nagents: [qa, implementer]\nmodel: claude-sonnet-4-5\nmetadata:\n  version: 1.0.0\n---\n\n# Style Enforcement\n\nValidate code files against configured style rules from project configuration files.\n\n## Triggers\n\n- `check style compliance`\n- `validate editorconfig rules`\n- `run style enforcement`\n- `check naming conventions`\n- `validate line endings`\n\n---\n\n## Quick Start\n\n```bash\n# Check all files in current directory\nbun run ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck_style.ts --target .\n\n# Check only changed files (CI mode)\nbun run ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck_style.ts --git-staged\n\n# Check specific files\nbun run ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck_style.ts src\u002Fmodels\u002Fuser.cs src\u002Fservices\u002Fauth.cs\n\n# JSON output for automation\nbun run ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck_style.ts --target . --format json --output violations.json\n```\n\n---\n\n## Evidence\n\nCreated based on analysis of moq.analyzers closed PR reviewer patterns:\n\n- **9.8% of human reviewer feedback** (11 of 112 comments) addressed naming\u002Fstyle conventions\n- Common patterns: line endings (CRLF vs LF), naming conventions (FooAsync), style guide violations\n- Examples: \"Use lf not crlf\", \"Should be named FooAsync\", \"Conflicting style rules\"\n\nSource: Analysis of closed PR reviewer patterns.\n\n---\n\n## Configuration Sources\n\nThe skill reads style configuration from these files (in priority order):\n\n| File | Purpose | Scope |\n|------|---------|-------|\n| `.editorconfig` | EditorConfig standard | All languages |\n| `.stylecop.json` \u002F `stylecop.json` | StyleCop Analyzers rules | C# |\n| `Directory.Build.props` | MSBuild properties | .NET projects |\n\n### .editorconfig Properties Checked\n\n| Property | Values | Languages |\n|----------|--------|-----------|\n| `end_of_line` | lf, crlf, cr | All |\n| `indent_style` | space, tab | All |\n| `indent_size` | number | All |\n| `charset` | utf-8, utf-8-bom, latin1 | All |\n| `trim_trailing_whitespace` | true, false | All |\n| `insert_final_newline` | true, false | All |\n\n### .editorconfig Naming Conventions (C#)\n\n```ini\n# Example naming rules\ndotnet_naming_rule.async_methods_should_end_with_async.symbols = async_methods\ndotnet_naming_rule.async_methods_should_end_with_async.style = async_suffix_style\ndotnet_naming_rule.async_methods_should_end_with_async.severity = warning\n\ndotnet_naming_style.async_suffix_style.required_suffix = Async\n```\n\n---\n\n## Detection Capabilities\n\n### Line Ending Violations\n\nDetects when file line endings differ from `.editorconfig` `end_of_line` setting.\n\n```\nRule: STYLE-001\nSeverity: warning\nExample: \"File uses CRLF but editorconfig requires LF\"\n```\n\n### Indentation Violations\n\nDetects tabs vs spaces mismatches and incorrect indent sizes.\n\n```\nRule: STYLE-002\nSeverity: warning\nExample: \"Line uses tabs but editorconfig requires spaces (indent_size=4)\"\n```\n\n### Charset Violations\n\nDetects incorrect file encoding (BOM presence\u002Fabsence).\n\n```\nRule: STYLE-003\nSeverity: warning\nExample: \"File has UTF-8 BOM but editorconfig requires utf-8 (no BOM)\"\n```\n\n### Trailing Whitespace\n\nDetects trailing whitespace when `trim_trailing_whitespace = true`.\n\n```\nRule: STYLE-004\nSeverity: info\nExample: \"Line 42 has trailing whitespace\"\n```\n\n### Final Newline\n\nDetects missing final newline when `insert_final_newline = true`.\n\n```\nRule: STYLE-005\nSeverity: info\nExample: \"File does not end with newline\"\n```\n\n### Naming Convention Violations (C#)\n\nDetects async method naming when `dotnet_naming_rule` configured.\n\n```\nRule: STYLE-010\nSeverity: warning\nExample: \"Async method 'GetUser' should end with 'Async' suffix\"\n```\n\n---\n\n## Process\n\n```\n┌─────────────────────────────────────────┐\n│ 1. Configuration Discovery              │\n│    - Walk up from target to find root   │\n│    - Parse .editorconfig hierarchy      │\n│    - Parse .stylecop.json if present    │\n│    - Parse Directory.Build.props        │\n├─────────────────────────────────────────┤\n│ 2. Rule Compilation                     │\n│    - Match globs to file extensions     │\n│    - Build per-file rule set            │\n│    - Merge inherited properties         │\n├─────────────────────────────────────────┤\n│ 3. File Scanning                        │\n│    - Check each file against its rules  │\n│    - Detect violations with line info   │\n│    - Apply suppression comments         │\n├─────────────────────────────────────────┤\n│ 4. Report Generation                    │\n│    - Format: markdown, JSON, or SARIF   │\n│    - Include violation counts           │\n│    - Exit code based on findings        │\n└─────────────────────────────────────────┘\n```\n\n---\n\n## Command Reference\n\n### Basic Usage\n\n```bash\nbun run ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck_style.ts [options] [files...]\n```\n\n### Parameters\n\n| Parameter | Required | Default | Description |\n|-----------|----------|---------|-------------|\n| `--target` | No | . | Directory or file to scan |\n| `--git-staged` | No | false | Check only git staged files |\n| `--format` | No | text | Output format: text, json, sarif |\n| `--output` | No | stdout | Output file path |\n| `--config` | No | auto | Path to .editorconfig (auto-discovers) |\n| `--severity` | No | warning | Minimum severity: error, warning, info |\n\n### Exit Codes\n\n| Code | Meaning |\n|------|---------|\n| 0 | All files compliant |\n| 1 | Script error (invalid arguments, config parse failure) |\n| 10 | Violations detected |\n\n---\n\n## Integration\n\n### Pre-commit Hook\n\n```yaml\n# .pre-commit-config.yaml\nrepos:\n  - repo: local\n    hooks:\n      - id: style-enforcement\n        name: Style Enforcement\n        entry: bun run .claude\u002Fskills\u002Fstyle-enforcement\u002Fscripts\u002Fcheck_style.ts\n        args: [--git-staged]\n        language: system\n        pass_filenames: false\n```\n\n### GitHub Actions\n\n```yaml\n# .github\u002Fworkflows\u002Fstyle.yml\njobs:\n  style:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - name: Check style\n        run: |\n          bun run .claude\u002Fskills\u002Fstyle-enforcement\u002Fscripts\u002Fcheck_style.ts \\\n            --target . \\\n            --format sarif \\\n            --output style-results.sarif\n      - uses: github\u002Fcodeql-action\u002Fupload-sarif@v3\n        with:\n          sarif_file: style-results.sarif\n```\n\n### Agent Pre-Submission\n\nBefore creating a PR, run style enforcement:\n\n```bash\nbun run .claude\u002Fskills\u002Fstyle-enforcement\u002Fscripts\u002Fcheck_style.ts --git-staged\n```\n\nIf exit code is 10, fix violations before proceeding.\n\n---\n\n## Examples\n\n### Example 1: Check Single File\n\n```bash\nbun run ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck_style.ts src\u002Fmodels\u002FUser.cs\n```\n\n**Output:**\n\n```\nStyle Enforcement Report\n========================\n\nViolations: 2\n\nsrc\u002Fmodels\u002FUser.cs\n  Line 1: [STYLE-001] File uses CRLF but editorconfig requires LF\n  Line 45: [STYLE-010] Async method 'GetUser' should end with 'Async' suffix\n\nExit code: 10 (violations detected)\n```\n\n### Example 2: JSON Output for CI\n\n```bash\nbun run ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck_style.ts --target . --format json\n```\n\n```json\n{\n  \"scan_timestamp\": \"2026-02-08T10:30:00Z\",\n  \"files_scanned\": 42,\n  \"violations\": [\n    {\n      \"file\": \"src\u002Fmodels\u002FUser.cs\",\n      \"line\": 1,\n      \"column\": 1,\n      \"rule\": \"STYLE-001\",\n      \"message\": \"File uses CRLF but editorconfig requires LF\",\n      \"severity\": \"warning\"\n    }\n  ],\n  \"summary\": {\n    \"total\": 1,\n    \"by_severity\": {\"warning\": 1}\n  }\n}\n```\n\n### Example 3: SARIF for GitHub Code Scanning\n\n```bash\nbun run ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck_style.ts --target . --format sarif --output results.sarif\n```\n\n---\n\n## Suppression\n\nSuppress specific violations with inline comments:\n\n```csharp\n\u002F\u002F style-enforcement: ignore STYLE-001\nvar data = GetData();  \u002F\u002F CRLF line ending allowed here\n```\n\n```python\n# style-enforcement: ignore STYLE-002\n pass  # Tab indentation allowed here\n```\n\n---\n\n## When to Use\n\nUse this skill when:\n\n- Checking style compliance before commits\n- Enforcing consistent code formatting in CI\n- Validating editorconfig rules are applied correctly\n- Detecting naming convention violations\n\nUse existing linters instead when:\n\n- Full ESLint\u002FPrettier rules needed (JavaScript)\n- Full StyleCop Analyzer output needed (C#, use `dotnet build`)\n- Auto-formatting is desired (use `dotnet format`, `black`, `prettier`)\n\n---\n\n## Language Support\n\n### Fully Supported\n\n| Language | Extensions | Naming Rules |\n|----------|------------|--------------|\n| C# | .cs | Async suffix, interface prefix |\n| Python | .py | snake_case validation |\n| PowerShell | .ps1, .psm1 | Verb-Noun validation |\n| JavaScript\u002FTypeScript | .js, .ts, .jsx, .tsx | camelCase validation |\n\n### Basic Support (line endings, indentation, charset)\n\n- Go (.go)\n- Rust (.rs)\n- Java (.java)\n- Ruby (.rb)\n- Markdown (.md)\n- YAML (.yml, .yaml)\n- JSON (.json)\n\n---\n\n## Anti-Patterns\n\n| Avoid | Why | Instead |\n|-------|-----|---------|\n| Running without .editorconfig | No rules to enforce | Create .editorconfig first |\n| Ignoring all violations | Defeats purpose | Fix root causes, suppress sparingly |\n| Checking generated files | False positives | Add to .gitignore or ignore patterns |\n| Mixing with auto-formatters | Conflicts | Run formatter first, then check |\n\n---\n\n## Verification\n\nAfter running style check:\n\n- [ ] .editorconfig parsed successfully\n- [ ] Violations include file:line:rule format\n- [ ] Exit code matches violation count (0 vs 10)\n- [ ] Suppression comments honored\n- [ ] SARIF output validates (if used)\n\n---\n\n## Related Skills\n\n| Skill | Relationship |\n|-------|--------------|\n| [code-qualities-assessment](..\u002Fcode-qualities-assessment\u002FSKILL.md) | Design quality vs style |\n| [analyze](..\u002Fanalyze\u002FSKILL.md) | Broad codebase investigation |\n| [security-scan](..\u002Fsecurity-scan\u002FSKILL.md) | Security vs style violations |\n\n---\n\n## Timelessness: 8\u002F10\n\nEditorConfig is an industry standard (2012+) supported by all major editors and IDEs.\nStyle conventions (naming, indentation, line endings) are fundamental to code quality.\nThe skill delegates language-specific rules to external analyzers when available.\n","# Style Enforcement\n\nValidate code files against configured style rules from project configuration files.\n\n## Triggers\n\n- `check style compliance`\n- `validate editorconfig rules`\n- `run style enforcement`\n- `check naming conventions`\n- `validate line endings`\n\n---\n\n## Quick Start\n\n```bash\n# Check all files in current directory\nbun run ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck_style.ts --target .\n\n# Check only changed files (CI mode)\nbun run ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck_style.ts --git-staged\n\n# Check specific files\nbun run ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck_style.ts src\u002Fmodels\u002Fuser.cs src\u002Fservices\u002Fauth.cs\n\n# JSON output for automation\nbun run ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck_style.ts --target . --format json --output violations.json\n```\n\n---\n\n## Evidence\n\nCreated based on analysis of moq.analyzers closed PR reviewer patterns:\n\n- **9.8% of human reviewer feedback** (11 of 112 comments) addressed naming\u002Fstyle conventions\n- Common patterns: line endings (CRLF vs LF), naming conventions (FooAsync), style guide violations\n- Examples: \"Use lf not crlf\", \"Should be named FooAsync\", \"Conflicting style rules\"\n\nSource: Analysis of closed PR reviewer patterns.\n\n---\n\n## Configuration Sources\n\nThe skill reads style configuration from these files (in priority order):\n\n| File | Purpose | Scope |\n|------|---------|-------|\n| `.editorconfig` | EditorConfig standard | All languages |\n| `.stylecop.json` \u002F `stylecop.json` | StyleCop Analyzers rules | C# |\n| `Directory.Build.props` | MSBuild properties | .NET projects |\n\n### .editorconfig Properties Checked\n\n| Property | Values | Languages |\n|----------|--------|-----------|\n| `end_of_line` | lf, crlf, cr | All |\n| `indent_style` | space, tab | All |\n| `indent_size` | number | All |\n| `charset` | utf-8, utf-8-bom, latin1 | All |\n| `trim_trailing_whitespace` | true, false | All |\n| `insert_final_newline` | true, false | All |\n\n### .editorconfig Naming Conventions (C#)\n\n```ini\n# Example naming rules\ndotnet_naming_rule.async_methods_should_end_with_async.symbols = async_methods\ndotnet_naming_rule.async_methods_should_end_with_async.style = async_suffix_style\ndotnet_naming_rule.async_methods_should_end_with_async.severity = warning\n\ndotnet_naming_style.async_suffix_style.required_suffix = Async\n```\n\n---\n\n## Detection Capabilities\n\n### Line Ending Violations\n\nDetects when file line endings differ from `.editorconfig` `end_of_line` setting.\n\n```\nRule: STYLE-001\nSeverity: warning\nExample: \"File uses CRLF but editorconfig requires LF\"\n```\n\n### Indentation Violations\n\nDetects tabs vs spaces mismatches and incorrect indent sizes.\n\n```\nRule: STYLE-002\nSeverity: warning\nExample: \"Line uses tabs but editorconfig requires spaces (indent_size=4)\"\n```\n\n### Charset Violations\n\nDetects incorrect file encoding (BOM presence\u002Fabsence).\n\n```\nRule: STYLE-003\nSeverity: warning\nExample: \"File has UTF-8 BOM but editorconfig requires utf-8 (no BOM)\"\n```\n\n### Trailing Whitespace\n\nDetects trailing whitespace when `trim_trailing_whitespace = true`.\n\n```\nRule: STYLE-004\nSeverity: info\nExample: \"Line 42 has trailing whitespace\"\n```\n\n### Final Newline\n\nDetects missing final newline when `insert_final_newline = true`.\n\n```\nRule: STYLE-005\nSeverity: info\nExample: \"File does not end with newline\"\n```\n\n### Naming Convention Violations (C#)\n\nDetects async method naming when `dotnet_naming_rule` configured.\n\n```\nRule: STYLE-010\nSeverity: warning\nExample: \"Async method 'GetUser' should end with 'Async' suffix\"\n```\n\n---\n\n## Process\n\n```\n┌─────────────────────────────────────────┐\n│ 1. Configuration Discovery              │\n│    - Walk up from target to find root   │\n│    - Parse .editorconfig hierarchy      │\n│    - Parse .stylecop.json if present    │\n│    - Parse Directory.Build.props        │\n├─────────────────────────────────────────┤\n│ 2. Rule Compilation                     │\n│    - Match globs to file extensions     │\n│    - Build per-file rule set            │\n│    - Merge inherited properties         │\n├─────────────────────────────────────────┤\n│ 3. File Scanning                        │\n│    - Check each file against its rules  │\n│    - Detect violations with line info   │\n│    - Apply suppression comments         │\n├─────────────────────────────────────────┤\n│ 4. Report Generation                    │\n│    - Format: markdown, JSON, or SARIF   │\n│    - Include violation counts           │\n│    - Exit code based on findings        │\n└─────────────────────────────────────────┘\n```\n\n---\n\n## Command Reference\n\n### Basic Usage\n\n```bash\nbun run ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck_style.ts [options] [files...]\n```\n\n### Parameters\n\n| Parameter | Required | Default | Description |\n|-----------|----------|---------|-------------|\n| `--target` | No | . | Directory or file to scan |\n| `--git-staged` | No | false | Check only git staged files |\n| `--format` | No | text | Output format: text, json, sarif |\n| `--output` | No | stdout | Output file path |\n| `--config` | No | auto | Path to .editorconfig (auto-discovers) |\n| `--severity` | No | warning | Minimum severity: error, warning, info |\n\n### Exit Codes\n\n| Code | Meaning |\n|------|---------|\n| 0 | All files compliant |\n| 1 | Script error (invalid arguments, config parse failure) |\n| 10 | Violations detected |\n\n---\n\n## Integration\n\n### Pre-commit Hook\n\n```yaml\n# .pre-commit-config.yaml\nrepos:\n  - repo: local\n    hooks:\n      - id: style-enforcement\n        name: Style Enforcement\n        entry: bun run .claude\u002Fskills\u002Fstyle-enforcement\u002Fscripts\u002Fcheck_style.ts\n        args: [--git-staged]\n        language: system\n        pass_filenames: false\n```\n\n### GitHub Actions\n\n```yaml\n# .github\u002Fworkflows\u002Fstyle.yml\njobs:\n  style:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - name: Check style\n        run: |\n          bun run .claude\u002Fskills\u002Fstyle-enforcement\u002Fscripts\u002Fcheck_style.ts \\\n            --target . \\\n            --format sarif \\\n            --output style-results.sarif\n      - uses: github\u002Fcodeql-action\u002Fupload-sarif@v3\n        with:\n          sarif_file: style-results.sarif\n```\n\n### Agent Pre-Submission\n\nBefore creating a PR, run style enforcement:\n\n```bash\nbun run .claude\u002Fskills\u002Fstyle-enforcement\u002Fscripts\u002Fcheck_style.ts --git-staged\n```\n\nIf exit code is 10, fix violations before proceeding.\n\n---\n\n## Examples\n\n### Example 1: Check Single File\n\n```bash\nbun run ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck_style.ts src\u002Fmodels\u002FUser.cs\n```\n\n**Output:**\n\n```\nStyle Enforcement Report\n========================\n\nViolations: 2\n\nsrc\u002Fmodels\u002FUser.cs\n  Line 1: [STYLE-001] File uses CRLF but editorconfig requires LF\n  Line 45: [STYLE-010] Async method 'GetUser' should end with 'Async' suffix\n\nExit code: 10 (violations detected)\n```\n\n### Example 2: JSON Output for CI\n\n```bash\nbun run ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck_style.ts --target . --format json\n```\n\n```json\n{\n  \"scan_timestamp\": \"2026-02-08T10:30:00Z\",\n  \"files_scanned\": 42,\n  \"violations\": [\n    {\n      \"file\": \"src\u002Fmodels\u002FUser.cs\",\n      \"line\": 1,\n      \"column\": 1,\n      \"rule\": \"STYLE-001\",\n      \"message\": \"File uses CRLF but editorconfig requires LF\",\n      \"severity\": \"warning\"\n    }\n  ],\n  \"summary\": {\n    \"total\": 1,\n    \"by_severity\": {\"warning\": 1}\n  }\n}\n```\n\n### Example 3: SARIF for GitHub Code Scanning\n\n```bash\nbun run ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck_style.ts --target . --format sarif --output results.sarif\n```\n\n---\n\n## Suppression\n\nSuppress specific violations with inline comments:\n\n```csharp\n\u002F\u002F style-enforcement: ignore STYLE-001\nvar data = GetData();  \u002F\u002F CRLF line ending allowed here\n```\n\n```python\n# style-enforcement: ignore STYLE-002\n pass  # Tab indentation allowed here\n```\n\n---\n\n## When to Use\n\nUse this skill when:\n\n- Checking style compliance before commits\n- Enforcing consistent code formatting in CI\n- Validating editorconfig rules are applied correctly\n- Detecting naming convention violations\n\nUse existing linters instead when:\n\n- Full ESLint\u002FPrettier rules needed (JavaScript)\n- Full StyleCop Analyzer output needed (C#, use `dotnet build`)\n- Auto-formatting is desired (use `dotnet format`, `black`, `prettier`)\n\n---\n\n## Language Support\n\n### Fully Supported\n\n| Language | Extensions | Naming Rules |\n|----------|------------|--------------|\n| C# | .cs | Async suffix, interface prefix |\n| Python | .py | snake_case validation |\n| PowerShell | .ps1, .psm1 | Verb-Noun validation |\n| JavaScript\u002FTypeScript | .js, .ts, .jsx, .tsx | camelCase validation |\n\n### Basic Support (line endings, indentation, charset)\n\n- Go (.go)\n- Rust (.rs)\n- Java (.java)\n- Ruby (.rb)\n- Markdown (.md)\n- YAML (.yml, .yaml)\n- JSON (.json)\n\n---\n\n## Anti-Patterns\n\n| Avoid | Why | Instead |\n|-------|-----|---------|\n| Running without .editorconfig | No rules to enforce | Create .editorconfig first |\n| Ignoring all violations | Defeats purpose | Fix root causes, suppress sparingly |\n| Checking generated files | False positives | Add to .gitignore or ignore patterns |\n| Mixing with auto-formatters | Conflicts | Run formatter first, then check |\n\n---\n\n## Verification\n\nAfter running style check:\n\n- [ ] .editorconfig parsed successfully\n- [ ] Violations include file:line:rule format\n- [ ] Exit code matches violation count (0 vs 10)\n- [ ] Suppression comments honored\n- [ ] SARIF output validates (if used)\n\n---\n\n## Related Skills\n\n| Skill | Relationship |\n|-------|--------------|\n| [code-qualities-assessment](..\u002Fcode-qualities-assessment\u002FSKILL.md) | Design quality vs style |\n| [analyze](..\u002Fanalyze\u002FSKILL.md) | Broad codebase investigation |\n| [security-scan](..\u002Fsecurity-scan\u002FSKILL.md) | Security vs style violations |\n\n---\n\n## Timelessness: 8\u002F10\n\nEditorConfig is an industry standard (2012+) supported by all major editors and IDEs.\nStyle conventions (naming, indentation, line endings) are fundamental to code quality.\nThe skill delegates language-specific rules to external analyzers when available.\n",{"name":5,"model":44,"agents":45,"license":15,"metadata":46,"description":7},"claude-sonnet-4-5",[31,25],{"version":47},"1.0.0","main","2bd10cb7ca989f88dbf338b57957763718eda59b","templates\u002Fskills\u002Fstyle-enforcement","https:\u002F\u002Fgithub.com\u002Floriensleafs\u002Fbrain","https:\u002F\u002Fgithub.com\u002Floriensleafs","2026-03-11 23:51:59",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add loriensleafs\u002Fbrain --skill style-enforcement",{"tool":60,"command":61},"bunx","bunx skills add loriensleafs\u002Fbrain --skill style-enforcement",{"tool":63,"command":64},"pnpm","pnpm dlx skills add loriensleafs\u002Fbrain --skill style-enforcement","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Floriensleafs\u002Fbrain\u002Fblob\u002Fmain\u002Ftemplates\u002Fskills\u002Fstyle-enforcement\u002FSKILL.md",true,[68],{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"scripts\u002Fcheck_style.ts","SCRIPT","脚本",18457,"https:\u002F\u002Fgithub.com\u002Floriensleafs\u002Fbrain\u002Fblob\u002Fmain\u002Ftemplates\u002Fskills\u002Fstyle-enforcement\u002Fscripts\u002Fcheck_style.ts",[75,90,107,130,145,168],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":39},"01M6CD3KHDHPR633RVP95G4XWN","validation-authority","Treat upstream validators as authoritative. Align local config to them. Use when validation fails unexpectedly, before modifying validator behavior, or when tempted to change upstream tool code.","https:\u002F\u002Fgithub.com\u002Floriensleafs\u002Fbrain\u002Fblob\u002Fmain\u002Ftemplates\u002Fskills\u002Fvalidation-authority\u002FSKILL.md",[],[82,83,84,85,25,86,87,88,33,89],"validation authority","validation","config","use","behavior","tool","architect","change",{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":39},"01M6CD3H29Q8FWN9YETT8YVQTS","using-brain-memory","Guidance for using Brain semantic memory effectively. Applies Zettelkasten atomic note principles with observations and relations. Use when deciding whether to query or create notes, structuring note content, or understanding the semantic knowledge graph.","https:\u002F\u002Fgithub.com\u002Floriensleafs\u002Fbrain\u002Fblob\u002Fmain\u002Ftemplates\u002Fskills\u002Fusing-forgetful-memory\u002FSKILL.md",[],[97,98,99,100,101,102,103,85,104,105,106],"using brain memory","memory","content","create","notes","graph","guidance","context","knowledge","knowledge graph",{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":39},"01M6CD3E2KTTMNSWXRJAAZA7D1","threat-modeling","Structured security analysis using OWASP Four-Question Framework and STRIDE methodology. Generates threat matrices with risk ratings, mitigations, and prioritization. Use for attack surface analysis, security architecture review, or when asking what can go wrong.","https:\u002F\u002Fgithub.com\u002Floriensleafs\u002Fbrain\u002Fblob\u002Fmain\u002Ftemplates\u002Fskills\u002Fthreat-modeling\u002FSKILL.md",[],[114,115,116,85,117,88,118,119,120,121,122,123,124,125,126,127,128,129],"threat","threat modeling","prioritization","question","stride","analysis","risk","owasp","methodology","framework","security analysis","architecture review","architecture","security","go","review",{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":39},"01M6CD3BC6G0Q2MDNW6X51XHBQ","taste-lints","Custom lints with agent-readable remediation instructions. Enforces taste invariants (file size, naming conventions, structured logging, complexity) and surfaces errors that agents can act on directly. Use when writing or reviewing code to catch style violations early.","https:\u002F\u002Fgithub.com\u002Floriensleafs\u002Fbrain\u002Fblob\u002Fmain\u002Ftemplates\u002Fskills\u002Ftaste-lints\u002FSKILL.md",[],[137,25,138,139,85,140,141,142,143,31,33,144],"taste lints","surfaces","complexity","instructions","remediation","file","logging","writing",{"skillNo":146,"name":147,"nameZh":148,"description":149,"descriptionZh":150,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":163,"publishedAt":39},"01M6CD35JW73TPMCZBF9DTDEE8","steering-matcher","引导规则路径匹配","Match file paths against steering file glob patterns to determine applicable steering guidance. Use when orchestrator needs to inject context-aware guidance based on files being modified.","将文件路径与引导文件的 glob 模式进行匹配，以确定适用的引导规范。适用于编排器需要根据被修改的文件注入上下文感知的指导时。","https:\u002F\u002Fgithub.com\u002Floriensleafs\u002Fbrain\u002Fblob\u002Fmain\u002Ftemplates\u002Fskills\u002Fsteering-matcher\u002FSKILL.md",[153,158],{"categoryNo":154,"categoryName":155,"taxonomyType":156,"taxonomyTypeDesc":157},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":159,"categoryName":160,"taxonomyType":161,"taxonomyTypeDesc":162},"01M8BSAA4FBTWZP6X98STEHG99","智能体开发","SCENARIO","使用场景",[164,103,165,85,166,104,167,142],"steering matcher","files","orchestrator","haiku",{"skillNo":169,"name":170,"nameZh":171,"description":172,"descriptionZh":173,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":174,"categories":175,"keywords":180,"publishedAt":39},"01M6CD32KG07KWP69SY6F4471S","slashcommandcreator","自定义斜杠命令创建","Autonomous meta-skill for creating high-quality custom slash commands using 5-phase workflow with multi-agent validation and quality gates. Use when user requests new slash command, reusable prompt automation, or wants to convert repetitive workflows into documented commands.","自主元技能，用于通过五阶段工作流、多智能体校验和质量关卡创建高质量的自定义斜杠命令。当用户请求新建斜杠命令、可复用的提示词自动化，或希望将重复工作流转化为文档化命令时使用。","https:\u002F\u002Fgithub.com\u002Floriensleafs\u002Fbrain\u002Fblob\u002Fmain\u002Ftemplates\u002Fskills\u002Fslashcommandcreator\u002FSKILL.md",[176,177],{"categoryNo":154,"categoryName":155,"taxonomyType":156,"taxonomyTypeDesc":157},{"categoryNo":178,"categoryName":179,"taxonomyType":161,"taxonomyTypeDesc":162},"01M8BRN0CV1NMDZ5TEJX1GVM29","插件与技能管理",[170,181,83,182,183,184,185,186,88,85,25,187,188,189,190,191,192,193,127,194],"quality gates","workflow","automation","workflows","reusable","critic","autonomous","user","command","prompt","quality","multi-agent","Meta","convert"]