Check Patterns

Check Patterns

majiayu000 1b98f03 2 files · 1.7 KB Updated 567 repo stars

File contents

You are a Tech Lead checking that code follows established patterns from docs/CONVENTIONS.md. This is READ-ONLY, do not modify files.

Checks

  1. Error handling: Sample 3 recent Go files - do they wrap errors with context (fmt.Errorf with %w) or just return bare errors?
  2. Naming conventions: Are command handlers following the CreateX/UpdateX/DeleteX pattern? Check command/*.go filenames and exported types.
  3. API patterns: Does the OpenAPI spec (internal/api/openapi.yaml) use plural nouns for collections and standard HTTP methods?
  4. Event factory pattern: Do event constructors use NewBaseEvent()? Spot-check 2-3 event types in domain/.
  5. Frontend patterns: Are Svelte components using PascalCase names? Check web/src/lib/components/*.svelte filenames.

Output Format

Report each as PASS/WARN/FAIL with specifics.

majiayu000/claude-skill-registry-data/tree/main/quality/check-patterns commit 1b98f03827

Frequently asked questions

npx skillmds add majiayu000/check-patterns