[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7D36Y5BF600Z6B470W1AFNZ":3,"skill-same:01M7D36Y5BF600Z6B470W1AFNZ":61},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M7D36Y5BF600Z6B470W1AFNZ","prod-db-postgres",null,"rabihkodeih\u002Fagentic-workflow","rabihkodeih","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1883033?v=4","01M7D357MHZJG4N8PQV8R5TZ82","Rabih Kodeih","01M7D357NM3WD86XTZ93FV7DNK",0,"MIT","https:\u002F\u002Fgithub.com\u002Frabihkodeih\u002Fagentic-workflow\u002Fblob\u002Fmain\u002Fskills\u002Fprod-db-postgres\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: prod-db-postgres\ndescription: Run read-only SQL against a production Postgres (private RDS) over a per-call SSM port-forward through a running instance in the VPC. Use when the user asks to query, count, inspect or check data in \"the prod DB\", \"prod RDS\" or \"the production database\" and wants a number the analytics replica cannot give. Read-only: SELECT\u002FWITH\u002FVALUES\u002FSHOW\u002FEXPLAIN\u002FTABLE and psql describe commands only, enforced client-side and server-side.\n---\n\n# Production Postgres, read-only queries\n\nOne call = one throwaway session: SSO check → DB URL from SSM (never printed) →\nfind a running instance by tag → SSM port-forward on a free local port → `psql`\nwith the session forced read-only → tunnel torn down. Nothing stays open between\ncalls, so nothing can go stale.\n\n```bash\nscripts\u002Fquery.sh 'SELECT count(*) FROM orders WHERE status = 1'\nscripts\u002Fquery.sh --format json 'SELECT id, name, enabled FROM routes ORDER BY id'\nscripts\u002Fquery.sh --format csv --limit 0 'SELECT ...' > out.csv\nscripts\u002Fquery.sh 'SELECT 1' 'SELECT 2'          # several statements, one tunnel\nscripts\u002Fquery.sh '\\dt public.*' '\\d+ orders'    # psql describe meta-commands\n```\n\n`scripts\u002Fquery.sh --help` is the full reference. Double-quote SQL that contains\n`'string literals'`.\n\nFlags: `--format table|json|csv` (default `table`) · `--limit N` printed rows for\nSELECT\u002FWITH (default 200, `0` = no cap; applied by wrapping the statement in\n`SELECT * FROM (...) LIMIT N`) · `--timeout SECONDS` server-side statement timeout\n(default 60) · `--profile` AWS profile.\n\nExit codes: `1` preflight\u002Ftunnel · `2` psql error · `3` statement refused · `4` timed out.\n\n## Configuration\n\nSet once, in the environment or in `scripts\u002Fconfig.env` (sourced if present, gitignored):\n\n| Variable | What |\n|---|---|\n| `PRODDB_AWS_PROFILE` | AWS SSO profile with SSM and EC2 describe rights |\n| `PRODDB_AWS_REGION` | region of the instance and the parameter |\n| `PRODDB_SSM_DB_URL_PARAM` | SSM SecureString holding `postgres:\u002F\u002Fuser:pass@host:port\u002Fdb` |\n| `PRODDB_INSTANCE_TAG` | `Name` tag of an instance inside the VPC that can reach the DB |\n\nCopy `scripts\u002Fconfig.example.env` to `scripts\u002Fconfig.env` and fill it in.\n\n## Ask the user before the first query of a session\n\nThis is the live production database. Confirm with the user before the first\nquery, and again for anything that is not a cheap indexed lookup: an unbounded scan\ncompetes with the web and worker tiers for the same instance. Cheap follow-ups in\nan already-authorised session do not each need a fresh confirmation. When the\nharness blocks the command, hand the exact command to the user to run themselves.\n\n## Look, do not guess\n\n`\\dt \u003Cpattern>` and `\\d+ \u003Ctable>` cost nothing. Use them before writing SQL against\na table you have not seen. Keep a short schema cheat sheet in the project's\n`domain-knowledge.md`, dated, and refresh it when it is wrong.\n\n## How read-only is enforced\n\n1. `scripts\u002Fguard.py` allow-lists the statement (`SELECT`\u002F`WITH`\u002F`VALUES`\u002F`SHOW`\u002F\n   `EXPLAIN`\u002F`TABLE`, one per call, describe meta-commands only), refuses `INTO`,\n   `COPY`, `LOCK`, `FOR UPDATE` and data-modifying CTEs. Literals and comments are\n   blanked first so a `;` inside quotes is not misread. Offline tests:\n   `python3 scripts\u002Ftest_guard.py`.\n2. `PGOPTIONS=\"-c default_transaction_read_only=on\"`: the server rejects any write.\n   This is the layer that holds.\n3. `statement_timeout` (`--timeout`) and the printed-row cap.\n\n## Why it cannot just connect\n\nThe RDS instance is private to the VPC. The script port-forwards through a running\ninstance with `AWS-StartPortForwardingSessionToRemoteHost`; the credentials come\nfrom the SSM parameter and stay in the script's environment. Instance replacement\nby an autoscaling group is harmless (discovered by tag every call), and so is a\ncredential rotation (read every call).\n\n## Failure modes\n\n| Symptom | Meaning |\n|---|---|\n| `SSO token expired or missing for profile X. Run: aws sso login --profile X` | Browser SSO; the user must run it |\n| `no running \u003Ctag> instance found` | Wrong profile\u002Fregion, or the ASG is mid-refresh; retry in a minute |\n| `port-forward ... did not come up` \u002F `SSM session died` | session-manager-plugin missing, or the instance's SSM agent is unhealthy |\n| `REFUSED: ...` (exit 3) | Not read-only. Do not reword around the guard |\n| `REFUSED by server: read-only session` | Something got past the guard; the server stopped it |\n| `TIMEOUT: exceeded Ns` (exit 4) | Narrow the query (date range, indexed columns) before raising `--timeout` |\n\nRequirements on macOS: `aws` CLI v2 with an SSO profile, `session-manager-plugin`\n(`brew install --cask session-manager-plugin`), `psql` (`brew install libpq`),\n`python3`, `nc`.\n\n## Extension point\n\nEncrypted columns (Fernet, KMS envelope, whatever the app uses) come back as\nciphertext. Add a `--decrypt col,col` flag that pipes the JSON result through a\nsmall script running under the application's own key loader. Keys stay in that\nprocess; decrypted rows are production PII and go to a scratch directory, never a repo.\n","# Production Postgres, read-only queries\n\nOne call = one throwaway session: SSO check → DB URL from SSM (never printed) →\nfind a running instance by tag → SSM port-forward on a free local port → `psql`\nwith the session forced read-only → tunnel torn down. Nothing stays open between\ncalls, so nothing can go stale.\n\n```bash\nscripts\u002Fquery.sh 'SELECT count(*) FROM orders WHERE status = 1'\nscripts\u002Fquery.sh --format json 'SELECT id, name, enabled FROM routes ORDER BY id'\nscripts\u002Fquery.sh --format csv --limit 0 'SELECT ...' > out.csv\nscripts\u002Fquery.sh 'SELECT 1' 'SELECT 2'          # several statements, one tunnel\nscripts\u002Fquery.sh '\\dt public.*' '\\d+ orders'    # psql describe meta-commands\n```\n\n`scripts\u002Fquery.sh --help` is the full reference. Double-quote SQL that contains\n`'string literals'`.\n\nFlags: `--format table|json|csv` (default `table`) · `--limit N` printed rows for\nSELECT\u002FWITH (default 200, `0` = no cap; applied by wrapping the statement in\n`SELECT * FROM (...) LIMIT N`) · `--timeout SECONDS` server-side statement timeout\n(default 60) · `--profile` AWS profile.\n\nExit codes: `1` preflight\u002Ftunnel · `2` psql error · `3` statement refused · `4` timed out.\n\n## Configuration\n\nSet once, in the environment or in `scripts\u002Fconfig.env` (sourced if present, gitignored):\n\n| Variable | What |\n|---|---|\n| `PRODDB_AWS_PROFILE` | AWS SSO profile with SSM and EC2 describe rights |\n| `PRODDB_AWS_REGION` | region of the instance and the parameter |\n| `PRODDB_SSM_DB_URL_PARAM` | SSM SecureString holding `postgres:\u002F\u002Fuser:pass@host:port\u002Fdb` |\n| `PRODDB_INSTANCE_TAG` | `Name` tag of an instance inside the VPC that can reach the DB |\n\nCopy `scripts\u002Fconfig.example.env` to `scripts\u002Fconfig.env` and fill it in.\n\n## Ask the user before the first query of a session\n\nThis is the live production database. Confirm with the user before the first\nquery, and again for anything that is not a cheap indexed lookup: an unbounded scan\ncompetes with the web and worker tiers for the same instance. Cheap follow-ups in\nan already-authorised session do not each need a fresh confirmation. When the\nharness blocks the command, hand the exact command to the user to run themselves.\n\n## Look, do not guess\n\n`\\dt \u003Cpattern>` and `\\d+ \u003Ctable>` cost nothing. Use them before writing SQL against\na table you have not seen. Keep a short schema cheat sheet in the project's\n`domain-knowledge.md`, dated, and refresh it when it is wrong.\n\n## How read-only is enforced\n\n1. `scripts\u002Fguard.py` allow-lists the statement (`SELECT`\u002F`WITH`\u002F`VALUES`\u002F`SHOW`\u002F\n   `EXPLAIN`\u002F`TABLE`, one per call, describe meta-commands only), refuses `INTO`,\n   `COPY`, `LOCK`, `FOR UPDATE` and data-modifying CTEs. Literals and comments are\n   blanked first so a `;` inside quotes is not misread. Offline tests:\n   `python3 scripts\u002Ftest_guard.py`.\n2. `PGOPTIONS=\"-c default_transaction_read_only=on\"`: the server rejects any write.\n   This is the layer that holds.\n3. `statement_timeout` (`--timeout`) and the printed-row cap.\n\n## Why it cannot just connect\n\nThe RDS instance is private to the VPC. The script port-forwards through a running\ninstance with `AWS-StartPortForwardingSessionToRemoteHost`; the credentials come\nfrom the SSM parameter and stay in the script's environment. Instance replacement\nby an autoscaling group is harmless (discovered by tag every call), and so is a\ncredential rotation (read every call).\n\n## Failure modes\n\n| Symptom | Meaning |\n|---|---|\n| `SSO token expired or missing for profile X. Run: aws sso login --profile X` | Browser SSO; the user must run it |\n| `no running \u003Ctag> instance found` | Wrong profile\u002Fregion, or the ASG is mid-refresh; retry in a minute |\n| `port-forward ... did not come up` \u002F `SSM session died` | session-manager-plugin missing, or the instance's SSM agent is unhealthy |\n| `REFUSED: ...` (exit 3) | Not read-only. Do not reword around the guard |\n| `REFUSED by server: read-only session` | Something got past the guard; the server stopped it |\n| `TIMEOUT: exceeded Ns` (exit 4) | Narrow the query (date range, indexed columns) before raising `--timeout` |\n\nRequirements on macOS: `aws` CLI v2 with an SSO profile, `session-manager-plugin`\n(`brew install --cask session-manager-plugin`), `psql` (`brew install libpq`),\n`python3`, `nc`.\n\n## Extension point\n\nEncrypted columns (Fernet, KMS envelope, whatever the app uses) come back as\nciphertext. Add a `--decrypt col,col` flag that pipes the JSON result through a\nsmall script running under the application's own key loader. Keys stay in that\nprocess; decrypted rows are production PII and go to a scratch directory, never a repo.\n",{},"main","7b05d4ac96431d4dca2179b70d4f124979d4c3a8","skills\u002Fprod-db-postgres","https:\u002F\u002Fgithub.com\u002Frabihkodeih\u002Fagentic-workflow","https:\u002F\u002Fgithub.com\u002Frabihkodeih","2026-09-20 04:17:12",{"source":7,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add rabihkodeih\u002Fagentic-workflow --skill prod-db-postgres",{"tool":35,"command":36},"bunx","bunx skills add rabihkodeih\u002Fagentic-workflow --skill prod-db-postgres",{"tool":38,"command":39},"pnpm","pnpm dlx skills add rabihkodeih\u002Fagentic-workflow --skill prod-db-postgres","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Frabihkodeih\u002Fagentic-workflow\u002Fblob\u002Fmain\u002Fskills\u002Fprod-db-postgres\u002FSKILL.md",true,[43,49,53,57],{"path":44,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":48},"scripts\u002Fconfig.example.env","SCRIPT","脚本",191,"https:\u002F\u002Fgithub.com\u002Frabihkodeih\u002Fagentic-workflow\u002Fblob\u002Fmain\u002Fskills\u002Fprod-db-postgres\u002Fscripts\u002Fconfig.example.env",{"path":50,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":51,"sourceHtmlUrl":52},"scripts\u002Fguard.py",3301,"https:\u002F\u002Fgithub.com\u002Frabihkodeih\u002Fagentic-workflow\u002Fblob\u002Fmain\u002Fskills\u002Fprod-db-postgres\u002Fscripts\u002Fguard.py",{"path":54,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":55,"sourceHtmlUrl":56},"scripts\u002Fquery.sh",6562,"https:\u002F\u002Fgithub.com\u002Frabihkodeih\u002Fagentic-workflow\u002Fblob\u002Fmain\u002Fskills\u002Fprod-db-postgres\u002Fscripts\u002Fquery.sh",{"path":58,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":59,"sourceHtmlUrl":60},"scripts\u002Ftest_guard.py",1320,"https:\u002F\u002Fgithub.com\u002Frabihkodeih\u002Fagentic-workflow\u002Fblob\u002Fmain\u002Fskills\u002Fprod-db-postgres\u002Fscripts\u002Ftest_guard.py",[62,69,76,83,90,96],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":18},"01M7D37HNRY0RGK352YT1SYQVH","yes-no","Answer the user's question with a yes or no, optionally followed by a short explanation when the model sees fit. Use when the user types \"\u002Fyes-no\", asks a yes\u002Fno question and wants a decisive answer, or says \"just yes or no\".","https:\u002F\u002Fgithub.com\u002Frabihkodeih\u002Fagentic-workflow\u002Fblob\u002Fmain\u002Fskills\u002Fyes-no\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M7D37CDX8K153CYY4FVCGAT5","sonar-workflow","Fix SonarQube code quality issues for a pull request. Auto-fixes trivial issues (formatting, unused imports) and requests approval for complex issues (security, bugs). Integrates with commit-workflow and pr-workflow skills.","https:\u002F\u002Fgithub.com\u002Frabihkodeih\u002Fagentic-workflow\u002Fblob\u002Fmain\u002Fskills\u002Fsonar-workflow\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M7D377REEE0MBH7SJ37JWR41","short-answer","Answer the user's question as concisely as possible, a direct, to-the-point response with no preamble, filler, or unnecessary elaboration. Use when the user types \"\u002Fshort-answer\", asks for a brief\u002Fshort\u002Fconcise\u002FTL;DR answer, or says \"just the answer\".","https:\u002F\u002Fgithub.com\u002Frabihkodeih\u002Fagentic-workflow\u002Fblob\u002Fmain\u002Fskills\u002Fshort-answer\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":18},"01M7D371KTYERB0DFG67XE9PTC","redash","Query a Redash instance over its REST API , list data sources and saved queries, read a saved query's SQL, run it, or run ad-hoc read-only SQL and get the rows back. Use when the user asks about Redash, a Redash query\u002Fdashboard\u002Flink, \"run that query\", \"what does query 1234 return\", or wants numbers out of an analytics data source rather than the application DB.","https:\u002F\u002Fgithub.com\u002Frabihkodeih\u002Fagentic-workflow\u002Fblob\u002Fmain\u002Fskills\u002Fredash\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":18},"01M7D36VE5AEREF874PDV2SJSG","prod-db-mysql-bastion","https:\u002F\u002Fgithub.com\u002Frabihkodeih\u002Fagentic-workflow\u002Fblob\u002Fmain\u002Fskills\u002Fprod-db-mysql-bastion\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":18},"01M7D36NSNPJVP3BS20DRMZ953","pr-workflow","Use this skill when asked to create or update a pull request (PR). It ensures all PRs follow the repository's established templates and standards. Handles both new PR creation and updating existing PRs with new commits, title changes, or description updates.","https:\u002F\u002Fgithub.com\u002Frabihkodeih\u002Fagentic-workflow\u002Fblob\u002Fmain\u002Fskills\u002Fpr-workflow\u002FSKILL.md",[],[]]