+
Skip to content

PaulRBerg/dot-claude

Repository files navigation

Claude Code config

PRB's .claude directory.

Settings

settings.json configures permissions, hooks, and environment:

  • Permissions:
    • Pre-approved commands (e.g. git, grep, etc.) and tools (MCP servers, file ops) run without confirmation.
    • Destructive operations (sudo, rm -rf, system files) are blocked.
  • Hooks: Event-driven automation, see the docs for more info.
  • Status Line: Custom status via ccstatusline

Context

Modular configuration system using @ syntax for composable behavioral instructions:

# Example: BASE.md
@CRITICAL_THINKING.md
@SENIOR_PROGRAMMER.md
@tools/JUST.md

Context files are organized by concern (languages, tools, etc.) and imported via @filename.md references. Base instructions cascade through specialized modules, creating layered behavioral policies without duplication.

Commands

Slash commands are defined in commands/*.md.

Commands use semantic analysis to understand code changes rather than relying on filenames. They feature natural argument parsing (/commit fix auth --short), smart defaults (auto-stage changes, detect reviewers), and stateless execution without interactive prompts.

Hooks

Custom hooks in hooks/ extend Claude Code with event-driven automation.

append-subagents.py

The most critical hook. Appends orchestration instructions when prompts end with -s flag, forcing Claude to delegate work to specialized subagents instead of doing everything itself.

Why: Claude often tries to handle complex tasks directly instead of spawning parallel agents. This hook guarantees orchestration mode by injecting ORCHESTRATOR.md which mandates:

  • Parallel delegation when possible (independent subtasks)
  • Single agent for sequential work
  • No direct implementation by orchestrator

Usage: Add user analytics dashboard -s → spawns frontend/backend/database agents in parallel

Other hooks handle notifications (ccnotify) and documentation helpers.

Nice-to-Have Utilities

Some nice-to-have utilities:

License

This project is licensed under MIT.

About

PRB's Claude Code config

Topics

Resources

License

Stars

Watchers

Forks

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载