41 public Claude rules in the HyperPrompt directory
Claude Code loads persistent project instructions from CLAUDE.md files and from Markdown rules in .claude/rules/. Rules can be scoped to file paths with a paths frontmatter field, and CLAUDE.md can import other files with @path syntax. The rules in this directory are written as plain instruction prompts: in Claude Code, save them as CLAUDE.md or .claude/rules/ content; in Claude.ai or the Claude API, use the same text as project instructions or a system prompt instead.
Setup details below were checked against the official Claude Code documentation on 2026-11-05. Vendor tools change often; confirm with the linked sources if something behaves differently in your version.
| File or location | Scope | Status |
|---|---|---|
./CLAUDE.md or ./.claude/CLAUDE.md | Project instructions shared with your team through version control. | current |
.claude/rules/*.md | Topic-specific project rules, discovered recursively. Add a paths frontmatter list to load a rule only for matching files. | current |
./CLAUDE.local.md | Personal project instructions; add it to .gitignore. | optional |
~/.claude/CLAUDE.md and ~/.claude/rules/ | Personal instructions for all projects on your machine. | optional |
AGENTS.md | Read as project instructions when no CLAUDE.md exists in the working directory or above it.Requires a recent Claude Code version; see the AGENTS.md section. | optional |
.claude/rules/api.mdIllustrative example of a path-scoped rule using the documented paths frontmatter.
---
paths:
- "src/app/api/**/*.ts"
---
- Validate request bodies before touching the database.
- Return JSON errors as { error: string } with an accurate HTTP status.
- Add or update a route test for every behavior change.Claude Code can read AGENTS.md as project instructions without extra configuration, but by default only when there is no CLAUDE.md in the working directory or above it. The docs list this behavior for version 2.1.277 and later and describe a setting (claude-md-and-agents-md) that loads both files. If you maintain AGENTS.md for other tools, you can also import it from CLAUDE.md with @AGENTS.md.
Earlier versions of this page suggested a claude-system-prompt.md file. Claude Code does not document that file name; use CLAUDE.md or .claude/rules/ instead.
Collections with at least one matching public rule.
Stack-neutral CLAUDE.md conventions for Claude Code covering how to read before editing, keep diffs scoped, debug from a reproduction, test and report verification.
CLAUDE.md rules for React 19 with TypeScript covering typed components, derived state, compiler-aware memoization, useId-based accessibility and review checks.
CLAUDE.md rules for the Next.js 16 App Router with async params, streaming via Suspense, secured Server Actions, metadata conventions and explicit caching choices.
CLAUDE.md rules for Python backends and data work with modern type hints, Pydantic v2 response models, 409 handling and pandas code that avoids chained assignment.
CLAUDE.md rules for strict TypeScript 5.9 with unknown at boundaries, satisfies over assertions, exhaustive unions, validated branded IDs and tested utility types.
CLAUDE.md rules for Tailwind CSS v4 with CSS-first theme tokens, mobile-first layouts, class-based dark mode, visible focus styles and cva variants.
CLAUDE.md rules for Express 5 APIs in TypeScript with ordered middleware, automatic async error forwarding, schema validation and one safe error response shape.
CLAUDE.md rules for Go backends with Go 1.22+ routing, store interfaces, wrapped sentinel errors, errgroup concurrency and race-tested table tests.
CLAUDE.md rules for Rust 2024 crates with borrow-first APIs, Cow, thiserror 2 typed errors kept apart from anyhow, sqlx lookups and non-blocking Tokio workers.
Generate exceptional TypeScript code with Claude
Optimize application performance
CLAUDE.md rules for Vue 3.5 script setup with reactive props destructure, typed emits, race-safe async watchers and Pinia setup stores that return all state.
Create reusable Terraform modules
Implement robust error handling
Generate idiomatic Go code
Design efficient database schemas
Generate idiomatic Rust code
Implement API versioning strategies
Design efficient algorithms
Design GraphQL schemas effectively
Use ./CLAUDE.md (or ./.claude/CLAUDE.md) for shared project instructions and .claude/rules/*.md for topic-specific rules. Personal variants live in CLAUDE.local.md and ~/.claude/.
Yes. Rules in .claude/rules/ accept a paths frontmatter field (a YAML list or comma-separated string of globs). Rules without paths load at the start of every session.
Yes, as project instructions when no CLAUDE.md exists in the working directory or above it (version 2.1.277 or later). A setting can load both, or you can import AGENTS.md from CLAUDE.md.
Generate a Cursor project rule or a cross-tool AGENTS.md from your stack, then adapt it with the file locations above.