~ / rigs / aws-samples / sample-aws-genai-db-modernizer

aws-samples/sample-aws-genai-db-modernizer

Assess a relational database for modernization on AWS. Analyzes your real schema and queries, scores each query pattern against purpose-built engines (DynamoDB, DocumentDB, Aurora, OpenSearch, ElastiCache), and produces schema designs, migr

↗ GitHub ★ 15 MIT-0 updated today project Claude CodeCodex
share on X
ARCHETYPE
Automator
Hooks on every lifecycle event: format, lint, notify, log.
CONTEXT TAX · EVERY TURN
~9.4k tokens
Heavy · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · details
Quality 34/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit aws-samples/sample-aws-genai-db-modernizer/.claude ./rig-sample-aws-genai-db-modernizer  # 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.

$ curl -fsSL --create-dirs -o .claude/agents/dynamodb-group-draft.md https://raw.githubusercontent.com/aws-samples/sample-aws-genai-db-modernizer/main/.claude/agents/dynamodb-group-draft.md
$ curl -fsSL --create-dirs -o .claude/agents/pr-reviewer.md https://raw.githubusercontent.com/aws-samples/sample-aws-genai-db-modernizer/main/.claude/agents/pr-reviewer.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": "uv run --no-project python -I \"$CLAUDE_PROJECT_DIR/scripts/hooks/block_commit_bypass.py\""
          },
          {
            "type": "command",
            "command": "uv run --no-project python -I \"$CLAUDE_PROJECT_DIR/scripts/hooks/block_credential_output.py\""
          },
          {
            "type": "command",
            "command": "uv run --no-project python -I \"$CLAUDE_PROJECT_DIR/scripts/hooks/block_fork_pr_push.py\""
          }
        ]
      },
      {
        "matcher": "Edit|Write|MultiEdit",
        "hooks": [
          {
            "type": "command",
            "command": "uv run --no-project python -I \"$CLAUDE_PROJECT_DIR/scripts/hooks/block_baseline_edit.py\""
          },
          {
            "type": "command",
            "command": "uv run --no-project python -I \"$CLAUDE_PROJECT_DIR/scripts/hooks/block_contract_version_edit.py\""
          }
        ]
      },
      {
        "matcher": "Bash|Agent|Task",
        "hooks": [
          {
            "type": "command",
            "command": "uv run --no-project python -I \"$CLAUDE_PROJECT_DIR/scripts/hooks/require_gate_shown.py\""
          }
        ]
      }
    ]
  }
}

Subagents (2)

dynamodb-group-draft
model: inherit
Writes one DynamoDB group draft for /modernize Phase 6 or /design-schema-dynamodb (the Group draft task). Dispatched only by those commands, with the group named at the end of the task text.
pr-reviewer
model: opus
Reviews a pull request against this repo's guardrails -- the pre-commit hooks, the guard tests, and the AGENTS.md/CONTRIBUTING.md checklist -- in a disposable worktree, then posts one ranked PR commen

Hooks (10)

eventmatcherruns
PreToolUseBashuv run --no-project python -I "$CLAUDE_PROJECT_DIR/scripts/hooks/block_commit_bypass.py"
PreToolUseBashuv run --no-project python -I "$CLAUDE_PROJECT_DIR/scripts/hooks/block_credential_output.py"
PreToolUseBashuv run --no-project python -I "$CLAUDE_PROJECT_DIR/scripts/hooks/block_fork_pr_push.py"
PreToolUseEdit|Write|MultiEdituv run --no-project python -I "$CLAUDE_PROJECT_DIR/scripts/hooks/block_baseline_edit.py"
PreToolUseEdit|Write|MultiEdituv run --no-project python -I "$CLAUDE_PROJECT_DIR/scripts/hooks/block_contract_version_edit.py"
PreToolUseBash|Agent|Taskuv run --no-project python -I "$CLAUDE_PROJECT_DIR/scripts/hooks/require_gate_shown.py"
PostToolUseBashuv run --no-project python -I "$CLAUDE_PROJECT_DIR/scripts/hooks/remind_quote_printed_summary.py"
PostToolUseAgent|Task|SendMessageuv run --no-project python -I "$CLAUDE_PROJECT_DIR/scripts/hooks/record_dispatch.py"
Stop*uv run --no-project python -I "$CLAUDE_PROJECT_DIR/scripts/hooks/remind_llm_run.py"
SubagentStop*uv run --no-project python -I "$CLAUDE_PROJECT_DIR/scripts/hooks/record_report.py"

Slash commands (26)

/add-modernizer-skill/analyze-aurora-mysql/analyze-aurora-postgresql/analyze-documentdb/analyze-dynamodb/analyze-elasticache/analyze-opensearch/analyze/assign/collect/design-schema-aurora-mysql/design-schema-aurora-postgresql/design-schema-documentdb/design-schema-dynamodb/design-schema-elasticache/design-schema-opensearch/design-schema/explore/modernize/move/reality-check/repair-routines/review-schema/synthesize/triage/wave-edit

Similar rigs

copied ✓