xiaohongshu
xiaohongshu
claude-md-authoring
Creating and maintaining CLAUDE.md project memory files that provide non-obvious codebase context. Use when (1) creating a new CLAUDE.md for a project, (2) adding architectural patterns or design decisions to existing CLAUDE.md, (3) capturing project-specific conventions that aren't obvious from ...
Full skill instructions
Create effective CLAUDE.md files that serve as project-specific memory for AI coding agents.
CLAUDE.md files provide AI agents with:
Not for: Obvious patterns, duplicating documentation, or generic coding advice.
Signal over noise: Every sentence must add non-obvious value. If an AI agent could infer it from reading the codebase, omit it.
Actionable context: Focus on "what to do" and "why it matters", not descriptions of what exists.
Solve real friction, not theoretical concerns: Add to CLAUDE.md based on actual problems encountered, not hypothetical scenarios. If you repeatedly explain the same thing to Claude, document it. If you haven't hit the problem yet, don't pre-emptively solve it.
Use XML-style tags for organisation. Common sections:
<ARCHITECTURE> System design, key patterns, data flow
<CONVENTIONS> Project-specific patterns, naming
<GOTCHAS> Non-obvious issues and solutions to recurring problems
<TESTING> Test organisation, special requirements
Use 2-4 sections. Only include what adds value.
Architectural decisions: Why microservices over monolith, event-driven patterns, state management
Non-obvious conventions:
_internal suffix for private APIs not caught by linter"/queries"Recurring issues:
verify() uses Buffer.from(secret, 'base64')"Project patterns: Error handling, logging, API versioning, migrations
src/auth/middleware.ts" not "line 42"Code style guidelines: Don't document formatting rules, naming conventions, or code patterns that linters enforce. Use ESLint, Prettier, Black, golangci-lint, or similar tools. LLMs are in-context learners and will pick up patterns from codebase exploration. Configure Claude Code Hooks to run formatters if needed.
Task-specific minutiae: Database schemas, API specifications, deployment procedures belong in their own documentation. Link to them from CLAUDE.md rather than duplicating content.
Kitchen sink approach: Not every gotcha needs CLAUDE.md. Ask: "Is this relevant across most coding sessions?" If no, it belongs in code comments or specific documentation files.
Point to existing docs rather than duplicating content. Provide context about when to read them:
Good:
<ARCHITECTURE>
Event-driven architecture using AWS EventBridge.
- For database schema: see src/database/SCHEMA.md when working with data models
- For auth flows: see src/auth/README.md when working with authentication
</ARCHITECTURE>
Bad: Copying schema tables, pasting deployment steps, or duplicating API flows into CLAUDE.md
Use file:line references for specific code: "See error handling in src/utils/errors.ts:45-67"
Be specific:
refreshToken() in src/auth/refresh.ts"Be concise:
/queries"Use active voice:
npm run migrate:prod"Add to CLAUDE.md when:
Don't add:
Always use Australian English spelling
<ARCHITECTURE>
Event-driven architecture using AWS EventBridge. Services communicate via events, not direct calls.
Auth: JWT tokens with refresh mechanism. See src/auth/README.md for detailed flows when working on authentication.
Database schema and relationships: see src/database/SCHEMA.md when working with data models.
</ARCHITECTURE>
<CONVENTIONS>
- API routes: Plural nouns (`/users`, `/orders`), no verbs in paths
- Error codes: 4-digit format `ERRR-1001`, defined in src/errors/codes.ts
- Feature flags: Check in middleware, not in business logic
- Dates: Always UTC in database, format client-side via src/utils/dates.ts
</CONVENTIONS>
<GOTCHAS>
**Cache race conditions**: Always acquire lock before checking cache status
**Background job authentication**: Tokens expire after 1 hour. Refresh using
`refreshToken()` in src/auth/refresh.ts before making API calls.
</GOTCHAS>
<TESTING>
Run `make test` before committing. Integration tests require Docker.
</TESTING>
Aim for 1k-4k tokens for CLAUDE.md. Most projects fit in 100-300 lines. If exceeding:
Check token count: ingest CLAUDE.md (if available)
Before finalising:
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience