Skip to content

Commit f0a4d4a

Browse files
committed
chore: edit claude settings
1 parent 0604452 commit f0a4d4a

File tree

4 files changed

+56
-8
lines changed

4 files changed

+56
-8
lines changed

.claude/agents/code-reviewer.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: code-reviewer
3+
description: Expert code review specialist. Proactively reviews code for quality, performance, and maintainability. Use immediately after writing or modifying code.
4+
tools: Read, Grep, Glob, Bash
5+
---
6+
7+
You are a senior code reviewer ensuring high standards of code quality and performance.
8+
9+
When invoked:
10+
11+
1. Run `git diff` to see recent changes
12+
2. Focus on modified files
13+
3. Begin review immediately
14+
15+
Review checklist:
16+
17+
- Code is simple, readable, follows CLAUDE.md Code Style and Patterns section
18+
- Functions and variables are well-named
19+
- No duplicated code
20+
- Proper error handling
21+
- No exposed secrets or API keys
22+
- Tests covering most crucial paths
23+
- Performance considerations addressed
24+
25+
Provide feedback organized by priority:
26+
27+
- Critical issues (must fix)
28+
- Warnings (should fix)
29+
- Suggestions (consider improving)

.claude/settings.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"permissions": {
33
"allow": [
4+
"Bash(find:*)",
45
"Bash(ls:*)",
56
"Bash(git status)",
67
"Bash(git add:*)",
@@ -17,7 +18,10 @@
1718
"Bash(pnpm test:storybook)",
1819
"Bash(rg:*)",
1920
"Bash(gh pr view:*)",
20-
"Bash(gh pr diff:*)"
21+
"Bash(gh pr diff:*)",
22+
"WebFetch(domain:docs.anthropic.com)",
23+
"WebFetch(domain:chakra-ui.com/docs)",
24+
"WebFetch(domain:github.com)"
2125
],
2226
"deny": [
2327
"Bash(rm -rf /)",

.claude/tasks/.gitkeep

Whitespace-only changes.

CLAUDE.md

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,28 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
1717
| G-5 | Stay within the current task context. Inform the dev if it'd be better to start afresh. | ❌ Continue work from a prior prompt after "new task" – start a fresh session. |
1818
| G-6 | Modify API contracts only with explicit developer approval and clear documentation. | ❌ Change API contracts (e.g., endpoints, DTOs, mapping logic) without approval. |
1919

20+
## Plan & Review
21+
22+
### Before starting work
23+
24+
- Always start with planning the work unless requested not to do it. After getting the plan, never present it in the chat, write it to .claude/tasks/TASK_NAME.md instead.
25+
- The plan should be a detailed implementation plan and the reasoning behind them, as well as tasks broken down.
26+
- If the task requires external knowledge or certain package, also research to get latest knowledge (Use Task tool for research).
27+
- Don't over plan it, always think MVP.
28+
- Once you write the plan, firstly ask me to review it. Do not continue until I approve the plan.
29+
30+
### While implementing
31+
32+
- You should update the plan as you work.
33+
- After you complete tasks in the plan, you should update and append detailed descriptions of the changes you made, so following tasks can be easily hand over to other engineers.
34+
35+
### Scanning Repository
36+
37+
- **Use Only Referenced Files**: Analyze, generate code, or match patterns using only files explicitly mentioned in the user's prompt. [Important]
38+
- **Locate Anchors First**: Before scanning, check for existing `AIDEV-*` anchors in relevant subdirectories. [Important]
39+
- **No Broad Scans**: Avoid scanning unreferenced files unless the user explicitly permits it.
40+
- **Handle Insufficient Information**: If referenced files lack context, state: "Insufficient information in provided files." Suggest specific files or details needed, e.g., "Please provide 'src/features/auth/[file_name]' or clarify expected behavior."
41+
2042
## Essential Commands
2143

2244
### Essential Commands
@@ -124,13 +146,6 @@ Each feature follows feature slice architecture patterns with three layers:
124146
- Lazy loading and code splitting based on `react-router`
125147
- Using direct imports instead of default
126148

127-
## Scanning Repository
128-
129-
- **Use Only Referenced Files**: Analyze, generate code, or match patterns using only files explicitly mentioned in the user's prompt. [Important]
130-
- **Locate Anchors First**: Before scanning, check for existing `AIDEV-*` anchors in relevant subdirectories. [Important]
131-
- **No Broad Scans**: Avoid scanning unreferenced files unless the user explicitly permits it.
132-
- **Handle Insufficient Information**: If referenced files lack context, state: "Insufficient information in provided files." Suggest specific files or details needed, e.g., "Please provide 'src/features/auth/[file_name]' or clarify expected behavior."
133-
134149
## Code Style and Patterns
135150

136151
### Code Style

0 commit comments

Comments
 (0)