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
ARCHETYPE
Automator
Hooks on every lifecycle event: format, lint, notify, log.
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)
| event | matcher | runs |
|---|---|---|
| PreToolUse | Bash | uv run --no-project python -I "$CLAUDE_PROJECT_DIR/scripts/hooks/block_commit_bypass.py" |
| PreToolUse | Bash | uv run --no-project python -I "$CLAUDE_PROJECT_DIR/scripts/hooks/block_credential_output.py" |
| PreToolUse | Bash | uv run --no-project python -I "$CLAUDE_PROJECT_DIR/scripts/hooks/block_fork_pr_push.py" |
| PreToolUse | Edit|Write|MultiEdit | uv run --no-project python -I "$CLAUDE_PROJECT_DIR/scripts/hooks/block_baseline_edit.py" |
| PreToolUse | Edit|Write|MultiEdit | uv run --no-project python -I "$CLAUDE_PROJECT_DIR/scripts/hooks/block_contract_version_edit.py" |
| PreToolUse | Bash|Agent|Task | uv run --no-project python -I "$CLAUDE_PROJECT_DIR/scripts/hooks/require_gate_shown.py" |
| PostToolUse | Bash | uv run --no-project python -I "$CLAUDE_PROJECT_DIR/scripts/hooks/remind_quote_printed_summary.py" |
| PostToolUse | Agent|Task|SendMessage | uv 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
Kalypsokichu-code/kalypso-claude-workflow
My Claude Code setup - three-tier permissions, hook router, slash commands, subagents, scaffolding. Opinionated.
Fort Knox 549 tok · · Q46
wandersonaadsantos/farol
Pull Request radar for Windows and macOS: watches GitHub in the background and triggers reviews with Claude Code, with an approval gate and team memory.
Pragmatist 31.3k tok · · Q13
lucasandradeb/my-claude-code-config
My personal Claude Code configuration — MCP servers, plugins, CLAUDE.md and setup guides
Pragmatist 1.1k tok · · Q0
plazorax/laravel-agent-workflow
Claude Code plugin with quality gates for AI-assisted Laravel work: blocks edits to .env, vendor/, storage/ and composer.lock, runs Pint on each edited PHP file, and runs Larastan and pest --dirty before the agent stops. Includes review age
Minimalist 716 tok · · Q3