usethis
usethis copied to clipboard
Helper for claude code settings
i.e. create .claude/settings.json with this:
{
"$schema": "https://json.schemastore.org/claude-code-settings.json",
"permissions": {
"allow": [
"Bash(find:*)",
"Bash(R:*)",
"Bash(rm:*)",
"Bash(air format:*)",
"Edit(**)",
],
"deny": []
}
}
Rbuildignore:
.claude/
gitignore:
settings.local.json.claude/plans/(maybe, depending on whether we want to share team plans or not)
- This directory can also contain
.claude/CLAUDE.md - We might want to exclude
.Renvironby default: https://docs.claude.com/en/docs/claude-code/settings#excluding-sensitive-files (we don't use it, but others do. And whatever the dotenv package uses) Rscriptmight be a better default- We might want to include
.claude/skills/testing.md,.claude/skills/documentation.md, instead of putting those topics inCLAUDE.md
I'm finding these additions to the allow permissions to be handy:
"WebFetch(domain:raw.githubusercontent.com)",
"WebFetch(domain:github.com)"
It helps with reading GitHub issues and files.
It seems like CLAUDECODE=1 is set as an environment variable when Claude Code runs a process for you