~ / rigs / bgarcia-ai / ClaudeOS

bgarcia-ai/ClaudeOS

Reference template for structuring Claude Code projects to maximize performance. 5-layer memory architecture, self-improvement loop, skills, agents, hooks, and multi-platform workflow.

↗ GitHub ★ 0 MIT updated 2mo ago project Claude Code
share on X
ARCHETYPE
Automator
Hooks on every lifecycle event: format, lint, notify, log.
CONTEXT TAX · EVERY TURN
~11.2k tokens
Heavy · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · details

Copy this rig

# review before running: this installs third-party code
$ npx degit bgarcia-ai/ClaudeOS/.claude ./rig-claudeos  # inspect, then merge into .claude/

MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.

$ npx degit bgarcia-ai/ClaudeOS/.claude/skills/json-canvas .claude/skills/json-canvas
$ npx degit bgarcia-ai/ClaudeOS/.claude/skills/obsidian-bases .claude/skills/obsidian-bases
$ npx degit bgarcia-ai/ClaudeOS/.claude/skills/obsidian-cli .claude/skills/obsidian-cli
$ npx degit bgarcia-ai/ClaudeOS/.claude/skills/obsidian-markdown .claude/skills/obsidian-markdown
$ npx degit bgarcia-ai/ClaudeOS/.claude/skills/research-daemon .claude/skills/research-daemon
$ npx degit bgarcia-ai/ClaudeOS/.claude/skills/team-up .claude/skills/team-up
$ npx degit bgarcia-ai/ClaudeOS/.claude/skills/vet-repo .claude/skills/vet-repo
$ npx degit bgarcia-ai/ClaudeOS/.claude/skills/youtube-pipeline .claude/skills/youtube-pipeline
$ npx degit bgarcia-ai/ClaudeOS/.claude/skills/yt-search .claude/skills/yt-search
$ curl -fsSL --create-dirs -o .claude/agents/policy-refiner.md https://raw.githubusercontent.com/bgarcia-ai/ClaudeOS/main/.claude/agents/policy-refiner.md
$ curl -fsSL --create-dirs -o .claude/agents/self-critic.md https://raw.githubusercontent.com/bgarcia-ai/ClaudeOS/main/.claude/agents/self-critic.md

Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "bash .claude/hooks/block-dangerous.sh"
          }
        ]
      }
    ]
  }
}

MCP servers (2)

serversourceest. tokens
github
env: GITHUB_TOKEN
local / custom 2.5k
memory local / custom 2.5k

Skills (9)

Subagents (2)

policy-refiner
model: sonnet
>
self-critic
model: sonnet
>

Hooks (5)

eventmatcherruns
PreToolUseBashbash .claude/hooks/block-dangerous.sh
SessionStart*bash .claude/hooks/memory.sh
PreCompact*bash .claude/hooks/pre-compact.sh
Stop*bash .claude/hooks/session-end.sh
Stop*bash .claude/hooks/hindsight-extract.sh

Slash commands (6)

/team-up/template-project/update-context/vet-repo/youtube-pipeline/yt-search

Similar rigs

copied ✓