[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JGT4MMEK24BB9GAY2T87SJ":3,"skill-same:01M6JGT4MMEK24BB9GAY2T87SJ":97},{"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":26,"publishedAt":47,"linkOnly":48,"markdownContent":49,"markdownBody":50,"frontMatter":51,"refName":57,"commitSha":58,"skillDirectory":59,"forksCount":60,"repositoryHtmlUrl":61,"repositoryHomepageUrl":6,"ownerHtmlUrl":62,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":63,"install":64,"resources":77},"01M6JGT4MMEK24BB9GAY2T87SJ","golang-stretchr-testify",null,"Comprehensive guide to stretchr\u002Ftestify for Golang testing. Covers assert, require, mock, and suite packages in depth. Use whenever writing tests with testify, creating mocks, setting up test suites, or choosing between assert and require. Essential for testify assertions, mock expectations, argument matchers, call verification, suite lifecycle, and advanced patterns like Eventually, JSONEq, and custom matchers. Trigger on any Go test file importing testify.","muratovv\u002Fai-hats","muratovv","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F7502801?v=4","01M6JGCBN4KEJX012GPJVSH04T","Fedor Muratov","01M6JGCBSNMN7CW3RGTPPE0MN2",3,"MIT","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-stretchr-testify\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"golang stretchr testify","golang","projects","argument","advanced","false","query","context7","up","write","read","testing","golang testing","Bash","verification","code","packages","ai coding agents","writing","MCP","2026-11-10 10:12:30",false,"---\nname: golang-stretchr-testify\ndescription: >-\n  Comprehensive guide to stretchr\u002Ftestify for Golang testing. Covers\n  assert, require, mock, and suite packages in depth. Use whenever writing\n  tests with testify, creating mocks, setting up test suites, or choosing\n  between assert and require. Essential for testify assertions, mock\n  expectations, argument matchers, call verification, suite lifecycle, and\n  advanced patterns like Eventually, JSONEq, and custom matchers. Trigger\n  on any Go test file importing testify.\nuser-invocable: false\nlicense: MIT\ncompatibility: Designed for Claude Code or similar AI coding agents, and for projects using Golang.\nmetadata:\n  author: samber\n  version: \"1.1.3\"\nallowed-tools: Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agent WebFetch mcp__context7__resolve-library-id mcp__context7__query-docs Bash(gotests:*) AskUserQuestion\n---\n\n**Persona:** You are a Go engineer who treats tests as executable specifications. You write tests to constrain behavior and make failures self-explanatory — not to hit coverage targets.\n\n**Modes:**\n\n- **Write mode** — adding new tests or mocks to a codebase.\n- **Review mode** — auditing existing test code for testify misuse.\n\n# stretchr\u002Ftestify\n\ntestify complements Go's `testing` package with readable assertions, mocks, and suites. It does not replace `testing` — always use `*testing.T` as the entry point.\n\nThis skill is not exhaustive. Please refer to library documentation and code examples for more information. Context7 can help as a discoverability platform.\n\n## assert vs require\n\nBoth offer identical assertions. The difference is failure behavior:\n\n- **assert**: records failure, continues — see all failures at once\n- **require**: calls `t.FailNow()` — use for preconditions where continuing would panic or mislead\n\nUse `assert.New(t)` \u002F `require.New(t)` for readability. Name them `is` and `must`:\n\n```go\nfunc TestParseConfig(t *testing.T) {\n    is := assert.New(t)\n    must := require.New(t)\n\n    cfg, err := ParseConfig(\"testdata\u002Fvalid.yaml\")\n    must.NoError(err)    \u002F\u002F stop if parsing fails — cfg would be nil\n    must.NotNil(cfg)\n\n    is.Equal(\"production\", cfg.Environment)\n    is.Equal(8080, cfg.Port)\n    is.True(cfg.TLS.Enabled)\n}\n```\n\n**Rule**: `require` for preconditions (setup, error checks), `assert` for verifications. Never mix randomly.\n\n## Core Assertions\n\n```go\nis := assert.New(t)\n\n\u002F\u002F Equality\nis.Equal(expected, actual)              \u002F\u002F DeepEqual + exact type\nis.NotEqual(unexpected, actual)\nis.EqualValues(expected, actual)        \u002F\u002F converts to common type first\nis.EqualExportedValues(expected, actual)\n\n\u002F\u002F Nil \u002F Bool \u002F Emptiness\nis.Nil(obj)                  is.NotNil(obj)\nis.True(cond)                is.False(cond)\nis.Empty(collection)         is.NotEmpty(collection)\nis.Len(collection, n)\n\n\u002F\u002F Contains (strings, slices, map keys)\nis.Contains(\"hello world\", \"world\")\nis.Contains([]int{1, 2, 3}, 2)\nis.Contains(map[string]int{\"a\": 1}, \"a\")\n\n\u002F\u002F Comparison\nis.Greater(actual, threshold)     is.Less(actual, ceiling)\nis.Positive(val)                  is.Negative(val)\nis.Zero(val)\n\n\u002F\u002F Errors\nis.Error(err)                     is.NoError(err)\nis.ErrorIs(err, ErrNotFound)      \u002F\u002F walks error chain\nis.ErrorAs(err, &target)\nis.ErrorContains(err, \"not found\")\n\n\u002F\u002F Type\nis.IsType(&User{}, obj)\nis.Implements((*io.Reader)(nil), obj)\n```\n\n**Argument order**: always `(expected, actual)` — swapping produces confusing diff output.\n\n## Advanced Assertions\n\n```go\nis.ElementsMatch([]string{\"b\", \"a\", \"c\"}, result)             \u002F\u002F unordered comparison\nis.InDelta(3.14, computedPi, 0.01)                            \u002F\u002F float tolerance\nis.JSONEq(`{\"name\":\"alice\"}`, `{\"name\": \"alice\"}`)             \u002F\u002F ignores whitespace\u002Fkey order\nis.WithinDuration(expected, actual, 5*time.Second)\nis.Regexp(`^user-[a-f0-9]+$`, userID)\n\n\u002F\u002F Async polling\nis.Eventually(func() bool {\n    status, _ := client.GetJobStatus(jobID)\n    return status == \"completed\"\n}, 5*time.Second, 100*time.Millisecond)\n\n\u002F\u002F Async polling with rich assertions\nis.EventuallyWithT(func(c *assert.CollectT) {\n    resp, err := client.GetOrder(orderID)\n    assert.NoError(c, err)\n    assert.Equal(c, \"shipped\", resp.Status)\n}, 10*time.Second, 500*time.Millisecond)\n```\n\n## testify\u002Fmock\n\nMock interfaces to isolate the unit under test. Embed `mock.Mock`, implement methods with `m.Called()`, always verify with `AssertExpectations(t)`.\n\nKey matchers: `mock.Anything`, `mock.AnythingOfType(\"T\")`, `mock.MatchedBy(func)`. Call modifiers: `.Once()`, `.Times(n)`, `.Maybe()`, `.Run(func)`.\n\nFor defining mocks, argument matchers, call modifiers, return sequences, and verification, see [Mock reference](.\u002Freferences\u002Fmock.md).\n\n## testify\u002Fsuite\n\nSuites group related tests with shared setup\u002Fteardown.\n\n### Lifecycle\n\n```\nSetupSuite()    → once before all tests\n  SetupTest()   → before each test\n    TestXxx()\n  TearDownTest() → after each test\nTearDownSuite() → once after all tests\n```\n\n### Example\n\n```go\ntype TokenServiceSuite struct {\n    suite.Suite\n    store   *MockTokenStore\n    service *TokenService\n}\n\nfunc (s *TokenServiceSuite) SetupTest() {\n    s.store = new(MockTokenStore)\n    s.service = NewTokenService(s.store)\n}\n\nfunc (s *TokenServiceSuite) TestGenerate_ReturnsValidToken() {\n    s.store.On(\"Save\", mock.Anything, mock.Anything).Return(nil)\n    token, err := s.service.Generate(\"user-42\")\n    s.NoError(err)\n    s.NotEmpty(token)\n    s.store.AssertExpectations(s.T())\n}\n\n\u002F\u002F Required launcher\nfunc TestTokenServiceSuite(t *testing.T) {\n    suite.Run(t, new(TokenServiceSuite))\n}\n```\n\nSuite methods like `s.Equal()` behave like `assert`. For require: `s.Require().NotNil(obj)`.\n\n## Common Mistakes\n\n- **Forgetting `AssertExpectations(t)`** — mock expectations silently pass without verification\n- **`is.Equal(ErrNotFound, err)`** — fails on wrapped errors. Use `is.ErrorIs` to walk the chain\n- **Swapped argument order** — testify assumes `(expected, actual)`. Swapping produces backwards diffs\n- **`assert` for guards** — test continues after failure and panics on nil dereference. Use `require`\n- **Missing `suite.Run()`** — without the launcher function, zero tests execute silently\n- **Comparing pointers** — `is.Equal(ptr1, ptr2)` compares addresses. Dereference or use `EqualExportedValues`\n\n## Linters\n\nUse `testifylint` to catch wrong argument order, assert\u002Frequire misuse, and more. See `samber\u002Fcc-skills-golang@golang-linter` skill.\n\n## Cross-References\n\n- → See `samber\u002Fcc-skills-golang@golang-testing` skill for general test patterns, table-driven tests, and CI\n- → See `samber\u002Fcc-skills-golang@golang-linter` skill for testifylint configuration\n","**Persona:** You are a Go engineer who treats tests as executable specifications. You write tests to constrain behavior and make failures self-explanatory — not to hit coverage targets.\n\n**Modes:**\n\n- **Write mode** — adding new tests or mocks to a codebase.\n- **Review mode** — auditing existing test code for testify misuse.\n\n# stretchr\u002Ftestify\n\ntestify complements Go's `testing` package with readable assertions, mocks, and suites. It does not replace `testing` — always use `*testing.T` as the entry point.\n\nThis skill is not exhaustive. Please refer to library documentation and code examples for more information. Context7 can help as a discoverability platform.\n\n## assert vs require\n\nBoth offer identical assertions. The difference is failure behavior:\n\n- **assert**: records failure, continues — see all failures at once\n- **require**: calls `t.FailNow()` — use for preconditions where continuing would panic or mislead\n\nUse `assert.New(t)` \u002F `require.New(t)` for readability. Name them `is` and `must`:\n\n```go\nfunc TestParseConfig(t *testing.T) {\n    is := assert.New(t)\n    must := require.New(t)\n\n    cfg, err := ParseConfig(\"testdata\u002Fvalid.yaml\")\n    must.NoError(err)    \u002F\u002F stop if parsing fails — cfg would be nil\n    must.NotNil(cfg)\n\n    is.Equal(\"production\", cfg.Environment)\n    is.Equal(8080, cfg.Port)\n    is.True(cfg.TLS.Enabled)\n}\n```\n\n**Rule**: `require` for preconditions (setup, error checks), `assert` for verifications. Never mix randomly.\n\n## Core Assertions\n\n```go\nis := assert.New(t)\n\n\u002F\u002F Equality\nis.Equal(expected, actual)              \u002F\u002F DeepEqual + exact type\nis.NotEqual(unexpected, actual)\nis.EqualValues(expected, actual)        \u002F\u002F converts to common type first\nis.EqualExportedValues(expected, actual)\n\n\u002F\u002F Nil \u002F Bool \u002F Emptiness\nis.Nil(obj)                  is.NotNil(obj)\nis.True(cond)                is.False(cond)\nis.Empty(collection)         is.NotEmpty(collection)\nis.Len(collection, n)\n\n\u002F\u002F Contains (strings, slices, map keys)\nis.Contains(\"hello world\", \"world\")\nis.Contains([]int{1, 2, 3}, 2)\nis.Contains(map[string]int{\"a\": 1}, \"a\")\n\n\u002F\u002F Comparison\nis.Greater(actual, threshold)     is.Less(actual, ceiling)\nis.Positive(val)                  is.Negative(val)\nis.Zero(val)\n\n\u002F\u002F Errors\nis.Error(err)                     is.NoError(err)\nis.ErrorIs(err, ErrNotFound)      \u002F\u002F walks error chain\nis.ErrorAs(err, &target)\nis.ErrorContains(err, \"not found\")\n\n\u002F\u002F Type\nis.IsType(&User{}, obj)\nis.Implements((*io.Reader)(nil), obj)\n```\n\n**Argument order**: always `(expected, actual)` — swapping produces confusing diff output.\n\n## Advanced Assertions\n\n```go\nis.ElementsMatch([]string{\"b\", \"a\", \"c\"}, result)             \u002F\u002F unordered comparison\nis.InDelta(3.14, computedPi, 0.01)                            \u002F\u002F float tolerance\nis.JSONEq(`{\"name\":\"alice\"}`, `{\"name\": \"alice\"}`)             \u002F\u002F ignores whitespace\u002Fkey order\nis.WithinDuration(expected, actual, 5*time.Second)\nis.Regexp(`^user-[a-f0-9]+$`, userID)\n\n\u002F\u002F Async polling\nis.Eventually(func() bool {\n    status, _ := client.GetJobStatus(jobID)\n    return status == \"completed\"\n}, 5*time.Second, 100*time.Millisecond)\n\n\u002F\u002F Async polling with rich assertions\nis.EventuallyWithT(func(c *assert.CollectT) {\n    resp, err := client.GetOrder(orderID)\n    assert.NoError(c, err)\n    assert.Equal(c, \"shipped\", resp.Status)\n}, 10*time.Second, 500*time.Millisecond)\n```\n\n## testify\u002Fmock\n\nMock interfaces to isolate the unit under test. Embed `mock.Mock`, implement methods with `m.Called()`, always verify with `AssertExpectations(t)`.\n\nKey matchers: `mock.Anything`, `mock.AnythingOfType(\"T\")`, `mock.MatchedBy(func)`. Call modifiers: `.Once()`, `.Times(n)`, `.Maybe()`, `.Run(func)`.\n\nFor defining mocks, argument matchers, call modifiers, return sequences, and verification, see [Mock reference](.\u002Freferences\u002Fmock.md).\n\n## testify\u002Fsuite\n\nSuites group related tests with shared setup\u002Fteardown.\n\n### Lifecycle\n\n```\nSetupSuite()    → once before all tests\n  SetupTest()   → before each test\n    TestXxx()\n  TearDownTest() → after each test\nTearDownSuite() → once after all tests\n```\n\n### Example\n\n```go\ntype TokenServiceSuite struct {\n    suite.Suite\n    store   *MockTokenStore\n    service *TokenService\n}\n\nfunc (s *TokenServiceSuite) SetupTest() {\n    s.store = new(MockTokenStore)\n    s.service = NewTokenService(s.store)\n}\n\nfunc (s *TokenServiceSuite) TestGenerate_ReturnsValidToken() {\n    s.store.On(\"Save\", mock.Anything, mock.Anything).Return(nil)\n    token, err := s.service.Generate(\"user-42\")\n    s.NoError(err)\n    s.NotEmpty(token)\n    s.store.AssertExpectations(s.T())\n}\n\n\u002F\u002F Required launcher\nfunc TestTokenServiceSuite(t *testing.T) {\n    suite.Run(t, new(TokenServiceSuite))\n}\n```\n\nSuite methods like `s.Equal()` behave like `assert`. For require: `s.Require().NotNil(obj)`.\n\n## Common Mistakes\n\n- **Forgetting `AssertExpectations(t)`** — mock expectations silently pass without verification\n- **`is.Equal(ErrNotFound, err)`** — fails on wrapped errors. Use `is.ErrorIs` to walk the chain\n- **Swapped argument order** — testify assumes `(expected, actual)`. Swapping produces backwards diffs\n- **`assert` for guards** — test continues after failure and panics on nil dereference. Use `require`\n- **Missing `suite.Run()`** — without the launcher function, zero tests execute silently\n- **Comparing pointers** — `is.Equal(ptr1, ptr2)` compares addresses. Dereference or use `EqualExportedValues`\n\n## Linters\n\nUse `testifylint` to catch wrong argument order, assert\u002Frequire misuse, and more. See `samber\u002Fcc-skills-golang@golang-linter` skill.\n\n## Cross-References\n\n- → See `samber\u002Fcc-skills-golang@golang-testing` skill for general test patterns, table-driven tests, and CI\n- → See `samber\u002Fcc-skills-golang@golang-linter` skill for testifylint configuration\n",{"name":5,"license":15,"metadata":52,"description":7,"allowed-tools":55,"compatibility":56,"user-invocable":48},{"author":53,"version":54},"samber","1.1.3","Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agent WebFetch mcp__context7__resolve-library-id mcp__context7__query-docs Bash(gotests:*) AskUserQuestion","Designed for Claude Code or similar AI coding agents, and for projects using Golang.","master","b4819add93efbaf4d80627118ec34680406b309b","packages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-stretchr-testify",1,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats","https:\u002F\u002Fgithub.com\u002Fmuratovv","2026-11-05 20:59:10",{"source":8,"skillName":5,"commands":65,"prompt":75,"zipAvailable":76},[66,69,72],{"tool":67,"command":68},"npx","npx skills add muratovv\u002Fai-hats --skill golang-stretchr-testify",{"tool":70,"command":71},"bunx","bunx skills add muratovv\u002Fai-hats --skill golang-stretchr-testify",{"tool":73,"command":74},"pnpm","pnpm dlx skills add muratovv\u002Fai-hats --skill golang-stretchr-testify","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-stretchr-testify\u002FSKILL.md",true,[78,84,89,93],{"path":79,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},"evals\u002Fevals.json","REFERENCE","参考文档",11137,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-stretchr-testify\u002Fevals\u002Fevals.json",{"path":85,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":87,"sourceHtmlUrl":88},"LICENSE","许可证",1070,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-stretchr-testify\u002FLICENSE",{"path":90,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":91,"sourceHtmlUrl":92},"metadata.yaml",663,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-stretchr-testify\u002Fmetadata.yaml",{"path":94,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Fmock.md",3213,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-stretchr-testify\u002Freferences\u002Fmock.md",[98,123,148,167,191,204],{"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":47},"01M6PVFB1SM738R2SRSRSF7CY6","tool-evaluation-protocol","Time-bounded protocol for evaluating new tools, libraries, or methodologies before adoption. Use when evaluating a candidate dependency for the project, researching a methodology (e.g. ML\u002FLLM frameworks, testing approaches), or following up on a hype-driven recommendation.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Ftool-evaluation-protocol\u002FSKILL.md",[],[105,106,107,108,38,109,110,111,112,113,114,115,35,116,117,118,119,120,121,122],"protocol","Evaluation","tool","tool evaluation protocol","ml","libraries","adoption","methodology","Tools","use","dependency","frameworks","time","project","recommendation","for","bounded","candidate",{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":47},"01M6PVF7HATBEX1G7N50E2QT57","systematic-debugging","4-phase bug-fix protocol (evidence, pattern, hypothesis, verify). Use when investigating any error, failure, or unexpected behavior, handling bug reports from users or monitoring, or diagnosing test failures with non-obvious causes.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[130,131,132,133,105,134,135,136,137,138,114,139,140,141,142,143,144,145,146,147],"systematic debugging","debugging","systematic","test","monitoring","hypothesis","verify","behavior","fix","evidence","bug","reports","pattern","users","error","with","bug-fix","phase",{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":155,"publishedAt":47},"01M6PVF3MTQN3RPF73AN34856J","skill-template","Canonical template and validation guide for ai-hats skills. Use when creating a new skill, reviewing an existing one for structural compliance, or deciding which pattern fits a new behavior.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fskill-template\u002FSKILL.md",[154],{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[156,157,158,159,160,137,161,114,162,142,163,164,165,120,166],"template","skill template","validation","compliance","hats","guide","new skill","structural","canonical","which","Existing",{"skillNo":168,"name":169,"nameZh":6,"description":170,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":171,"categories":172,"keywords":174,"publishedAt":47},"01M6PVF06SCV28QARM5MQPANC9","skill-optimization","Audit and refactor library components to eliminate redundancy and staleness. Use during periodic library maintenance, after adding multiple new skills or rules, when a role's token budget is too high, or after retrospectives identify component issues.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fskill-optimization\u002FSKILL.md",[173],{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[175,176,177,178,179,180,181,182,183,184,114,185,186,187,188,189,190],"Optimization","skill optimization","components","component","issues","library","audit","refactor","Budget","Rules","periodic","maintenance","token","token budget","role","high",{"skillNo":192,"name":193,"nameZh":6,"description":194,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":195,"categories":196,"keywords":197,"publishedAt":47},"01M6PVEXM9717016T9MW82HDCT","silent-fallback-gate","PreToolUse hook — refuses an Edit or Write that adds an inert broad except. Use when a Python edit was blocked for a silent fallback.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fsilent-fallback-gate\u002FSKILL.md",[],[198,199,200,201,36,202,114,203,120],"gate","fallback","silent fallback gate","python","edit","hook",{"skillNo":205,"name":206,"nameZh":6,"description":207,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":208,"categories":209,"keywords":211,"publishedAt":47},"01M6PVESM49C5NT7SB7N3F76VS","retro-to-framework","Convert an observation about agent behavior — from a retrospective or from a single incident — into a framework-level change (hook, rule, skill, skill update). Use after a retrospective identifies problems that are not project-specific, after an incident where an agent misapplied a component it had read, when CLAUDE.md band-aids accumulate (more than 3 per-project rules that could be generic), or when the same problem recurs across multiple projects.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fretro-to-framework\u002FSKILL.md",[210],{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[212,213,214,215,178,216,29,217,184,137,114,218,219,118,220,221,222,223,224,225],"framework","retro","retro to framework","change","retrospective","convert","incident","across","problem","about","more","skill update","single","generic"]