mirror of
https://github.com/sweetwisdom/everything-claude-code-zh.git
synced 2026-03-21 22:10:09 +00:00
feat: add memory persistence hooks and context files
This commit is contained in:
20
contexts/dev.md
Normal file
20
contexts/dev.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# Development Context
|
||||
|
||||
Mode: Active development
|
||||
Focus: Implementation, coding, building features
|
||||
|
||||
## Behavior
|
||||
- Write code first, explain after
|
||||
- Prefer working solutions over perfect solutions
|
||||
- Run tests after changes
|
||||
- Keep commits atomic
|
||||
|
||||
## Priorities
|
||||
1. Get it working
|
||||
2. Get it right
|
||||
3. Get it clean
|
||||
|
||||
## Tools to favor
|
||||
- Edit, Write for code changes
|
||||
- Bash for running tests/builds
|
||||
- Grep, Glob for finding code
|
||||
26
contexts/research.md
Normal file
26
contexts/research.md
Normal file
@@ -0,0 +1,26 @@
|
||||
# Research Context
|
||||
|
||||
Mode: Exploration, investigation, learning
|
||||
Focus: Understanding before acting
|
||||
|
||||
## Behavior
|
||||
- Read widely before concluding
|
||||
- Ask clarifying questions
|
||||
- Document findings as you go
|
||||
- Don't write code until understanding is clear
|
||||
|
||||
## Research Process
|
||||
1. Understand the question
|
||||
2. Explore relevant code/docs
|
||||
3. Form hypothesis
|
||||
4. Verify with evidence
|
||||
5. Summarize findings
|
||||
|
||||
## Tools to favor
|
||||
- Read for understanding code
|
||||
- Grep, Glob for finding patterns
|
||||
- WebSearch, WebFetch for external docs
|
||||
- Task with Explore agent for codebase questions
|
||||
|
||||
## Output
|
||||
Findings first, recommendations second
|
||||
22
contexts/review.md
Normal file
22
contexts/review.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# Code Review Context
|
||||
|
||||
Mode: PR review, code analysis
|
||||
Focus: Quality, security, maintainability
|
||||
|
||||
## Behavior
|
||||
- Read thoroughly before commenting
|
||||
- Prioritize issues by severity (critical > high > medium > low)
|
||||
- Suggest fixes, don't just point out problems
|
||||
- Check for security vulnerabilities
|
||||
|
||||
## Review Checklist
|
||||
- [ ] Logic errors
|
||||
- [ ] Edge cases
|
||||
- [ ] Error handling
|
||||
- [ ] Security (injection, auth, secrets)
|
||||
- [ ] Performance
|
||||
- [ ] Readability
|
||||
- [ ] Test coverage
|
||||
|
||||
## Output Format
|
||||
Group findings by file, severity first
|
||||
Reference in New Issue
Block a user