[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74EPHB7PT153VHSAC64V80S":3,"skill-same:01M74EPHB7PT153VHSAC64V80S":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},"01M74EPHB7PT153VHSAC64V80S","table-normalization-1nf",null,"Table Normalization (1NF Violations)","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\u002Ftable-normalization-1nf\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: table-normalization-1nf\ndescription: \"Table Normalization (1NF Violations)\"\nmetadata:\n  short-description: \"Table Normalization (1NF Violations)\"\n  original-index: 22\n---\n\n# Table Normalization (1NF Violations)\n\n## What\n\nBreaking repeating column groups (e.g., `PreferredDate1`, `PreferredDate2`,\n`PreferredDate3`) into properly normalized child tables with foreign keys.\nThis resolves First Normal Form (1NF) violations.\n\n## Why\n\nRepeating columns create:\n- **Query complexity**: WHERE clauses need `OR` across N columns\n- **Schema rigidity**: adding a 4th preference requires ALTER TABLE\n- **NULL proliferation**: most rows only use 1-2 of N slots\n- **Index waste**: each column needs its own index for searchability\n\nA normalized child table (`ApplicantPreferredDates`) with one row per preference\neliminates all of these problems.\n\n## How\n\n### Step 1: Identify the repeating group\n```sql\n-- Columns like: PreferredDate1_Start, PreferredDate1_End,\n--               PreferredDate2_Start, PreferredDate2_End, ...\nSELECT column_name FROM information_schema.columns\nWHERE table_name = 'Applicant'\n  AND column_name LIKE 'Preferred%'\nORDER BY ordinal_position;\n```\n\n### Step 2: Create the child table\n```sql\nCREATE TABLE public.\"ApplicantPreferredDate\" (\n    \"Id\"            bigint GENERATED ALWAYS AS IDENTITY PRIMARY KEY,\n    \"ApplicantId\"   bigint NOT NULL\n        REFERENCES public.\"Applicant\"(\"ApplicantId\") ON DELETE CASCADE,\n    \"Preference\"    smallint NOT NULL CHECK (\"Preference\" BETWEEN 1 AND 3),\n    \"StartDate\"     timestamptz,\n    \"EndDate\"       timestamptz,\n    UNIQUE (\"ApplicantId\", \"Preference\")\n);\n```\n\n### Step 3: Migrate existing data\n```sql\nINSERT INTO public.\"ApplicantPreferredDate\"\n    (\"ApplicantId\", \"Preference\", \"StartDate\", \"EndDate\")\nSELECT \"ApplicantId\", 1, \"FirstPreferredSD\", \"FirstPreferredED\"\nFROM public.\"Applicant\"\nWHERE \"FirstPreferredSD\" IS NOT NULL\n\nUNION ALL\n\nSELECT \"ApplicantId\", 2, \"SecondPreferredSD\", \"SecondPreferredED\"\nFROM public.\"Applicant\"\nWHERE \"SecondPreferredSD\" IS NOT NULL\n\nUNION ALL\n\nSELECT \"ApplicantId\", 3, \"ThirdPreferredSD\", \"ThirdPreferredED\"\nFROM public.\"Applicant\"\nWHERE \"ThirdPreferredSD\" IS NOT NULL;\n```\n\n### Step 4: Update procedures to use child table\nReplace direct column references with JOINs or subqueries against the\nchild table.\n\n### Step 5: (Later) Drop the old columns\n```sql\n-- Only after app code is fully migrated\nALTER TABLE public.\"Applicant\"\n    DROP COLUMN \"FirstPreferredSD\",\n    DROP COLUMN \"FirstPreferredED\",\n    -- ... etc.\n```\n\n## When to Use\n\n- Tables with numbered\u002Fsuffixed column groups (Date1, Date2, Date3)\n- Tables with arrays stored as separate columns\n- After audit findings flag 1NF violations\n\n## Where We Used It\n\n- ****: Normalized Applicant preferred dates and preferred locations\n  from repeating columns into `ApplicantPreferredDate` and\n  `ApplicantPreferredLocation` child tables\n\n## Related Skills\n\n- **Skill #07** (Backward Compatibility) -- keep old columns during transition\n- **Skill #09** (Foreign Key Constraints) -- FK from child table to parent\n- **Skill #14** (Research Checklist) -- find all procedures referencing old columns\n\n## References\n\n- [PostgreSQL Best Practices](..\u002FDOCUMENTS\u002FPostgreSQL_BestPractices_Azure.md)\n  -- see \"Schema design and data types\" section\n\n## Gotchas\n\n- **Data migration is the hard part** -- handle NULLs, duplicates, and edge cases\n- Keep old columns during transition (backward compatibility, Skill #07)\n- Update ALL procedures that reference the old columns (Skill #14, #08)\n- The child table needs proper indexes (FK column, composite lookups)\n- Application code must be updated to INSERT into the child table instead\n  of the parent's repeating columns\n\n---\n\n*Category: DDL | Origin: *\n","# Table Normalization (1NF Violations)\n\n## What\n\nBreaking repeating column groups (e.g., `PreferredDate1`, `PreferredDate2`,\n`PreferredDate3`) into properly normalized child tables with foreign keys.\nThis resolves First Normal Form (1NF) violations.\n\n## Why\n\nRepeating columns create:\n- **Query complexity**: WHERE clauses need `OR` across N columns\n- **Schema rigidity**: adding a 4th preference requires ALTER TABLE\n- **NULL proliferation**: most rows only use 1-2 of N slots\n- **Index waste**: each column needs its own index for searchability\n\nA normalized child table (`ApplicantPreferredDates`) with one row per preference\neliminates all of these problems.\n\n## How\n\n### Step 1: Identify the repeating group\n```sql\n-- Columns like: PreferredDate1_Start, PreferredDate1_End,\n--               PreferredDate2_Start, PreferredDate2_End, ...\nSELECT column_name FROM information_schema.columns\nWHERE table_name = 'Applicant'\n  AND column_name LIKE 'Preferred%'\nORDER BY ordinal_position;\n```\n\n### Step 2: Create the child table\n```sql\nCREATE TABLE public.\"ApplicantPreferredDate\" (\n    \"Id\"            bigint GENERATED ALWAYS AS IDENTITY PRIMARY KEY,\n    \"ApplicantId\"   bigint NOT NULL\n        REFERENCES public.\"Applicant\"(\"ApplicantId\") ON DELETE CASCADE,\n    \"Preference\"    smallint NOT NULL CHECK (\"Preference\" BETWEEN 1 AND 3),\n    \"StartDate\"     timestamptz,\n    \"EndDate\"       timestamptz,\n    UNIQUE (\"ApplicantId\", \"Preference\")\n);\n```\n\n### Step 3: Migrate existing data\n```sql\nINSERT INTO public.\"ApplicantPreferredDate\"\n    (\"ApplicantId\", \"Preference\", \"StartDate\", \"EndDate\")\nSELECT \"ApplicantId\", 1, \"FirstPreferredSD\", \"FirstPreferredED\"\nFROM public.\"Applicant\"\nWHERE \"FirstPreferredSD\" IS NOT NULL\n\nUNION ALL\n\nSELECT \"ApplicantId\", 2, \"SecondPreferredSD\", \"SecondPreferredED\"\nFROM public.\"Applicant\"\nWHERE \"SecondPreferredSD\" IS NOT NULL\n\nUNION ALL\n\nSELECT \"ApplicantId\", 3, \"ThirdPreferredSD\", \"ThirdPreferredED\"\nFROM public.\"Applicant\"\nWHERE \"ThirdPreferredSD\" IS NOT NULL;\n```\n\n### Step 4: Update procedures to use child table\nReplace direct column references with JOINs or subqueries against the\nchild table.\n\n### Step 5: (Later) Drop the old columns\n```sql\n-- Only after app code is fully migrated\nALTER TABLE public.\"Applicant\"\n    DROP COLUMN \"FirstPreferredSD\",\n    DROP COLUMN \"FirstPreferredED\",\n    -- ... etc.\n```\n\n## When to Use\n\n- Tables with numbered\u002Fsuffixed column groups (Date1, Date2, Date3)\n- Tables with arrays stored as separate columns\n- After audit findings flag 1NF violations\n\n## Where We Used It\n\n- ****: Normalized Applicant preferred dates and preferred locations\n  from repeating columns into `ApplicantPreferredDate` and\n  `ApplicantPreferredLocation` child tables\n\n## Related Skills\n\n- **Skill #07** (Backward Compatibility) -- keep old columns during transition\n- **Skill #09** (Foreign Key Constraints) -- FK from child table to parent\n- **Skill #14** (Research Checklist) -- find all procedures referencing old columns\n\n## References\n\n- [PostgreSQL Best Practices](..\u002FDOCUMENTS\u002FPostgreSQL_BestPractices_Azure.md)\n  -- see \"Schema design and data types\" section\n\n## Gotchas\n\n- **Data migration is the hard part** -- handle NULLs, duplicates, and edge cases\n- Keep old columns during transition (backward compatibility, Skill #07)\n- Update ALL procedures that reference the old columns (Skill #14, #08)\n- The child table needs proper indexes (FK column, composite lookups)\n- Application code must be updated to INSERT into the child table instead\n  of the parent's repeating columns\n\n---\n\n*Category: DDL | Origin: *\n",{"name":5,"metadata":24,"description":7},{"original-index":25,"short-description":7},22,"master","b4414608cd5a3f87d1525b518f1c6add8363540d","skills\u002Ftable-normalization-1nf",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 table-normalization-1nf",{"tool":42,"command":43},"bunx","bunx skills add CarlosCaPe\u002Foctorato --skill table-normalization-1nf",{"tool":45,"command":46},"pnpm","pnpm dlx skills add CarlosCaPe\u002Foctorato --skill table-normalization-1nf","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Ftable-normalization-1nf\u002FSKILL.md",true,[50],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"skill.json","REFERENCE","参考文档",158,"https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Ftable-normalization-1nf\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",[],[]]