Skip to content

Add setup-rules command and coding rule reference files - #30

Merged
5uck1ess merged 3 commits into
mainfrom
feat/setup-rules-command
Apr 6, 2026
Merged

Add setup-rules command and coding rule reference files#30
5uck1ess merged 3 commits into
mainfrom
feat/setup-rules-command

Conversation

@5uck1ess

@5uck1ess 5uck1ess commented Apr 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • /devkit:setup-rules command — copies language-specific coding rules from resources/rules/ to ~/.claude/rules/ for auto-activation per file type. One command to install all 5 rule files.
  • resources/rules/ — version-controlled reference copies of Go, TypeScript, Python, Rust, and Shell coding rules. Source of truth that the command copies from.
  • README/ROADMAP updated — documents the command, rules table, directory tree, and counts (23 → 24 commands)

Rules complement hooks: rules guide how to write (loaded before the agent writes code), hooks catch what you missed (enforce mechanically after).

Why not plugin rules/?

Claude Code plugins don't support a rules/ directory. Rules must live at ~/.claude/rules/ (user-level). This command bridges that gap.

Test plan

  • Run /devkit:setup-rules and verify files appear in ~/.claude/rules/
  • Edit a .go file and verify Go rules auto-activate
  • Verify CI passes (command count 24, skill count 18)

5uck1ess added 3 commits April 6, 2026 13:53
/devkit:setup-rules copies language-specific coding rules from
resources/rules/ to ~/.claude/rules/ for auto-activation per file
type. Covers Go, TypeScript, Python, Rust, Shell. Rules complement
hooks: they guide how to write, hooks catch what you missed.
Comment-analyzer findings: table summaries were selective (renamed
column to "Examples"), line count was slightly off (~10 rules, ~20
lines), and setup-rules command needed overwrite warning for
customized rules.
Code-reviewer finding: cp commands would silently fail if variable
unset. Also adds step to warn before overwriting customized rules.
@5uck1ess
5uck1ess merged commit 9f898b5 into main Apr 6, 2026
3 checks passed
@5uck1ess
5uck1ess deleted the feat/setup-rules-command branch April 6, 2026 18:07
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.

1 participant