feat(claude): add initial dotfiles
This commit is contained in:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -110,3 +110,9 @@ swaync/*
|
|||||||
!fuzzel
|
!fuzzel
|
||||||
fuzzel/*
|
fuzzel/*
|
||||||
!fuzzel/fuzzel.ini
|
!fuzzel/fuzzel.ini
|
||||||
|
|
||||||
|
# claude
|
||||||
|
!claude
|
||||||
|
claude/*
|
||||||
|
!claude/CLAUDE.md
|
||||||
|
!claude/settings.json
|
||||||
|
|||||||
38
claude/CLAUDE.md
Normal file
38
claude/CLAUDE.md
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
# Global CLAUDE.md
|
||||||
|
|
||||||
|
## Comments
|
||||||
|
|
||||||
|
Comments must be one of two forms:
|
||||||
|
|
||||||
|
```
|
||||||
|
# descriptive but non-verbose comment
|
||||||
|
# KEYWORD:(@janezicmatej) descriptive but non-verbose comment
|
||||||
|
```
|
||||||
|
|
||||||
|
Rules:
|
||||||
|
- always lowercase
|
||||||
|
- no trailing punctuation
|
||||||
|
- keywords: WARN, FIX, NOTE, TODO, PERF, TEST, HACK
|
||||||
|
- keyword comments must include attribution `(@janezicmatej)`
|
||||||
|
|
||||||
|
## Git
|
||||||
|
- all git work MUST happen in sub-agents with `isolation: "worktree"`
|
||||||
|
- agents MUST commit with `--no-gpg-sign`
|
||||||
|
|
||||||
|
## Workflow
|
||||||
|
- implement changes directly; don't use sub-agents/Task for simple operations like renames, file moves, or single-file edits; only use Task for genuinely complex parallel exploration or research
|
||||||
|
- when redirected or interrupted, immediately stop the current approach and follow the new direction; don't explain or defend the previous approach
|
||||||
|
- focus on one goal per session; don't drift into unrelated improvements
|
||||||
|
- use Task agents for research and exploration, not for straightforward implementation
|
||||||
|
|
||||||
|
## Scope
|
||||||
|
- NEVER modify anything outside the scope of what was asked
|
||||||
|
- don't introduce unrelated changes, touch unrelated configs, or change defaults not mentioned
|
||||||
|
- if something related should change, ask first
|
||||||
|
|
||||||
|
## Config locations
|
||||||
|
- MCP server configs go in `.claude.json` (project) or `~/.claude.json` (global), not `settings.json`
|
||||||
|
- `settings.json` is for permissions, hooks, and behavior settings
|
||||||
|
|
||||||
|
## Code quality
|
||||||
|
- after making changes, check if the project has linters/formatters and run them
|
||||||
13
claude/settings.json
Normal file
13
claude/settings.json
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"permissions": {
|
||||||
|
"allow": [
|
||||||
|
"mcp__todo__*",
|
||||||
|
"mcp__nixos__*"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"hooks": {},
|
||||||
|
"voiceEnabled": true,
|
||||||
|
"skipDangerousModePermissionPrompt": true,
|
||||||
|
"effortLevel": "high",
|
||||||
|
"mcpServers": {}
|
||||||
|
}
|
||||||
@@ -23,6 +23,9 @@ export NAME="Matej Janežič"
|
|||||||
# starship nest config into a folder, default is ~/.config/starship.toml
|
# starship nest config into a folder, default is ~/.config/starship.toml
|
||||||
export STARSHIP_CONFIG="$XDG_CONFIG_HOME/starship/config.toml"
|
export STARSHIP_CONFIG="$XDG_CONFIG_HOME/starship/config.toml"
|
||||||
|
|
||||||
|
# claude
|
||||||
|
export CLAUDE_CONFIG_DIR="$XDG_CONFIG_HOME/claude"
|
||||||
|
|
||||||
# cliphist
|
# cliphist
|
||||||
export CLIPHIST_DB_PATH="/tmp/cliphist-db"
|
export CLIPHIST_DB_PATH="/tmp/cliphist-db"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user