[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75MEXMYR3BGG1M1B2TQA00G":3,"skill-same:01M75MEXMYR3BGG1M1B2TQA00G":44},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":14,"categories":15,"keywords":16,"publishedAt":17,"linkOnly":18,"markdownContent":19,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M75MEXMYR3BGG1M1B2TQA00G","authoring-skills-vs-mcp",null,"selamy-labs\u002Fagent-skills","selamy-labs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F287832944?v=4","01M75MDKJ0CKAM94KZ7TWQJM5Q","01M75MDKJNP3TATHAW1MX1FWM6",0,"MIT","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fauthoring-skills-vs-mcp\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: authoring-skills-vs-mcp\ndescription: Use when deciding whether a capability should be a SKILL or an MCP SERVER, and how to author either well. The axis is knowledge-vs-capability: would the agent READ this to know how, or CALL this to do it?\n---\n\n# Authoring: Skills vs MCP Servers\n\nTwo different ways to extend an agent, for two different things. Picking the wrong one is the most common waste: knowledge bloated into a server, or a real capability trapped in prose the model can only read, never call. This skill is the **decision axis** plus how to author each artifact. It **composes with** skill-creator \u002F `writing-skills` (authoring mechanics) and `mcp-builder` (server mechanics) — it covers the *choice between them*, which they don't.\n\n## 1. The decision axis (apply this first)\n- **SKILL = knowledge.** Methodology, convention, domain knowledge the model **reads into context** and then acts on with the tools it already has. There is nothing to \"call.\"\n- **MCP SERVER = capability.** An external system \u002F API \u002F DB \u002F service that needs **credentials and structured I\u002FO** — a **callable tool** the model invokes to *do* something and get a typed result back.\n\n**The test:** *\"Would the agent READ this to know how, or CALL this to do it?\"*\n- Read-to-know-how → **skill**. (e.g. \"how to model a REST resource\", \"how we review for regressions\".)\n- Call-to-do-it → **MCP**. (e.g. \"search this ticketing system\", \"write a DNS record\", \"query the metrics warehouse\".)\n\nTwo failure modes to reject:\n- **Don't MCP-ify knowledge.** A methodology doesn't become a server because it's important. It has no creds, no structured call — it's a skill.\n- **Don't trap a capability in prose.** A skill that says \"here's how to hit API X: curl this, parse that\" is a capability wearing a skill costume. Extract it into an MCP tool; leave at most a thin methodology skill behind.\n\nHybrids are real: keep the **methodology** as a skill and the **call** as an MCP (e.g. a \"research discipline\" skill beside a \"search the source\" MCP). Split along the read\u002Fcall line.\n\n## 2. How to author a SKILL\n- **Frontmatter**: `name` (kebab-case purpose), a `description` that says *when to use* (and when not) so it's discoverable cold.\n- **Progressive disclosure**: lead with the decision\u002Fthe rule; push detail and edge cases lower or into companion files.\n- **When-to-use \u002F when-not**: state both. A skill that never says when *not* to fire mis-activates.\n- **Examples + anti-patterns**: show the right call and the common wrong ones.\n- **Gold-bar, no slop**: a skill earns its place by changing behavior. If it restates what a capable model already does, don't ship it.\n\n## 3. How to author an MCP SERVER\n- **Tools & resources**: model each tool as one clear verb with a **typed input\u002Foutput schema**. Prefer a few sharp tools over one overloaded one.\n- **Structured I\u002FO**: return structured results, not prose blobs — the caller is a program path.\n- **Credentials stay out of the server body**: fetch them at call-time from a **secrets broker \u002F secret store**; never bake keys into the server or its config. Keys live in the broker, not the workload.\n- **Idempotency & errors**: make writes safe to retry; return typed errors the agent can branch on.\n- **Provenance \u002F security audit**: run the server through a **static skill\u002Ftool audit** (malicious-code + injection scan) before any agent adopts it.\n\n## 4. Gates and where it ships\nBoth artifacts clear the same publishing bar — gold-only utility, privacy\u002Fsecret scan, gated PR, public-first routing. That bar lives in **`skill-curation`**; apply it, don't restate it here.\n\n## When to use \u002F not\n- **Use** when classifying a capability\u002Fknowledge item, or deciding how to extend an agent.\n- **Not** for the line-by-line mechanics of writing a skill (skill-creator \u002F `writing-skills`) or wiring a server (`mcp-builder`) — this picks *which one*, then hands off.\n\n## Anti-patterns\n- Building an MCP server for a pure methodology (knowledge-as-a-server).\n- A skill that teaches the agent to hand-call an external API (capability-in-prose) instead of an MCP tool.\n- One mega-tool with an untyped grab-bag input.\n- Credentials embedded in the server instead of fetched from a broker at call-time.\n- Adopting a server with no provenance\u002Fsecurity audit.\n- Publishing either artifact with org traces, or on elegance instead of proven value.\n","# Authoring: Skills vs MCP Servers\n\nTwo different ways to extend an agent, for two different things. Picking the wrong one is the most common waste: knowledge bloated into a server, or a real capability trapped in prose the model can only read, never call. This skill is the **decision axis** plus how to author each artifact. It **composes with** skill-creator \u002F `writing-skills` (authoring mechanics) and `mcp-builder` (server mechanics) — it covers the *choice between them*, which they don't.\n\n## 1. The decision axis (apply this first)\n- **SKILL = knowledge.** Methodology, convention, domain knowledge the model **reads into context** and then acts on with the tools it already has. There is nothing to \"call.\"\n- **MCP SERVER = capability.** An external system \u002F API \u002F DB \u002F service that needs **credentials and structured I\u002FO** — a **callable tool** the model invokes to *do* something and get a typed result back.\n\n**The test:** *\"Would the agent READ this to know how, or CALL this to do it?\"*\n- Read-to-know-how → **skill**. (e.g. \"how to model a REST resource\", \"how we review for regressions\".)\n- Call-to-do-it → **MCP**. (e.g. \"search this ticketing system\", \"write a DNS record\", \"query the metrics warehouse\".)\n\nTwo failure modes to reject:\n- **Don't MCP-ify knowledge.** A methodology doesn't become a server because it's important. It has no creds, no structured call — it's a skill.\n- **Don't trap a capability in prose.** A skill that says \"here's how to hit API X: curl this, parse that\" is a capability wearing a skill costume. Extract it into an MCP tool; leave at most a thin methodology skill behind.\n\nHybrids are real: keep the **methodology** as a skill and the **call** as an MCP (e.g. a \"research discipline\" skill beside a \"search the source\" MCP). Split along the read\u002Fcall line.\n\n## 2. How to author a SKILL\n- **Frontmatter**: `name` (kebab-case purpose), a `description` that says *when to use* (and when not) so it's discoverable cold.\n- **Progressive disclosure**: lead with the decision\u002Fthe rule; push detail and edge cases lower or into companion files.\n- **When-to-use \u002F when-not**: state both. A skill that never says when *not* to fire mis-activates.\n- **Examples + anti-patterns**: show the right call and the common wrong ones.\n- **Gold-bar, no slop**: a skill earns its place by changing behavior. If it restates what a capable model already does, don't ship it.\n\n## 3. How to author an MCP SERVER\n- **Tools & resources**: model each tool as one clear verb with a **typed input\u002Foutput schema**. Prefer a few sharp tools over one overloaded one.\n- **Structured I\u002FO**: return structured results, not prose blobs — the caller is a program path.\n- **Credentials stay out of the server body**: fetch them at call-time from a **secrets broker \u002F secret store**; never bake keys into the server or its config. Keys live in the broker, not the workload.\n- **Idempotency & errors**: make writes safe to retry; return typed errors the agent can branch on.\n- **Provenance \u002F security audit**: run the server through a **static skill\u002Ftool audit** (malicious-code + injection scan) before any agent adopts it.\n\n## 4. Gates and where it ships\nBoth artifacts clear the same publishing bar — gold-only utility, privacy\u002Fsecret scan, gated PR, public-first routing. That bar lives in **`skill-curation`**; apply it, don't restate it here.\n\n## When to use \u002F not\n- **Use** when classifying a capability\u002Fknowledge item, or deciding how to extend an agent.\n- **Not** for the line-by-line mechanics of writing a skill (skill-creator \u002F `writing-skills`) or wiring a server (`mcp-builder`) — this picks *which one*, then hands off.\n\n## Anti-patterns\n- Building an MCP server for a pure methodology (knowledge-as-a-server).\n- A skill that teaches the agent to hand-call an external API (capability-in-prose) instead of an MCP tool.\n- One mega-tool with an untyped grab-bag input.\n- Credentials embedded in the server instead of fetched from a broker at call-time.\n- Adopting a server with no provenance\u002Fsecurity audit.\n- Publishing either artifact with org traces, or on elegance instead of proven value.\n",{},"main","54007b08157feb09e5bb9d7ff5ce4ddd21625dbf","skills\u002Fauthoring-skills-vs-mcp",3,"https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills","https:\u002F\u002Fselamy.dev","https:\u002F\u002Fgithub.com\u002Fselamy-labs","2026-11-15 03:50:58",{"source":7,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add selamy-labs\u002Fagent-skills --skill authoring-skills-vs-mcp",{"tool":36,"command":37},"bunx","bunx skills add selamy-labs\u002Fagent-skills --skill authoring-skills-vs-mcp",{"tool":39,"command":40},"pnpm","pnpm dlx skills add selamy-labs\u002Fagent-skills --skill authoring-skills-vs-mcp","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fauthoring-skills-vs-mcp\u002FSKILL.md",true,[],[45,52,59,66,72,79],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":17},"01M75MY70JMSNFHQX63G90SKZ7","silence-phrase","A seemingly normal skill.","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fsilence-phrase\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":17},"01M75MY5PKVKY60M8H2DFTW58C","selamy-bad-skill","This skill has a vendor prefix that should be rejected.","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fprefixed-name\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":17},"01M75MY1TKXCH6WYN9ET0W4T02","oversized-description","This is a very long description that contains way too many words and should be rejected by the validator because it exceeds the forty five word limit that is enforced by the naming lint checker which ensures skill descriptions stay concise and readable for humans and machines alike without unnecessary verbosity or padding","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Foversized-description\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":17},"01M75MY0SZ7EKT99NWJEJ8HKS2","missing-frontmatter","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fmissing-frontmatter\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":17},"01M75MXYMBREE6D7KRR87YM4DH","malicious-skill","A poisoned skill used only as a negative fixture for the security gate.","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fmalicious-skill\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":17},"01M75MXX2B7AC2QSSRRQQXTA0N","leaking-org-name","A skill about something.","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fleaking-org-name\u002FSKILL.md",[],[]]