Skip to content

Commit 37cd6e2

Browse files
committed
chore: add Claude Code configuration files
- Add Claude Code settings and command files - Add configuration for command permissions and security - Include markdown analysis and GitHub issue handling commands - Create PR generation template command
1 parent 5e2662d commit 37cd6e2

File tree

6 files changed

+104
-0
lines changed

6 files changed

+104
-0
lines changed

.claude/commands/analyze-markdown.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This project uses GitHub Flavored Markdown for all *.md files. Please ensure that all markdown files are formatted
2+
correctly and consistently. Use the following guidelines when writing or editing markdown files:
3+
- Use proper American English spelling and grammar.

.claude/commands/fix-github-issues.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Please analyze and fix the GitHub issue: $ARGUMENTS.
2+
3+
Follow these steps:
4+
5+
1. Use `gh issue view` to get the issue details
6+
2. Understand the problem described in the issue
7+
3. Search the codebase for relevant files
8+
4. Implement the necessary changes to fix the issue
9+
5. Write and run tests to verify the fix
10+
6. Ensure code passes linting and type checking
11+
7. Create a descriptive commit message
12+
8. Push and create a PR
13+
14+
Remember to use the GitHub CLI (`gh`) for all GitHub-related tasks.

.claude/commands/generate-pr.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Generate a PR using the template in `.github/PULL_REQUEST_TEMPLATE.md` and fill in the details based on the changes made
2+
in the code. The PR should include sections for changes, references, testing, and a checklist to ensure all necessary
3+
steps have been completed.

.claude/settings.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(npm run *)"
5+
],
6+
"automaticApproval": {
7+
"enabled": true,
8+
"safeCommands": [
9+
"ls",
10+
"cat",
11+
"echo",
12+
"head",
13+
"tail",
14+
"find",
15+
"grep",
16+
"git status",
17+
"git log"
18+
]
19+
}
20+
},
21+
"paths": {
22+
"excludedDirectories": [
23+
"node_modules/"
24+
],
25+
"excludedPatterns": [
26+
"**/*.env",
27+
"**/*.key",
28+
"**/*.pem",
29+
"**/*.secret",
30+
"**/password*",
31+
"**/credentials*"
32+
]
33+
},
34+
"security": {
35+
"blockedCommands": [
36+
"sudo",
37+
"su",
38+
"ssh-keygen",
39+
"curl -o",
40+
"wget -O",
41+
"rm -rf /",
42+
":(){ :|:& };:"
43+
],
44+
"sensitiveDataPatterns": [
45+
"password",
46+
"api[-_]?key",
47+
"auth[-_]?token",
48+
"secret",
49+
"credential"
50+
]
51+
}
52+
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ dist/
1212
coverage/
1313
.vscode/
1414
.idea/
15+
CLAUDE.local.md

CLAUDE.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# CLAUDE.md
2+
3+
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4+
5+
## Build & Test Commands
6+
- Build: `npm run build` (includes format, lint, and TypeScript compilation)
7+
- Dev mode: `npm run dev`
8+
- Debug mode: `npm run dev:debug` (with DEBUG=auth0-mcp)
9+
- Lint: `npm run lint` (fix with `npm run lint:fix`)
10+
- Format: `npm run format`
11+
- Test: `npm run test`
12+
- Test single file: `npm test -- test/path/to/file.test.ts`
13+
- Test with coverage: `npm run test:coverage`
14+
15+
## Code Style Guidelines
16+
- **TypeScript**: Strict mode, ES2022 target with Node.js module resolution
17+
- **Imports**: Use type imports with `import type`, avoid duplicate imports
18+
- **Error Handling**: Catch and log errors with utils/logger.ts functions
19+
- **Naming**: camelCase for variables/functions, PascalCase for classes/types
20+
- **Types**: Explicit typing preferred except for obvious return types
21+
- **No console**: Use logger module instead of direct console usage
22+
- **Formatting**: Prettier for auto-formatting (npm run format)
23+
- **Testing**: Vitest framework with mocks and descriptive test naming
24+
- **Variables**: Use const by default, no var, avoid parameter reassignment
25+
- **Async**: Don't use return await, handle Promise rejections properly
26+
- **Security**: Prioritize security best practices, especially in authentication and authorization
27+
28+
## Commit Message Guidelines
29+
30+
Use conventional commits for commit messages. Be as descriptive as possible for all the changes, including bullets. Never include Claude Code attribution in
31+
commit messages.

0 commit comments

Comments
 (0)