[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A699MDYSW1J6Y2E1JA2FSK":3,"skill-same:01M7A699MDYSW1J6Y2E1JA2FSK":47},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7A699MDYSW1J6Y2E1JA2FSK","write-discoverable-code",null,"Rules for writing code that coding agents (and humans) can find and understand through\nplain-text search. Apply whenever writing or renaming code: functions, types, constants,\nfiles, error messages, doc comments.\n\nGrounded in measurement: agents navigate by plain-text search, not by AST or\nlanguage server, so every identifier is a search query and every search miss\ncosts wasted reads.","hanipcode\u002Fdotfiles","hanipcode","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F13708705?v=4","01M7A62RPJ04GZTKRA3TYQ80AZ","Muhammad Hanif","01M7A62RQNHG2NKAG14K7JBHVB",0,"MIT","https:\u002F\u002Fgithub.com\u002Fhanipcode\u002Fdotfiles\u002Fblob\u002Fmain\u002Fhome\u002F.agents\u002Fskills\u002Fwrite-discoverable-code\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: write-discoverable-code\ndescription: |\n  Rules for writing code that coding agents (and humans) can find and understand through\n  plain-text search. Apply whenever writing or renaming code: functions, types, constants,\n  files, error messages, doc comments.\n\n  Grounded in measurement: agents navigate by plain-text search, not by AST or\n  language server, so every identifier is a search query and every search miss\n  costs wasted reads.\nlicense: MIT\n---\n\n# Write discoverable code\n\nCoding agents discover code by searching for strings and reading small windows around the\nhits. They have no hover text, no jump-to-definition, and no memory between sessions. These\nrules make code resolvable in one search instead of five.\n\n## 1. Names are search queries\n\n- **Exported symbols get 2–4 word names, at least one of them a domain word.**\n  `diffUserObjects`, not `diff`. `queueEventForDispatch`, not `queue`.\n  Measured on a ~700k-line monorepo: 1-word exported names are globally unique 61% of\n  the time; 3-word names 96%; 4+ words 98%. Three words is the knee of the curve.\n  Use the shortest name that greps uniquely; put the rest in the doc comment.\n- **Give generic verbs their object.** `sanitizeEmailHtml`, not `sanitize`;\n  `validateSmtpConfig`, not `validateConfig`. Qualify only as far as uniqueness\n  requires, then stop.\n- **One definition site per symbol.** Never copy a function between files; move it and\n  delete the original in the same change. Shared helpers get one concept-named home\n  and are imported everywhere else.\n- **Do not rely on the module path to disambiguate a generic name.** The import that\n  disambiguates `users\u002Fdiff.ts` from `orders\u002Fdiff.ts` sits at the top of the file; the\n  search hit is at line 300. Put the context in the symbol (`formatDurationMs`), not the\n  folder. Exception: rigid, absolute conventions where the path carries the meaning\n  (e.g. every contract file exporting `Input`\u002F`Output`).\n- **Namespace-qualified module APIs are also valid.** Unqualified exports must carry their domain\n  identity. Generic exports such as `make` and `layer` are acceptable in a domain-named module when\n  consumers use a stable, explicit namespace import and the filename identifies the concept:\n  `CloudflareWorkspaceEnvironmentManager.layer(env)`, not `layer(env)`.\n- **One concept, one spelling.** Pick `organizationId` or `orgId` and use it everywhere;\n  every synonym splits every future search in half. Reuse existing vocabulary in the\n  codebase you are editing rather than introducing near-synonyms.\n- **When behavior or audience changes, rename in the same commit.** A stale name is\n  misinformation with a 100% open rate — that includes visibility markers: a `_private`\n  helper that other modules now import needs a public name.\n- **Filenames are names too — never use bare-role filenames.** `config.ts`, `types.ts`,\n  `utils.ts`, `helpers.ts`, `handlers.ts` say nothing in a search result and collide with\n  every other module's config\u002Ftypes\u002Futils in the repo. Prefix the domain:\n  `billing-plan-config.ts`, not `config.ts`. (`index.ts` is acceptable only as a\n  thin re-export entry point.)\n\n## 2. Types are the documentation agents can't skip\n\n- **Brand your primitive IDs.** `z.string().brand\u003C'UserId'>()` (TS) or newtypes (Rust).\n  A `transferOwnership(userId: string, orgId: string)` signature makes argument\n  transposition invisible; branded types make it a compile error that names the concepts.\n- **Use capability-token parameter types** for privileged operations (e.g. requiring an\n  `OrgScopedDb` instead of a raw connection). A comment is a request; a required type is\n  physics.\n- **Model state with discriminated unions**, not clusters of nullable fields with implicit\n  rules.\n- **Name types like they'll be quoted back** — they will be, in compiler errors the agent\n  uses to self-correct. `OrgScopedDb` explains itself; `Ctx2` does not. Avoid `any`: every\n  `any` is a spot where the compiler goes silent and the agent is back to guessing.\n\n## 3. Say it where the search lands\n\n- **One-line doc comment on every export**, stating the sharpest constraint the code\n  itself can't show (units, timezone, \"source time, not insert time\", ownership).\n  The definition is where a name search lands; that line is your whole message.\n- **Write the plain-words phrase in the doc comment.** Searches arrive as natural language\n  (\"rate limit\", \"retry delay\"), and camelCase identifiers don't match phrase greps —\n  `RateLimiter` is invisible to a search for \"rate limit\". The doc comment above each\n  export should contain, in ordinary spaced-out words, the phrase someone would search\n  for: a `SessionExpiryChecker` should say \u002F\\*_ Checks whether the user session has\n  expired. _\u002F so that a grep for \"session expired\" or \"session has expired\" lands here.\n- **A module should make sense with its imports unread.** Each imported name plus its\n  doc line should say enough that the reader never has to open the source module. If\n  they do, the import's name is failing, not the reader.\n- **Keep strings whole.** Never build event names, flags, or error codes with template\n  interpolation (`` `github.${entity}.${action}` `` makes `github.pr.merged` unsearchable).\n  Write the full literal even when a loop feels DRYer.\n- **Error messages start with a unique literal prefix**, so a message seen in a log greps\n  straight back to the throw site. ``throw new Error(`Webhook signature mismatch for ${id}`)``,\n  never ``throw new Error(`${prefix}: mismatch`)``.\n- **One searchable concept per file, and keep orchestrators thin.** The code that answers\n  \"where is X done?\" should live in a module named after X — the thing a reader would\n  ask about, not the mechanism inside — not inline in a coordinator,\n  pipeline, or service class. An orchestrator should read as a sequence of calls into\n  well-named modules; if a reader lands in it from a search, every line should point them\n  one hop from the real implementation. Burying the implementation of several concepts in\n  one large file makes every search for any of them land on the same wall of code.\n  Split until each question-sized concept has one named home, then stop: a helper\n  meaningful only inside one concept belongs inline, and a file per tiny function\n  fragments one answer across several reads. The test runs both ways: a module that\n  answers many unrelated questions is holding more than one concept.\n- **Colocate tests** (`foo.test.ts` next to `foo.ts`) so one search finds behavior and its\n  specification together.\n- **Mark dead ends.** `@deprecated` on the old path, with a pointer to the new one.\n\n## Quick checklist before committing\n\n1. Would one search for each new exported name be enough to find its implementation?\n2. Would swapping two arguments of the new function fail the build?\n3. Is the one thing a caller must know but the signature can't say (units, timezone,\n   ownership, ordering) written right at the definition?\n4. Do all log\u002Ferror strings exist verbatim in the source?\n5. Did anything change behavior without changing its name?\n6. When code moved, is it gone from where it came from?\n","# Write discoverable code\n\nCoding agents discover code by searching for strings and reading small windows around the\nhits. They have no hover text, no jump-to-definition, and no memory between sessions. These\nrules make code resolvable in one search instead of five.\n\n## 1. Names are search queries\n\n- **Exported symbols get 2–4 word names, at least one of them a domain word.**\n  `diffUserObjects`, not `diff`. `queueEventForDispatch`, not `queue`.\n  Measured on a ~700k-line monorepo: 1-word exported names are globally unique 61% of\n  the time; 3-word names 96%; 4+ words 98%. Three words is the knee of the curve.\n  Use the shortest name that greps uniquely; put the rest in the doc comment.\n- **Give generic verbs their object.** `sanitizeEmailHtml`, not `sanitize`;\n  `validateSmtpConfig`, not `validateConfig`. Qualify only as far as uniqueness\n  requires, then stop.\n- **One definition site per symbol.** Never copy a function between files; move it and\n  delete the original in the same change. Shared helpers get one concept-named home\n  and are imported everywhere else.\n- **Do not rely on the module path to disambiguate a generic name.** The import that\n  disambiguates `users\u002Fdiff.ts` from `orders\u002Fdiff.ts` sits at the top of the file; the\n  search hit is at line 300. Put the context in the symbol (`formatDurationMs`), not the\n  folder. Exception: rigid, absolute conventions where the path carries the meaning\n  (e.g. every contract file exporting `Input`\u002F`Output`).\n- **Namespace-qualified module APIs are also valid.** Unqualified exports must carry their domain\n  identity. Generic exports such as `make` and `layer` are acceptable in a domain-named module when\n  consumers use a stable, explicit namespace import and the filename identifies the concept:\n  `CloudflareWorkspaceEnvironmentManager.layer(env)`, not `layer(env)`.\n- **One concept, one spelling.** Pick `organizationId` or `orgId` and use it everywhere;\n  every synonym splits every future search in half. Reuse existing vocabulary in the\n  codebase you are editing rather than introducing near-synonyms.\n- **When behavior or audience changes, rename in the same commit.** A stale name is\n  misinformation with a 100% open rate — that includes visibility markers: a `_private`\n  helper that other modules now import needs a public name.\n- **Filenames are names too — never use bare-role filenames.** `config.ts`, `types.ts`,\n  `utils.ts`, `helpers.ts`, `handlers.ts` say nothing in a search result and collide with\n  every other module's config\u002Ftypes\u002Futils in the repo. Prefix the domain:\n  `billing-plan-config.ts`, not `config.ts`. (`index.ts` is acceptable only as a\n  thin re-export entry point.)\n\n## 2. Types are the documentation agents can't skip\n\n- **Brand your primitive IDs.** `z.string().brand\u003C'UserId'>()` (TS) or newtypes (Rust).\n  A `transferOwnership(userId: string, orgId: string)` signature makes argument\n  transposition invisible; branded types make it a compile error that names the concepts.\n- **Use capability-token parameter types** for privileged operations (e.g. requiring an\n  `OrgScopedDb` instead of a raw connection). A comment is a request; a required type is\n  physics.\n- **Model state with discriminated unions**, not clusters of nullable fields with implicit\n  rules.\n- **Name types like they'll be quoted back** — they will be, in compiler errors the agent\n  uses to self-correct. `OrgScopedDb` explains itself; `Ctx2` does not. Avoid `any`: every\n  `any` is a spot where the compiler goes silent and the agent is back to guessing.\n\n## 3. Say it where the search lands\n\n- **One-line doc comment on every export**, stating the sharpest constraint the code\n  itself can't show (units, timezone, \"source time, not insert time\", ownership).\n  The definition is where a name search lands; that line is your whole message.\n- **Write the plain-words phrase in the doc comment.** Searches arrive as natural language\n  (\"rate limit\", \"retry delay\"), and camelCase identifiers don't match phrase greps —\n  `RateLimiter` is invisible to a search for \"rate limit\". The doc comment above each\n  export should contain, in ordinary spaced-out words, the phrase someone would search\n  for: a `SessionExpiryChecker` should say \u002F\\*_ Checks whether the user session has\n  expired. _\u002F so that a grep for \"session expired\" or \"session has expired\" lands here.\n- **A module should make sense with its imports unread.** Each imported name plus its\n  doc line should say enough that the reader never has to open the source module. If\n  they do, the import's name is failing, not the reader.\n- **Keep strings whole.** Never build event names, flags, or error codes with template\n  interpolation (`` `github.${entity}.${action}` `` makes `github.pr.merged` unsearchable).\n  Write the full literal even when a loop feels DRYer.\n- **Error messages start with a unique literal prefix**, so a message seen in a log greps\n  straight back to the throw site. ``throw new Error(`Webhook signature mismatch for ${id}`)``,\n  never ``throw new Error(`${prefix}: mismatch`)``.\n- **One searchable concept per file, and keep orchestrators thin.** The code that answers\n  \"where is X done?\" should live in a module named after X — the thing a reader would\n  ask about, not the mechanism inside — not inline in a coordinator,\n  pipeline, or service class. An orchestrator should read as a sequence of calls into\n  well-named modules; if a reader lands in it from a search, every line should point them\n  one hop from the real implementation. Burying the implementation of several concepts in\n  one large file makes every search for any of them land on the same wall of code.\n  Split until each question-sized concept has one named home, then stop: a helper\n  meaningful only inside one concept belongs inline, and a file per tiny function\n  fragments one answer across several reads. The test runs both ways: a module that\n  answers many unrelated questions is holding more than one concept.\n- **Colocate tests** (`foo.test.ts` next to `foo.ts`) so one search finds behavior and its\n  specification together.\n- **Mark dead ends.** `@deprecated` on the old path, with a pointer to the new one.\n\n## Quick checklist before committing\n\n1. Would one search for each new exported name be enough to find its implementation?\n2. Would swapping two arguments of the new function fail the build?\n3. Is the one thing a caller must know but the signature can't say (units, timezone,\n   ownership, ordering) written right at the definition?\n4. Do all log\u002Ferror strings exist verbatim in the source?\n5. Did anything change behavior without changing its name?\n6. When code moved, is it gone from where it came from?\n",{"name":5,"license":15,"description":24},"Rules for writing code that coding agents (and humans) can find and understand through\nplain-text search. Apply whenever writing or renaming code: functions, types, constants,\nfiles, error messages, doc comments.\n\nGrounded in measurement: agents navigate by plain-text search, not by AST or\nlanguage server, so every identifier is a search query and every search miss\ncosts wasted reads.\n","main","5d1a8c7b469c0df2af74500b255ac7ed5fe1a923","home\u002F.agents\u002Fskills\u002Fwrite-discoverable-code","https:\u002F\u002Fgithub.com\u002Fhanipcode\u002Fdotfiles","https:\u002F\u002Fgithub.com\u002Fhanipcode","https:\u002F\u002Ftwitter.com\u002Fhanipcode","Hanif is Software Engineer based in Indonesia","2026-10-15 23:09:56",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add hanipcode\u002Fdotfiles --skill write-discoverable-code",{"tool":39,"command":40},"bunx","bunx skills add hanipcode\u002Fdotfiles --skill write-discoverable-code",{"tool":42,"command":43},"pnpm","pnpm dlx skills add hanipcode\u002Fdotfiles --skill write-discoverable-code","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhanipcode\u002Fdotfiles\u002Fblob\u002Fmain\u002Fhome\u002F.agents\u002Fskills\u002Fwrite-discoverable-code\u002FSKILL.md",true,[],[48,55,62,69],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7A68XH9MHFQ2DKHGT1E8TXW","vercel-react-view-transitions","Guide for implementing smooth, native-feeling animations using React's View Transition API (`\u003CViewTransition>` component, `addTransitionType`, and CSS view transition pseudo-elements). Use this skill whenever the user wants to add page transitions, animate route changes, create shared element animations, animate enter\u002Fexit of components, animate list reorder, implement directional (forward\u002Fback) navigation animations, or integrate view transitions in Next.js. Also use when the user mentions view transitions, `startViewTransition`, `ViewTransition`, transition types, or asks about animating between UI states in React without third-party animation libraries.","https:\u002F\u002Fgithub.com\u002Fhanipcode\u002Fdotfiles\u002Fblob\u002Fmain\u002Fhome\u002F.agents\u002Fskills\u002Fvercel-react-view-transitions\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7A68RA0YQXMQ9D06X98PWQD","vercel-react-native-skills","React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.","https:\u002F\u002Fgithub.com\u002Fhanipcode\u002Fdotfiles\u002Fblob\u002Fmain\u002Fhome\u002F.agents\u002Fskills\u002Fvercel-react-native-skills\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7A68HWDEGAVNGJP9M0HH713","vercel-react-best-practices","React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React\u002FNext.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.","https:\u002F\u002Fgithub.com\u002Fhanipcode\u002Fdotfiles\u002Fblob\u002Fmain\u002Fhome\u002F.agents\u002Fskills\u002Fvercel-react-best-practices\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7A68CHWSB3D71X7GZSAVX8R","vercel-composition-patterns","React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.","https:\u002F\u002Fgithub.com\u002Fhanipcode\u002Fdotfiles\u002Fblob\u002Fmain\u002Fhome\u002F.agents\u002Fskills\u002Fvercel-composition-patterns\u002FSKILL.md",[],[]]