[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74E4V8QJY8N60F808D041DP":3,"skill-same:01M74E4V8QJY8N60F808D041DP":55},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M74E4V8QJY8N60F808D041DP","schema-separation-orm-control",null,"Schema Separation for ORM\u002FScaffolding Control","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\u002Fschema-separation-orm-control\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: schema-separation-orm-control\ndescription: \"Schema Separation for ORM\u002FScaffolding Control\"\nmetadata:\n  short-description: \"Schema Separation for ORM\u002FScaffolding Control\"\n  original-index: 18\n---\n\n# Schema Separation for ORM\u002FScaffolding Control\n\n## What\n\nMoving internal database objects (partition children, helper tables, maintenance\nartifacts) into a separate schema so that ORM tools (Entity Framework, Npgsql,\nPrisma) only scaffold the intended application tables.\n\n## Why\n\nORMs like Entity Framework discover tables via `information_schema.tables`. If\npartition children (e.g., `AppointmentInfo_2024`, `AppointmentInfo_2025`) live in\nthe `public` schema alongside the parent table, EF will scaffold them as\nseparate entities -- creating confusion, compilation errors, and bloated models.\n\nMoving them to a `partitions` schema removes them from the ORM's discovery path\nwhile keeping them fully functional (PostgreSQL resolves partition routing\nregardless of schema).\n\n## How\n\n### Step 1: Create the target schema\n```sql\nCREATE SCHEMA IF NOT EXISTS partitions;\n```\n\n### Step 2: Move the partition children\n```sql\nALTER TABLE public.\"AppointmentInfo_2024\"\n    SET SCHEMA partitions;\n\nALTER TABLE public.\"AppointmentInfo_2025\"\n    SET SCHEMA partitions;\n```\n\n### Step 3: Verify partition routing still works\n```sql\n-- Insert should still route to the correct partition\nINSERT INTO public.\"AppointmentInfo\" (\"CreatedDate\", ...)\nVALUES ('2025-06-15', ...);\n\n-- Query should still find data across all partitions\nSELECT * FROM public.\"AppointmentInfo\"\nWHERE \"CreatedDate\" >= '2025-01-01';\n```\n\n### Step 4: Update EF scaffolding command\n```bash\n# Scaffold only public schema\ndotnet ef dbcontext scaffold ... --schema public\n```\n\n## Schema Candidates\n\n| Object Type | Move To | Reason |\n|---|---|---|\n| Partition children | `partitions` | Hide from ORM discovery |\n| Maintenance procedures | `maintenance` | Separate ops from app code |\n| Monitoring views | `monitoring` | Separate observability layer |\n| Audit triggers\u002Ffunctions | `audit` | Clean separation of concerns |\n\n## When to Use\n\n- After implementing table partitioning \n- When ORM scaffolding picks up unwanted objects\n- When separating operational concerns from application concerns\n\n## Where We Used It\n\n- ****: Moved partition children from `public` to `partitions` schema\n  so EF\u002FNpgsql scaffolding only discovers parent tables\n\n## References\n\n- [PostgreSQL Best Practices](..\u002FDOCUMENTS\u002FPostgreSQL_BestPractices_Azure.md)\n  -- see Audit Finding #8 (Everything in public schema) and\n  \"Database naming conventions\" (Schemas section)\n\n## Gotchas\n\n- `SET SCHEMA` acquires `AccessExclusiveLock` -- brief but blocking\n- Indexes, constraints, and triggers move with the table automatically\n- Foreign keys referencing the moved table remain valid (OID-based, not name-based)\n- Sequences do NOT automatically move -- check if any need to follow\n- Ensure the ORM connection's `search_path` does NOT include the new schema\n\n---\n\n*Category: Strategy | Origin: *\n","# Schema Separation for ORM\u002FScaffolding Control\n\n## What\n\nMoving internal database objects (partition children, helper tables, maintenance\nartifacts) into a separate schema so that ORM tools (Entity Framework, Npgsql,\nPrisma) only scaffold the intended application tables.\n\n## Why\n\nORMs like Entity Framework discover tables via `information_schema.tables`. If\npartition children (e.g., `AppointmentInfo_2024`, `AppointmentInfo_2025`) live in\nthe `public` schema alongside the parent table, EF will scaffold them as\nseparate entities -- creating confusion, compilation errors, and bloated models.\n\nMoving them to a `partitions` schema removes them from the ORM's discovery path\nwhile keeping them fully functional (PostgreSQL resolves partition routing\nregardless of schema).\n\n## How\n\n### Step 1: Create the target schema\n```sql\nCREATE SCHEMA IF NOT EXISTS partitions;\n```\n\n### Step 2: Move the partition children\n```sql\nALTER TABLE public.\"AppointmentInfo_2024\"\n    SET SCHEMA partitions;\n\nALTER TABLE public.\"AppointmentInfo_2025\"\n    SET SCHEMA partitions;\n```\n\n### Step 3: Verify partition routing still works\n```sql\n-- Insert should still route to the correct partition\nINSERT INTO public.\"AppointmentInfo\" (\"CreatedDate\", ...)\nVALUES ('2025-06-15', ...);\n\n-- Query should still find data across all partitions\nSELECT * FROM public.\"AppointmentInfo\"\nWHERE \"CreatedDate\" >= '2025-01-01';\n```\n\n### Step 4: Update EF scaffolding command\n```bash\n# Scaffold only public schema\ndotnet ef dbcontext scaffold ... --schema public\n```\n\n## Schema Candidates\n\n| Object Type | Move To | Reason |\n|---|---|---|\n| Partition children | `partitions` | Hide from ORM discovery |\n| Maintenance procedures | `maintenance` | Separate ops from app code |\n| Monitoring views | `monitoring` | Separate observability layer |\n| Audit triggers\u002Ffunctions | `audit` | Clean separation of concerns |\n\n## When to Use\n\n- After implementing table partitioning \n- When ORM scaffolding picks up unwanted objects\n- When separating operational concerns from application concerns\n\n## Where We Used It\n\n- ****: Moved partition children from `public` to `partitions` schema\n  so EF\u002FNpgsql scaffolding only discovers parent tables\n\n## References\n\n- [PostgreSQL Best Practices](..\u002FDOCUMENTS\u002FPostgreSQL_BestPractices_Azure.md)\n  -- see Audit Finding #8 (Everything in public schema) and\n  \"Database naming conventions\" (Schemas section)\n\n## Gotchas\n\n- `SET SCHEMA` acquires `AccessExclusiveLock` -- brief but blocking\n- Indexes, constraints, and triggers move with the table automatically\n- Foreign keys referencing the moved table remain valid (OID-based, not name-based)\n- Sequences do NOT automatically move -- check if any need to follow\n- Ensure the ORM connection's `search_path` does NOT include the new schema\n\n---\n\n*Category: Strategy | Origin: *\n",{"name":5,"metadata":24,"description":7},{"original-index":14,"short-description":7},"master","b4414608cd5a3f87d1525b518f1c6add8363540d","skills\u002Fschema-separation-orm-control",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":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add CarlosCaPe\u002Foctorato --skill schema-separation-orm-control",{"tool":41,"command":42},"bunx","bunx skills add CarlosCaPe\u002Foctorato --skill schema-separation-orm-control",{"tool":44,"command":45},"pnpm","pnpm dlx skills add CarlosCaPe\u002Foctorato --skill schema-separation-orm-control","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fschema-separation-orm-control\u002FSKILL.md",true,[49],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"skill.json","REFERENCE","参考文档",173,"https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fschema-separation-orm-control\u002Fskill.json",[56,65,73,80,88,96],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":60,"licenseFileUrl":61,"sourceHtmlUrl":62,"categories":63,"keywords":64,"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":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":60,"licenseFileUrl":69,"sourceHtmlUrl":70,"categories":71,"keywords":72,"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":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"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":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":60,"licenseFileUrl":84,"sourceHtmlUrl":85,"categories":86,"keywords":87,"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":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":60,"licenseFileUrl":92,"sourceHtmlUrl":93,"categories":94,"keywords":95,"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":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"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",[],[]]