~ / rigs / Aman4563 / finresearch

Aman4563/finresearch

Personal, local-first investment research app for Indian markets: fact-checked AI research reports on IPOs, stocks, mutual funds and bonds, live NSE/BSE/AMFI data and signals, and a private portfolio and capital-gains tax tracker.

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

Copy this rig

# review before running: this installs third-party code
$ npx degit Aman4563/finresearch/.claude ./rig-finresearch  # 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 Aman4563/finresearch/.claude/skills/feature .claude/skills/feature
$ npx degit Aman4563/finresearch/.claude/skills/live-check .claude/skills/live-check
$ npx degit Aman4563/finresearch/.claude/skills/new-migration .claude/skills/new-migration
$ npx degit Aman4563/finresearch/.claude/skills/release .claude/skills/release
$ npx degit Aman4563/finresearch/.claude/skills/ship .claude/skills/ship
$ npx degit <redacted>-research .claude/skills/bond-research
$ npx degit <redacted>-research .claude/skills/fund-research
$ npx degit <redacted>-fin-glossary .claude/skills/indian-fin-glossary
$ npx degit <redacted>-deep-research .claude/skills/ipo-deep-research
$ npx degit <redacted>-writer .claude/skills/report-writer
$ npx degit <redacted>-navigator .claude/skills/rhp-navigator
$ npx degit <redacted>-research .claude/skills/stock-research
$ curl -fsSL --create-dirs -o .claude/agents/gold-reviewer.md https://raw.githubusercontent.com/Aman4563/finresearch/main/.claude/agents/gold-reviewer.md
$ curl -fsSL --create-dirs -o .claude/agents/implementer.md https://raw.githubusercontent.com/Aman4563/finresearch/main/.claude/agents/implementer.md
$ curl -fsSL --create-dirs -o .claude/agents/invariant-auditor.md https://raw.githubusercontent.com/Aman4563/finresearch/main/.claude/agents/invariant-auditor.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": [
      "WebFetch(domain:localhost)",
      "WebFetch(domain:*.localhost)",
      "WebFetch(domain:127.0.0.1)",
      "WebFetch(domain:0.0.0.0)",
      "WebFetch(domain:*.local)",
      "WebFetch(domain:*.internal)",
      "Read(./.env)",
      "Read(./.env.local)",
      "Read(~/.pgpass)",
      "Edit(./.env)",
      "Edit(~/.pgpass)",
      "Bash(gh auth switch:*)",
      "Bash(gh auth login:*)",
      "Bash(gh auth logout:*)",
      "Bash(git config --global:*)",
      "Bash(git push origin main:*)",
      "Bash(git push --force origin main:*)",
      "Bash(git stash)",
      "Bash(git stash push:*)",
      "Bash(git stash pop:*)",
      "Bash(dropdb finresearch)",
      "Bash(security find-generic-password:*)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "[ \"$CLAUDE_CODE_DISABLE_CLAUDE_MDS\" = 1 ] || [ ! -f \"$CLAUDE_PROJECT_DIR/.claude/hooks/guard.py\" ] || python3 \"$CLAUDE_PROJECT_DIR/.claude/hooks/guard.py\" pre-bash"
          }
        ]
      },
      {
        "matcher": "Edit|Write|NotebookEdit",
        "hooks": [
          {
            "type": "command",
            "command": "[ \"$CLAUDE_CODE_DISABLE_CLAUDE_MDS\" = 1 ] || [ ! -f \"$CLAUDE_PROJECT_DIR/.claude/hooks/guard.py\" ] || python3 \"$CLAUDE_PROJECT_DIR/.claude/hooks/guard.py\" pre-edit"
          }
        ]
      }
    ]
  }
}

Skills (12)

Subagents (3)

gold-reviewer
model: inherit
Scores report-engine changes against the gold sets (evals/gold/) by replaying exported fixtures on a scratch database, and reports recall and contradictions per fact. Never edits gold facts to pass.
implementer
model: inherit
Implements one FinResearch GitHub issue end to end in its own git worktree with its own *_test database, and opens a PR (never merges). Use for parallel feature or fix work.
invariant-auditor
model: inherit
Read-only audit of a FinResearch diff or PR against docs/dev/ENGINEERING_HANDOFF.md invariants and the CLAUDE.md "rules that are easy to break". Use before merging any non-trivial PR.

Hooks (5)

eventmatcherruns
SessionStart*[ "$CLAUDE_CODE_DISABLE_CLAUDE_MDS" = 1 ] || [ ! -f "$CLAUDE_PROJECT_DIR/.claude/hooks/guard.py" ] || python3 "$CLAUDE_PROJECT_DIR/.claude/hooks/guard.py" session
PreToolUseBash[ "$CLAUDE_CODE_DISABLE_CLAUDE_MDS" = 1 ] || [ ! -f "$CLAUDE_PROJECT_DIR/.claude/hooks/guard.py" ] || python3 "$CLAUDE_PROJECT_DIR/.claude/hooks/guard.py" pre-bash
PreToolUseEdit|Write|NotebookEdit[ "$CLAUDE_CODE_DISABLE_CLAUDE_MDS" = 1 ] || [ ! -f "$CLAUDE_PROJECT_DIR/.claude/hooks/guard.py" ] || python3 "$CLAUDE_PROJECT_DIR/.claude/hooks/guard.py" pre-edit
PostToolUseEdit|Write[ "$CLAUDE_CODE_DISABLE_CLAUDE_MDS" = 1 ] || [ ! -f "$CLAUDE_PROJECT_DIR/.claude/hooks/guard.py" ] || python3 "$CLAUDE_PROJECT_DIR/.claude/hooks/guard.py" post-edit
Stop*[ "$CLAUDE_CODE_DISABLE_CLAUDE_MDS" = 1 ] || [ ! -f "$CLAUDE_PROJECT_DIR/.claude/hooks/guard.py" ] || python3 "$CLAUDE_PROJECT_DIR/.claude/hooks/guard.py" stop

Permissions

deny (22)
WebFetch(domain:localhost)
WebFetch(domain:*.localhost)
WebFetch(domain:127.0.0.1)
WebFetch(domain:0.0.0.0)
WebFetch(domain:*.local)
WebFetch(domain:*.internal)
Read(./.env)
Read(./.env.local)
Read(~/.pgpass)
Edit(./.env)
Edit(~/.pgpass)
Bash(gh auth switch:*)
Bash(gh auth login:*)
Bash(gh auth logout:*)
Bash(git config --global:*)
Bash(git push origin main:*)
Bash(git push --force origin main:*)
Bash(git stash)
Bash(git stash push:*)
Bash(git stash pop:*)
Bash(dropdb finresearch)
Bash(security find-generic-password:*)
ask (0)
—
allow (0)
—

Similar rigs

copied ✓