[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ACARJQT4ESW4488DAETV2Q":3,"skill-same:01M6ACARJQT4ESW4488DAETV2Q":106},{"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":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":56,"commitSha":57,"skillDirectory":58,"forksCount":59,"repositoryHtmlUrl":60,"repositoryHomepageUrl":17,"ownerHtmlUrl":61,"ownerBlogUrl":62,"ownerDescription":17,"updatedAt":63,"install":64,"resources":77},"01M6ACARJQT4ESW4488DAETV2Q","gen-ut","ShardingSphere 单元测试生成","Generate standard unit tests for one or more target classes in Apache ShardingSphere; cover requested behavior and every affected SUT-owned branch, enforce an explicitly requested numeric coverage target, and pass quality gates; perform explicit merge analysis, suitability filtering, and refactor optimization for parameterized tests.","为 Apache ShardingSphere 中的一个或多个目标类生成标准单元测试；覆盖所要求的行为以及每个受影响的 SUT 自有分支，强制达成明确要求的数值覆盖率目标，并通过质量门禁；对参数化测试执行显式的合并分析、适用性筛选和重构优化。","apache\u002Fshardingsphere","apache","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F47359?v=4","01M6AC83E6K4FDKK7HZ8WNMQKE","The Apache Software Foundation","01M6ACA8B7ZSJJ37TC5EJ9GQFT",20830,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fshardingsphere\u002Fblob\u002Fmaster\u002F.codex\u002Fskills\u002Fgen-ut\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,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,10,48,49,50],"gen ut","ut","coverage","standard","for","cover","more","affected","unit","tests","enforce","filtering","unit tests","branch","analysis","refactor","Optimization","generate","quality gates","merge","2026-11-10 10:12:30",false,"---\nname: gen-ut\ndescription: >-\n  Generate standard unit tests for one or more target classes in Apache ShardingSphere;\n  cover requested behavior and every affected SUT-owned branch, enforce an explicitly requested numeric coverage target, and pass quality gates;\n  perform explicit merge analysis, suitability filtering, and refactor optimization for parameterized tests.\n---\n\n# Generate Unit Tests\n\n## Inputs and Scope\n\nRequire target production classes, preferably as fully-qualified names. Accept an optional module and optional test-class execution filter.\nDiscover related tests by the exact `\u003CTargetClassName>Test` convention and update them in place; create that class only when none exists.\n\nResolve:\n\n- `\u003CResolvedTargetClasses>`: requested production classes.\n- `\u003CResolvedTestFileSet>`: only related test Java files and required test resources that may be edited.\n- `\u003CResolvedTestModules>`: explicit Maven modules owning those tests.\n- `\u003CResolvedTestClass>`: focused test-class filter for execution.\n\nUse an explicitly supplied module first. Otherwise resolve the nearest owning `pom.xml` from test files, then target sources.\nIf target classes or modules cannot be resolved, return `R10-INPUT_BLOCKED`.\n\n## Ownership Terms\n\n- `SUT-owned behavior`: decisions, branches, state changes, calls, results, or error handling owned by the target class.\n- `Collaborator-owned behavior`: behavior computed by an SPI, registry, factory, parser, loader, driver, dialect, metadata option, or another dependency.\n- `Testing through layers`: driving or asserting collaborator-owned rules instead of mocking the result consumed by the target.\n- `KEEP:\u003Cid>:\u003Creason>`: evidence for retaining an otherwise redundant candidate because removal materially harms readability or diagnosis.\n- `Task scope baseline`: structured pre-edit snapshot of the allowed test files and every dirty path outside them.\n\n## Mandatory Rules\n\n`MUST`, `SHOULD`, and `MAY` are normative. This section is the source of `R1-R15`; workflow and command examples do not override it.\n\n### R1: Repository authority\n\nBefore any test write, read `AGENTS.md` and [code-implementation\u002FSKILL.md](..\u002Fcode-implementation\u002FSKILL.md) through EOF, then read every reference selected by that base Skill for this task through EOF, including its implementation, testing, contract, impact, removal, non-regression, and verification rules.\nFollow the applicable `CODE_OF_CONDUCT.md` sections.\nThe base Skill owns universal implementation, testing, non-regression, verification, and completion requirements; this Skill adds target resolution, coverage, branch-map, parameterization, and scanner requirements for systematic unit-test generation.\nReading either Skill does not expand the user-authorized scope, file types, Git authority, or other permissions.\n\n### R2: Test form and naming\n\nApply the Unit Testing Standards in [CODE_OF_CONDUCT.md](..\u002F..\u002F..\u002FCODE_OF_CONDUCT.md#unit-testing-standards) to test forms, naming, parameter sources, scenario dispatch, and nested types.\n\n### R3: Change boundary\n\n- Edit only `\u003CResolvedTestFileSet>` under `src\u002Ftest\u002Fjava` or `src\u002Ftest\u002Fresources`.\n- Do not edit production, generated output, unrelated tests, or another file type.\n- Capture `Task scope baseline` after resolving the file set and before editing. Any candidate-relevant changed path outside that set is a failure,\n  including further mutation of a path already dirty at task start. Exclude only untracked or ignored reproducible verification outputs such as Maven `target\u002F`\n  and Python `__pycache__\u002F`; they are not editable scope and must not be modified intentionally.\n- Obtain explicit approval before expanding scope. Never use destructive Git operations.\n\n### R4: Branch map\n\n- Before coding, enumerate target public-method branches and map each planned scenario to one branch or path.\n- Classify every trigger and assertion as SUT-owned or collaborator-owned. Isolate collaborator-owned results at the nearest stable boundary and apply `R6` to decide whether to mock them.\n- Exclude Lombok-generated behavior without custom logic. Default to one test per branch or path; use `R13` for additional cases.\n\n### R5: Scenario granularity\n\n- Keep one scenario per test and invoke the target public method once by default. Invoke it more than once only when repeated invocation is itself the scenario, such as idempotency, accumulation, or a state transition.\n- Keep the coverage-relevant invocation and its externally observable assertions in the test body. Helpers and providers must not execute target behavior.\n- For interface targets, test owned `default` or `static` methods directly. Exercise abstract contracts through concrete implementations, including when the user explicitly requests an interface-contract test.\n\n### R6: SPI, mocks, and reflection\n\n- Exercise interface default methods with Mockito `CALLS_REAL_METHODS`.\n- Obtain SPI targets through the applicable project loader and keep the resolved instance as a test-class field by default. Record a concrete reason before bypassing the loader.\n- Mock heavy dependencies and collaborator-owned decisions. Allow real simple values and explicitly scoped integration, contract, or E2E behavior.\n\n### R7: Related tests\n\nUpdate existing related tests in place and fill missing coverage first. An explicit test-class input filters execution only; it does not replace related-test discovery.\nCreate a new exact-name test class only when none exists.\n\n### R8: Parameterization analysis\n\nFor each target public method, record `R8-CANDIDATES` with the method, candidate count, decision, and evidence. A candidate is high-fit only when all are true:\n\n1. target method is the same;\n2. differences are mainly input data;\n3. the same form of assertion is used;\n4. the group meets the minimum scenario count in `CODE_OF_CONDUCT.md`.\n\nCollaborator-owned differences are not high-fit. Refactor high-fit candidates; otherwise record the concrete reason.\nUse `KEEP` only when a genuinely high-fit refactor would materially reduce readability or diagnosis.\n\nThe scanner discovers possible groups but never decides semantic high-fit. Treat its candidate count as evidence to review, not an instruction to refactor.\n\n### R9: Coverage blockers\n\nWhen unreachable production code blocks coverage, report the class, path, exact line, and reason. Do not change production code within this Skill.\n\n### R10: Completion state\n\nUse exactly one state:\n\n- `R10-INPUT_BLOCKED`: target classes or test modules cannot be resolved.\n- `R10-A`: scope is clean; focused tests execute at least one test for the effective candidate; declared target coverage is met for every target and inner class; repository formatting\u002Fcheckstyle gates pass; the full mechanical scan has no blocking violations under `R11`; semantic reviews and `R8` decisions are complete.\n- `R10-B`: production dead code blocks the target and `R9` evidence is complete.\n- `R10-C`: a blocking out-of-scope failure is evidenced under `R11`.\n- `R10-D`: work remains; continue instead of claiming completion.\n\nPriority is `INPUT_BLOCKED > B > C > A > D`. By default, cover the requested behavior and every affected SUT-owned branch. Apply a numeric CLASS, LINE, or BRANCH target only when the user states it; an explicit 100% target remains mandatory.\n\n### R11: Failures\n\nFix task-introduced or currently relevant in-scope failures and rerun the checks they invalidate.\nTreat a mechanical diagnostic as nonblocking only when the pre-edit baseline proves that it already existed, remains unchanged, and is unrelated to the requested behavior, contracts, coverage target, and verification validity.\nRetain its command, nonzero exit code, diagnostic, and baseline evidence; do not describe the full scan as passing.\nMissing baseline evidence, new or strengthened violations, and relevant historical diagnostics remain blocking.\nFor an out-of-scope failure that blocks a required check, record command, exit code, decisive lines, and blocking file\u002Fline, then request direction.\nRetry transient dependency or network failures at most twice.\nMinimal repair checks never replace final gates.\n\n### R12: Existing full coverage\n\nIf reproducible target-class evidence is already 100%, skip coverage completion and perform only required optimization and quality work.\nMark `R4=N\u002FA (triggered by R12)` and retain the coverage command and report path.\n\n### R13: Necessity trimming\n\n- Treat equal line\u002Fbranch coverage only as a duplicate candidate, never as removal proof.\n- Remove a test only when it adds no unique branch, input class, boundary, calculation path, failure mode, contract, collaborator interaction, or externally observable regression protection.\n- Remove collaborator-only tests from the target unit test and report the separate owner when coverage is needed there.\n- Remove redundant stubs, assertions, and locals that affect neither behavior nor diagnosis. Prefer Mockito defaults when the scenario permits.\n- Apply `KEEP` only to an otherwise redundant item retained for a concrete readability or diagnostic reason; meaningful tests need no tag.\n\n### R14: Boolean assertions\n\nApply the Boolean assertion standard in `CODE_OF_CONDUCT.md` to literal, constant, and variable expectations.\n\n### R15: Delivery gates\n\n- `R15-A`: complete the semantic `R8` decision; the scanner cannot infer high-fit.\n- `R15-B`: review every test against the test-value rule in `CODE_OF_CONDUCT.md`; method names do not decide whether a test is permitted.\n- `R15-C`: compare the final worktree with `Task scope baseline`; any candidate-relevant out-of-scope mutation fails. Ignore only reproducible,\n  untracked or Git-ignored verification outputs.\n- `R15-D`: verify each parameterized test's argument source and actual case count against `CODE_OF_CONDUCT.md`; inspect external, unresolved, or dynamic sources manually.\n- `R15-F`: inspect each `switch` candidate in a parameterized test against the grouping rule in `CODE_OF_CONDUCT.md`.\n- `R15-G`: inspect each new nested-type candidate used in argument sets against the grouping rule in `CODE_OF_CONDUCT.md`.\n  A nested type is not a violation by itself.\n  Unresolved grouping keeps the task at `R10-D`.\n- `R15-H`: review Boolean assertions under `R14`; for assertion-dispatch candidates in parameterized tests, compare the assertion forms against the grouping rule in `CODE_OF_CONDUCT.md`.\n- `R15-I`: inspect callback candidates used in argument sets against the grouping rule in `CODE_OF_CONDUCT.md`.\n  Inspect external, unresolved, or dynamic argument sources manually.\n- `R15-J`: helpers and providers do not invoke target public methods. Treat scanner results as partial evidence and inspect unresolved ownership manually.\n\n## Workflow\n\n1. Complete the `R1` source loading, then read this Skill's [verification commands](references\u002Fverification.md) through EOF.\n2. Resolve targets, related tests, editable files, modules, and input-blocked state.\n3. Create a task-specific temporary directory and capture `Task scope baseline` for the resolved file set.\n4. Run focused baseline coverage and the full scanner through the repository command wrapper, retaining native JaCoCo reports and scanner diagnostics under the verification commands.\n5. Decide `R12`; otherwise record the SUT\u002Fcollaborator ownership boundary and `R4` branch map.\n6. Review scanner candidates against every `R8` condition and record candidate-level decisions.\n7. Check `R9`, then implement the smallest tests allowed by `R2-R7`.\n8. After each coherent edit, run invalidated focused tests and relevant repository Checkstyle checks.\n9. Apply `R13` and inspect semantic `R15-A\u002FB\u002FD\u002FG\u002FI\u002FJ` obligations.\n10. Complete missing or invalidated final coverage, repository formatting\u002Fcheckstyle, and full mechanical checks under the [verification commands](references\u002Fverification.md).\n11. Confirm final scope against the baseline and decide `R10` once from current evidence before delivery.\n\nDo not reuse a prior task's test or coverage result.\nFinal coverage must include executed tests for the effective candidate; use the verification commands to determine whether current evidence remains valid.\n\n## Output\n\nInclude:\n\n- `R10=\u003Cstate>`;\n- native JaCoCo report paths and raw CLASS\u002FLINE\u002FBRANCH counters for every target and inner class, with per-class ratios for each requested numeric metric;\n- `R8-CANDIDATES` with candidate decisions and evidence;\n- branch\u002Fownership mapping, or the `R12` exemption;\n- executed commands, exit codes, and bounded log paths\u002Fsummaries;\n- rule-to-evidence mapping for `R1-R15`;\n- blocker and next action when state is not `R10-A`.\n\nNever use completion wording for `R10-D`.\n","# Generate Unit Tests\n\n## Inputs and Scope\n\nRequire target production classes, preferably as fully-qualified names. Accept an optional module and optional test-class execution filter.\nDiscover related tests by the exact `\u003CTargetClassName>Test` convention and update them in place; create that class only when none exists.\n\nResolve:\n\n- `\u003CResolvedTargetClasses>`: requested production classes.\n- `\u003CResolvedTestFileSet>`: only related test Java files and required test resources that may be edited.\n- `\u003CResolvedTestModules>`: explicit Maven modules owning those tests.\n- `\u003CResolvedTestClass>`: focused test-class filter for execution.\n\nUse an explicitly supplied module first. Otherwise resolve the nearest owning `pom.xml` from test files, then target sources.\nIf target classes or modules cannot be resolved, return `R10-INPUT_BLOCKED`.\n\n## Ownership Terms\n\n- `SUT-owned behavior`: decisions, branches, state changes, calls, results, or error handling owned by the target class.\n- `Collaborator-owned behavior`: behavior computed by an SPI, registry, factory, parser, loader, driver, dialect, metadata option, or another dependency.\n- `Testing through layers`: driving or asserting collaborator-owned rules instead of mocking the result consumed by the target.\n- `KEEP:\u003Cid>:\u003Creason>`: evidence for retaining an otherwise redundant candidate because removal materially harms readability or diagnosis.\n- `Task scope baseline`: structured pre-edit snapshot of the allowed test files and every dirty path outside them.\n\n## Mandatory Rules\n\n`MUST`, `SHOULD`, and `MAY` are normative. This section is the source of `R1-R15`; workflow and command examples do not override it.\n\n### R1: Repository authority\n\nBefore any test write, read `AGENTS.md` and [code-implementation\u002FSKILL.md](..\u002Fcode-implementation\u002FSKILL.md) through EOF, then read every reference selected by that base Skill for this task through EOF, including its implementation, testing, contract, impact, removal, non-regression, and verification rules.\nFollow the applicable `CODE_OF_CONDUCT.md` sections.\nThe base Skill owns universal implementation, testing, non-regression, verification, and completion requirements; this Skill adds target resolution, coverage, branch-map, parameterization, and scanner requirements for systematic unit-test generation.\nReading either Skill does not expand the user-authorized scope, file types, Git authority, or other permissions.\n\n### R2: Test form and naming\n\nApply the Unit Testing Standards in [CODE_OF_CONDUCT.md](..\u002F..\u002F..\u002FCODE_OF_CONDUCT.md#unit-testing-standards) to test forms, naming, parameter sources, scenario dispatch, and nested types.\n\n### R3: Change boundary\n\n- Edit only `\u003CResolvedTestFileSet>` under `src\u002Ftest\u002Fjava` or `src\u002Ftest\u002Fresources`.\n- Do not edit production, generated output, unrelated tests, or another file type.\n- Capture `Task scope baseline` after resolving the file set and before editing. Any candidate-relevant changed path outside that set is a failure,\n  including further mutation of a path already dirty at task start. Exclude only untracked or ignored reproducible verification outputs such as Maven `target\u002F`\n  and Python `__pycache__\u002F`; they are not editable scope and must not be modified intentionally.\n- Obtain explicit approval before expanding scope. Never use destructive Git operations.\n\n### R4: Branch map\n\n- Before coding, enumerate target public-method branches and map each planned scenario to one branch or path.\n- Classify every trigger and assertion as SUT-owned or collaborator-owned. Isolate collaborator-owned results at the nearest stable boundary and apply `R6` to decide whether to mock them.\n- Exclude Lombok-generated behavior without custom logic. Default to one test per branch or path; use `R13` for additional cases.\n\n### R5: Scenario granularity\n\n- Keep one scenario per test and invoke the target public method once by default. Invoke it more than once only when repeated invocation is itself the scenario, such as idempotency, accumulation, or a state transition.\n- Keep the coverage-relevant invocation and its externally observable assertions in the test body. Helpers and providers must not execute target behavior.\n- For interface targets, test owned `default` or `static` methods directly. Exercise abstract contracts through concrete implementations, including when the user explicitly requests an interface-contract test.\n\n### R6: SPI, mocks, and reflection\n\n- Exercise interface default methods with Mockito `CALLS_REAL_METHODS`.\n- Obtain SPI targets through the applicable project loader and keep the resolved instance as a test-class field by default. Record a concrete reason before bypassing the loader.\n- Mock heavy dependencies and collaborator-owned decisions. Allow real simple values and explicitly scoped integration, contract, or E2E behavior.\n\n### R7: Related tests\n\nUpdate existing related tests in place and fill missing coverage first. An explicit test-class input filters execution only; it does not replace related-test discovery.\nCreate a new exact-name test class only when none exists.\n\n### R8: Parameterization analysis\n\nFor each target public method, record `R8-CANDIDATES` with the method, candidate count, decision, and evidence. A candidate is high-fit only when all are true:\n\n1. target method is the same;\n2. differences are mainly input data;\n3. the same form of assertion is used;\n4. the group meets the minimum scenario count in `CODE_OF_CONDUCT.md`.\n\nCollaborator-owned differences are not high-fit. Refactor high-fit candidates; otherwise record the concrete reason.\nUse `KEEP` only when a genuinely high-fit refactor would materially reduce readability or diagnosis.\n\nThe scanner discovers possible groups but never decides semantic high-fit. Treat its candidate count as evidence to review, not an instruction to refactor.\n\n### R9: Coverage blockers\n\nWhen unreachable production code blocks coverage, report the class, path, exact line, and reason. Do not change production code within this Skill.\n\n### R10: Completion state\n\nUse exactly one state:\n\n- `R10-INPUT_BLOCKED`: target classes or test modules cannot be resolved.\n- `R10-A`: scope is clean; focused tests execute at least one test for the effective candidate; declared target coverage is met for every target and inner class; repository formatting\u002Fcheckstyle gates pass; the full mechanical scan has no blocking violations under `R11`; semantic reviews and `R8` decisions are complete.\n- `R10-B`: production dead code blocks the target and `R9` evidence is complete.\n- `R10-C`: a blocking out-of-scope failure is evidenced under `R11`.\n- `R10-D`: work remains; continue instead of claiming completion.\n\nPriority is `INPUT_BLOCKED > B > C > A > D`. By default, cover the requested behavior and every affected SUT-owned branch. Apply a numeric CLASS, LINE, or BRANCH target only when the user states it; an explicit 100% target remains mandatory.\n\n### R11: Failures\n\nFix task-introduced or currently relevant in-scope failures and rerun the checks they invalidate.\nTreat a mechanical diagnostic as nonblocking only when the pre-edit baseline proves that it already existed, remains unchanged, and is unrelated to the requested behavior, contracts, coverage target, and verification validity.\nRetain its command, nonzero exit code, diagnostic, and baseline evidence; do not describe the full scan as passing.\nMissing baseline evidence, new or strengthened violations, and relevant historical diagnostics remain blocking.\nFor an out-of-scope failure that blocks a required check, record command, exit code, decisive lines, and blocking file\u002Fline, then request direction.\nRetry transient dependency or network failures at most twice.\nMinimal repair checks never replace final gates.\n\n### R12: Existing full coverage\n\nIf reproducible target-class evidence is already 100%, skip coverage completion and perform only required optimization and quality work.\nMark `R4=N\u002FA (triggered by R12)` and retain the coverage command and report path.\n\n### R13: Necessity trimming\n\n- Treat equal line\u002Fbranch coverage only as a duplicate candidate, never as removal proof.\n- Remove a test only when it adds no unique branch, input class, boundary, calculation path, failure mode, contract, collaborator interaction, or externally observable regression protection.\n- Remove collaborator-only tests from the target unit test and report the separate owner when coverage is needed there.\n- Remove redundant stubs, assertions, and locals that affect neither behavior nor diagnosis. Prefer Mockito defaults when the scenario permits.\n- Apply `KEEP` only to an otherwise redundant item retained for a concrete readability or diagnostic reason; meaningful tests need no tag.\n\n### R14: Boolean assertions\n\nApply the Boolean assertion standard in `CODE_OF_CONDUCT.md` to literal, constant, and variable expectations.\n\n### R15: Delivery gates\n\n- `R15-A`: complete the semantic `R8` decision; the scanner cannot infer high-fit.\n- `R15-B`: review every test against the test-value rule in `CODE_OF_CONDUCT.md`; method names do not decide whether a test is permitted.\n- `R15-C`: compare the final worktree with `Task scope baseline`; any candidate-relevant out-of-scope mutation fails. Ignore only reproducible,\n  untracked or Git-ignored verification outputs.\n- `R15-D`: verify each parameterized test's argument source and actual case count against `CODE_OF_CONDUCT.md`; inspect external, unresolved, or dynamic sources manually.\n- `R15-F`: inspect each `switch` candidate in a parameterized test against the grouping rule in `CODE_OF_CONDUCT.md`.\n- `R15-G`: inspect each new nested-type candidate used in argument sets against the grouping rule in `CODE_OF_CONDUCT.md`.\n  A nested type is not a violation by itself.\n  Unresolved grouping keeps the task at `R10-D`.\n- `R15-H`: review Boolean assertions under `R14`; for assertion-dispatch candidates in parameterized tests, compare the assertion forms against the grouping rule in `CODE_OF_CONDUCT.md`.\n- `R15-I`: inspect callback candidates used in argument sets against the grouping rule in `CODE_OF_CONDUCT.md`.\n  Inspect external, unresolved, or dynamic argument sources manually.\n- `R15-J`: helpers and providers do not invoke target public methods. Treat scanner results as partial evidence and inspect unresolved ownership manually.\n\n## Workflow\n\n1. Complete the `R1` source loading, then read this Skill's [verification commands](references\u002Fverification.md) through EOF.\n2. Resolve targets, related tests, editable files, modules, and input-blocked state.\n3. Create a task-specific temporary directory and capture `Task scope baseline` for the resolved file set.\n4. Run focused baseline coverage and the full scanner through the repository command wrapper, retaining native JaCoCo reports and scanner diagnostics under the verification commands.\n5. Decide `R12`; otherwise record the SUT\u002Fcollaborator ownership boundary and `R4` branch map.\n6. Review scanner candidates against every `R8` condition and record candidate-level decisions.\n7. Check `R9`, then implement the smallest tests allowed by `R2-R7`.\n8. After each coherent edit, run invalidated focused tests and relevant repository Checkstyle checks.\n9. Apply `R13` and inspect semantic `R15-A\u002FB\u002FD\u002FG\u002FI\u002FJ` obligations.\n10. Complete missing or invalidated final coverage, repository formatting\u002Fcheckstyle, and full mechanical checks under the [verification commands](references\u002Fverification.md).\n11. Confirm final scope against the baseline and decide `R10` once from current evidence before delivery.\n\nDo not reuse a prior task's test or coverage result.\nFinal coverage must include executed tests for the effective candidate; use the verification commands to determine whether current evidence remains valid.\n\n## Output\n\nInclude:\n\n- `R10=\u003Cstate>`;\n- native JaCoCo report paths and raw CLASS\u002FLINE\u002FBRANCH counters for every target and inner class, with per-class ratios for each requested numeric metric;\n- `R8-CANDIDATES` with candidate decisions and evidence;\n- branch\u002Fownership mapping, or the `R12` exemption;\n- executed commands, exit codes, and bounded log paths\u002Fsummaries;\n- rule-to-evidence mapping for `R1-R15`;\n- blocker and next action when state is not `R10-A`.\n\nNever use completion wording for `R10-D`.\n",{"name":5,"description":7},"master","e38d2e32b3fec5b37e713789c4fb3c7ea0d4ae7d",".codex\u002Fskills\u002Fgen-ut",6909,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fshardingsphere","https:\u002F\u002Fgithub.com\u002Fapache","https:\u002F\u002Fwww.apache.org\u002F","2026-11-13 15:26:32",{"source":9,"skillName":5,"commands":65,"prompt":75,"zipAvailable":76},[66,69,72],{"tool":67,"command":68},"npx","npx skills add apache\u002Fshardingsphere --skill gen-ut",{"tool":70,"command":71},"bunx","bunx skills add apache\u002Fshardingsphere --skill gen-ut",{"tool":73,"command":74},"pnpm","pnpm dlx skills add apache\u002Fshardingsphere --skill gen-ut","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fapache\u002Fshardingsphere\u002Fblob\u002Fmaster\u002F.codex\u002Fskills\u002Fgen-ut\u002FSKILL.md",true,[78,84,88,94,98,102],{"path":79,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},"agents\u002Fopenai.yaml","REFERENCE","参考文档",1158,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fshardingsphere\u002Fblob\u002Fmaster\u002F.codex\u002Fskills\u002Fgen-ut\u002Fagents\u002Fopenai.yaml",{"path":85,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fverification.md",8293,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fshardingsphere\u002Fblob\u002Fmaster\u002F.codex\u002Fskills\u002Fgen-ut\u002Freferences\u002Fverification.md",{"path":89,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":92,"sourceHtmlUrl":93},"scripts\u002Fguard_task_scope.py","SCRIPT","脚本",9052,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fshardingsphere\u002Fblob\u002Fmaster\u002F.codex\u002Fskills\u002Fgen-ut\u002Fscripts\u002Fguard_task_scope.py",{"path":95,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":96,"sourceHtmlUrl":97},"scripts\u002Fscan_quality_rules.py",23583,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fshardingsphere\u002Fblob\u002Fmaster\u002F.codex\u002Fskills\u002Fgen-ut\u002Fscripts\u002Fscan_quality_rules.py",{"path":99,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":100,"sourceHtmlUrl":101},"tests\u002Ftest_guard_task_scope.py",11314,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fshardingsphere\u002Fblob\u002Fmaster\u002F.codex\u002Fskills\u002Fgen-ut\u002Ftests\u002Ftest_guard_task_scope.py",{"path":103,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":104,"sourceHtmlUrl":105},"tests\u002Ftest_scan_quality_rules.py",15848,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fshardingsphere\u002Fblob\u002Fmaster\u002F.codex\u002Fskills\u002Fgen-ut\u002Ftests\u002Ftest_scan_quality_rules.py",[107,139,169,194],{"skillNo":108,"name":109,"nameZh":110,"description":111,"descriptionZh":112,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":113,"categories":114,"keywords":121,"publishedAt":51},"01M6ACAVYCQRSR6XD5R145S50T","review-pr","PR 代码评审","Review Apache ShardingSphere or user-authorized downstream pull requests and PR discussions from public or authorized repository evidence. Use for code-correctness or mergeability decisions, CI-focused review, root-cause and regression analysis, complete consolidated findings, copy-ready committer feedback, challenged findings, multi-round review, and formal review of local implementation candidates in the repository completion loop.","基于公开或经授权的仓库证据，审查 Apache ShardingSphere 或用户授权的下游拉取请求（PR）及 PR 讨论。用于代码正确性或可合并性决策、以 CI 为重点的评审、根因与回归分析、完整汇总的发现结论、可直接复制使用的提交者反馈、受到质疑的发现、多轮评审，以及在仓库完成循环中对本地实现候选方案进行的正式评审。","https:\u002F\u002Fgithub.com\u002Fapache\u002Fshardingsphere\u002Fblob\u002Fmaster\u002F.codex\u002Fskills\u002Freview-pr\u002FSKILL.md",[115,118],{"categoryNo":116,"categoryName":117,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":119,"categoryName":120,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BR5V701HCN066VEP7H4812","代码仓库协作管理",[122,123,124,125,126,35,127,128,129,130,131,132,133,134,45,135,136,10,137,138],"review","review pr","pr","pull requests","regression","complete","local","committer","ready","evidence","use","feedback","loop","ci","repository","pull","code",{"skillNo":140,"name":141,"nameZh":142,"description":143,"descriptionZh":144,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":145,"categories":146,"keywords":149,"publishedAt":51},"01M6ACAM5EVNBXC2BQZGY023D1","coding-standards","ShardingSphere 编码规范审查","Apply Apache ShardingSphere's written coding standards when explicitly requested, or when code-implementation routes task-changed production, test, script, build, generated, or Maven POM artifacts through repository standards. Also perform a standalone read-only compliance audit of a user-specified scope. Use CODE_OF_CONDUCT.md, applicable AGENTS.md rules, Checkstyle, Spotless, and other repository-defined standards, including naming and evidence-based defensive-code rules. Do not invoke independently for an ordinary implementation already governed by code-implementation, and do not independently audit architecture, runtime ownership, caches, or lifecycle.","当用户明确要求，或 code-implementation 将任务改动的生产、测试、脚本、构建、生成的产物或 Maven POM 产物交由仓库规范处理时，应用 Apache ShardingSphere 的成文编码规范。也可对用户指定范围执行独立的只读合规审查。使用 CODE_OF_CONDUCT.md、适用的 AGENTS.md 规则、Checkstyle、Spotless 以及仓库定义的其他标准，包括命名规则和基于证据的防御性编码规则。对于已由 code-implementation 管辖的普通实现，不要单独调用；也不要单独审查架构、运行时归属、缓存或生命周期。","https:\u002F\u002Fgithub.com\u002Fapache\u002Fshardingsphere\u002Fblob\u002Fmaster\u002F.codex\u002Fskills\u002Fcoding-standards\u002FSKILL.md",[147,148],{"categoryNo":116,"categoryName":117,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[150,151,152,153,154,155,136,156,157,158,159,160,161,162,163,164,165,166,167,138,168,10],"standards","coding standards","coding","pom","audit","invoke","conduct","Compliance Audit","generated","standalone","scope","checkstyle","do","read","only","when","architecture","artifacts","test",{"skillNo":170,"name":171,"nameZh":172,"description":173,"descriptionZh":174,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":175,"categories":176,"keywords":181,"publishedAt":51},"01M6ACAGSBYTZB9TDW4KD5776D","code-implementation","仓库代码实现与修改","Implement, fix, refactor, or remove repository code under required scope, non-regression, verification, and review gates. Use whenever a task may change a production, test, script, or other implementation artifact, including build logic, generated source, and behavior-affecting configuration. Also use it alongside a specialized code-changing Skill. Do not use for read-only analysis or review, diagnosis-only work, or prose-only changes.","在规定的范围、无回归、验证和评审关卡下实现、修复、重构或删除仓库代码。当任务可能改动生产代码、测试、脚本或其他实现产物（包括构建逻辑、生成的源代码以及影响行为的配置）时使用。也可与专门的代码修改 Skill 配合使用。不要用于只读分析或评审、纯诊断工作或纯文字改动。","https:\u002F\u002Fgithub.com\u002Fapache\u002Fshardingsphere\u002Fblob\u002Fmaster\u002F.codex\u002Fskills\u002Fcode-implementation\u002FSKILL.md",[177,178],{"categoryNo":116,"categoryName":117,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":179,"categoryName":180,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BT7QVANT4709358VEJK53E","代码实现",[182,183,138,184,185,168,186,122,136,164,187,160,188,189,190,191,158,163,192,193,126,45],"implementation","code implementation","verification","change","implement","remove repository","diagnosis","artifact","remove","fix","specialized","work",{"skillNo":195,"name":196,"nameZh":197,"description":198,"descriptionZh":199,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":200,"categories":201,"keywords":206,"publishedAt":51},"01M6ACACEZ194A1CD28EH1QEDQ","analyze-issue","ShardingSphere 社区问题分析","Used to analyze Apache ShardingSphere community issues. Emphasizes root-cause-first and evidence-first classification before conclusions, and produces copy-ready GitHub issue replies in the voice of an Apache ShardingSphere community maintainer.","用于分析 Apache ShardingSphere 社区工单。强调在得出结论之前先进行根因优先和证据优先的分类，并以 Apache ShardingSphere 社区维护者的口吻生成可直接复制使用的 GitHub 工单回复。","https:\u002F\u002Fgithub.com\u002Fapache\u002Fshardingsphere\u002Fblob\u002Fmaster\u002F.codex\u002Fskills\u002Fanalyze-issue\u002FSKILL.md",[202,203],{"categoryNo":116,"categoryName":117,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":204,"categoryName":205,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C2MZSDTE56BDKER3VPW2JM","工单与问题跟踪管理",[207,208,209,210,211,212,213,214,215,130,131,216,217,218,10,219,220],"issue","analyze","analyze issue","root-cause","root","replies","copy","community","github issue","voice","classification","first","issues","github"]