[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74B535ZEKJKP0SFM9YWD8X4":3,"skill-same:01M74B535ZEKJKP0SFM9YWD8X4":56},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M74B535ZEKJKP0SFM9YWD8X4","ddl-export-snapshot-management",null,"DDL Export & Snapshot Management","CarlosCaPe\u002Foctorato","CarlosCaPe","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F39838249?v=4","01M72WXX4ZRR8MBH1EP1QND2FQ","dataqbs","01M72WXX5NA7YCKRSJ54GW1GQ8",18,"MIT","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fddl-export-snapshot-management\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: ddl-export-snapshot-management\ndescription: \"DDL Export & Snapshot Management\"\nmetadata:\n  short-description: \"DDL Export & Snapshot Management\"\n  original-index: 12\n---\n\n# DDL Export & Snapshot Management\n\n## What\n\nA suite of Node.js scripts that export database schemas to local files for\noffline analysis, code review, and version control. Three complementary tools\nproduce different views of the same database.\n\n## Why\n\nYou can't grep a live database. By exporting schemas to local files, you can:\n- Search across all procedures with grep\u002Fripgrep\n- Track schema changes over time via git\n- Code review DDL changes before and after deployment\n- Work offline when VNET blocks database access\n\n## How\n\n### Three export layers\n\n| Tool | Command | Output | Best For |\n|------|---------|--------|----------|\n| `export_schema.js` | `node scripts\u002Faudit\u002Fexport_schema.js --env dev --db MyDB` | `schemas\u002Fpublic.sql` (monolithic pg_dump) | Full schema backup |\n| `generate_simple_ddl.js` | `node scripts\u002Faudit\u002Fgenerate_simple_ddl.js --env dev --db MyDB` | `simple_ddl\u002Fpublic\u002Ftable_*.sql` (per-table) | Table structure review |\n| `generate_templated_ddl.js` | `node scripts\u002Faudit\u002Fgenerate_templated_ddl.js --env dev --db MyDB` | `schemas\u002Fpublic\u002FProcedures\u002F*.sql`, `Tables\u002F*.sql` (per-object) | Procedure-level grep |\n\n### Output structure\n```\ndatabase\u002Fpostgresql\u002Fdev\u002F\u003Cserver>\u002F\u003Cdatabase>\u002F\n    schemas\u002F\n        public.sql                          # monolithic pg_dump\n        public\u002F\n            Procedures\u002F\n                AddApplicant__ed99d064c842.sql\n                GetApplicant__9a46e1f5494b.sql\n                ...\n            Tables\u002F\n                Applicant__\u003Chash>.sql\n                ...\n            Functions\u002F\n            Comments\u002F\n            Grants\u002F\n    simple_ddl\u002F\n        public\u002F\n            table_Applicant.sql\n            table_Hospital.sql\n            ...\n```\n\n### Multi-target export\n```bash\n# Export all targets defined in config\u002Ftargets.yaml\nnode scripts\u002Faudit\u002Fexport_all.js\n```\n\n### Configuration\nTargets are defined in `config\u002Ftargets.yaml`:\n```yaml\ntargets:\n  - name: QA\n    host: ${DB_HOST_QA}\n    databases: [MyDB_QA, OtherDB_QA]\n  - name: DEV\n    host: ${DB_HOST_DEV}\n    databases: [MyDB_DEV]\n```\n\n## Refresh Workflow\n\nBefore a code review, always refresh snapshots:\n```bash\n# 1. Monolithic schema dump\nnode scripts\u002Faudit\u002Fexport_schema.js --env dev --db myapp_dev\n\n# 2. Per-table DDLs\nnode scripts\u002Faudit\u002Fgenerate_simple_ddl.js --env dev --db myapp_dev\n\n# 3. Per-object split files (Procedures\u002F, Tables\u002F, etc.)\nnode scripts\u002Faudit\u002Fgenerate_templated_ddl.js --env dev --db myapp_dev\n```\n\n## When to Use\n\n- Before every code review (refresh from live database)\n- After every deployment (capture post-deployment state)\n- When onboarding to a new database (initial snapshot)\n\n## Where We Used It\n\n- **DA-102**: Refreshed all 3 layers to verify column renames and procedure\n  updates were applied in DEV. Grep of refreshed split files confirmed\n  0 old misspelled column references across all 87 procedures.\n- **All tickets**: Initial schema discovery and procedure analysis\n\n## Gotchas\n\n- `generate_templated_ddl.js` **deletes** the monolithic `public.sql` if\n  `clean_schema_root` is enabled -- run `export_schema.js` again after it\n- Simple DDL only exports **table structures** (no procedures, views, etc.)\n- File hashes in names (e.g., `__ed99d064c842`) change when the object\n  definition changes -- git will show a delete + create, not a rename\n- VNET-blocked servers will fail silently or timeout -- always check output\n\n---\n\n*Category: Tooling | Origin: All tickets*\n","# DDL Export & Snapshot Management\n\n## What\n\nA suite of Node.js scripts that export database schemas to local files for\noffline analysis, code review, and version control. Three complementary tools\nproduce different views of the same database.\n\n## Why\n\nYou can't grep a live database. By exporting schemas to local files, you can:\n- Search across all procedures with grep\u002Fripgrep\n- Track schema changes over time via git\n- Code review DDL changes before and after deployment\n- Work offline when VNET blocks database access\n\n## How\n\n### Three export layers\n\n| Tool | Command | Output | Best For |\n|------|---------|--------|----------|\n| `export_schema.js` | `node scripts\u002Faudit\u002Fexport_schema.js --env dev --db MyDB` | `schemas\u002Fpublic.sql` (monolithic pg_dump) | Full schema backup |\n| `generate_simple_ddl.js` | `node scripts\u002Faudit\u002Fgenerate_simple_ddl.js --env dev --db MyDB` | `simple_ddl\u002Fpublic\u002Ftable_*.sql` (per-table) | Table structure review |\n| `generate_templated_ddl.js` | `node scripts\u002Faudit\u002Fgenerate_templated_ddl.js --env dev --db MyDB` | `schemas\u002Fpublic\u002FProcedures\u002F*.sql`, `Tables\u002F*.sql` (per-object) | Procedure-level grep |\n\n### Output structure\n```\ndatabase\u002Fpostgresql\u002Fdev\u002F\u003Cserver>\u002F\u003Cdatabase>\u002F\n    schemas\u002F\n        public.sql                          # monolithic pg_dump\n        public\u002F\n            Procedures\u002F\n                AddApplicant__ed99d064c842.sql\n                GetApplicant__9a46e1f5494b.sql\n                ...\n            Tables\u002F\n                Applicant__\u003Chash>.sql\n                ...\n            Functions\u002F\n            Comments\u002F\n            Grants\u002F\n    simple_ddl\u002F\n        public\u002F\n            table_Applicant.sql\n            table_Hospital.sql\n            ...\n```\n\n### Multi-target export\n```bash\n# Export all targets defined in config\u002Ftargets.yaml\nnode scripts\u002Faudit\u002Fexport_all.js\n```\n\n### Configuration\nTargets are defined in `config\u002Ftargets.yaml`:\n```yaml\ntargets:\n  - name: QA\n    host: ${DB_HOST_QA}\n    databases: [MyDB_QA, OtherDB_QA]\n  - name: DEV\n    host: ${DB_HOST_DEV}\n    databases: [MyDB_DEV]\n```\n\n## Refresh Workflow\n\nBefore a code review, always refresh snapshots:\n```bash\n# 1. Monolithic schema dump\nnode scripts\u002Faudit\u002Fexport_schema.js --env dev --db myapp_dev\n\n# 2. Per-table DDLs\nnode scripts\u002Faudit\u002Fgenerate_simple_ddl.js --env dev --db myapp_dev\n\n# 3. Per-object split files (Procedures\u002F, Tables\u002F, etc.)\nnode scripts\u002Faudit\u002Fgenerate_templated_ddl.js --env dev --db myapp_dev\n```\n\n## When to Use\n\n- Before every code review (refresh from live database)\n- After every deployment (capture post-deployment state)\n- When onboarding to a new database (initial snapshot)\n\n## Where We Used It\n\n- **DA-102**: Refreshed all 3 layers to verify column renames and procedure\n  updates were applied in DEV. Grep of refreshed split files confirmed\n  0 old misspelled column references across all 87 procedures.\n- **All tickets**: Initial schema discovery and procedure analysis\n\n## Gotchas\n\n- `generate_templated_ddl.js` **deletes** the monolithic `public.sql` if\n  `clean_schema_root` is enabled -- run `export_schema.js` again after it\n- Simple DDL only exports **table structures** (no procedures, views, etc.)\n- File hashes in names (e.g., `__ed99d064c842`) change when the object\n  definition changes -- git will show a delete + create, not a rename\n- VNET-blocked servers will fail silently or timeout -- always check output\n\n---\n\n*Category: Tooling | Origin: All tickets*\n",{"name":5,"metadata":24,"description":7},{"original-index":25,"short-description":7},12,"master","b4414608cd5a3f87d1525b518f1c6add8363540d","skills\u002Fddl-export-snapshot-management",6,"https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato","https:\u002F\u002Fwww.dataqbs.com\u002Foctorato","https:\u002F\u002Fgithub.com\u002FCarlosCaPe","www.dataqbs.com"," AI-powered data engineering\r\n& consulting\r\n\r\nWe build data platforms that turn complexity into clarity — from cloud architecture and ETL pipelines to AI-driven","2026-11-14 00:21:00",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add CarlosCaPe\u002Foctorato --skill ddl-export-snapshot-management",{"tool":42,"command":43},"bunx","bunx skills add CarlosCaPe\u002Foctorato --skill ddl-export-snapshot-management",{"tool":45,"command":46},"pnpm","pnpm dlx skills add CarlosCaPe\u002Foctorato --skill ddl-export-snapshot-management","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fddl-export-snapshot-management\u002FSKILL.md",true,[50],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"skill.json","REFERENCE","参考文档",161,"https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fddl-export-snapshot-management\u002Fskill.json",[57,66,74,81,89,97],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":61,"licenseFileUrl":62,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M74EVAA4A4B4AKR5TT732GP4","yeet","Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).","Apache-2.0","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fyeet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":61,"licenseFileUrl":70,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M74EV4WMRDKP2NQS4YWR8PXH","wrangler","Cloudflare Workers CLI for deploying, developing, and managing Workers, KV, R2, D1, Vectorize, Hyperdrive, Workers AI, Containers, Queues, Workflows, Pipelines, and Secrets Store. Load before running wrangler commands to ensure correct syntax and best practices. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fwrangler\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fwrangler\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M74EV05MHTXKEXD4B2QJEYTF","workspace-skill-discovery","Discover and include ALL skills across the workspace — not just global ones. Use at the start of every session or when the user asks about available skills. Ensures project-level skills (under .claude\u002Fskills\u002F or skills\u002F in any repo) are never missed.","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fworkspace-skill-discovery\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":61,"licenseFileUrl":85,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M74ETV78525B4VP2F28Z6NRD","workers-best-practices","Reviews and authors Cloudflare Workers code against production best practices. Load when writing new Workers, reviewing Worker code, configuring wrangler.jsonc, or checking for common Workers anti-patterns (streaming, floating promises, global state, secrets, bindings, observability). Biases towards retrieval from Cloudflare docs over pre-trained knowledge.","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fworkers-best-practices\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fworkers-best-practices\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":61,"licenseFileUrl":93,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M74ETR75NF67WGVEN7288ACV","winui-app","Create, build and design WinUI 3 desktop apps with C# and the Windows App SDK following Microsoft's official guidance and CommunityToolkit. Covers XAML, navigation, theming, accessibility and deployment.","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fwinui-app\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fwinui-app\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M74ETJFRNPPNSQZ36C6HD6CW","windows-brain-script-portability","Scripts in ~\u002F.claude\u002Fscripts\u002F that run on a Windows brain: use the python3.cmd shim and not bare python3, and reconfigure stdout to UTF-8 if you print symbols. Use it when writing a brain script or triaging a Windows-only crash.","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fwindows-brain-script-portability\u002FSKILL.md",[],[]]