[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M756TAFHEP3ASPA74Q7WJJK9":3,"skill-same:01M756TAFHEP3ASPA74Q7WJJK9":53},{"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":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":34,"ownerHtmlUrl":35,"ownerBlogUrl":36,"ownerDescription":37,"updatedAt":38,"install":39,"resources":52},"01M756TAFHEP3ASPA74Q7WJJK9","adept-code-style",null,"Go code style and conventions for the adept codebase — formatting, linters, error wrapping with sentinels, the composition-root\u002Fno-globals rule, and core invariants. Apply when writing or reviewing Go in this repo. (matches: **\u002F*.go)","itaywol\u002Fadeptability","itaywol","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6410154?v=4","01M756SKJABTDMYHWVMHBA0M6E","Itay Wolfish","01M756SKKJFSV073PS3KYR896D",9,"MIT","https:\u002F\u002Fgithub.com\u002Fitaywol\u002Fadeptability\u002Fblob\u002Fmain\u002F.adeptability\u002Fskills\u002Fadept-code-style\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nid: adept-code-style\ndescription: \"Go code style and conventions for the adept codebase — formatting, linters, error wrapping with sentinels, the composition-root\u002Fno-globals rule, and core invariants. Apply when writing or reviewing Go in this repo. (matches: **\u002F*.go)\"\nactivation: agent\nallowed-tools:\n  - \"Read\"\n  - \"Grep\"\n  - \"Edit\"\n---\n\n# adept code style\n\nConventions for Go in `github.com\u002Fitaywol\u002Fadeptability`. CI enforces formatting and lint;\nthe rest is reviewed.\n\n## Formatting & lint (enforced)\n\n- `gofmt` + `goimports` — tabs for indentation, grouped imports (stdlib \u002F third-party \u002F\n  local). CI fails on any unformatted file.\n- `golangci-lint run` (`.golangci.yml`): `errcheck` (incl. type assertions), `staticcheck`,\n  `govet`, `gocritic`, `revive` (**every exported symbol needs a doc comment**), `errorlint`,\n  `nilerr`, `bodyclose`, `prealloc`, `unconvert`, `misspell`, `unused`, `ineffassign`.\n\n## Errors\n\n- Always wrap with context and `%w`: `fmt.Errorf(\"clone %s: %w\", url, err)`.\n- Compare with `errors.Is` against the sentinels in `pkg\u002Fadept\u002Ferrors.go`\n  (`ErrSkillNotFound`, `ErrMergeConflict`, `ErrBudgetOverflow`, …). **Never** match on error\n  strings. Need a new category? Add a sentinel there.\n- `errcheck` is strict — handle or explicitly `_ =` an ignored error, and say why if it isn't\n  obvious. Don't drop an error that loses data.\n\n## Structure\n\n- **Composition root, no globals.** Concrete implementations are wired behind interfaces into\n  `*Deps` in `internal\u002Fcli\u002Fdeps.go`. No package-level mutable state, no `init()` side effects.\n  Take dependencies as parameters so code is testable with fakes\u002Fmocks.\n- **`pkg\u002Fadept` is types-only.** Keep it dependency-light and stable; behavior lives in\n  `internal\u002F`. (Example: `SkillIDPattern` is a string in `pkg\u002Fadept`, compiled in\n  `internal\u002Fcanonical` — don't add a `regexp` import to `pkg\u002Fadept`.)\n- Doc comments are full sentences starting with the symbol name (`\u002F\u002F NewRoot builds …`).\n\n## Readability\n\n- Small, single-purpose functions; prefer **early returns** over deep nesting.\n- Name things for what they are; avoid one-letter names outside tight loops\u002Freceivers.\n- No magic numbers\u002Fstrings — name on-disk paths and limits as constants (see\n  `pkg\u002Fadept\u002Fconstants.go`).\n- Comments explain **why**, not what. Keep them in sync with the code — a stale comment is a\n  bug.\n\n## Invariants you must not break\n\n1. Identity is `(id, content-hash)` — no version numbers as a sync signal.\n2. Secrets never written to disk — API keys come from the environment at call time.\n3. Harness models differ (per-skill \u002F single-file \u002F aggregator) — renderers and importers\n   must respect each; aggregators parse their own section markers and honor byte budgets.\n4. Canonical layout `\u003Croot>\u002Fskills\u002F\u003Cid>\u002FSKILL.md`; the directory name is the authoritative id.\n","# adept code style\n\nConventions for Go in `github.com\u002Fitaywol\u002Fadeptability`. CI enforces formatting and lint;\nthe rest is reviewed.\n\n## Formatting & lint (enforced)\n\n- `gofmt` + `goimports` — tabs for indentation, grouped imports (stdlib \u002F third-party \u002F\n  local). CI fails on any unformatted file.\n- `golangci-lint run` (`.golangci.yml`): `errcheck` (incl. type assertions), `staticcheck`,\n  `govet`, `gocritic`, `revive` (**every exported symbol needs a doc comment**), `errorlint`,\n  `nilerr`, `bodyclose`, `prealloc`, `unconvert`, `misspell`, `unused`, `ineffassign`.\n\n## Errors\n\n- Always wrap with context and `%w`: `fmt.Errorf(\"clone %s: %w\", url, err)`.\n- Compare with `errors.Is` against the sentinels in `pkg\u002Fadept\u002Ferrors.go`\n  (`ErrSkillNotFound`, `ErrMergeConflict`, `ErrBudgetOverflow`, …). **Never** match on error\n  strings. Need a new category? Add a sentinel there.\n- `errcheck` is strict — handle or explicitly `_ =` an ignored error, and say why if it isn't\n  obvious. Don't drop an error that loses data.\n\n## Structure\n\n- **Composition root, no globals.** Concrete implementations are wired behind interfaces into\n  `*Deps` in `internal\u002Fcli\u002Fdeps.go`. No package-level mutable state, no `init()` side effects.\n  Take dependencies as parameters so code is testable with fakes\u002Fmocks.\n- **`pkg\u002Fadept` is types-only.** Keep it dependency-light and stable; behavior lives in\n  `internal\u002F`. (Example: `SkillIDPattern` is a string in `pkg\u002Fadept`, compiled in\n  `internal\u002Fcanonical` — don't add a `regexp` import to `pkg\u002Fadept`.)\n- Doc comments are full sentences starting with the symbol name (`\u002F\u002F NewRoot builds …`).\n\n## Readability\n\n- Small, single-purpose functions; prefer **early returns** over deep nesting.\n- Name things for what they are; avoid one-letter names outside tight loops\u002Freceivers.\n- No magic numbers\u002Fstrings — name on-disk paths and limits as constants (see\n  `pkg\u002Fadept\u002Fconstants.go`).\n- Comments explain **why**, not what. Keep them in sync with the code — a stale comment is a\n  bug.\n\n## Invariants you must not break\n\n1. Identity is `(id, content-hash)` — no version numbers as a sync signal.\n2. Secrets never written to disk — API keys come from the environment at call time.\n3. Harness models differ (per-skill \u002F single-file \u002F aggregator) — renderers and importers\n   must respect each; aggregators parse their own section markers and honor byte budgets.\n4. Canonical layout `\u003Croot>\u002Fskills\u002F\u003Cid>\u002FSKILL.md`; the directory name is the authoritative id.\n",{"id":5,"activation":24,"description":7,"allowed-tools":25},"agent",[26,27,28],"Read","Grep","Edit","main","c5b1b81b2e0ae71bd8afeeade28eaea6f8fd1bf5",".adeptability\u002Fskills\u002Fadept-code-style",0,"https:\u002F\u002Fgithub.com\u002Fitaywol\u002Fadeptability","https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fitaywol\u002Fadeptability","https:\u002F\u002Fgithub.com\u002Fitaywol","https:\u002F\u002Fitaywol.com","Founding Engineer @ Echo","2026-07-25 15:28:37",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add itaywol\u002Fadeptability --skill adept-code-style",{"tool":45,"command":46},"bunx","bunx skills add itaywol\u002Fadeptability --skill adept-code-style",{"tool":48,"command":49},"pnpm","pnpm dlx skills add itaywol\u002Fadeptability --skill adept-code-style","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fitaywol\u002Fadeptability\u002Fblob\u002Fmain\u002F.adeptability\u002Fskills\u002Fadept-code-style\u002FSKILL.md",true,[],[54,60,66,72,78,83],{"skillNo":55,"name":56,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M756YHZ76TMVP0KK718K6KN0","using-adept","https:\u002F\u002Fgithub.com\u002Fitaywol\u002Fadeptability\u002Fblob\u002Fmain\u002Fskills\u002Fusing-adept\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M756YG9YGBG4783SFH8RE5PM","agents","https:\u002F\u002Fgithub.com\u002Fitaywol\u002Fadeptability\u002Fblob\u002Fmain\u002Fskills\u002Fagents\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M756YD5MDX9ANB4QPVN34YQX","adept-writing-tests","https:\u002F\u002Fgithub.com\u002Fitaywol\u002Fadeptability\u002Fblob\u002Fmain\u002Fskills\u002Fadept-writing-tests\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M756YB57DN31BKNT4GHM9N2S","adept-contributing","https:\u002F\u002Fgithub.com\u002Fitaywol\u002Fadeptability\u002Fblob\u002Fmain\u002Fskills\u002Fadept-contributing\u002FSKILL.md",[],[],{"skillNo":79,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M756Y9VM8W6E2HWMVYH0PH6H","https:\u002F\u002Fgithub.com\u002Fitaywol\u002Fadeptability\u002Fblob\u002Fmain\u002Fskills\u002Fadept-code-style\u002FSKILL.md",[],[],{"skillNo":84,"name":56,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M756Y76FNSH8VWP77TX1A8Z1","Use the `adept` CLI to author an AI skill once and render it into Claude Code, Cursor, Codex, Copilot, OpenCode, and 45+ agents. Apply when installing\u002Fsyncing skills, editing SKILL.md, or touching .adeptability\u002F.","https:\u002F\u002Fgithub.com\u002Fitaywol\u002Fadeptability\u002Fblob\u002Fmain\u002Finternal\u002Fdefaultskills\u002Fassets\u002Fusing-adept\u002FSKILL.md",[],[]]