Skip to content

chore(claude): structure and styles rules - #13

Merged
helderberto merged 4 commits into
mainfrom
chore/claude-structure-styles-rules
Oct 24, 2026
Merged

helderberto merged 4 commits into
mainfrom
chore/claude-structure-styles-rules

Conversation

@helderberto

Copy link
Copy Markdown
Owner

What changed

  • rules/structure.md (new, src/**/*.{ts,tsx}): @ alias, components/ barrel, features/* deep modules behind index.ts, views/, shared hooks/, types/ (domain + DTOs), utils/, lib/<library> wrappers. DTO → domain mappers for external data. Kebab-case, named exports, sibling tests. Framework conventions (Next.js, TanStack Start) win on collision
  • rules/styles.md (new, CSS + TSX): plain CSS Modules, tokens as CSS variables, no color literals, rem lengths, system font stack, print may use pt/mm
  • rules/code.md: framework conventions win; why options objects past 2 params (named args, no ordering)
  • rules/testing.md: Testing Library through src/lib/testing-library; every API endpoint gets an integration test
  • AGENTS.md: English artifacts whatever the chat language; no unrequested explanations

Why

Standards applied to helderberto/helderberto.com (refactor/project-structure). Rules load on matching paths, so they apply without a skill having to trigger.

Test plan

  • CI (shellcheck, chezmoi tests, dry-run apply): rule files are Markdown only

Generated by Claude Code

@helderberto
helderberto merged commit 4477fdf into main Oct 24, 2026
2 checks passed
@helderberto
helderberto deleted the chore/claude-structure-styles-rules branch October 24, 2026 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants