[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ERJMT02AKTVZX6JVM5SPX1":3,"skill-same:01M7ERJMT02AKTVZX6JVM5SPX1":43},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M7ERJMT02AKTVZX6JVM5SPX1","golaw",null,"Use for Go implementation, tests, refactoring, review, dependencies, and commits in a repository enrolled in golaw.","cristianargotti\u002Fgolaw","cristianargotti","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F105827221?v=4","01M7ERGYSZWAXPB1RVSP8GBMXP","01M7ERGYTJC27BPEVZTZFZ43BZ",0,"MIT","https:\u002F\u002Fgithub.com\u002Fcristianargotti\u002Fgolaw\u002Fblob\u002Fmain\u002Fagents\u002Fclaude\u002Fskills\u002Fgolaw\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: golaw\ndescription: Use for Go implementation, tests, refactoring, review, dependencies, and commits in a repository enrolled in golaw.\n---\n\n# Go engineering with golaw\n\nStart with `golaw context \u003Carea>` (`golaw map` lists the areas): it prints the area's ports, use cases, types, adapters, routes, tables, queries, wiring and the test to copy per layer, so open only the files you edit. Create a port, adapter, use case or handler with `golaw new` (`golaw new --help` shows one line per kind); in an area written by hand, `golaw new port \u003Carea>.\u003CPort>` adopts or stubs the port without `--usecase` and `golaw new adapter sql|http \u003Cpkg>.\u003CType> --port \u003Carea>.\u003CPort>` writes the adapter, while the use cases stay yours. Do not read the zz_generated files: the command prints each hole with its file and line. Never edit a generated file, edit its contract and the hook regenerates it. Fill the `golaw:hole` markers and their red tests; `golaw gen --check` must pass before you finish.\n\nQueries go through the pinned sqlc and HTTP contracts through the pinned oapi-codegen, both run by `golaw gen`; write the migration and the query before `golaw new adapter sql`.\n\nRead golaw.yml before changing the repository. Read a rule with `golaw rules \u003Cid>` (a family such as `goast` works; no argument lists every id) and a checklist with `golaw rules --checklist \u003Cname>`: your binary carries the kit's docs\u002Frules.md and docs\u002Fchecklists.md, so never fetch them from GitHub or the module cache.\n\nReuse in this order: existing repository code, the standard library, an existing platform capability, an installed dependency, then the smallest implementation that meets the need. Preserve boundary validation, error handling, and security. Record every new direct dependency and its alternatives in the configured decisions directory.\n\nFollow the strongest documented practice. Existing weak code is not a reason to repeat it.\n\nKeep one use case per file, named verb_object.go with its matching test file. Give it a constructor and an Execute method. Keep transport and persistence concerns outside it.\n\nDeclare package failure modes as sentinels in errors.go. Begin an operation with wrap := failures.Prefix(\"package: action\") and wrap each error returned across the package boundary. When at least three functions share a prefix, keep the shared wrapper in errors.go. Do not repeat a layer in an error chain. Classify failures with errors.Is against sentinels, never by comparing error text. At an HTTP boundary, map those sentinels to the contract's response.\n\nKeep a pull request within 400 changed lines and one topic; the files golaw generates (`zz_generated` files and the support package) do not count and need no review. Combine topics only when the owner explicitly requests the bundle. Ask before pushing or opening a pull request.\n\nExplain why in English comments. Explain why the current code needs the decision. Keep documentation and conventional commits in English, with no commit trailers. Use the configured language for strings addressed to people, pt-BR by default.\n\nPass time through a Clock port and compose a UTC clock at the entry point. A metric belongs to the package that emits it.\n\nUse the repository's integration test conventions and declared dependencies. Keep integration suites on demand. For queries over growing tables, inspect the execution plan with realistic data.\n\nKeep applied migrations immutable. Verify rollback and reapplication in an isolated database, including the empty starting state. Review data preservation and recovery before delivery.\n\nWrite a failing test first, observe its failure, implement the smallest complete change, and observe it passing. Record the command and result for each verification claim. Report anything unmeasured explicitly.\n\nPolicy-file checks run in scan and staged scan, not in agent events. Checks apply only with their required capabilities; a missing capability makes a check inapplicable. Read configuration only through each reader's declared subset. Outside the declared subset is Unmeasured, never a finding. A stated limit names the file, line and construct the verdict depends on; unrelated unsupported syntax is skipped. Required Unmeasured results fail scan and remote CI. An armed pre-commit rung names that limit and leaves it to the pipeline. That limit alone does not refuse the commit and is not clean evidence; it does not excuse other failures.\n\nRun `golaw check` once the change is written: it runs every pipeline gate on what you changed and prints only what is red, so fix that and run it again instead of running go test, go vet, golangci-lint, golaw scan or coverage one by one. Run golaw scan --staged before finishing staged work. Local checks are optional aids. Remote CI or the platform pipeline is the only hard gate.\n\nRun golaw lint --surface before finishing when you changed a non-Go file. Move an inline script into a file, and export the code a test needs instead of evaluating it.\n\nOnly the developer arms git rungs with golaw setup; init alone never arms them. Each rung switches off in golaw.yml without a finding. Armed rungs finish in seconds, and pre-push runs govulncheck only. The full make ci belongs in remote CI or the platform pipeline; mutation, fuzzing, benchmarks and integration stay on demand.\n\nInstalled guards deny recognized violations only on enforced routes. Capture, feedback and installation alone do not prove enforcement. Do not weaken policy to bypass a finding.\n\nUse golaw doctor to distinguish installed, trusted and active hooks. Read docs\u002Fagent-contracts.md and docs\u002Fsecurity.md of the kit at the same tag before relying on an integration.\n\nCursor is a compatibility preview. Write and Delete payloads are captured by key name and allowed. Post feedback is advisory.\n\nAfter a Codex hook definition changes, review it through \u002Fhooks. Never write hooks.state yourself.\n\nThe rules page carries the prose mapping. Use the conditional checks and evidence record of the checklists, and docs\u002Fcontext-template.md of the kit at the same tag for hexagonal context shapes.\n","# Go engineering with golaw\n\nStart with `golaw context \u003Carea>` (`golaw map` lists the areas): it prints the area's ports, use cases, types, adapters, routes, tables, queries, wiring and the test to copy per layer, so open only the files you edit. Create a port, adapter, use case or handler with `golaw new` (`golaw new --help` shows one line per kind); in an area written by hand, `golaw new port \u003Carea>.\u003CPort>` adopts or stubs the port without `--usecase` and `golaw new adapter sql|http \u003Cpkg>.\u003CType> --port \u003Carea>.\u003CPort>` writes the adapter, while the use cases stay yours. Do not read the zz_generated files: the command prints each hole with its file and line. Never edit a generated file, edit its contract and the hook regenerates it. Fill the `golaw:hole` markers and their red tests; `golaw gen --check` must pass before you finish.\n\nQueries go through the pinned sqlc and HTTP contracts through the pinned oapi-codegen, both run by `golaw gen`; write the migration and the query before `golaw new adapter sql`.\n\nRead golaw.yml before changing the repository. Read a rule with `golaw rules \u003Cid>` (a family such as `goast` works; no argument lists every id) and a checklist with `golaw rules --checklist \u003Cname>`: your binary carries the kit's docs\u002Frules.md and docs\u002Fchecklists.md, so never fetch them from GitHub or the module cache.\n\nReuse in this order: existing repository code, the standard library, an existing platform capability, an installed dependency, then the smallest implementation that meets the need. Preserve boundary validation, error handling, and security. Record every new direct dependency and its alternatives in the configured decisions directory.\n\nFollow the strongest documented practice. Existing weak code is not a reason to repeat it.\n\nKeep one use case per file, named verb_object.go with its matching test file. Give it a constructor and an Execute method. Keep transport and persistence concerns outside it.\n\nDeclare package failure modes as sentinels in errors.go. Begin an operation with wrap := failures.Prefix(\"package: action\") and wrap each error returned across the package boundary. When at least three functions share a prefix, keep the shared wrapper in errors.go. Do not repeat a layer in an error chain. Classify failures with errors.Is against sentinels, never by comparing error text. At an HTTP boundary, map those sentinels to the contract's response.\n\nKeep a pull request within 400 changed lines and one topic; the files golaw generates (`zz_generated` files and the support package) do not count and need no review. Combine topics only when the owner explicitly requests the bundle. Ask before pushing or opening a pull request.\n\nExplain why in English comments. Explain why the current code needs the decision. Keep documentation and conventional commits in English, with no commit trailers. Use the configured language for strings addressed to people, pt-BR by default.\n\nPass time through a Clock port and compose a UTC clock at the entry point. A metric belongs to the package that emits it.\n\nUse the repository's integration test conventions and declared dependencies. Keep integration suites on demand. For queries over growing tables, inspect the execution plan with realistic data.\n\nKeep applied migrations immutable. Verify rollback and reapplication in an isolated database, including the empty starting state. Review data preservation and recovery before delivery.\n\nWrite a failing test first, observe its failure, implement the smallest complete change, and observe it passing. Record the command and result for each verification claim. Report anything unmeasured explicitly.\n\nPolicy-file checks run in scan and staged scan, not in agent events. Checks apply only with their required capabilities; a missing capability makes a check inapplicable. Read configuration only through each reader's declared subset. Outside the declared subset is Unmeasured, never a finding. A stated limit names the file, line and construct the verdict depends on; unrelated unsupported syntax is skipped. Required Unmeasured results fail scan and remote CI. An armed pre-commit rung names that limit and leaves it to the pipeline. That limit alone does not refuse the commit and is not clean evidence; it does not excuse other failures.\n\nRun `golaw check` once the change is written: it runs every pipeline gate on what you changed and prints only what is red, so fix that and run it again instead of running go test, go vet, golangci-lint, golaw scan or coverage one by one. Run golaw scan --staged before finishing staged work. Local checks are optional aids. Remote CI or the platform pipeline is the only hard gate.\n\nRun golaw lint --surface before finishing when you changed a non-Go file. Move an inline script into a file, and export the code a test needs instead of evaluating it.\n\nOnly the developer arms git rungs with golaw setup; init alone never arms them. Each rung switches off in golaw.yml without a finding. Armed rungs finish in seconds, and pre-push runs govulncheck only. The full make ci belongs in remote CI or the platform pipeline; mutation, fuzzing, benchmarks and integration stay on demand.\n\nInstalled guards deny recognized violations only on enforced routes. Capture, feedback and installation alone do not prove enforcement. Do not weaken policy to bypass a finding.\n\nUse golaw doctor to distinguish installed, trusted and active hooks. Read docs\u002Fagent-contracts.md and docs\u002Fsecurity.md of the kit at the same tag before relying on an integration.\n\nCursor is a compatibility preview. Write and Delete payloads are captured by key name and allowed. Post feedback is advisory.\n\nAfter a Codex hook definition changes, review it through \u002Fhooks. Never write hooks.state yourself.\n\nThe rules page carries the prose mapping. Use the conditional checks and evidence record of the checklists, and docs\u002Fcontext-template.md of the kit at the same tag for hexagonal context shapes.\n",{"name":5,"description":7},"main","5e3ea2a78a1ac70ec7b5f006d5abee860231e46e","agents\u002Fclaude\u002Fskills\u002Fgolaw","https:\u002F\u002Fgithub.com\u002Fcristianargotti\u002Fgolaw","https:\u002F\u002Fgithub.com\u002Fcristianargotti","2026-11-14 07:44:43",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add cristianargotti\u002Fgolaw --skill golaw",{"tool":35,"command":36},"bunx","bunx skills add cristianargotti\u002Fgolaw --skill golaw",{"tool":38,"command":39},"pnpm","pnpm dlx skills add cristianargotti\u002Fgolaw --skill golaw","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcristianargotti\u002Fgolaw\u002Fblob\u002Fmain\u002Fagents\u002Fclaude\u002Fskills\u002Fgolaw\u002FSKILL.md",true,[],[44,50],{"skillNo":45,"name":5,"nameZh":6,"description":46,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":47,"categories":48,"keywords":49,"publishedAt":18},"01M7ERJQQ2A219KBCFC6CQ7BSZ","Go work in a golaw repository.","https:\u002F\u002Fgithub.com\u002Fcristianargotti\u002Fgolaw\u002Fblob\u002Fmain\u002Ftools\u002Fcicheck\u002Fproof\u002Ftestdata\u002Fdocs.skill\u002Fnear\u002Fagents\u002FSKILL.md",[],[],{"skillNo":51,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":18},"01M7ERJJKHHFEDJG7EH7HEAE23","https:\u002F\u002Fgithub.com\u002Fcristianargotti\u002Fgolaw\u002Fblob\u002Fmain\u002Fagents\u002FSKILL.md",[],[]]