[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C4Y2QWSAXM4QMZT7B148R7":3,"skill-same:01M6C4Y2QWSAXM4QMZT7B148R7":58},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":17,"categories":18,"keywords":29,"publishedAt":32,"linkOnly":33,"markdownContent":34,"markdownBody":34,"frontMatter":35,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":15,"repositoryHtmlUrl":39,"repositoryHomepageUrl":40,"ownerHtmlUrl":41,"ownerBlogUrl":42,"ownerDescription":7,"updatedAt":43,"install":44,"resources":57},"01M6C4Y2QWSAXM4QMZT7B148R7","content-ordering","内容排序与编排",null,"","joshribakoff\u002Ffightingwithai.com","joshribakoff","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F4021306?v=4","01M6C4XRSWK3RV2R7FF1CH2FGA","Josh Ribakoff","01M6C4XRYAPRF3PM6E2VY4MNXM",0,"MIT","https:\u002F\u002Fgithub.com\u002Fjoshribakoff\u002Ffightingwithai.com\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcontent-ordering\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8C55A3R2M9C8CAKG3W16HTA","内容创作者","PROFESSION","适用职业",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8CA3WT74BY17JY9YCJY42FJ","创意写作与内容编排","SCENARIO","使用场景",[30,31],"content","content ordering","2026-11-10 10:12:30",false,"# Content Collections & Ordering\n\n## Overview\n\nContent is organized into collections in `src\u002Fcontent\u002F`. The single source of truth for collection order is `COLLECTION_NAMES` in `src\u002Futils\u002Fcollections-config.ts`.\n\n| Collection | Path | Purpose |\n|------------|------|---------|\n| Concepts | `src\u002Fcontent\u002Fconcepts\u002F` | Foundational knowledge for AI-assisted work |\n| Prompt Engineering | `src\u002Fcontent\u002Fprompt-engineering\u002F` | How you write and structure prompts |\n| Context Engineering | `src\u002Fcontent\u002Fcontext-engineering\u002F` | What info AI has access to and when |\n| Workflow & Guardrails | `src\u002Fcontent\u002Fworkflow-guardrails\u002F` | How you guide AI through a task |\n| Failure Modes | `src\u002Fcontent\u002Ffailure-modes\u002F` | What goes wrong |\n| Tools | `src\u002Fcontent\u002Ftools\u002F` | AI coding assistants |\n\n## Ordering: Linked List via `dependsOn`\n\nInstead of numerical ordering (`order: 1, 2, 3`), content uses a **linked list** approach where each item points to its prerequisite.\n\n### Schema\n\n```typescript\n\u002F\u002F src\u002Fcontent\u002Fconfig.ts\nschema: z.object({\n  title: z.string(),\n  dependsOn: z.string().optional(), \u002F\u002F slug of prerequisite\n})\n```\n\n### Example Chain\n\n```yaml\n# large-language-models.md (HEAD - no dependsOn)\n---\ntitle: Large Language Models\n---\n\n# context.md\n---\ntitle: Context\ndependsOn: large-language-models\n---\n\n# tools.md\n---\ntitle: Tools\ndependsOn: context\n---\n```\n\n**Result:** LLMs → Context → Tools\n\n### Why Linked Lists?\n\n1. **Insert anywhere** - Add new content by pointing to predecessor, update successor\n2. **No renumbering** - Unlike `order: 1, 2, 3` where inserting means updating all subsequent items\n3. **Semantic** - `dependsOn` documents prerequisites, not just position\n\n## Sorting Implementation\n\nThe sorting logic lives in `src\u002Futils\u002FsortByDependency.ts`:\n\n```typescript\nimport { sortCollectionByDependency } from '..\u002Futils\u002FsortByDependency';\n\nconst concepts = sortCollectionByDependency(await getCollection(\"concepts\"));\n```\n\n**Algorithm:** Topological sort - finds items with no `dependsOn` (heads), then walks the chain.\n\n## Adding New Content\n\n1. Create the markdown file in the appropriate collection folder\n2. Set `dependsOn` to the slug of what should come before it\n3. If inserting between A and B: set new item's `dependsOn` to A, update B's `dependsOn` to new item\n\n## Adding New Collections\n\nTo add a new collection:\n\n1. Create the directory: `src\u002Fcontent\u002Fnew-collection\u002F`\n2. Add to `src\u002Fcontent\u002Fconfig.ts` schema\n3. Add to `COLLECTION_NAMES` array in `src\u002Futils\u002Fcollections-config.ts` (this controls order)\n4. Add to `COLLECTION_CONFIG` in the same file (display name, description, sort method)\n5. Add to `AnyCollectionEntry` type in `src\u002Futils\u002Fcollections.ts`\n\nEverything else (sidebar, pages, navigation) will automatically pick up the new collection.\n\n## Tests\n\nRun `npm test` - the sorting logic has 22 tests covering:\n- Empty\u002Fsingle items\n- Simple chains\n- Multiple independent chains\n- Missing dependencies (treated as heads)\n- Cycle handling\n- Deterministic ordering\n\n## Files\n\n| File | Purpose |\n|------|---------|\n| `src\u002Fcontent\u002Fconfig.ts` | Schema definitions |\n| `src\u002Futils\u002Fcollections-config.ts` | Collection names, order, and metadata |\n| `src\u002Futils\u002Fcollections.ts` | Astro integration and fetching |\n| `src\u002Futils\u002FsortByDependency.ts` | Sorting utility |\n| `src\u002Futils\u002FsortByDependency.test.ts` | Test suite |\n| `src\u002Flayouts\u002FLayout.astro` | Uses sorting for nav |\n",{},"main","456b6e5999d9613b2065544f7789689d31742769",".claude\u002Fskills\u002Fcontent-ordering","https:\u002F\u002Fgithub.com\u002Fjoshribakoff\u002Ffightingwithai.com","https:\u002F\u002Ffightingwithai.vercel.app","https:\u002F\u002Fgithub.com\u002Fjoshribakoff","joshribakoff.com","2026-01-22 14:44:35",{"source":9,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add joshribakoff\u002Ffightingwithai.com --skill content-ordering",{"tool":50,"command":51},"bunx","bunx skills add joshribakoff\u002Ffightingwithai.com --skill content-ordering",{"tool":53,"command":54},"pnpm","pnpm dlx skills add joshribakoff\u002Ffightingwithai.com --skill content-ordering","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjoshribakoff\u002Ffightingwithai.com\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcontent-ordering\u002FSKILL.md",true,[],[59,73,88,102,115,131],{"skillNo":60,"name":61,"nameZh":62,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":63,"categories":64,"keywords":71,"publishedAt":32},"01M6C4Y9B23N3BZYDHRRVW13PF","simple-commands","简易命令执行","https:\u002F\u002Fgithub.com\u002Fjoshribakoff\u002Ffightingwithai.com\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsimple-commands\u002FSKILL.md",[65,68],{"categoryNo":66,"categoryName":67,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BS5011KJDVSRXG1DC4P666","普通用户",{"categoryNo":69,"categoryName":70,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BSYDSNXQT2W2GMZGF0ZHH4","示例与演示技能",[72],"simple commands",{"skillNo":74,"name":75,"nameZh":76,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":77,"categories":78,"keywords":85,"publishedAt":32},"01M6C4Y7XQM8QNRMDDFXTDMW7P","meta-skill","元技能管理","https:\u002F\u002Fgithub.com\u002Fjoshribakoff\u002Ffightingwithai.com\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmeta-skill\u002FSKILL.md",[79,82],{"categoryNo":80,"categoryName":81,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BRN0CV1NMDZ5TEJX1GVM29","插件与技能管理",{"categoryNo":83,"categoryName":84,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师",[86,87],"Meta","meta skill",{"skillNo":89,"name":90,"nameZh":91,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":92,"categories":93,"keywords":100,"publishedAt":32},"01M6C4Y65GQJC86RRJN64NZ4R5","magic-links","魔法链接认证","https:\u002F\u002Fgithub.com\u002Fjoshribakoff\u002Ffightingwithai.com\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmagic-links\u002FSKILL.md",[94,97],{"categoryNo":95,"categoryName":96,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师",{"categoryNo":98,"categoryName":99,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BTFDX7M21YT75733H52N36","身份与访问管理",[101],"magic links",{"skillNo":103,"name":104,"nameZh":105,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":106,"categories":107,"keywords":114,"publishedAt":32},"01M6C4Y508MC06FWACP82JNYMN","copywriting","营销文案撰写","https:\u002F\u002Fgithub.com\u002Fjoshribakoff\u002Ffightingwithai.com\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcopywriting\u002FSKILL.md",[108,111],{"categoryNo":109,"categoryName":110,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BQ6TMD126QYYTZVWJTVKAT","商务写作",{"categoryNo":112,"categoryName":113,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQGD6C0J544QTJ9R38Z7ZG","营销专员",[104],{"skillNo":116,"name":117,"nameZh":118,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":119,"categories":120,"keywords":127,"publishedAt":32},"01M6C4Y0W01TCYVVFE4ZSQ8K02","code-cleanup","代码清理与重构","https:\u002F\u002Fgithub.com\u002Fjoshribakoff\u002Ffightingwithai.com\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcode-cleanup\u002FSKILL.md",[121,124],{"categoryNo":122,"categoryName":123,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":125,"categoryName":126,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BT7QVANT4709358VEJK53E","代码实现",[128,129,130],"cleanup","code","code cleanup",{"skillNo":132,"name":133,"nameZh":134,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":135,"categories":136,"keywords":141,"publishedAt":32},"01M6C4XYDC6W16Y6KTY347S6ZC","astro-islands","Astro Islands 交互组件开发","https:\u002F\u002Fgithub.com\u002Fjoshribakoff\u002Ffightingwithai.com\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fastro-islands\u002FSKILL.md",[137,138],{"categoryNo":122,"categoryName":123,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":139,"categoryName":140,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现",[142,143],"astro","astro islands"]