[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C99N41HHC7TP8ARX8FV552":3,"skill-same:01M7C99N41HHC7TP8ARX8FV552":62},{"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":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7C99N41HHC7TP8ARX8FV552","api-design-edho-ferdian",null,"Design and evolve API contracts: REST resource naming, status codes, pagination, versioning, and one authoritative OpenAPI\u002Fschema so client and server never drift. Use for \"desain API untuk fitur ini\", \"struktur endpoint yang baik\", \"API contract berubah\", \"REST vs apa\", or a new API surface.","edhoferdian\u002FEEF","edhoferdian","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F64404158?v=4","01M7C8538ZVVZWZEN1AW2MQXCV","Edho F","01M7C8539NS56BMJ4GXN8A47TQ",22,"MIT","https:\u002F\u002Fgithub.com\u002Fedhoferdian\u002FEEF\u002Fblob\u002Fmain\u002Fskills\u002Fapi-design-edho-ferdian\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: api-design-edho-ferdian\ndescription: >-\n  Design and evolve API contracts: REST resource naming, status codes,\n  pagination, versioning, and one authoritative OpenAPI\u002Fschema so client and\n  server never drift. Use for \"desain API untuk fitur ini\", \"struktur\n  endpoint yang baik\", \"API contract berubah\", \"REST vs apa\", or a new API\n  surface.\nmetadata:\n  last_reviewed: \"2026-09-11\"\n---\n\n# API Design — Edho Ferdian Mode (Skill Edition)\n\nYou are designing the **boundary** between a client and a server (or between\ntwo services) before — or while — code gets written on either side. This is a\nnarrower, more concrete altitude than architecture: you are not deciding\nmonolith vs. microservices, you are deciding what `GET \u002Forders\u002F:id` returns,\nwhat status code a duplicate email produces, and how a v1 client survives a\nv2 rollout. Two source skills converge here because they are the same use\ncase seen from two ends: `api-design` covers what a good endpoint looks like\nin isolation; `contract-first` covers how a client and a server stay in sync\nabout that endpoint over time. A contract without good shape conventions is\nconsistent but ugly; good shape conventions without a single authoritative\nartifact drift apart the moment two people touch the boundary independently.\n\n## Where this sits relative to the rest of the ecosystem\n\n- **`system-design-edho-ferdian`** decides broader architectural trade-offs —\n  monolith vs. microservices, sync vs. event-driven, which datastore. This\n  skill sits one level down: given that an API boundary needs to exist,\n  *design that boundary's shape and evolution discipline*. If the question is\n  \"should this even be a REST API vs. an event stream,\" hand off upward to\n  `system-design-edho-ferdian`; if it's \"how should this REST endpoint be\n  shaped,\" stay here.\n- **`code-review-edho-ferdian`** (Domain 2 Security, Domain 3 Performance)\n  reviews an endpoint that already exists in code. This skill is upstream of\n  that — a well-designed contract prevents many findings that domain would\n  otherwise have to catch after the fact. See\n  `references\u002Frest-conventions.md`'s cross-reference table for exactly which\n  review codes map to which design-time checklist items, so the two skills\n  don't restate each other. The same relationship holds for\n  **Domain 4 — Blueprint\u002FSpec Consistency**: the API contract designed here\n  (shape decisions in `references\u002Frest-conventions.md`, plus the versioning\n  and breaking-change policy in `references\u002Fcontract-evolution.md`) is the\n  authoritative reference `code-review-edho-ferdian` checks an implementation\n  against when it asks \"does the code match the agreed contract?\" — that\n  domain doesn't redefine contract correctness, it cites this one.\n- **`spec-mining-edho-ferdian`** and **`dev-kickoff-edho-ferdian`'s Phase 0\n  intake** can consume an OpenAPI\u002Fschema file produced by following this\n  skill's `references\u002Fcontract-evolution.md` as a legitimate `BEHAVIOR_SPEC`-\n  role input — a contract artifact already states requests, responses, and\n  error shapes as ground truth, so it doesn't need to be mined from code.\n\n## Workflow\n\n```\nStep 1  Decide REST shape          → references\u002Frest-conventions.md\nStep 1b Decide MCP tool surface (if applicable) → references\u002Fmcp-tool-surface.md\nStep 2  Decide the contract discipline → references\u002Fcontract-evolution.md\nStep 3  Reflection gate             → below\n```\n\n### Step 1 — REST shape\n\nResource naming, HTTP status-code semantics, response envelope and error\nshape, pagination strategy (offset vs. cursor, with the concurrent-write\ncaveat this ecosystem's database lens already covers), filter\u002Fsort\u002Fsparse-\nfieldset conventions, rate-limiting tiers and headers, versioning and\n`Sunset` policy, and the pre-ship checklist cross-referenced against\n`code-review-edho-ferdian`'s SEC\u002FCQ codes. Full detail:\n`references\u002Frest-conventions.md`.\n\n### Step 2 — Contract discipline\n\nOne authoritative contract artifact per boundary, designing from consumer\nneeds rather than the database schema outward, generating types\u002Fclients from\nthat artifact instead of hand-syncing them, the step-by-step protocol for\nchanging a contract without breaking consumers, and named anti-patterns\n(including treating compile-time types as the only proof of contract\ncorrectness). Full detail: `references\u002Fcontract-evolution.md`.\n\n### Step 1b — MCP tool surfaces (when the boundary is a model, not a human client)\n\nWhen the \"client\" on the other side of this boundary is an LLM invoking tools\nrather than a human-facing app, the REST conventions above still apply but\nneed model-consumer-specific additions — schema-first tool definitions,\ndescription-as-contract, idempotency, and transport choice. Full detail:\n`references\u002Fmcp-tool-surface.md`.\n\n### Step 3 — Reflection gate (mandatory before presenting a new or changed API design)\n\n```\nGate A1: Every endpoint's status codes cover success + the realistic error\n         cases, not just 200\u002F404\u002F500?                              [PASS\u002FFAIL]\nGate A2: Pagination strategy has a stated reason (dataset size, consumer\n         type), not a default picked without thought?               [.]\nGate A3: Exactly one contract artifact is named as authoritative for this\n         boundary — no wiki\u002Fmock\u002Ftype-file left to drift separately? [.]\nGate A4: A breaking change (if any) has a stated migration\u002Fversioning path,\n         not a silent field repurpose?                               [.]\nGate A5: This design was checked against consumer jobs (what the client\n         actually needs to render\u002Fdo), not just the database shape?  [.]\n```\n\nAny FAIL → fix before presenting, or state explicitly why (e.g. \"no\nversioning path needed — this is a new boundary with zero existing\nconsumers\").\n\n## Language routing (fixed — see skill-authoring-edho-ferdian's canonical contract)\n\n- Communication with the user → Bahasa Indonesia.\n- The contract artifact itself (OpenAPI\u002Fschema\u002Fproto), code samples, and any\n  ADR-style write-up → English (machine-facing and cross-tool). Full\n  contract: `skill-authoring-edho-ferdian` §7.\n\n## Global rules\n\n1. **Design-time altitude only.** This skill designs or evolves a boundary\n   before\u002Fwhile it's built. Reviewing an endpoint that's already shipped\n   belongs to `code-review-edho-ferdian`.\n2. **One contract, one source of truth.** Never let a wiki page, a mock file,\n   a hand-written client type, and the server's actual response shape\n   diverge independently — pick one artifact and generate everything else\n   from it.\n3. **Design from consumer jobs outward**, not from the database schema\n   outward — a raw `SELECT *` row is not a contract.\n4. **State the pagination and versioning reasoning**, even briefly — a\n   default picked without a reason is the same failure mode\n   `system-design-edho-ferdian` flags for undecided non-functional targets.\n5. **Cross-reference, don't duplicate.** Security and code-quality checks\n   that `code-review-edho-ferdian` already owns are referenced by code, not\n   restated here.\n","# API Design — Edho Ferdian Mode (Skill Edition)\n\nYou are designing the **boundary** between a client and a server (or between\ntwo services) before — or while — code gets written on either side. This is a\nnarrower, more concrete altitude than architecture: you are not deciding\nmonolith vs. microservices, you are deciding what `GET \u002Forders\u002F:id` returns,\nwhat status code a duplicate email produces, and how a v1 client survives a\nv2 rollout. Two source skills converge here because they are the same use\ncase seen from two ends: `api-design` covers what a good endpoint looks like\nin isolation; `contract-first` covers how a client and a server stay in sync\nabout that endpoint over time. A contract without good shape conventions is\nconsistent but ugly; good shape conventions without a single authoritative\nartifact drift apart the moment two people touch the boundary independently.\n\n## Where this sits relative to the rest of the ecosystem\n\n- **`system-design-edho-ferdian`** decides broader architectural trade-offs —\n  monolith vs. microservices, sync vs. event-driven, which datastore. This\n  skill sits one level down: given that an API boundary needs to exist,\n  *design that boundary's shape and evolution discipline*. If the question is\n  \"should this even be a REST API vs. an event stream,\" hand off upward to\n  `system-design-edho-ferdian`; if it's \"how should this REST endpoint be\n  shaped,\" stay here.\n- **`code-review-edho-ferdian`** (Domain 2 Security, Domain 3 Performance)\n  reviews an endpoint that already exists in code. This skill is upstream of\n  that — a well-designed contract prevents many findings that domain would\n  otherwise have to catch after the fact. See\n  `references\u002Frest-conventions.md`'s cross-reference table for exactly which\n  review codes map to which design-time checklist items, so the two skills\n  don't restate each other. The same relationship holds for\n  **Domain 4 — Blueprint\u002FSpec Consistency**: the API contract designed here\n  (shape decisions in `references\u002Frest-conventions.md`, plus the versioning\n  and breaking-change policy in `references\u002Fcontract-evolution.md`) is the\n  authoritative reference `code-review-edho-ferdian` checks an implementation\n  against when it asks \"does the code match the agreed contract?\" — that\n  domain doesn't redefine contract correctness, it cites this one.\n- **`spec-mining-edho-ferdian`** and **`dev-kickoff-edho-ferdian`'s Phase 0\n  intake** can consume an OpenAPI\u002Fschema file produced by following this\n  skill's `references\u002Fcontract-evolution.md` as a legitimate `BEHAVIOR_SPEC`-\n  role input — a contract artifact already states requests, responses, and\n  error shapes as ground truth, so it doesn't need to be mined from code.\n\n## Workflow\n\n```\nStep 1  Decide REST shape          → references\u002Frest-conventions.md\nStep 1b Decide MCP tool surface (if applicable) → references\u002Fmcp-tool-surface.md\nStep 2  Decide the contract discipline → references\u002Fcontract-evolution.md\nStep 3  Reflection gate             → below\n```\n\n### Step 1 — REST shape\n\nResource naming, HTTP status-code semantics, response envelope and error\nshape, pagination strategy (offset vs. cursor, with the concurrent-write\ncaveat this ecosystem's database lens already covers), filter\u002Fsort\u002Fsparse-\nfieldset conventions, rate-limiting tiers and headers, versioning and\n`Sunset` policy, and the pre-ship checklist cross-referenced against\n`code-review-edho-ferdian`'s SEC\u002FCQ codes. Full detail:\n`references\u002Frest-conventions.md`.\n\n### Step 2 — Contract discipline\n\nOne authoritative contract artifact per boundary, designing from consumer\nneeds rather than the database schema outward, generating types\u002Fclients from\nthat artifact instead of hand-syncing them, the step-by-step protocol for\nchanging a contract without breaking consumers, and named anti-patterns\n(including treating compile-time types as the only proof of contract\ncorrectness). Full detail: `references\u002Fcontract-evolution.md`.\n\n### Step 1b — MCP tool surfaces (when the boundary is a model, not a human client)\n\nWhen the \"client\" on the other side of this boundary is an LLM invoking tools\nrather than a human-facing app, the REST conventions above still apply but\nneed model-consumer-specific additions — schema-first tool definitions,\ndescription-as-contract, idempotency, and transport choice. Full detail:\n`references\u002Fmcp-tool-surface.md`.\n\n### Step 3 — Reflection gate (mandatory before presenting a new or changed API design)\n\n```\nGate A1: Every endpoint's status codes cover success + the realistic error\n         cases, not just 200\u002F404\u002F500?                              [PASS\u002FFAIL]\nGate A2: Pagination strategy has a stated reason (dataset size, consumer\n         type), not a default picked without thought?               [.]\nGate A3: Exactly one contract artifact is named as authoritative for this\n         boundary — no wiki\u002Fmock\u002Ftype-file left to drift separately? [.]\nGate A4: A breaking change (if any) has a stated migration\u002Fversioning path,\n         not a silent field repurpose?                               [.]\nGate A5: This design was checked against consumer jobs (what the client\n         actually needs to render\u002Fdo), not just the database shape?  [.]\n```\n\nAny FAIL → fix before presenting, or state explicitly why (e.g. \"no\nversioning path needed — this is a new boundary with zero existing\nconsumers\").\n\n## Language routing (fixed — see skill-authoring-edho-ferdian's canonical contract)\n\n- Communication with the user → Bahasa Indonesia.\n- The contract artifact itself (OpenAPI\u002Fschema\u002Fproto), code samples, and any\n  ADR-style write-up → English (machine-facing and cross-tool). Full\n  contract: `skill-authoring-edho-ferdian` §7.\n\n## Global rules\n\n1. **Design-time altitude only.** This skill designs or evolves a boundary\n   before\u002Fwhile it's built. Reviewing an endpoint that's already shipped\n   belongs to `code-review-edho-ferdian`.\n2. **One contract, one source of truth.** Never let a wiki page, a mock file,\n   a hand-written client type, and the server's actual response shape\n   diverge independently — pick one artifact and generate everything else\n   from it.\n3. **Design from consumer jobs outward**, not from the database schema\n   outward — a raw `SELECT *` row is not a contract.\n4. **State the pagination and versioning reasoning**, even briefly — a\n   default picked without a reason is the same failure mode\n   `system-design-edho-ferdian` flags for undecided non-functional targets.\n5. **Cross-reference, don't duplicate.** Security and code-quality checks\n   that `code-review-edho-ferdian` already owns are referenced by code, not\n   restated here.\n",{"name":5,"metadata":24,"description":7},{"last_reviewed":25},"2026-09-11","main","533d32ad55c92d40fbabe93cbe21fe048598fe5a","skills\u002Fapi-design-edho-ferdian",0,"https:\u002F\u002Fgithub.com\u002Fedhoferdian\u002FEEF","https:\u002F\u002Fgithub.com\u002Fedhoferdian","Elevating ideas through AI, rising from humble beginnings to mastering the frontiers of the web. Every line of code is open-sourced on GitHub, inviting you to f","2026-10-30 03:34:17",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add edhoferdian\u002FEEF --skill api-design-edho-ferdian",{"tool":40,"command":41},"bunx","bunx skills add edhoferdian\u002FEEF --skill api-design-edho-ferdian",{"tool":43,"command":44},"pnpm","pnpm dlx skills add edhoferdian\u002FEEF --skill api-design-edho-ferdian","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fedhoferdian\u002FEEF\u002Fblob\u002Fmain\u002Fskills\u002Fapi-design-edho-ferdian\u002FSKILL.md",true,[48,54,58],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fcontract-evolution.md","REFERENCE","参考文档",12208,"https:\u002F\u002Fgithub.com\u002Fedhoferdian\u002FEEF\u002Fblob\u002Fmain\u002Fskills\u002Fapi-design-edho-ferdian\u002Freferences\u002Fcontract-evolution.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fmcp-tool-surface.md",2221,"https:\u002F\u002Fgithub.com\u002Fedhoferdian\u002FEEF\u002Fblob\u002Fmain\u002Fskills\u002Fapi-design-edho-ferdian\u002Freferences\u002Fmcp-tool-surface.md",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Frest-conventions.md",14801,"https:\u002F\u002Fgithub.com\u002Fedhoferdian\u002FEEF\u002Fblob\u002Fmain\u002Fskills\u002Fapi-design-edho-ferdian\u002Freferences\u002Frest-conventions.md",[63,70,77,84,91,98],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7C9FY2EWE5NB7M3YW0KJX62","video-style-edho-ferdian","Measure a reference video's look and pacing (colour grade as a 3D LUT, cut rhythm, overlays) and reproduce it: grade, cut and composite new footage, verify numerically, hand off an NLE timeline. Use for \"tiru look video ini\", \"samakan grading\", \"bikin video dengan gaya referensi\", \"LUT dari referensi\", \"cut rhythm\".","https:\u002F\u002Fgithub.com\u002Fedhoferdian\u002FEEF\u002Fblob\u002Fmain\u002Fskills\u002Fvideo-style-edho-ferdian\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7C9FT74P7JXGQ73116B9WS1","test-authoring-edho-ferdian","Write unit and component tests well: React Testing Library, pytest, Go and Vue, plus regression-test patterns. Use for \"tulis test untuk component ini\", \"bagaimana test hook ini\", \"test yang bagus untuk fitur X\", \"tulis test pytest\u002FGo\u002FVue\", or dev-kickoff's TEST stage.","https:\u002F\u002Fgithub.com\u002Fedhoferdian\u002FEEF\u002Fblob\u002Fmain\u002Fskills\u002Ftest-authoring-edho-ferdian\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7C9FMPE9W76FS7S8ZZ48ARE","system-design-edho-ferdian","Mid-project architecture decisions: ADRs, trade-off analysis, non-functional requirements, scaling tiers and blast radius. Use for \"desain arsitektur\", \"keputusan teknis besar\", \"bikin ADR\", \"trade-off antara X dan Y\", \"microservices atau monolith\", \"apa yang rusak kalau X diubah\", or a capacity question.","https:\u002F\u002Fgithub.com\u002Fedhoferdian\u002FEEF\u002Fblob\u002Fmain\u002Fskills\u002Fsystem-design-edho-ferdian\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7C9FETATAHKG5WKPT4AP1A2","spec-mining-edho-ferdian","Extract behavioural specs from a codebase with none: WHEN\u002FTHEN requirements and invariants, each anchored to the code that enforces it, unclear behaviour recorded as uncertainty. Use for \"ekstrak spec\", \"buat spec dari kode\", \"reverse-engineer the spec\", \"repo ini tidak ada dokumentasi\", or a missing BEHAVIOR_SPEC in dev-kickoff.","https:\u002F\u002Fgithub.com\u002Fedhoferdian\u002FEEF\u002Fblob\u002Fmain\u002Fskills\u002Fspec-mining-edho-ferdian\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M7C9F93YCXFCVRDG4S5QFAH4","skill-authoring-edho-ferdian","Create and govern this ecosystem's skills: search before building, a quality bar, compliance checks, promoting repeated principles to rules, and packaging dist\u002F*.skill. Use for \"bikin skill baru\", \"ada skill buat X gak\", \"fork skill ini\", \"skill gue kepake gak sih\", \"package skill ini\", \"buatkan .skill-nya\".","https:\u002F\u002Fgithub.com\u002Fedhoferdian\u002FEEF\u002Fblob\u002Fmain\u002Fskills\u002Fskill-authoring-edho-ferdian\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M7C9F4XZJ59R0GS4YEP4E1RD","skill-audit-edho-ferdian","Audit this repo's skills\u002F for staleness, redundancy, broken cross-references and weak descriptions (not the ~\u002F.claude setup: that is config-hygiene). Use for \"audit skill saya\", \"cek skill yang sudah dibuat\", \"ada yang redundan gak\", \"skill mana yang basi\".","https:\u002F\u002Fgithub.com\u002Fedhoferdian\u002FEEF\u002Fblob\u002Fmain\u002Fskills\u002Fskill-audit-edho-ferdian\u002FSKILL.md",[],[]]