[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DNCY3BCGY3MC5BFJ9S59BF":3,"skill-same:01M7DNCY3BCGY3MC5BFJ9S59BF":61},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":13,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7DNCY3BCGY3MC5BFJ9S59BF","spf13-go",null,"Review Go library APIs, package boundaries, tests, iterators and standard-library choices. Load for broad design or idiom reviews after the repository-owned Go skills.","Cratis\u002FFundamentals.Go","Cratis","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F16456213?v=4","01M6BXRH290K4C8RS4PTKK3HXQ","01M7DN6YCMASAFGKYBBH3C1Z6E",0,"MIT","https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals.Go\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fspf13-go\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals.Go\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fspf13-go\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: spf13-go\ndescription: Review Go library APIs, package boundaries, tests, iterators and standard-library choices. Load for broad design or idiom reviews after the repository-owned Go skills.\n---\n\n> Third-party guidance. Repository rules `.cratis\u002Fai\u002Frules\u002Fgo.md` and\n> `go-cratis-parity.md` take precedence where they conflict (e.g. Go minimum\n> version from go.mod, no `pkg\u002F`, functional options only when warranted).\n\n# Idiomatic Go: local entry point\n\nRead the qualifications below, then load the relevant sections of the\n[pinned upstream guide](references\u002Fgo.md). The long original skill body is kept\nas a reference so discovery does not load the entire guide automatically.\n\n## Local review qualifications\n\nThese qualifications override the corresponding upstream prescriptions:\n\n- Package depth, flat layout and a three-type threshold for generics are\n  heuristics, not Go rules. Use `internal\u002F` for implementation-only packages;\n  its import restriction is based on the parent directory tree, not simply module\n  identity. An application's non-main packages can be imported unless protected.\n- Preserve Cratis extension interfaces and typed generic APIs when the contract\n  needs them. Do not reject an API merely because it resembles another language.\n- A stateful domain entry point does not mandate reloading on every method call.\n  Absence of globals alone does not make an object safe for concurrent use.\n- Per-iteration capture applies to Go 1.22+ loop variables declared with `:=`,\n  not pre-existing variables assigned with `=`. Validate `maxConcurrent > 0`;\n  `errgroup.SetLimit` admission can block and is not context-cancelable.\n- Mutexes, bounded workers and semaphores are valid choices; channels and errgroup\n  are not universally preferable. All goroutines need ownership and joining.\n- Explicit stream handles\u002FNext methods are valid for I\u002FO, terminal errors,\n  acknowledgments and Close ownership. Iterators must honor early stop and cleanup.\n- `cmp.Or` needs Go 1.22, not 1.21; it eagerly evaluates all arguments and treats\n  zero as absent. Multiple `%w` operands are supported since Go 1.20; `errors.Join`\n  is a choice, not a universal replacement. Wrap only intended public identities.\n- Filesystem abstraction\u002FAfero, go-cmp and table-driven tests are optional.\n  Standard-library interfaces and `t.TempDir` often suffice; do not add dependencies\n  merely because upstream calls one an industry standard.\n- `T.Context` is canceled before cleanup callbacks run. `testing\u002Fsynctest` does\n  not make real networking deterministic. Test resource cleanup explicitly.\n- `WithoutCancel` also drops deadlines. Never detach caller-owned SDK operations;\n  explicitly independent work needs its own budget, owner, stop and join path.\n- HTTP timeout examples are illustrative, not streaming defaults. Shutdown does\n  not cancel active request contexts automatically or close hijacked WebSockets;\n  explicitly signal long-lived handlers, close\u002Fjoin owned connections, handle\n  shutdown failure, and join the serving goroutine. A handler context deadline\n  cannot forcibly stop a handler that ignores it.\n- Use an injected logger and context-aware methods; the upstream `slog.With`\n  example actually derives from the global logger, not from context.\n- Use `crypto\u002Frand` for security, not either math\u002Frand package. Preserve established\n  JSON tags and presence semantics rather than adding `omitzero` mechanically.\n- Version-gate every modern feature. Existing older-version build tags\u002Ftool\n  tracking may need preservation. Never change the baseline to satisfy this guide.\n- Go build\u002Frun can reuse valid cached compilation, and test results may be cached.\n  Inspect inputs, build constraints and test-cache behavior before diagnosing;\n  do not treat the toolchain as infallible or clear caches without evidence.\n","> Third-party guidance. Repository rules `.cratis\u002Fai\u002Frules\u002Fgo.md` and\n> `go-cratis-parity.md` take precedence where they conflict (e.g. Go minimum\n> version from go.mod, no `pkg\u002F`, functional options only when warranted).\n\n# Idiomatic Go: local entry point\n\nRead the qualifications below, then load the relevant sections of the\n[pinned upstream guide](references\u002Fgo.md). The long original skill body is kept\nas a reference so discovery does not load the entire guide automatically.\n\n## Local review qualifications\n\nThese qualifications override the corresponding upstream prescriptions:\n\n- Package depth, flat layout and a three-type threshold for generics are\n  heuristics, not Go rules. Use `internal\u002F` for implementation-only packages;\n  its import restriction is based on the parent directory tree, not simply module\n  identity. An application's non-main packages can be imported unless protected.\n- Preserve Cratis extension interfaces and typed generic APIs when the contract\n  needs them. Do not reject an API merely because it resembles another language.\n- A stateful domain entry point does not mandate reloading on every method call.\n  Absence of globals alone does not make an object safe for concurrent use.\n- Per-iteration capture applies to Go 1.22+ loop variables declared with `:=`,\n  not pre-existing variables assigned with `=`. Validate `maxConcurrent > 0`;\n  `errgroup.SetLimit` admission can block and is not context-cancelable.\n- Mutexes, bounded workers and semaphores are valid choices; channels and errgroup\n  are not universally preferable. All goroutines need ownership and joining.\n- Explicit stream handles\u002FNext methods are valid for I\u002FO, terminal errors,\n  acknowledgments and Close ownership. Iterators must honor early stop and cleanup.\n- `cmp.Or` needs Go 1.22, not 1.21; it eagerly evaluates all arguments and treats\n  zero as absent. Multiple `%w` operands are supported since Go 1.20; `errors.Join`\n  is a choice, not a universal replacement. Wrap only intended public identities.\n- Filesystem abstraction\u002FAfero, go-cmp and table-driven tests are optional.\n  Standard-library interfaces and `t.TempDir` often suffice; do not add dependencies\n  merely because upstream calls one an industry standard.\n- `T.Context` is canceled before cleanup callbacks run. `testing\u002Fsynctest` does\n  not make real networking deterministic. Test resource cleanup explicitly.\n- `WithoutCancel` also drops deadlines. Never detach caller-owned SDK operations;\n  explicitly independent work needs its own budget, owner, stop and join path.\n- HTTP timeout examples are illustrative, not streaming defaults. Shutdown does\n  not cancel active request contexts automatically or close hijacked WebSockets;\n  explicitly signal long-lived handlers, close\u002Fjoin owned connections, handle\n  shutdown failure, and join the serving goroutine. A handler context deadline\n  cannot forcibly stop a handler that ignores it.\n- Use an injected logger and context-aware methods; the upstream `slog.With`\n  example actually derives from the global logger, not from context.\n- Use `crypto\u002Frand` for security, not either math\u002Frand package. Preserve established\n  JSON tags and presence semantics rather than adding `omitzero` mechanically.\n- Version-gate every modern feature. Existing older-version build tags\u002Ftool\n  tracking may need preservation. Never change the baseline to satisfy this guide.\n- Go build\u002Frun can reuse valid cached compilation, and test results may be cached.\n  Inspect inputs, build constraints and test-cache behavior before diagnosing;\n  do not treat the toolchain as infallible or clear caches without evidence.\n",{"name":5,"description":7},"main","45728854e223fd51b203724ca0e5be9c8f93a5a4",".cratis\u002Fai\u002Fskills\u002Fspf13-go","https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals.Go","https:\u002F\u002Fwww.cratis.io\u002Ffundamentals\u002Fgo\u002F","https:\u002F\u002Fgithub.com\u002FCratis","https:\u002F\u002Fwww.cratis.io","Open-source (MIT) event sourcing and CQRS for .NET and beyond: Chronicle, Arc, Components and Screenplay.","2026-11-14 15:52:19",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Cratis\u002FFundamentals.Go --skill spf13-go",{"tool":39,"command":40},"bunx","bunx skills add Cratis\u002FFundamentals.Go --skill spf13-go",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Cratis\u002FFundamentals.Go --skill spf13-go","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals.Go\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fspf13-go\u002FSKILL.md",true,[47,51,57],{"path":48,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":15},"LICENSE","许可证",1070,{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fgo.md","REFERENCE","参考文档",27030,"https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals.Go\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fspf13-go\u002Freferences\u002Fgo.md",{"path":58,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":59,"sourceHtmlUrl":60},"UPSTREAM.md",1790,"https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals.Go\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fspf13-go\u002FUPSTREAM.md",[62,70,78,87,94,101],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":66,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7DNCSQQH7GQ03ZETFX9XHAS","samber-golang-error-handling","Review Go error creation, wrapping, inspection and logging boundaries. Load when changing caller-visible failures after go-errors-and-context.","https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals.Go\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fsamber-golang-error-handling\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals.Go\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fsamber-golang-error-handling\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":74,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7DNCM4ZC15SSDA5FAAHN5S0","samber-golang-context","Design Go context propagation, cancellation, deadlines and request metadata. Load for operation-lifetime changes or context-related leaks after go-errors-and-context.","https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals.Go\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fsamber-golang-context\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals.Go\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fsamber-golang-context\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":82,"licenseFileUrl":83,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7DNCGNSMHK640AK1R3J0CPD","jetbrains-go-modern-guidelines","Choose version-compatible modern Go syntax and standard-library APIs. Load when modernizing touched Go code after reading go.mod and build constraints.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals.Go\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fjetbrains-go-modern-guidelines\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals.Go\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fjetbrains-go-modern-guidelines\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7DNCBYSD6FPAPWM6PPSJR96","go-testing","Write and review Go unit, contract, transport, race, fuzz, and deterministic concurrency tests. Use for new behavior, bug fixes, flaky tests, and public API parity evidence.","https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals.Go\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fgo-testing\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M7DNC7ES2RD6WGKC94KMMXTD","go-release-modules","Review Go module dependencies, minimum versions, compatibility, semantic labels, release-action tags, and proxy discoverability. Use for release preparation, retractions, and major-version migration planning.","https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals.Go\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fgo-release-modules\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M7DNC22JY2MFWQR4RVFH3NZA","go-library-api-design","Design or review exported Go APIs, constructors, interfaces, generics, iteration, ownership, and compatibility. Use when adding or changing public Go library surface.","https:\u002F\u002Fgithub.com\u002FCratis\u002FFundamentals.Go\u002Fblob\u002Fmain\u002F.cratis\u002Fai\u002Fskills\u002Fgo-library-api-design\u002FSKILL.md",[],[]]