My global Claude Code setup, mirrored from ~/.claude: the rules, the hook scripts that enforce them, and the global CLAUDE.md.
FAQ
rules-for-claude is a Claude Code plugin with 6 hand-picked skills for development work, indexed on Flowy. Install it with the command on its page. It includes epic-orchestrator, jira-ticket-workflow, pr-review-response. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
$ npx -y skills add chancegraff/rules-for-claude --agent claude-code
Repo: chancegraff/rules-for-claude
My global Claude Code setup, mirrored from ~/.claude: the rules, the hook scripts that enforce them, and the global CLAUDE.md.
The global instruction file, loaded at the start of every session before any project context. Three parts: hard coding standards (no type casts, no any, no unknown, no "pre-existing issue" excuses), a prose style guide that bans recognizable LLM writing patterns (performative contrasts, dramatic fragments, empty intensifiers, filler vocabulary, dashes as clause separators), and context-efficiency rules for file reading, subagent delegation, and response length.
One standing instruction per file, loaded into every session alongside CLAUDE.md. They cover coding standards, git safety, planning and approval gates, agent delegation and team mechanics, prose style, and review discipline. To use one, copy it into your own ~/.claude/rules/.
These rules are broadly applicable regardless of setup or stack. The rest of the collection is more tied to my own tooling and workflows.
User-invocable workflow skills (/skill-name in a session). Each directory holds a SKILL.md that loads as the operating procedure for that workflow, plus any reference docs it needs:
Claude Code hook scripts that run before tool calls. The rules ask the model to behave; these make the load-bearing ones mechanical.
settings.json deny rule, names the exact rule that fired and the tool to use instead, so the agent self-corrects rather than guessing.--no-verify, -n, core.hooksPath overrides via flag or environment).yarn test from a monorepo root, where it would run every package's suite; subpackage runs pass.They register in ~/.claude/settings.json as PreToolUse hooks on Bash:
{
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{ "type": "command", "command": "node ~/.claude/hooks/deny-rule-redirect.js" },
{ "type": "command", "command": "node ~/.claude/hooks/yarn-test-root-block.js" },
{ "type": "command", "command": "node ~/.claude/hooks/git-no-verify-block.js" }
]
}
]
}
}
My setup also enforces LSP-first code navigation (the grep-banned rule): Grep, symbol-hunting Glob patterns, and shell grep on code symbols are blocked, and Reads of code files are gated behind language-server warmup. The hooks that do this come from claude-code-lsp-enforcement-kit (MIT) and aren't mirrored here; its installer copies the scripts into ~/.claude/hooks/ and merges their settings.json registration.
CLAUDE.md
hooks/
deny-rule-redirect.js
git-no-verify-block.js
pnpm-root-command-block.js
yarn-test-root-block.js
README.md
rules/
agent-blocker-reread.md
agent-lifecycle.md
approval-gates.md
askuserquestion-discipline.md
audit-before-planning.md
base-drift.md
claude-json-edits.md
collaboration-style.md
context-options-lean.md
copy-commit-first.md
cross-review.md
dead-code-closure.md
delegation-scope.md
delegation.md
engage-framing-first.md
fix-known-issues.md
follow-tool-instructions.md
format-agnostic-utils.md
generated-files.md
git-safety.md
grasp-self-report.md
grep-banned.md
implement-before-delete.md
inline-immutable.md
inline-setup.md
layman-questions.md
mirror-not-extract.md
no-easy-options.md
no-eslint-disable.md
no-exploration-agents.md
no-invented-scaffolding.md
no-let-in-components.md
no-module-state.md
no-scripts.md
no-self-citation.md
no-ternaries.md
no-time-estimates.md
parallelizable-plans.md
plan-files.md
plan-from-current-tree.md
plan-gate.md
plans-are-design-records.md
pr-body-editing.md
pr-descriptions.md
pr-splits.md
preserve-user-design.md
react-fc-inline-props.md
read-whole-files.md
review-rerequest.md
scoped-verification.md
secrets.md
shell-composition.md
split-diagrams.md
stacked-pr-scope.md
sweep-methodology.md
sweep-verification.md
synthesize-agent-findings.md
take-ownership.md
team-mechanics.md
teammate-blockers.md
teammate-worktrees.md
terse-replies.md
test-file-naming.md
tool-unavailable.md
type-surface-first.md
types-per-directory.md
verify-before-reporting.md
what-i-need-from-you.md
skills/
epic-orchestrator/
references/
review-worker.md
ticket-worker.md
scripts/
clone_node_modules.py
SKILL.md
jira-ticket-workflow/
SKILL.md
pr-review-response/
SKILL.md
session-debrief/
SKILL.md
team-dev-workflow/
SKILL.md
work-the-branch/
SKILL.mdยฉ 2026 Flowy ยท Free and open source
Built for Claude Code ยท Not affiliated with Anthropic