[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75MTM1WXMK17XVCKCC38RZM":3,"skill-same:01M75MTM1WXMK17XVCKCC38RZM":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},"01M75MTM1WXMK17XVCKCC38RZM","rest-resource-modeling",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\u002Frest-resource-modeling\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: rest-resource-modeling\ndescription: Use when designing or reviewing a REST\u002FHTTP API: resource names, paths, verbs, status codes, and the contract. Enforces Richardson Maturity Model Level 2 as the deliberate ceiling, plural single-word resource nouns, and schema-first OpenAPI.\n---\n\n# REST Resource Modeling\n\nA sharp, opinionated REST taste. This is a **focused complement** to a broader api-and-interface-design guide — it does not re-home that content; it is the specific, enforceable REST opinion set. Cross-reference the broader guide for non-REST interface concerns.\n\n## 1. Richardson Maturity Model Level 2 — the deliberate ceiling\nDesign to **RMM Level 2** and stop there on purpose:\n- **Resources + HTTP verbs + status codes, used honestly.**\n- `GET` is safe + cacheable (no side effects). `PUT`\u002F`DELETE` are idempotent. `POST` creates\u002Facts. `PATCH` partial-updates.\n- **Honest status codes:** 2xx success (201 + `Location` on create), 4xx client error (400\u002F401\u002F403\u002F404\u002F409\u002F422 meaningfully distinguished), 5xx server error. Never 200-with-an-error-body.\n- **Explicitly NOT Level 3 \u002F HATEOAS.** Hypermedia controls are ceremony for most product and internal APIs — cost without payoff. State this as a deliberate choice, not ignorance. (Same anti-ceremony judgment as preferring a plain build over a heavy one when the heavy one doesn't earn its complexity.) Adopt Level 3 only with a concrete reason (e.g. a true public hypermedia API with independent client evolution).\n\n## 2. Plural single-word resource nouns — the forcing function\nResources are **plural, single-word nouns.** Paths nest by ownership:\n```\nGET  \u002Fruns\nGET  \u002Fruns\u002F{id}\nGET  \u002Fruns\u002F{id}\u002Fjobs\nPOST \u002Fruns\u002F{id}\u002Fjobs\n```\nHard rules:\n- **NEVER verbs in paths.** `POST \u002FcreateRun` is wrong → `POST \u002Fruns`. The verb is the HTTP method.\n- **NEVER compound or hyphenated resource names.** `\u002Fworkflow-runs` is a smell with exactly two cures: (a) nest it under its parent — `\u002Fworkflows\u002F{id}\u002Fruns` — or (b) the domain model needs a **better single word**. Pick one; never ship the hyphen.\n- The **single-word constraint is intentional pressure** toward clean resource modeling — if you can't name it in one word, you don't yet understand the resource. (Like a tight module-file rule forcing cohesion: the constraint does the design work.)\n\n## 3. Schema-first OpenAPI is the contract\n- **The OpenAPI spec precedes the implementation.** Write the contract, then build to it.\n- **All clients consume the one contract** (generated types\u002Fclients, not hand-rolled).\n- **Contract tests walk every documented operation** — a method\u002Fpath\u002Fstatus mismatch between spec and server can never ship (this is the ratchet: an API regression is caught in CI, not in prod).\n\n## 4. Supporting conventions (brief, not encyclopedic)\n- **Consistent error shape** across every endpoint (e.g. `{error: {code, message, details}}`) — one shape, everywhere.\n- **Pagination + filtering**: pick one convention (cursor or limit\u002Foffset) and apply it uniformly to all collections.\n- **Versioning posture**: decide up front (URI `\u002Fv1` vs header); default to a major-version URI prefix for product APIs; never break a shipped contract silently.\n\n## When to use \u002F not\n- **Use** for any HTTP\u002FREST API design or review.\n- **Not** the right tool for RPC\u002FgRPC\u002Fevent-stream interfaces — different contracts; see the broader interface-design guide and the typed-RPC guidance.\n\n## Anti-patterns (the smells this skill kills)\n- Verbs in paths (`\u002FgetRuns`, `\u002Frun\u002Fcreate`).\n- Hyphenated\u002Fcompound resources (`\u002Fworkflow-runs`, `\u002Fuser-profiles`).\n- Singular collection nouns (`\u002Frun` for a list).\n- 200-with-error-body; wrong\u002Floose status codes.\n- Implementation shipped before (or diverging from) the OpenAPI spec.\n- Reaching for HATEOAS\u002FLevel 3 by default \"because it's more RESTful\".\n\n## Reference implementation\nA telemetry\u002Fadmin API was built to exactly this spec (schema-first OpenAPI, RMM L2, plural single-word resource paths) — use it as the worked example (consult the sanitized public reference). New services should scaffold schema-first and run a **plural-single-word-noun path lint** as a cheap CI check that ratchets the convention.\n","# REST Resource Modeling\n\nA sharp, opinionated REST taste. This is a **focused complement** to a broader api-and-interface-design guide — it does not re-home that content; it is the specific, enforceable REST opinion set. Cross-reference the broader guide for non-REST interface concerns.\n\n## 1. Richardson Maturity Model Level 2 — the deliberate ceiling\nDesign to **RMM Level 2** and stop there on purpose:\n- **Resources + HTTP verbs + status codes, used honestly.**\n- `GET` is safe + cacheable (no side effects). `PUT`\u002F`DELETE` are idempotent. `POST` creates\u002Facts. `PATCH` partial-updates.\n- **Honest status codes:** 2xx success (201 + `Location` on create), 4xx client error (400\u002F401\u002F403\u002F404\u002F409\u002F422 meaningfully distinguished), 5xx server error. Never 200-with-an-error-body.\n- **Explicitly NOT Level 3 \u002F HATEOAS.** Hypermedia controls are ceremony for most product and internal APIs — cost without payoff. State this as a deliberate choice, not ignorance. (Same anti-ceremony judgment as preferring a plain build over a heavy one when the heavy one doesn't earn its complexity.) Adopt Level 3 only with a concrete reason (e.g. a true public hypermedia API with independent client evolution).\n\n## 2. Plural single-word resource nouns — the forcing function\nResources are **plural, single-word nouns.** Paths nest by ownership:\n```\nGET  \u002Fruns\nGET  \u002Fruns\u002F{id}\nGET  \u002Fruns\u002F{id}\u002Fjobs\nPOST \u002Fruns\u002F{id}\u002Fjobs\n```\nHard rules:\n- **NEVER verbs in paths.** `POST \u002FcreateRun` is wrong → `POST \u002Fruns`. The verb is the HTTP method.\n- **NEVER compound or hyphenated resource names.** `\u002Fworkflow-runs` is a smell with exactly two cures: (a) nest it under its parent — `\u002Fworkflows\u002F{id}\u002Fruns` — or (b) the domain model needs a **better single word**. Pick one; never ship the hyphen.\n- The **single-word constraint is intentional pressure** toward clean resource modeling — if you can't name it in one word, you don't yet understand the resource. (Like a tight module-file rule forcing cohesion: the constraint does the design work.)\n\n## 3. Schema-first OpenAPI is the contract\n- **The OpenAPI spec precedes the implementation.** Write the contract, then build to it.\n- **All clients consume the one contract** (generated types\u002Fclients, not hand-rolled).\n- **Contract tests walk every documented operation** — a method\u002Fpath\u002Fstatus mismatch between spec and server can never ship (this is the ratchet: an API regression is caught in CI, not in prod).\n\n## 4. Supporting conventions (brief, not encyclopedic)\n- **Consistent error shape** across every endpoint (e.g. `{error: {code, message, details}}`) — one shape, everywhere.\n- **Pagination + filtering**: pick one convention (cursor or limit\u002Foffset) and apply it uniformly to all collections.\n- **Versioning posture**: decide up front (URI `\u002Fv1` vs header); default to a major-version URI prefix for product APIs; never break a shipped contract silently.\n\n## When to use \u002F not\n- **Use** for any HTTP\u002FREST API design or review.\n- **Not** the right tool for RPC\u002FgRPC\u002Fevent-stream interfaces — different contracts; see the broader interface-design guide and the typed-RPC guidance.\n\n## Anti-patterns (the smells this skill kills)\n- Verbs in paths (`\u002FgetRuns`, `\u002Frun\u002Fcreate`).\n- Hyphenated\u002Fcompound resources (`\u002Fworkflow-runs`, `\u002Fuser-profiles`).\n- Singular collection nouns (`\u002Frun` for a list).\n- 200-with-error-body; wrong\u002Floose status codes.\n- Implementation shipped before (or diverging from) the OpenAPI spec.\n- Reaching for HATEOAS\u002FLevel 3 by default \"because it's more RESTful\".\n\n## Reference implementation\nA telemetry\u002Fadmin API was built to exactly this spec (schema-first OpenAPI, RMM L2, plural single-word resource paths) — use it as the worked example (consult the sanitized public reference). New services should scaffold schema-first and run a **plural-single-word-noun path lint** as a cheap CI check that ratchets the convention.\n",{},"main","54007b08157feb09e5bb9d7ff5ce4ddd21625dbf","skills\u002Frest-resource-modeling",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 rest-resource-modeling",{"tool":36,"command":37},"bunx","bunx skills add selamy-labs\u002Fagent-skills --skill rest-resource-modeling",{"tool":39,"command":40},"pnpm","pnpm dlx skills add selamy-labs\u002Fagent-skills --skill rest-resource-modeling","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frest-resource-modeling\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",[],[]]