~ / rigs / mralexsaavedra / loop

mralexsaavedra/loop

Self-hosted health and nutrition coach run by Claude Code: Apple Health, Strava and your food log in one recovery-style dashboard. Your data stays on your disk.

↗ GitHub ★ 1 MIT updated 14d ago project Claude Code
share on X
ARCHETYPE
Fort Knox
Deny lists, pre-tool hooks, sandboxing. Nothing touches prod without a signature.
CONTEXT TAX · EVERY TURN
~4.3k tokens
Moderate · median rig: 2.3k · breakdown
GUARDRAILS
4/5
Blocks destructive commands · Protects secrets · Pre-tool screening hook · No YOLO mode · details
Quality 52/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit mralexsaavedra/loop/.claude ./rig-loop  # 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 mralexsaavedra/loop/.agents/skills/frontend-design .claude/skills/frontend-design
$ npx degit mralexsaavedra/loop/.claude/skills/analysis .claude/skills/analysis
$ npx degit mralexsaavedra/loop/.claude/skills/food-log .claude/skills/food-log
$ npx degit mralexsaavedra/loop/.claude/skills/release .claude/skills/release
$ npx degit mralexsaavedra/loop/.claude/skills/setup .claude/skills/setup
$ curl -fsSL --create-dirs -o .claude/agents/cycling-coach.md https://raw.githubusercontent.com/mralexsaavedra/loop/main/.claude/agents/cycling-coach.md
$ curl -fsSL --create-dirs -o .claude/agents/hybrid-coach.md https://raw.githubusercontent.com/mralexsaavedra/loop/main/.claude/agents/hybrid-coach.md
$ curl -fsSL --create-dirs -o .claude/agents/nutrition-coach.md https://raw.githubusercontent.com/mralexsaavedra/loop/main/.claude/agents/nutrition-coach.md
$ curl -fsSL --create-dirs -o .claude/agents/training-coach.md https://raw.githubusercontent.com/mralexsaavedra/loop/main/.claude/agents/training-coach.md

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

{
  "permissions": {
    "deny": [
      "Read(**/.env*)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash|Edit|Write|MultiEdit",
        "hooks": [
          {
            "type": "command",
            "command": "node \"$CLAUDE_PROJECT_DIR/.claude/hooks/guard-health-data.js\""
          }
        ]
      }
    ]
  }
}

Skills (5)

Subagents (4)

cycling-coach
model: inherit
Cycling TRAINING coach grounded in a local expert knowledge base (video transcripts of the cycling sources the user configured in profile/coaches.md) and the user's real ride data. Use it for cycling
hybrid-coach
model: inherit
HYROX / hybrid TRAINING coach grounded in a local knowledge base (podcast transcripts and the past and current training programs the user configured in profile/coaches.md) and the user's real training
nutrition-coach
model: inherit
Sports nutrition and supplementation coach grounded in a local evidence base (position stands such as AIS, IOC, ISSN and WADA, plus the user's national food-safety rules), the practitioner sources the
training-coach
model: inherit
Generic TRAINING coach for any sport the other coaches do not own — running, swimming, strength / gym, team sports, racket sports, yoga / pilates, mobility, general fitness — grounded in the optional

Hooks (1)

eventmatcherruns
PreToolUseBash|Edit|Write|MultiEditnode "$CLAUDE_PROJECT_DIR/.claude/hooks/guard-health-data.js"

Permissions

deny (1)
Read(**/.env*)
ask (0)
—
allow (13)
Bash(npm test)
Bash(npm run check)
Bash(npm run generate)
Bash(npm run build:example)
Bash(npm run sync)
Bash(npm run sync:shortcut)
Bash(npm run sync:strava)
Bash(npm run sync:profile)
Bash(npm run sync:settings)
Bash(npm run sync:onboarding)
Bash(npm run sync:foodlog)
Bash(node data/apple-health/extract.mjs)
Bash(git status)

Similar rigs

copied ✓