claude commit # 生成 commit message
claude "explain main.go" # 解释代码
claude "fix strict null checks" # 快速重构
# Project Context
When working with this codebase, prioritize readability over cleverness.
## About This Project
FastAPI REST API for user authentication. Uses SQLAlchemy and Pydantic.
## Key Directories
- `app/models/` - database models
- `app/api/` - route handlers
- `app/core/` - configuration and utilities
## Standards
- Type hints required on all functions
- pytest for testing (fixtures in `tests/conftest.py`)
- PEP 8 with 100 character lines
## Common Commands
```bash
uvicorn app.main:app --reload # dev server
pytest tests/ -v # run tests
#### 使用 /init 自动生成
运行 `/init` 命令可以自动分析项目并生成初始 `CLAUDE.md`:
```bash
cd your-project
claude
/init
mkdir -p .claude/commands
# Security Review
Analyze the provided code for security vulnerabilities:
## Areas to Check
- SQL injection risks
- XSS vulnerabilities
- Authentication/authorization issues
- Sensitive data exposure
- Input validation
## Output Format
For each issue:
1. **Severity**: Critical/High/Medium/Low
2. **Location**: File and line number
3. **Issue**: Description
4. **Fix**: Recommended solution
**Code to review:**
$ARGUMENTS