13 Commits

  • feat(rules): add vue and nuxt rule sets (#2250)
    * feat(rules): add vue and nuxt rule sets
    
    Add rules/vue/ and rules/nuxt/, each with the standard 5-file layout (coding-style, hooks, patterns, security, testing) that extends common/, following the Adding a New Language convention in rules/README.md.
    
    Vue rules reference the frontend-patterns and vite-patterns skills. Nuxt rules reference the nuxt4-patterns and vite-patterns skills. Content is concise (1.5 to 4 KB per file) since rules load as always-on context.
    
    * fix(rules): address PR review on vue and nuxt rule sets
    
    - nuxt/coding-style: generalize the srcDir-override note (drop project-specific 'this repo' phrasing so it is correct for any Nuxt project).
    
    - vue/hooks: add **/*.ts and **/*.tsx to paths so the lint/typecheck guidance loads when editing composables and stores.
    
    - nuxt/hooks: add **/*.vue to paths (covers pages/layouts/components) and wrap nuxi typecheck in a timeout, mirroring web/hooks.md.
    
    - nuxt/security: tighten the /security-review auto-trigger scope to external fetch, credential handling, and sensitive mutations, with examples.
    
    - nuxt/testing: correct 'Vitest-only' to note built-in Playwright E2E, and drop the @nuxt/test-utils version pin.
    
    - README: register vue and nuxt in the structure tree and install examples.
    
    Skipped: 'X specific' -> 'X-specific' hyphenation (all existing rule sets use the unhyphenated form, changing only vue/nuxt would be inconsistent); repeating the 80%/TDD mandate in nuxt/testing (already inherited from common/testing.md).
  • feat: add Perl language rules and update documentation
    Add rules/perl/ with 5 rule files (coding-style, testing, patterns,
      hooks, security) following the same structure as existing languages.
      Update README.md, README.zh-CN.md, and rules/README.md to document
      Perl support including badges, directory trees, install instructions,
      and rule counts.
  • Merge pull request #244 from maxdimitrov/feat/rules/swift
    LGTM — Swift rules and SwiftUI patterns skill. Pure documentation, no security concerns.
  • feat: add Swift language-specific rules
    Add 5 rule files for Swift following the established pattern used by
    TypeScript, Python, and Go rule sets. Covers Swift 6 strict concurrency,
    Swift Testing framework, protocol-oriented patterns, Keychain-based
    secret management, and SwiftFormat/SwiftLint hooks.
  • fix: preserve directory structure in installation to prevent file overwrites (#169)
    Fix installation instructions that caused file overwrites. Adds install.sh script and preserves directory structure. Fixes #164.
  • refactor(rules): restructure into common + language-specific directories
    * refactor(rules): restructure rules into common + language-specific directories
    
    - Split 8 flat rule files into common/, typescript/, python/, golang/
    - common/ contains language-agnostic principles (no code examples)
    - typescript/ extracts TS/JS specifics (Zod, Playwright, Prettier hooks, etc.)
    - python/ adds Python rules (PEP 8, pytest, black/ruff, bandit)
    - golang/ adds Go rules (gofmt, table-driven tests, gosec, functional options)
    - Replace deprecated ultrathink with extended thinking documentation
    - Add README.md with installation guide and new-language template
    
    Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
    
    * Fix installation commands for rules
    
    Updated installation instructions to copy all rules to a single directory.
    
    * docs: update README.md to reflect new rules directory structure
    
    Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
    
    ---------
    
    Co-authored-by: Hor1zonZzz <Hor1zonZzz@users.noreply.github.com>
    Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>