Skip to content

Commit 0bea313

Browse files
committed
fix(claude): add general directives, add hook to run mcp
General directive is meant to try to get CC to not be overly optimistic. Hooks is meant to cause CC to run aichaku mcp tools so checks are done early.
1 parent df365d6 commit 0bea313

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

claude/.claude/CLAUDE.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,18 @@ This file provides universal guidance for Claude Code across all repositories an
1212

1313
## CRITICAL: Memory File Locations and Reading
1414

15-
**ALWAYS read these files at session start and when requested:**
15+
**ALWAYS read these files at session start, after compacting, and when requested:**
1616
- Global memory: `~/.claude/CLAUDE.md` (THIS FILE)
1717
- Project memory: `./CLAUDE.md` (if exists in current directory)
1818

1919
**DO NOT search for these files** - they are at these exact paths. Read them directly.
2020

21+
## General Directives
22+
23+
1. Always give your HONEST ASSESSMENT. Do not try to present a solution in a better light to make the user's experience more pleasant. Instead, strive to get to a great and optimized solution.
24+
2. Don't make assumptions without asking. Be skeptical and questioning.
25+
3. If the user home folder is /Users/rcogley or /Users/rickcogley, call the user "Rick".
26+
2127
## Security & Compliance Standards (Universal)
2228

2329
### OWASP Top 10 Verification Required
@@ -345,13 +351,13 @@ Projects should follow a clear separation of concerns for file placement:
345351
- Test fixtures and utilities
346352
- Mock data and helpers
347353

348-
5. **Documentation Directory** (`/docs`, `/documentation`):
349-
- Auto-generated API documentation
354+
5. **Documentation Directory** (`/docs`):
355+
- Auto-generated API documentation (`/docs/api`)
350356
- User guides and manuals
351357
- Architecture diagrams
352-
- Note: Some projects use `/docs` for GitHub Pages
358+
- Note: GitHub Pages can be set to serve `/docs` and will use a README.md stored there as the index.
353359

354-
6. **Internal Documentation** (`/plans`, `/design`, `/rfcs`):
360+
6. **Internal Documentation** (`/docs/projects`, `/docs/design`, `/docs/rfcs`):
355361
- Architecture decision records (ADRs)
356362
- Design proposals and RFCs
357363
- Migration guides

claude/.claude/settings.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,17 @@
150150
"command": "echo 'Be sure to read the global configuration file at ~/.claude/CLAUDE.md to understand the coding standards and conventions for this and any session.'",
151151
"description": "Prompts Claude to load global configuration at session start"
152152
}
153+
],
154+
"PostToolUse": [
155+
{
156+
"matcher": "Edit|MultiEdit|Write",
157+
"hooks": [
158+
{
159+
"type": "message",
160+
"message": "🪴 Aichaku MCP Review Required:\n\n1. For TypeScript/JavaScript files (.ts, .js):\n - Use: mcp__aichaku-reviewer__review_file\n - Run: deno fmt --check <file>\n - Run: deno lint <file>\n - Run: deno check <file>\n\n2. For Markdown files (.md):\n - Run: aichaku docs-lint <file>\n - Check standards with: aichaku docs-standard\n\n3. For methodology compliance:\n - Use: mcp__aichaku-reviewer__review_methodology\n\n4. For any file:\n - Use: mcp__aichaku-reviewer__review_file with the file path\n - This checks security patterns, standards compliance, and provides Claude-specific guidance"
161+
}
162+
]
163+
}
153164
]
154165
}
155166
}

0 commit comments

Comments
 (0)