aws-rds-debug
Skill2 starsChanged 19 days agoApache-2.0View on GitHub
Debug AWS RDS database issues by gathering infrastructure and database-level diagnostics. Use when user says "debug RDS", "RDS issues", "AWS database problems", or "check RDS health".
In this repository124 other files it gives its agents.
- add-projectSkill
- ansible-configure-vmSkill
- api-smoke-testSkill
- appinterface-checkSkill
- attach-session-to-jiraSkill
- beerSkill
- bootstrap-all-knowledgeSkill
- bootstrap-knowledgeSkill
- build-persona-styleSkill
- cancel-pipelineSkill
- cert-checkSkill
- check-ci-healthSkill
- check-integration-testsSkill
- check-mr-feedbackSkill
- check-my-prsSkill
- check-secretsSkill
- ci-retrySkill
- cleanup-branchesSkill
- cleanup-stale-executionsSkill
- clone-jira-issueSkill
- close-issueSkill
- close-mrSkill
- cloud-inventorySkill
- coffeeSkill
- compare-optionsSkill
- create-jira-issueSkill
- create-mrSkill
- create-slide-deckSkill
- data-migration-verifySkill
- debug-local-dbSkill
- debug-prodSkill
- deploy-to-ephemeralSkill
- dev-workflow-orchestratorSkill
- discovered-work-summarySkill
- edit-slide-deckSkill
- email-digestSkill
- environment-overviewSkill
- explain-codeSkill
- export-presentationSkill
- extend-ephemeralSkill
- find-similar-codeSkill
- gather-contextSkill
- gdrive-researchSkill
- gke-cluster-opsSkill
- hello-worldSkill
- hotfixSkill
- inscope-researchSkill
- investigate-alertSkill
- investigate-service-issuesSkill
- investigate-slack-alertSkill
- jira-hygiene-allSkill
- jira-hygieneSkill
- knowledge-refreshSkill
- konflux-statusSkill
- learn-architectureSkill
- learn-patternSkill
- list-presentationsSkill
- local-build-testSkill
- local-dev-environmentSkill
- manage-local-servicesSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 51
Check lock contention in locks output
- Distinctive: line 53
Check xact_rollback in diagnostics.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AWS RDS Debug
Debug AWS RDS PostgreSQL issues by inspecting AWS identity, EC2/security groups, database connections, locks, activity, and InScope docs.
Inputs
| Input | Type | Default | Purpose |
environment | string | "stage" | Environment (stage, production) |
issue_description | string | "" | Description of the RDS issue |
check_connections | bool | true | Include connection and lock analysis |
Workflow
1. Bootstrap
persona_load("devops")— AWS and database toolscheck_known_issues("rds"),check_known_issues("aws"),check_known_issues("psql")
2. AWS Infrastructure
aws_sts_get_caller_identity()— verify AWS identityaws_configure_list()— check AWS configaws_ec2_describe_instances()— list EC2 (bastion, app servers)aws_ec2_describe_security_groups()— RDS access rules
3. Database Checks
psql_connections()— connection countpsql_activity()— current activitypsql_locks()— lock contentionpsql_size()— database sizepsql_query("SELECT datname, numbackends, xact_commit, xact_rollback, blks_read, blks_hit, tup_returned, tup_fetched FROM pg_stat_database WHERE datname NOT IN ('template0', 'template1') ORDER BY numbackends DESC;")— RDS diagnostics
4. Connectivity
curl_get(url)— RDS endpoint (adjust URL for environment)ssh_command(host, "echo tunnel_ok")— bastion tunnel check
5. Documentation
inscope_query("How do I configure and debug RDS databases in {environment}?", assistant="app-interface")
6. Analysis
- Check lock contention in locks output
- Parse connection count; flag if > 80
- Check xact_rollback in diagnostics; flag if > 1000
- Flag security group if 0.0.0.0/0 in ingress
7. Failure Learning
- "credentials expired" / "invalid" →
learn_tool_fix("aws_sts_get_caller_identity", "credentials expired", "AWS credentials expired", "Refresh with aws configure") - "connection refused" / "timeout" →
learn_tool_fix("psql_connections", "connection refused", "Cannot connect to RDS", "Verify security groups and VPN")
8. Memory
memory_session_log("AWS RDS debug ({environment})", "healthy=X, issues=Y, connections=Z")
Key MCP Tools
persona_load,check_known_issues,learn_tool_fix,memory_session_logaws_sts_get_caller_identity,aws_configure_list,aws_ec2_describe_instances,aws_ec2_describe_security_groupspsql_connections,psql_activity,psql_locks,psql_size,psql_querycurl_get,ssh_command,inscope_query
Report Sections
- AWS Identity, Issues Found, Database Connections, Activity, Locks, Database Size, Statistics, Security Groups, RDS Docs, Known Issues
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

