[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EM7B9TH37CVZ3089B7B3YW":3,"skill-same:01M7EM7B9TH37CVZ3089B7B3YW":43},{"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":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":13,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":42},"01M7EM7B9TH37CVZ3089B7B3YW","principle-test-behavior-not-implementation",null,"Apply when you write, change, or keep a test. Call the code as its users do and assert the exact result they see. Rewrite or delete a test that would pass if every imported function returned undefined.","anas-yousef\u002Fpstack-claude","anas-yousef","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F44998563?v=4","01M7EKWDK1H83ZT5PKXWXAVFPD","01M7EKWDKNREGX0H27EY81D3QS",0,"MIT","https:\u002F\u002Fgithub.com\u002Fanas-yousef\u002Fpstack-claude\u002Fblob\u002Fmain\u002Fupstream\u002Fskills\u002Fprinciple-test-behavior-not-implementation\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: principle-test-behavior-not-implementation\ndescription: \"Apply when you write, change, or keep a test. Call the code as its users do and assert the exact result they see. Rewrite or delete a test that would pass if every imported function returned undefined.\"\ndisable-model-invocation: true\n---\n\n# Test Behavior, Not Implementation\n\nA test calls the code as its users do and asserts the exact result they see. Rewrite or delete any test that would still pass if every imported function returned `undefined` or a wrong value.\n\nThese shapes fail that check:\n\n- Loose or no assertion: `toBeDefined`, `toBeTruthy`, `not.toThrow`, `toBeGreaterThan(0)`.\n- Call or absence only: `toHaveBeenCalled`, `not.toHaveBeenCalled`, `toBeUndefined`, `toEqual([])`.\n- Expected value computed by the code under test: `expect(f(a)).toBe(f(a))`.\n- Restated constant, config default, table row, or prompt string.\n- Assertions on data the test built, with no call to the subject.\n\nFix: call the subject in the test body with one concrete input and assert the literal output or effect. For a mock, assert the payload it received. For an absence, also assert the presence on another input. For a constant, test the mechanism that reads it with one input instead of restating the value.\n\nKeep relation checks across table rows (a key in two tables, a parent that exists) and `*.test-d.ts` type checks.\n","# Test Behavior, Not Implementation\n\nA test calls the code as its users do and asserts the exact result they see. Rewrite or delete any test that would still pass if every imported function returned `undefined` or a wrong value.\n\nThese shapes fail that check:\n\n- Loose or no assertion: `toBeDefined`, `toBeTruthy`, `not.toThrow`, `toBeGreaterThan(0)`.\n- Call or absence only: `toHaveBeenCalled`, `not.toHaveBeenCalled`, `toBeUndefined`, `toEqual([])`.\n- Expected value computed by the code under test: `expect(f(a)).toBe(f(a))`.\n- Restated constant, config default, table row, or prompt string.\n- Assertions on data the test built, with no call to the subject.\n\nFix: call the subject in the test body with one concrete input and assert the literal output or effect. For a mock, assert the payload it received. For an absence, also assert the presence on another input. For a constant, test the mechanism that reads it with one input instead of restating the value.\n\nKeep relation checks across table rows (a key in two tables, a parent that exists) and `*.test-d.ts` type checks.\n",{"name":5,"description":7,"disable-model-invocation":23},true,"main","583cb36363b11545f389fa22000a98fc84ae8692","upstream\u002Fskills\u002Fprinciple-test-behavior-not-implementation","https:\u002F\u002Fgithub.com\u002Fanas-yousef\u002Fpstack-claude","https:\u002F\u002Fgithub.com\u002Fanas-yousef","2026-10-14 11:57:47",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":23},[32,35,38],{"tool":33,"command":34},"npx","npx skills add anas-yousef\u002Fpstack-claude --skill principle-test-behavior-not-implementation",{"tool":36,"command":37},"bunx","bunx skills add anas-yousef\u002Fpstack-claude --skill principle-test-behavior-not-implementation",{"tool":39,"command":40},"pnpm","pnpm dlx skills add anas-yousef\u002Fpstack-claude --skill principle-test-behavior-not-implementation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fanas-yousef\u002Fpstack-claude\u002Fblob\u002Fmain\u002Fupstream\u002Fskills\u002Fprinciple-test-behavior-not-implementation\u002FSKILL.md",[],[44,51,58,65,72,79],{"skillNo":45,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":48,"categories":49,"keywords":50,"publishedAt":18},"01M7EM8H03WR2E8E9B31AG8YQE","why","Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Discovers available MCPs and queries each evidence category (source control, issue tracker, long-form docs, real-time chat, infrastructure observability, error tracking, product analytics warehouse) in parallel, then returns a cited read on decisions and tradeoffs. Use how for runtime behavior.","https:\u002F\u002Fgithub.com\u002Fanas-yousef\u002Fpstack-claude\u002Fblob\u002Fmain\u002Fupstream\u002Fskills\u002Fwhy\u002FSKILL.md",[],[],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M7EM8E8WV7GVW3JHBRGPC3EC","unslop","Cut AI tells from any writing.","https:\u002F\u002Fgithub.com\u002Fanas-yousef\u002Fpstack-claude\u002Fblob\u002Fmain\u002Fupstream\u002Fskills\u002Funslop\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M7EM8AHBT0QTDXQ8FAGKB9V0","typescript-best-practices","TypeScript best practices. Use when reading or editing any .ts or .tsx file.","https:\u002F\u002Fgithub.com\u002Fanas-yousef\u002Fpstack-claude\u002Fblob\u002Fmain\u002Fupstream\u002Fskills\u002Ftypescript-best-practices\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M7EM85R63HJ6QBQG3W4X28YG","technical-writing","Layered technical-writing standard: Diátaxis structure, Google developer style sentences, STE instruction rules, Global English syntax. Use for \u002Ftechnical-writing or when writing or reviewing docs, RFCs, readmes, PR descriptions, or commit messages.","https:\u002F\u002Fgithub.com\u002Fanas-yousef\u002Fpstack-claude\u002Fblob\u002Fmain\u002Fupstream\u002Fskills\u002Ftechnical-writing\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M7EM83CFA42BZF9K6F4H3GYG","teach","Explain a body of work plainly so a person actually understands it. Runs the `how` and `why` skills and weaves what they find into one clear explanation. Use for 'teach me this', 'help me really understand X', 'explain this change or subsystem to me'.","https:\u002F\u002Fgithub.com\u002Fanas-yousef\u002Fpstack-claude\u002Fblob\u002Fmain\u002Fupstream\u002Fskills\u002Fteach\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M7EM80V499CGYA0CFC9PMFEW","tdd","Use only when the user explicitly asks for TDD, a failing test, or a regression test, OR when the bug has an obvious cheap local test target. Skip when the test path is unclear, expensive, integration-heavy, or not requested.","https:\u002F\u002Fgithub.com\u002Fanas-yousef\u002Fpstack-claude\u002Fblob\u002Fmain\u002Fupstream\u002Fskills\u002Ftdd\u002FSKILL.md",[],[]]