xiaohongshu
xiaohongshu
documenting-with-claude-md
Hierarchical machine-readable documentation - root CLAUDE.md with module index, per-module CLAUDE.md for significant modules
Full skill instructions
Machine-first documentation that loads automatically with code. Two-level hierarchy: root overview + per-module context.
Not for human browsing - for instant AI understanding.
Root CLAUDE.md (required):
# Project Name
## Purpose
What this does and why it exists
## Architecture Overview
High-level design, key patterns
## Module Index
- `src/auth/` - Authentication (see src/auth/CLAUDE.md)
- `src/api/` - REST API (see src/api/CLAUDE.md)
## Tech Stack
- Language/framework
- Key dependencies
## Development
See ~/.claude/CLAUDE.md for standard workflow
Module CLAUDE.md (significant modules only):
# Module: Authentication
## Purpose
Handles user authentication and sessions
## Responsibilities
- User login/logout
- Token generation/validation
- Session management
## Key Files
- `auth_service.py` - Core logic
- `token_handler.py` - JWT operations
## Dependencies
- **Uses:** db, utils
- **Used by:** api
## Public Interface
- `authenticate(email, password) -> Token`
- `validate_token(token) -> User`
## Architecture Decisions
- JWT for stateless auth (no session storage)
- 24-hour token expiry
Significant modules (3+ files, distinct domain):
Don't create for:
Comment the "why" not the "what":
# ❌ Bad (obvious)
if user_type == "premium":
return total * 0.2 # Return 20% discount
# ✅ Good (explains rationale)
if user_type == "premium":
return total * 0.2 # 20% incentivizes membership
Always comment:
New module: Create module CLAUDE.md from template, add to root module index, keep updated as code evolves.
Existing code: Start with root CLAUDE.md and module index, then add CLAUDE.md for significant modules along with docstrings and comments.
Keep current:
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