~ / rigs / tarunagarwal1981 / ops-ai

tarunagarwal1981/ops-ai

Small, working examples for putting AI to work on real operations — read-only MCP servers, agent approval gates, Claude Code hooks, RAG and local private AI. Code you can run in minutes, each paired with a write-up.

↗ GitHub ★ 0 MIT updated 1d ago project Claude Code
field: AI / ML
stack: Python
share on X
ARCHETYPE
Minimalist
Lean instructions, few tools, tiny context tax. Lets the model think.
CONTEXT TAX · EVERY TURN
~307 tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · details
Quality 37/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit tarunagarwal1981/ops-ai/claude-code-starter/.claude ./rig-ops-ai  # 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 tarunagarwal1981/ops-ai/claude-code-starter/.claude/skills/new-endpoint .claude/skills/new-endpoint
$ curl -fsSL --create-dirs -o .claude/agents/code-reviewer.md https://raw.githubusercontent.com/tarunagarwal1981/ops-ai/main/claude-code-starter/.claude/agents/code-reviewer.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": [
      "Bash(git push *)",
      "Bash(rm -rf *)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Edit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/block-env.sh"
          }
        ]
      }
    ]
  }
}

Skills (1)

Subagents (1)

code-reviewer
model: sonnet
Reviews changed files for bugs, missing tests and security issues. Use after finishing a feature or before a commit. Pass it the list of changed files.

Hooks (2)

eventmatcherruns
PreToolUseEdit|Write"$CLAUDE_PROJECT_DIR"/.claude/hooks/block-env.sh
PostToolUseEdit|Write"$CLAUDE_PROJECT_DIR"/.claude/hooks/format.sh

Permissions

deny (2)
Bash(git push *)
Bash(rm -rf *)
ask (0)
—
allow (5)
Bash(git status *)
Bash(git diff *)
Bash(git log *)
Bash(pnpm test *)
Bash(pnpm lint *)

Similar rigs

copied ✓