Hierarchical machine-readable documentation - root CLAUDE.md with module index, per-module CLAUDE.md for significant modules
/plugin marketplace add bryonjacob/aug/plugin install aug-dev@augThis skill inherits all available tools. When active, it can use any tool Claude has access to.
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:
Existing code:
Keep current:
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.