[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AD7NAE9X7BWJFWHY9P3DHB":3,"skill-same:01M6AD7NAE9X7BWJFWHY9P3DHB":71},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":17,"ownerHtmlUrl":43,"ownerBlogUrl":44,"ownerDescription":45,"updatedAt":46,"install":47,"resources":60},"01M6AD7NAE9X7BWJFWHY9P3DHB","write-tests","Replica 测试编写","Write meaningful Replica tests. Use when adding regression coverage, testing new behavior, or changing existing automated tests.","编写有意义的 Replica 测试。适用于添加回归覆盖、测试新行为或修改现有自动化测试的场景。","github\u002Freplica","github","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F9919?v=4","01M6AC83DS133TPXFSP1DHNCC6","GitHub","01M6AD7D93S1YD5K71F61E6ASB",273,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Freplica\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fwrite-tests\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",[31,32],"write tests","testing","2026-11-10 10:12:30",false,"---\nname: write-tests\ndescription: Write meaningful Replica tests. Use when adding regression coverage, testing new behavior, or changing existing automated tests.\n---\n\n# Writing meaningful tests\n\n## Establish the contract\n\nRead the [root instructions](..\u002F..\u002F..\u002FAGENTS.md), [shared coding conventions](..\u002F..\u002F..\u002Fdocs\u002Fcoding-conventions.md), and [testing and review guide](..\u002F..\u002F..\u002Fdocs\u002Ftesting-and-review.md), then the affected project's instructions and relevant guides. The shared guide owns test-quality criteria and the independent-writer policy.\n\nIdentify the accepted behavior, public interface, and existing coverage. For each proposed case, state the distinct regression it catches and why existing cases would miss it. Drop redundant cases and incidental assertions. Complete this step when every retained case has an expected outcome grounded in requirements rather than current implementation.\n\n## Choose the writer\n\nApply the shared guide's independent-writer policy. For substantial behavior changes and nontrivial bug fixes, delegate once to an available code-capable agent with permission to edit tests. Use a synchronous task unless implementation can safely proceed in separate files while the writer works.\n\nIf you are already the assigned test writer, write the tests directly; this assignment is the independent pass.\n\nGive the writer a self-contained assignment containing:\n\n- The relevant user request and accepted requirements, separately from implementation suggestions.\n- The bug reproduction or behavior to add, including known failure and boundary cases.\n- Affected interfaces and paths, existing coverage, project guidance, and any implementation already completed.\n- Ownership of named test files and necessary test fixtures; production changes remain with the implementation agent.\n- A bounded result: implement the smallest distinct coverage, run focused checks, and return changed files, the regression each case catches, observed red\u002Fgreen evidence, and unresolved requirements or production defects.\n\nWhen behavior is unclear, resolve it with the user before asking the writer to encode it. Small changes follow the same process directly without delegation.\n\n## Write and verify\n\nUse the existing runner and repository test patterns. Establish a meaningful failing case where feasible, then run the smallest command covering the completed change. Preserve unrelated work when checking pre-fix behavior; prefer an isolated reproduction over reverting a dirty worktree.\n\nReview the resulting tests against the shared criteria. Ensure mocks leave the behavior under test real, expectations come from the contract, and every added case protects a distinct regression. Resolve reported production defects in the implementation agent, then rerun affected tests and follow the project's final-check requirements.\n\nFinish only when the retained cases prove their intended outcomes, or explicitly report the blocker and unverified behavior. Distinguish observed results from expected coverage, and maintenance simplification from measured runtime savings. Keep the handoff concise; the per-case rationale belongs in the writer's working result, not boilerplate code comments or a new tracking document.\n","# Writing meaningful tests\n\n## Establish the contract\n\nRead the [root instructions](..\u002F..\u002F..\u002FAGENTS.md), [shared coding conventions](..\u002F..\u002F..\u002Fdocs\u002Fcoding-conventions.md), and [testing and review guide](..\u002F..\u002F..\u002Fdocs\u002Ftesting-and-review.md), then the affected project's instructions and relevant guides. The shared guide owns test-quality criteria and the independent-writer policy.\n\nIdentify the accepted behavior, public interface, and existing coverage. For each proposed case, state the distinct regression it catches and why existing cases would miss it. Drop redundant cases and incidental assertions. Complete this step when every retained case has an expected outcome grounded in requirements rather than current implementation.\n\n## Choose the writer\n\nApply the shared guide's independent-writer policy. For substantial behavior changes and nontrivial bug fixes, delegate once to an available code-capable agent with permission to edit tests. Use a synchronous task unless implementation can safely proceed in separate files while the writer works.\n\nIf you are already the assigned test writer, write the tests directly; this assignment is the independent pass.\n\nGive the writer a self-contained assignment containing:\n\n- The relevant user request and accepted requirements, separately from implementation suggestions.\n- The bug reproduction or behavior to add, including known failure and boundary cases.\n- Affected interfaces and paths, existing coverage, project guidance, and any implementation already completed.\n- Ownership of named test files and necessary test fixtures; production changes remain with the implementation agent.\n- A bounded result: implement the smallest distinct coverage, run focused checks, and return changed files, the regression each case catches, observed red\u002Fgreen evidence, and unresolved requirements or production defects.\n\nWhen behavior is unclear, resolve it with the user before asking the writer to encode it. Small changes follow the same process directly without delegation.\n\n## Write and verify\n\nUse the existing runner and repository test patterns. Establish a meaningful failing case where feasible, then run the smallest command covering the completed change. Preserve unrelated work when checking pre-fix behavior; prefer an isolated reproduction over reverting a dirty worktree.\n\nReview the resulting tests against the shared criteria. Ensure mocks leave the behavior under test real, expectations come from the contract, and every added case protects a distinct regression. Resolve reported production defects in the implementation agent, then rerun affected tests and follow the project's final-check requirements.\n\nFinish only when the retained cases prove their intended outcomes, or explicitly report the blocker and unverified behavior. Distinguish observed results from expected coverage, and maintenance simplification from measured runtime savings. Keep the handoff concise; the per-case rationale belongs in the writer's working result, not boilerplate code comments or a new tracking document.\n",{"name":5,"description":7},"main","0e8bdbd952ce0d93c8976876fa59e9f119614ae8",".github\u002Fskills\u002Fwrite-tests",35,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Freplica","https:\u002F\u002Fgithub.com\u002Fgithub","https:\u002F\u002Fgithub.com\u002Fabout","How people build software.","2026-11-15 01:22:55",{"source":9,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add github\u002Freplica --skill write-tests",{"tool":53,"command":54},"bunx","bunx skills add github\u002Freplica --skill write-tests",{"tool":56,"command":57},"pnpm","pnpm dlx skills add github\u002Freplica --skill write-tests","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgithub\u002Freplica\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fwrite-tests\u002FSKILL.md",true,[61,67],{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"agents\u002Fopenai.yaml","REFERENCE","参考文档",102,"https:\u002F\u002Fgithub.com\u002Ffeniix\u002Fdotfiles\u002Fblob\u002Fmain\u002Fagents\u002Fskills\u002Fwriting-for-agents\u002Fagents\u002Fopenai.yaml",{"path":68,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":69,"sourceHtmlUrl":70},"SKILL-MECHANICS.md",2629,"https:\u002F\u002Fgithub.com\u002Ffeniix\u002Fdotfiles\u002Fblob\u002Fmain\u002Fagents\u002Fskills\u002Fwriting-for-agents\u002FSKILL-MECHANICS.md",[72,80,102,123,137,156],{"skillNo":73,"name":74,"nameZh":17,"description":75,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":79},"01M7BGR5MA12JFGWQSF7CDXPD5","create-prototype-from-production","Use when asked to copy, clone, replicate or recreate a live production website or web app as a Replica prototype from its URL, such as \"create a prototype from https:\u002F\u002Fexample.com\" or \"replicate this site for a demo\". Do not use for building a new design from a brief, or for changing an existing prototype.","https:\u002F\u002Fgithub.com\u002Fgithub\u002Freplica\u002Fblob\u002Fmain\u002Fstarters\u002Fminimal\u002F.agents\u002Fskills\u002Fcreate-prototype-from-production\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":81,"name":82,"nameZh":83,"description":84,"descriptionZh":85,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":86,"categories":87,"keywords":94,"publishedAt":33},"01M6AD93V99PC60JK4VK50HKXB","visual-design-review","页面视觉设计评审","Reviews page hierarchy, grouping, density, actions and state design using consumer-owned product and design-system guidance. Use when asked for a visual design review, page critique or whether a new page communicates its task clearly.","依据使用方自有的产品与设计系统指南，审查页面层级、分组、密度、操作及状态设计。当用户要求视觉设计评审、页面点评，或询问新页面是否清晰传达其任务时使用。","https:\u002F\u002Fgithub.com\u002Fgithub\u002Freplica\u002Fblob\u002Fmain\u002Fstarters\u002Fshared\u002F.agents\u002Fskills\u002Fvisual-design-review\u002FSKILL.md",[88,91],{"categoryNo":89,"categoryName":90,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TKC3WYCB32755485KS6","视觉设计",{"categoryNo":92,"categoryName":93,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQMKHSMFVQHR2KYAEVN","界面设计师",[95,96,97,98,99,100,101],"review","design review","design","visual design review","actions","product","state",{"skillNo":103,"name":104,"nameZh":105,"description":106,"descriptionZh":107,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":108,"categories":109,"keywords":116,"publishedAt":33},"01M6AD91PX2VVM9NCAEHVTV12J","setup-skills","技能共享源配置与上下文起草","Configures shared sources and drafts context with independent writers. Plain\u002Ffresh setup offers installation of user-named packages and reuses built-in browser capabilities, adding browser tooling only for an evidenced required-check gap. Use for setup, source repair, writing context or refreshing drafts. Configure-only skips tooling and authoring; installations and activation require separate approval.","配置共享源，并使用独立的 writer 起草上下文。普通\u002F全新设置会提供用户指定包的安装，并复用内置浏览器能力，仅在确有证据表明必要检查存在缺口时才添加浏览器工具。适用于设置、源修复、编写上下文或刷新草稿。仅配置模式会跳过工具安装和编写；安装和激活需要单独批准。","https:\u002F\u002Fgithub.com\u002Fgithub\u002Freplica\u002Fblob\u002Fmain\u002Fstarters\u002Fshared\u002F.agents\u002Fskills\u002Fsetup-skills\u002FSKILL.md",[110,113],{"categoryNo":111,"categoryName":112,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRN0CV1NMDZ5TEJX1GVM29","插件与技能管理",{"categoryNo":114,"categoryName":115,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师",[117,118,119,120,121,122],"setup","setup skills","browser","capabilities","writing","packages",{"skillNo":124,"name":125,"nameZh":126,"description":127,"descriptionZh":128,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":129,"categories":130,"keywords":135,"publishedAt":33},"01M6AD907YGYR4MJXMYKWF384R","review-hub-feedback","Hub 反馈设计主题提炼","Review Hub feedback for reusable design themes through discovery, independent judging and synthesis. No diagnosis or optimization.","通过发现、独立判断和综合归纳，审查 Hub 反馈以提炼可复用的设计主题。不进行诊断或优化。","https:\u002F\u002Fgithub.com\u002Fgithub\u002Freplica\u002Fblob\u002Fmain\u002Fstarters\u002Fshared\u002F.agents\u002Fskills\u002Freview-hub-feedback\u002FSKILL.md",[131,132],{"categoryNo":92,"categoryName":93,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":133,"categoryName":134,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BV6DNANVDR10RQWB4XV2V6","用户反馈处理",[95,136,97],"review hub feedback",{"skillNo":138,"name":139,"nameZh":140,"description":141,"descriptionZh":142,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":143,"categories":144,"keywords":151,"publishedAt":33},"01M6AD8YR85DPBCPRAW8S112RD","responsive-audit","UI 响应式布局审计","Audits UI layout, overflow and navigation across product-defined viewports using consumer context and browser tools. Use when asked to check responsiveness, test mobile layout or audit breakpoint behavior.","使用使用者上下文和浏览器工具，跨产品定义的视口审查 UI 布局、溢出和导航。当用户要求检查响应式、测试移动端布局或审查断点行为时使用。","https:\u002F\u002Fgithub.com\u002Fgithub\u002Freplica\u002Fblob\u002Fmain\u002Fstarters\u002Fshared\u002F.agents\u002Fskills\u002Fresponsive-audit\u002FSKILL.md",[145,148],{"categoryNo":146,"categoryName":147,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":149,"categoryName":150,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现",[152,153,100,154,155,119],"responsive audit","audit","ui","test",{"skillNo":157,"name":158,"nameZh":159,"description":160,"descriptionZh":161,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":162,"categories":163,"keywords":168,"publishedAt":33},"01M6AD8WA6KSR3GQ57WJ0T6M0D","prototype-controls","Replica 原型控件创建与绑定","Create and wire Replica prototype controls. Use when asked to add or change dropdowns, sliders, input fields, toggles or action buttons that configure variants, scenarios, visible UI, app state or data sources, even without canvas terminology. Covers declarations, typed bindings, defaults, conditions, resets and actions. Product UI form fields and filters alone belong to create-prototype.","创建并连接 Replica 原型控件。当用户要求添加或修改下拉框、滑块、输入框、切换开关或操作按钮（用于配置变体、场景、可见 UI、应用状态或数据源）时使用，即使未使用画布术语也一样。涵盖声明、类型化绑定、默认值、条件、重置和动作。仅涉及产品 UI 表单字段和筛选器时，应使用 create-prototype。","https:\u002F\u002Fgithub.com\u002Fgithub\u002Freplica\u002Fblob\u002Fmain\u002Fstarters\u002Fshared\u002F.agents\u002Fskills\u002Fprototype-controls\u002FSKILL.md",[164,165],{"categoryNo":92,"categoryName":93,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":166,"categoryName":167,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BWKS60NTYJHFE9FQSXGDKS","低代码应用开发",[169,170,101,171,172,154,100,99,173],"prototype controls","prototype","create","change","canvas"]