[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74AZKG5E409VB683R45JP4J":3,"skill-same:01M74AZKG5E409VB683R45JP4J":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},"01M74AZKG5E409VB683R45JP4J","content-deduplication-discipline",null,"Content Deduplication Discipline","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\u002Fcontent-deduplication-discipline\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: content-deduplication-discipline\ndescription: \"Content Deduplication Discipline\"\nmetadata:\n  short-description: \"Content Deduplication Discipline\"\n  original-index: 41\n---\n\n# Content Deduplication Discipline\n\n## What\n\nA practice for preventing and eliminating duplicate content within technical documents, ensuring each fact has exactly one authoritative location with references pointing to it rather than copies of it.\n\n## Why\n\nDuplicate content creates **maintenance nightmares**:\n\n- Update one copy, forget the others → contradictions\n- Reader finds conflicting versions → trust erosion\n- Document bloat → harder to navigate\n- Search results polluted → wrong instance edited\n\nThe **Single Source of Truth (SSOT)** principle applies to documents just as it does to databases: each fact should live in exactly one place.\n\n## Duplication Patterns\n\n| Pattern | Description | Risk Level |\n|---------|-------------|------------|\n| **Verbatim copy** | Exact same paragraph in 2+ places | 🔴 HIGH — guaranteed to diverge |\n| **Paraphrase copy** | Same information, different words | ⚠️ MEDIUM — subtle contradictions |\n| **Summary + detail** | Executive summary repeats detail section | ✅ LOW if summary clearly references source |\n| **Table + prose** | Same data in table and paragraph form | ⚠️ MEDIUM — update one, forget other |\n| **Cross-document** | Same content in multiple files | 🔴 HIGH — no linking mechanism |\n\n## How\n\n### Prevention: Write Once, Reference Elsewhere\n\n```markdown\n# WRONG: Duplicate the data\n## Section 2.5\nThere are 1,727 SPs across 22 databases.\n\n## Section 6.4\nThe 1,727 stored procedures across 22 databases require...\n\n## Executive Summary  \nWith 1,727 SPs spread across 22 databases...\n\n# RIGHT: Single source with references\n## Section 2.5.2 SP Inventory\n**Total: 1,727 SPs across 22 databases** (see table below)\n\n## Section 6.4\nThe SP inventory (§2.5.2: 1,727 SPs across 22 databases) requires...\n\n## Executive Summary\nThe SP inventory (§2.5.2) drives the migration complexity...\n```\n\n### Detection: Find Duplicates\n\n**Paragraph fingerprinting:**\n\n```javascript\nconst fs = require('fs');\nconst crypto = require('crypto');\n\nconst doc = fs.readFileSync('document.md', 'utf8');\nconst paragraphs = doc.split(\u002F\\n\\n+\u002F).filter(p => p.trim().length > 50);\n\nconst hashes = {};\nparagraphs.forEach((p, i) => {\n  \u002F\u002F Normalize: lowercase, collapse whitespace, remove punctuation\n  const normalized = p.toLowerCase().replace(\u002F\\s+\u002Fg, ' ').replace(\u002F[^\\w\\s]\u002Fg, '');\n  const hash = crypto.createHash('md5').update(normalized).digest('hex').slice(0, 8);\n  \n  if (hashes[hash]) {\n    console.log(`Duplicate found: \"${p.slice(0, 60)}...\"`);\n    console.log(`  First occurrence: paragraph ${hashes[hash]}`);\n    console.log(`  This occurrence: paragraph ${i + 1}`);\n  } else {\n    hashes[hash] = i + 1;\n  }\n});\n```\n\n**Grep for key phrases:**\n\n```bash\n# Find repeated key facts\ngrep -n \"1,727 SPs\" document.md\ngrep -n \"272 vCores\" document.md\ngrep -n \"\\$56.5K\" document.md\n\n# If count > 1, evaluate: reference or duplicate?\n```\n\n### Resolution: Consolidate Duplicates\n\nWhen duplicates are found:\n\n1. **Identify the authoritative location** — usually the most detailed occurrence\n2. **Keep that version** — ensure it's complete and accurate\n3. **Replace other occurrences** with references:\n   - Full reference: \"As documented in §2.5.2, there are 1,727 SPs...\"\n   - Inline reference: \"the SP inventory (§2.5.2)\"\n   - Parenthetical: \"1,727 SPs (§2.5.2)\"\n\n### Acceptable Duplication\n\nSome duplication is intentional and acceptable:\n\n| Scenario | Why Acceptable | Safeguard |\n|----------|----------------|-----------|\n| Executive Summary | Readers may only read summary | Note \"Details in §X.Y\" |\n| Table of Contents | Navigation aid | Auto-generate if possible |\n| Glossary definitions | Quick reference | Mark as \"canonical definition\" |\n| Repeated warnings | Safety-critical info | Use consistent boilerplate |\n\n## Deduplication Checklist\n\n```markdown\n## Before Publishing: Deduplication Audit\n\n### Key Facts Inventory\nList facts that appear in multiple locations:\n\n| Fact | Authoritative Location | Other Occurrences | Action |\n|------|----------------------|-------------------|--------|\n| SP count: 1,727 | §2.5.2 | §6.4, Exec Summary | Verify refs |\n| vCore count: 272 | §2.6.1.9 | §3.2, §6.1 | Verify refs |\n| Cost: $56.5K\u002Fmo | §2.6.1.9 | Exec Summary | Verify refs |\n\n### Search for Common Duplications\n- [ ] Numbers with units ($, GB, K, M)\n- [ ] Proper nouns (product names, tech names)\n- [ ] Conclusions (\"technically feasible\", \"not recommended\")\n- [ ] Status claims (\"confirmed\", \"complete\", \"pending\")\n```\n\n## When to Use\n\n- **During writing**: Before repeating a fact, check if it exists elsewhere\n- **After merging content**: Merged documents often duplicate\n- **Before publishing**: Full deduplication audit\n- **When document exceeds 1,000 lines**: Duplication becomes invisible\n\n## Anti-Patterns\n\n| Anti-Pattern | Problem | Solution |\n|--------------|---------|----------|\n| Copy-paste writing | Fastest way to duplicate | Reference instead of copy |\n| \"Just in case\" repetition | \"Readers might miss it\" | Trust your structure + TOC |\n| Template bloat | Same boilerplate in every section | Extract to shared reference |\n| Version accumulation | \"Old version\" kept alongside new | Delete old, keep only current |\n| Multi-author overlap | Two people write same section | Coordinate ownership |\n\n## Real-World Example\n\nFrom the Acme Corp TDD:\n\n**Observation:** The SP count \"1,727\" appears 20+ times throughout the document.\n\n**Assessment:**\n- §2.5.2 is the authoritative source (full table with per-database breakdown)\n- Executive Summary references \"1,727 SPs\" with context\n- §6.4 Roadmap references \"1,727\" when calculating wave sizes\n- §3.2 Cost Framework uses \"1,727\" in effort calculation\n\n**Verdict:** Acceptable duplication — each occurrence either:\n- References the source (§2.5.2)\n- Uses the number in a calculation specific to that section\n- Is in Executive Summary (intentional standalone)\n\n**Key insight:** The number itself isn't the problem; uncontrolled divergence is. \"1,727 SPs\" is safe because it won't change. \"⚠️ Partially covered\" duplicated in 6 table rows was a problem because each needed individual updates.\n\n## Related Skills\n\n- `38_document_semantic_coherence.md` — Coherence includes deduplication\n- `39_cross_reference_integrity.md` — References replace duplicates\n- `04_idempotent_sql_design.md` — Same principle: single source of truth\n","# Content Deduplication Discipline\n\n## What\n\nA practice for preventing and eliminating duplicate content within technical documents, ensuring each fact has exactly one authoritative location with references pointing to it rather than copies of it.\n\n## Why\n\nDuplicate content creates **maintenance nightmares**:\n\n- Update one copy, forget the others → contradictions\n- Reader finds conflicting versions → trust erosion\n- Document bloat → harder to navigate\n- Search results polluted → wrong instance edited\n\nThe **Single Source of Truth (SSOT)** principle applies to documents just as it does to databases: each fact should live in exactly one place.\n\n## Duplication Patterns\n\n| Pattern | Description | Risk Level |\n|---------|-------------|------------|\n| **Verbatim copy** | Exact same paragraph in 2+ places | 🔴 HIGH — guaranteed to diverge |\n| **Paraphrase copy** | Same information, different words | ⚠️ MEDIUM — subtle contradictions |\n| **Summary + detail** | Executive summary repeats detail section | ✅ LOW if summary clearly references source |\n| **Table + prose** | Same data in table and paragraph form | ⚠️ MEDIUM — update one, forget other |\n| **Cross-document** | Same content in multiple files | 🔴 HIGH — no linking mechanism |\n\n## How\n\n### Prevention: Write Once, Reference Elsewhere\n\n```markdown\n# WRONG: Duplicate the data\n## Section 2.5\nThere are 1,727 SPs across 22 databases.\n\n## Section 6.4\nThe 1,727 stored procedures across 22 databases require...\n\n## Executive Summary  \nWith 1,727 SPs spread across 22 databases...\n\n# RIGHT: Single source with references\n## Section 2.5.2 SP Inventory\n**Total: 1,727 SPs across 22 databases** (see table below)\n\n## Section 6.4\nThe SP inventory (§2.5.2: 1,727 SPs across 22 databases) requires...\n\n## Executive Summary\nThe SP inventory (§2.5.2) drives the migration complexity...\n```\n\n### Detection: Find Duplicates\n\n**Paragraph fingerprinting:**\n\n```javascript\nconst fs = require('fs');\nconst crypto = require('crypto');\n\nconst doc = fs.readFileSync('document.md', 'utf8');\nconst paragraphs = doc.split(\u002F\\n\\n+\u002F).filter(p => p.trim().length > 50);\n\nconst hashes = {};\nparagraphs.forEach((p, i) => {\n  \u002F\u002F Normalize: lowercase, collapse whitespace, remove punctuation\n  const normalized = p.toLowerCase().replace(\u002F\\s+\u002Fg, ' ').replace(\u002F[^\\w\\s]\u002Fg, '');\n  const hash = crypto.createHash('md5').update(normalized).digest('hex').slice(0, 8);\n  \n  if (hashes[hash]) {\n    console.log(`Duplicate found: \"${p.slice(0, 60)}...\"`);\n    console.log(`  First occurrence: paragraph ${hashes[hash]}`);\n    console.log(`  This occurrence: paragraph ${i + 1}`);\n  } else {\n    hashes[hash] = i + 1;\n  }\n});\n```\n\n**Grep for key phrases:**\n\n```bash\n# Find repeated key facts\ngrep -n \"1,727 SPs\" document.md\ngrep -n \"272 vCores\" document.md\ngrep -n \"\\$56.5K\" document.md\n\n# If count > 1, evaluate: reference or duplicate?\n```\n\n### Resolution: Consolidate Duplicates\n\nWhen duplicates are found:\n\n1. **Identify the authoritative location** — usually the most detailed occurrence\n2. **Keep that version** — ensure it's complete and accurate\n3. **Replace other occurrences** with references:\n   - Full reference: \"As documented in §2.5.2, there are 1,727 SPs...\"\n   - Inline reference: \"the SP inventory (§2.5.2)\"\n   - Parenthetical: \"1,727 SPs (§2.5.2)\"\n\n### Acceptable Duplication\n\nSome duplication is intentional and acceptable:\n\n| Scenario | Why Acceptable | Safeguard |\n|----------|----------------|-----------|\n| Executive Summary | Readers may only read summary | Note \"Details in §X.Y\" |\n| Table of Contents | Navigation aid | Auto-generate if possible |\n| Glossary definitions | Quick reference | Mark as \"canonical definition\" |\n| Repeated warnings | Safety-critical info | Use consistent boilerplate |\n\n## Deduplication Checklist\n\n```markdown\n## Before Publishing: Deduplication Audit\n\n### Key Facts Inventory\nList facts that appear in multiple locations:\n\n| Fact | Authoritative Location | Other Occurrences | Action |\n|------|----------------------|-------------------|--------|\n| SP count: 1,727 | §2.5.2 | §6.4, Exec Summary | Verify refs |\n| vCore count: 272 | §2.6.1.9 | §3.2, §6.1 | Verify refs |\n| Cost: $56.5K\u002Fmo | §2.6.1.9 | Exec Summary | Verify refs |\n\n### Search for Common Duplications\n- [ ] Numbers with units ($, GB, K, M)\n- [ ] Proper nouns (product names, tech names)\n- [ ] Conclusions (\"technically feasible\", \"not recommended\")\n- [ ] Status claims (\"confirmed\", \"complete\", \"pending\")\n```\n\n## When to Use\n\n- **During writing**: Before repeating a fact, check if it exists elsewhere\n- **After merging content**: Merged documents often duplicate\n- **Before publishing**: Full deduplication audit\n- **When document exceeds 1,000 lines**: Duplication becomes invisible\n\n## Anti-Patterns\n\n| Anti-Pattern | Problem | Solution |\n|--------------|---------|----------|\n| Copy-paste writing | Fastest way to duplicate | Reference instead of copy |\n| \"Just in case\" repetition | \"Readers might miss it\" | Trust your structure + TOC |\n| Template bloat | Same boilerplate in every section | Extract to shared reference |\n| Version accumulation | \"Old version\" kept alongside new | Delete old, keep only current |\n| Multi-author overlap | Two people write same section | Coordinate ownership |\n\n## Real-World Example\n\nFrom the Acme Corp TDD:\n\n**Observation:** The SP count \"1,727\" appears 20+ times throughout the document.\n\n**Assessment:**\n- §2.5.2 is the authoritative source (full table with per-database breakdown)\n- Executive Summary references \"1,727 SPs\" with context\n- §6.4 Roadmap references \"1,727\" when calculating wave sizes\n- §3.2 Cost Framework uses \"1,727\" in effort calculation\n\n**Verdict:** Acceptable duplication — each occurrence either:\n- References the source (§2.5.2)\n- Uses the number in a calculation specific to that section\n- Is in Executive Summary (intentional standalone)\n\n**Key insight:** The number itself isn't the problem; uncontrolled divergence is. \"1,727 SPs\" is safe because it won't change. \"⚠️ Partially covered\" duplicated in 6 table rows was a problem because each needed individual updates.\n\n## Related Skills\n\n- `38_document_semantic_coherence.md` — Coherence includes deduplication\n- `39_cross_reference_integrity.md` — References replace duplicates\n- `04_idempotent_sql_design.md` — Same principle: single source of truth\n",{"name":5,"metadata":24,"description":7},{"original-index":25,"short-description":7},41,"master","b4414608cd5a3f87d1525b518f1c6add8363540d","skills\u002Fcontent-deduplication-discipline",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 content-deduplication-discipline",{"tool":42,"command":43},"bunx","bunx skills add CarlosCaPe\u002Foctorato --skill content-deduplication-discipline",{"tool":45,"command":46},"pnpm","pnpm dlx skills add CarlosCaPe\u002Foctorato --skill content-deduplication-discipline","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fcontent-deduplication-discipline\u002FSKILL.md",true,[50],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"skill.json","REFERENCE","参考文档",163,"https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fcontent-deduplication-discipline\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",[],[]]