[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78BV5NMXSXJJZTAVC448AEF":3,"skill-same:01M78BV5NMXSXJJZTAVC448AEF":60},{"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":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M78BV5NMXSXJJZTAVC448AEF","do-diagnose",null,"Unified diagnostic and code remediation engine — root cause analysis, performance profiling, security auditing, and targeted refactoring. Use whenever something is broken, failing tests, throwing errors, slow, insecure, or in need of cleanup, and the user wants root-cause evidence before any fix (e.g. 'why is this crashing', 'debug this failure', 'this endpoint feels slow', 'audit for security issues'). Always activate this skill when investigating defects, performance bottlenecks, or code smells before modifying code.","khoavu882\u002Fdo-flow","khoavu882","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F47971376?v=4","01M78BT78KNM1P7A984W2D3JJB","Khoa Vu","01M78BT7957N1KCW7C9CVX4FV1",0,"MIT","https:\u002F\u002Fgithub.com\u002Fkhoavu882\u002Fdo-flow\u002Fblob\u002Fmain\u002Fcore\u002Fshared\u002Fskills\u002Fdo-diagnose\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: do-diagnose\ndescription: \"Unified diagnostic and code remediation engine — root cause analysis, performance profiling, security auditing, and targeted refactoring. Use whenever something is broken, failing tests, throwing errors, slow, insecure, or in need of cleanup, and the user wants root-cause evidence before any fix (e.g. 'why is this crashing', 'debug this failure', 'this endpoint feels slow', 'audit for security issues'). Always activate this skill when investigating defects, performance bottlenecks, or code smells before modifying code.\"\nargument-hint: \"[target|issue] [--focus quality|security|performance|architecture] [--fix]\"\neffort: medium\n---\n\n# do-diagnose\n\nUnified diagnostic and code improvement engine. Replaces separate analyze\u002Ftroubleshoot\u002Freflect\u002Fimprove tools with a single evidence-first diagnostic workflow.\n\n## Invocation\n```text\n\u002Fdo-diagnose [target|issue] [--focus quality|security|performance|architecture] [--fix]\n```\n\n## Behavioral Flow\n\n1. **Resolve the Runtime Seam** — every DoFlow runtime call in this skill goes through the seam.\n   Resolve it **once** here and reuse `$DOFLOW` for every later call in this skill:\n\n```bash\n# Resolve the DoFlow runtime: nearest project install wins, then the global one.\nD=$PWD; while [ \"$D\" != \u002F ] && [ ! -x \"$D\u002F.doflow\u002Fscripts\u002Fdoflow\u002Fbin\u002Fdoflow-run\" ]; do D=$(dirname \"$D\"); done\nDOFLOW=\"$D\u002F.doflow\u002Fscripts\u002Fdoflow\u002Fbin\u002Fdoflow-run\"\n[ -x \"$DOFLOW\" ] || DOFLOW=\"$HOME\u002F.doflow\u002Fscripts\u002Fdoflow\u002Fbin\u002Fdoflow-run\"\n[ -x \"$DOFLOW\" ] || { echo \"doflow: no runtime found in any .doflow\u002F above $PWD, nor at $HOME\u002F.doflow. Run: npx @khoavu882\u002Fdoflow install -t \u003Charness>\" >&2; exit 2; }\n```\nRun every command below from the project root — the walk-up starts at `$PWD`. On exit 2, print the message verbatim and stop; it names every path searched.\n\n```bash\n\"$DOFLOW\" paths --json\n```\n\nOnce per stage, after `feature_slug` resolves, run `\"$DOFLOW\" attendance --task-id \"\u003Cfeature_slug>\"`; `unattended` → the guidance tree's `WORKFLOW_HANDOFF.md` § Unattended stage.\n\n2. **Propose the Task Class; the Runtime Validates It** — the investigation mode is not a flag, it\n   *is* the task class, so settle the class first. Propose exactly one id:\n\n```bash\n\"$DOFLOW\" classify --task-class \"\u003Cproposed>\" --calling-skill do-diagnose --view brief --json\n```\nBranch on `outcome`, not the exit code.\n- **`ACCEPTED`** — the returned `workflow` is this run's plan of record; read `stages`, `gates` and `handoff` off it rather than from memory.\n- **`REJECTED`** — **stop.** Print `message` verbatim (it already names `validClasses` and any `suggestions`), ask the user to choose from `validClasses`, then re-validate. Never substitute `feature`.\n  A rejection may be about **you** rather than the class (`reason: caller-not-a-stage`). Then the fix is to propose one of the classes in `fit.hostingClasses`, or to hand the work to the skill this class names for the stage you meant — not to re-propose the same class.\n- **Exit 2** — surface the message verbatim and stop.\n\nThis skill is one of the accepted workflow's analysis stages — `root-cause` for `bug`,\n`architecture-mapping` for `refactor`, `usage-impact` for `dependency-change`. A workflow that\ndeclares no analysis stage is not a workflow to diagnose under: say so and re-propose the class.\n\n   - A performance or security investigation is not its own class: it is classed by what the work\n     is — `bug` when behavior is wrong now, `refactor` when structure changes with behavior held\n     fixed, `research` when the deliverable is a written answer. `--focus` is what narrows such a\n     run to one domain; it never changes the class.\n   - While diagnosing, no stage this skill serves has a readiness template — do not call `readiness`\n     and do not report one as skipped. Step 6's `--fix` path is different: it enters the validated\n     class's implementation stage, which does.\n\n3. **Derive Intent & Scope from the Accepted Class**:\n   - `bug` → reproduce the issue, isolate the cause via stack traces\u002Fdiffs, formulate a hypothesis.\n     Consult this skill's own `references\u002Froot_cause.md`.\n   - `refactor` → identify dead code, code smells, god functions, and structure cleanups. Consult\n     `references\u002Frefactoring.md`.\n   - `dependency-change` → map who uses the dependency and what the change reaches.\n   - `--focus performance` → profile execution, detect hot paths, identify algorithmic complexity\n     (O(n²)) or N+1 queries, within whichever class was accepted.\n   - `--focus security` → static scan for secrets, unsanitized inputs, auth gaps, or vulnerability\n     signatures. Consult `references\u002Fcode_audit.md`.\n   - `--focus quality|architecture` → narrow to maintainability or to boundary\u002Fstructure concerns.\n   - With no `--focus`, investigate the whole reported symptom rather than picking a domain.\n\n4. **Evidence-First Diagnosis**:\n   - Confirm root cause with concrete evidence before proposing any changes.\n   - Resolve each retrieval need through the router rather than reaching for a habitual tool:\n     `\"$DOFLOW\" route --intent \u003Clocate-known-symbol|locate-concept|trace-dependency|estimate-blast-radius|inspect-history|verify-runtime-behavior> --json`.\n   - MCP `context7`: when diagnosing library or dependency behavior, verify interface claims per `MCP_Context7.md`.\n\n**Discovery first.** A broad pass over reported scope to find terminology, surfaces, and competing readings before concluding. Then targeted passes per question.\n\nName competing hypotheses from discovery before testing; state what falsifies each. Hypotheses that cannot be falsified warrant no retrieval.\n\n**Stop when** every hypothesis the contract names has an answer or a stated gap, **and** the last round produced no new hypothesis. A round that only restates what you already have is the last round. Report the remaining gaps rather than continuing.\n\n   - Then propose ranked fix options with blast-radius ratings (Low \u002F Medium \u002F High). Those ranked\n     options are the remediation plan step 6 asks the user to approve. Stops after producing them;\n     never begins edits here.\n\n5. **Batch This Stage's Evidence**:\n   - One pass at the end of the diagnosis, never one call per finding. `\u003Ctask id>` is the unit these\n     stores key on: the plan task id when one exists, otherwise the feature slug or the issue id you\n     are diagnosing. Use the same id for every `evidence`, `claim` and `readiness` call in the run.\n     ```bash\n     \"$DOFLOW\" evidence --task-id \"\u003Ctask id>\" --action add --batch \u003Cbatch>.json --json\n     \"$DOFLOW\" claim --task-id \"\u003Ctask id>\" --action add --role root-cause --statement \"\u003Cthe root cause, in one sentence>\"\n     ```\n   - This stage's items are what the investigation observed: stack frames, log lines, test results\n     and diff hunks are **extracted**; your reading of them is **inferred**. A diagnosis is where\n     inference most easily passes for observation, so never merge the two into one reported line.\n\nItem schema, provenance rules, and the refused-field list: the guidance tree's `references\u002FEVIDENCE_LEDGER.md`. Read it before writing the batch.\n\n   - The root cause enters as a claim and is stored as a `hypothesis`. `--role root-cause` declares\n     what the claim is to the task — the bug class's readiness contract only accepts a supported\n     claim carrying that role, so a supported claim about something unrelated cannot stand in for\n     the cause. It becomes supported only through linked evidence, recorded after the batch lands:\n     ```bash\n     \"$DOFLOW\" claim --task-id \"\u003Ctask id>\" --action link --claim-id \"\u003Cclaim id>\" --evidence-id \"\u003Cevidence id>\" --relation supports\n     ```\n     An evidence id the ledger does not hold is refused (exit 2), not graded — so write the batch\n     first, then link. A plausible story that explains the symptom is not support, and a symptom\n     reproducing is evidence of the symptom, not of the cause.\n\n6. **Remediation (`--fix`)**:\n   - Only apply modifications when `--fix` is passed and after the user approves the remediation plan.\n   - `--fix` performs the edit that the validated class's workflow places behind its implementation\n     stage, so consult that same contract first — never a new one. A `--fix` run is a declared\n     one-off edit, not an orchestrated run, and states that mode explicitly:\n     `\"$DOFLOW\" readiness --task-class \"\u003Cvalidated class>\" --task-id \"\u003Ctask id>\" --mode standalone --json`.\n     Both `--task-class` and `--task-id` are required; omitting either exits 2 and names the valid\n     set. Act on `stageEntry.decision`, never the exit code or your own reading of `state`:\n     `STOP` → do not edit, surface the conflicted claim; `ASK_USER` → ask the owed decision and\n     wait; `ENTER` → proceed — in standalone mode that includes `NEEDS_EVIDENCE`, where the unmet\n     contract is reported, not enforced, so relay what is missing rather than presenting the fix as\n     fully evidenced. The verb exits 0 for every state it computes, so a zero exit is not a green\n     light, and no state is ever expressed as a number or a percentage.\n   - All four states are reachable, so the verdict is about this task: `NEEDS_EVIDENCE` until step\n     5's batch is recorded, `READY` once it covers the contract, `BLOCKED` on a claim whose evidence\n     contradicts itself. **Run step 5's write before this call** — grading an empty ledger reports a\n     missing diagnosis you have already done. `--verification-plan`, `--scope` and `--invariants`\n     are inputs you *state*, not evidence the gate measured: the report echoes them back as\n     `callerAsserted`, so pass them when true and say which requirements rest on a statement rather\n     than on a record. Never write `READY` the gate did not give.\n   - If the validated class declares no readiness template — the resolved workflow's\n     `requiresImplementationReadiness` is `false` and the verb exits 1 saying so — do not invent one\n     and do not proceed anyway: the change is its own task under its own class. Say that and stop.\n   - Verify fixes immediately by re-running tests.\n\n7. **Iteration is Bounded by the Runtime, Not by You**:\n   - After a remediation pass that does not hold, classify the failure and take the action it\n     returns rather than choosing your own retry count:\n     `\"$DOFLOW\" recover --error \"\u003Cmessage>\" --failed-check \"\u003Cname>\" --iteration \u003Cn> --json`.\n     Exit 0 means a bounded retry is available — repeat steps 3–5 under it. Exit 1 means the loop\n     must stop; report where it stopped instead of trying again.\n   - Risk assessment before remediating production or shared infrastructure is step 6's readiness\n     call, which always runs. There is no separate opt-in for it.\n   - Every runtime call above is recorded in the run ledger as it happens; `\"$DOFLOW\" trace` reads it\n     back. Nothing needs to be switched on for that.\n\n### Failure Investigation Invariants\n- Root cause always — understand WHY, not just THAT; fix the cause, not the symptom.\n- Never skip, disable, or comment-out tests or validation checks to pass builds.\n\n### Red Flags\nRows come only from recorded bench failures (case id in brackets).\n\n| Rationalization | Reality | Required action |\n|---|---|---|\n| \"It's a slow-suite report, so `--focus performance` settles it; what to measure can wait.\" | [do-diagnose\u002F1] routed the report but never named the repo's test command as the thing to measure. | Name the repo's own test command (its `package.json` script or CI command) and time it as the baseline before any hypothesis. |\n\n## Boundaries\n**Will:** Propose a task class and have the runtime validate it, reproduce active issues, perform\nmulti-domain static\u002Fruntime audits, batch the stage's evidence and claims, and rank remediation\nstrategies.\n**Will Not:** Apply edits without `--fix` and explicit confirmation; bypass or disable tests to\nforce passing status; diagnose under a class the runtime rejected or replaced with `feature`;\ncall `readiness` for a stage that declares no template; or express evidence, an estimate or readiness as a number, a percentage or a confidence.\n","# do-diagnose\n\nUnified diagnostic and code improvement engine. Replaces separate analyze\u002Ftroubleshoot\u002Freflect\u002Fimprove tools with a single evidence-first diagnostic workflow.\n\n## Invocation\n```text\n\u002Fdo-diagnose [target|issue] [--focus quality|security|performance|architecture] [--fix]\n```\n\n## Behavioral Flow\n\n1. **Resolve the Runtime Seam** — every DoFlow runtime call in this skill goes through the seam.\n   Resolve it **once** here and reuse `$DOFLOW` for every later call in this skill:\n\n```bash\n# Resolve the DoFlow runtime: nearest project install wins, then the global one.\nD=$PWD; while [ \"$D\" != \u002F ] && [ ! -x \"$D\u002F.doflow\u002Fscripts\u002Fdoflow\u002Fbin\u002Fdoflow-run\" ]; do D=$(dirname \"$D\"); done\nDOFLOW=\"$D\u002F.doflow\u002Fscripts\u002Fdoflow\u002Fbin\u002Fdoflow-run\"\n[ -x \"$DOFLOW\" ] || DOFLOW=\"$HOME\u002F.doflow\u002Fscripts\u002Fdoflow\u002Fbin\u002Fdoflow-run\"\n[ -x \"$DOFLOW\" ] || { echo \"doflow: no runtime found in any .doflow\u002F above $PWD, nor at $HOME\u002F.doflow. Run: npx @khoavu882\u002Fdoflow install -t \u003Charness>\" >&2; exit 2; }\n```\nRun every command below from the project root — the walk-up starts at `$PWD`. On exit 2, print the message verbatim and stop; it names every path searched.\n\n```bash\n\"$DOFLOW\" paths --json\n```\n\nOnce per stage, after `feature_slug` resolves, run `\"$DOFLOW\" attendance --task-id \"\u003Cfeature_slug>\"`; `unattended` → the guidance tree's `WORKFLOW_HANDOFF.md` § Unattended stage.\n\n2. **Propose the Task Class; the Runtime Validates It** — the investigation mode is not a flag, it\n   *is* the task class, so settle the class first. Propose exactly one id:\n\n```bash\n\"$DOFLOW\" classify --task-class \"\u003Cproposed>\" --calling-skill do-diagnose --view brief --json\n```\nBranch on `outcome`, not the exit code.\n- **`ACCEPTED`** — the returned `workflow` is this run's plan of record; read `stages`, `gates` and `handoff` off it rather than from memory.\n- **`REJECTED`** — **stop.** Print `message` verbatim (it already names `validClasses` and any `suggestions`), ask the user to choose from `validClasses`, then re-validate. Never substitute `feature`.\n  A rejection may be about **you** rather than the class (`reason: caller-not-a-stage`). Then the fix is to propose one of the classes in `fit.hostingClasses`, or to hand the work to the skill this class names for the stage you meant — not to re-propose the same class.\n- **Exit 2** — surface the message verbatim and stop.\n\nThis skill is one of the accepted workflow's analysis stages — `root-cause` for `bug`,\n`architecture-mapping` for `refactor`, `usage-impact` for `dependency-change`. A workflow that\ndeclares no analysis stage is not a workflow to diagnose under: say so and re-propose the class.\n\n   - A performance or security investigation is not its own class: it is classed by what the work\n     is — `bug` when behavior is wrong now, `refactor` when structure changes with behavior held\n     fixed, `research` when the deliverable is a written answer. `--focus` is what narrows such a\n     run to one domain; it never changes the class.\n   - While diagnosing, no stage this skill serves has a readiness template — do not call `readiness`\n     and do not report one as skipped. Step 6's `--fix` path is different: it enters the validated\n     class's implementation stage, which does.\n\n3. **Derive Intent & Scope from the Accepted Class**:\n   - `bug` → reproduce the issue, isolate the cause via stack traces\u002Fdiffs, formulate a hypothesis.\n     Consult this skill's own `references\u002Froot_cause.md`.\n   - `refactor` → identify dead code, code smells, god functions, and structure cleanups. Consult\n     `references\u002Frefactoring.md`.\n   - `dependency-change` → map who uses the dependency and what the change reaches.\n   - `--focus performance` → profile execution, detect hot paths, identify algorithmic complexity\n     (O(n²)) or N+1 queries, within whichever class was accepted.\n   - `--focus security` → static scan for secrets, unsanitized inputs, auth gaps, or vulnerability\n     signatures. Consult `references\u002Fcode_audit.md`.\n   - `--focus quality|architecture` → narrow to maintainability or to boundary\u002Fstructure concerns.\n   - With no `--focus`, investigate the whole reported symptom rather than picking a domain.\n\n4. **Evidence-First Diagnosis**:\n   - Confirm root cause with concrete evidence before proposing any changes.\n   - Resolve each retrieval need through the router rather than reaching for a habitual tool:\n     `\"$DOFLOW\" route --intent \u003Clocate-known-symbol|locate-concept|trace-dependency|estimate-blast-radius|inspect-history|verify-runtime-behavior> --json`.\n   - MCP `context7`: when diagnosing library or dependency behavior, verify interface claims per `MCP_Context7.md`.\n\n**Discovery first.** A broad pass over reported scope to find terminology, surfaces, and competing readings before concluding. Then targeted passes per question.\n\nName competing hypotheses from discovery before testing; state what falsifies each. Hypotheses that cannot be falsified warrant no retrieval.\n\n**Stop when** every hypothesis the contract names has an answer or a stated gap, **and** the last round produced no new hypothesis. A round that only restates what you already have is the last round. Report the remaining gaps rather than continuing.\n\n   - Then propose ranked fix options with blast-radius ratings (Low \u002F Medium \u002F High). Those ranked\n     options are the remediation plan step 6 asks the user to approve. Stops after producing them;\n     never begins edits here.\n\n5. **Batch This Stage's Evidence**:\n   - One pass at the end of the diagnosis, never one call per finding. `\u003Ctask id>` is the unit these\n     stores key on: the plan task id when one exists, otherwise the feature slug or the issue id you\n     are diagnosing. Use the same id for every `evidence`, `claim` and `readiness` call in the run.\n     ```bash\n     \"$DOFLOW\" evidence --task-id \"\u003Ctask id>\" --action add --batch \u003Cbatch>.json --json\n     \"$DOFLOW\" claim --task-id \"\u003Ctask id>\" --action add --role root-cause --statement \"\u003Cthe root cause, in one sentence>\"\n     ```\n   - This stage's items are what the investigation observed: stack frames, log lines, test results\n     and diff hunks are **extracted**; your reading of them is **inferred**. A diagnosis is where\n     inference most easily passes for observation, so never merge the two into one reported line.\n\nItem schema, provenance rules, and the refused-field list: the guidance tree's `references\u002FEVIDENCE_LEDGER.md`. Read it before writing the batch.\n\n   - The root cause enters as a claim and is stored as a `hypothesis`. `--role root-cause` declares\n     what the claim is to the task — the bug class's readiness contract only accepts a supported\n     claim carrying that role, so a supported claim about something unrelated cannot stand in for\n     the cause. It becomes supported only through linked evidence, recorded after the batch lands:\n     ```bash\n     \"$DOFLOW\" claim --task-id \"\u003Ctask id>\" --action link --claim-id \"\u003Cclaim id>\" --evidence-id \"\u003Cevidence id>\" --relation supports\n     ```\n     An evidence id the ledger does not hold is refused (exit 2), not graded — so write the batch\n     first, then link. A plausible story that explains the symptom is not support, and a symptom\n     reproducing is evidence of the symptom, not of the cause.\n\n6. **Remediation (`--fix`)**:\n   - Only apply modifications when `--fix` is passed and after the user approves the remediation plan.\n   - `--fix` performs the edit that the validated class's workflow places behind its implementation\n     stage, so consult that same contract first — never a new one. A `--fix` run is a declared\n     one-off edit, not an orchestrated run, and states that mode explicitly:\n     `\"$DOFLOW\" readiness --task-class \"\u003Cvalidated class>\" --task-id \"\u003Ctask id>\" --mode standalone --json`.\n     Both `--task-class` and `--task-id` are required; omitting either exits 2 and names the valid\n     set. Act on `stageEntry.decision`, never the exit code or your own reading of `state`:\n     `STOP` → do not edit, surface the conflicted claim; `ASK_USER` → ask the owed decision and\n     wait; `ENTER` → proceed — in standalone mode that includes `NEEDS_EVIDENCE`, where the unmet\n     contract is reported, not enforced, so relay what is missing rather than presenting the fix as\n     fully evidenced. The verb exits 0 for every state it computes, so a zero exit is not a green\n     light, and no state is ever expressed as a number or a percentage.\n   - All four states are reachable, so the verdict is about this task: `NEEDS_EVIDENCE` until step\n     5's batch is recorded, `READY` once it covers the contract, `BLOCKED` on a claim whose evidence\n     contradicts itself. **Run step 5's write before this call** — grading an empty ledger reports a\n     missing diagnosis you have already done. `--verification-plan`, `--scope` and `--invariants`\n     are inputs you *state*, not evidence the gate measured: the report echoes them back as\n     `callerAsserted`, so pass them when true and say which requirements rest on a statement rather\n     than on a record. Never write `READY` the gate did not give.\n   - If the validated class declares no readiness template — the resolved workflow's\n     `requiresImplementationReadiness` is `false` and the verb exits 1 saying so — do not invent one\n     and do not proceed anyway: the change is its own task under its own class. Say that and stop.\n   - Verify fixes immediately by re-running tests.\n\n7. **Iteration is Bounded by the Runtime, Not by You**:\n   - After a remediation pass that does not hold, classify the failure and take the action it\n     returns rather than choosing your own retry count:\n     `\"$DOFLOW\" recover --error \"\u003Cmessage>\" --failed-check \"\u003Cname>\" --iteration \u003Cn> --json`.\n     Exit 0 means a bounded retry is available — repeat steps 3–5 under it. Exit 1 means the loop\n     must stop; report where it stopped instead of trying again.\n   - Risk assessment before remediating production or shared infrastructure is step 6's readiness\n     call, which always runs. There is no separate opt-in for it.\n   - Every runtime call above is recorded in the run ledger as it happens; `\"$DOFLOW\" trace` reads it\n     back. Nothing needs to be switched on for that.\n\n### Failure Investigation Invariants\n- Root cause always — understand WHY, not just THAT; fix the cause, not the symptom.\n- Never skip, disable, or comment-out tests or validation checks to pass builds.\n\n### Red Flags\nRows come only from recorded bench failures (case id in brackets).\n\n| Rationalization | Reality | Required action |\n|---|---|---|\n| \"It's a slow-suite report, so `--focus performance` settles it; what to measure can wait.\" | [do-diagnose\u002F1] routed the report but never named the repo's test command as the thing to measure. | Name the repo's own test command (its `package.json` script or CI command) and time it as the baseline before any hypothesis. |\n\n## Boundaries\n**Will:** Propose a task class and have the runtime validate it, reproduce active issues, perform\nmulti-domain static\u002Fruntime audits, batch the stage's evidence and claims, and rank remediation\nstrategies.\n**Will Not:** Apply edits without `--fix` and explicit confirmation; bypass or disable tests to\nforce passing status; diagnose under a class the runtime rejected or replaced with `feature`;\ncall `readiness` for a stage that declares no template; or express evidence, an estimate or readiness as a number, a percentage or a confidence.\n",{"name":5,"effort":24,"description":7,"argument-hint":25},"medium","[target|issue] [--focus quality|security|performance|architecture] [--fix]","main","1f1bb66cc55e4d4f3d648089d35ea1f3826ce40a","core\u002Fshared\u002Fskills\u002Fdo-diagnose","https:\u002F\u002Fgithub.com\u002Fkhoavu882\u002Fdo-flow","https:\u002F\u002Fgithub.com\u002Fkhoavu882","2026-11-10 18:44:15",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add khoavu882\u002Fdo-flow --skill do-diagnose",{"tool":38,"command":39},"bunx","bunx skills add khoavu882\u002Fdo-flow --skill do-diagnose",{"tool":41,"command":42},"pnpm","pnpm dlx skills add khoavu882\u002Fdo-flow --skill do-diagnose","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkhoavu882\u002Fdo-flow\u002Fblob\u002Fmain\u002Fcore\u002Fshared\u002Fskills\u002Fdo-diagnose\u002FSKILL.md",true,[46,52,56],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fcode_audit.md","REFERENCE","参考文档",863,"https:\u002F\u002Fgithub.com\u002Fkhoavu882\u002Fdo-flow\u002Fblob\u002Fmain\u002Fcore\u002Fshared\u002Fskills\u002Fdo-diagnose\u002Freferences\u002Fcode_audit.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Frefactoring.md",565,"https:\u002F\u002Fgithub.com\u002Fkhoavu882\u002Fdo-flow\u002Fblob\u002Fmain\u002Fcore\u002Fshared\u002Fskills\u002Fdo-diagnose\u002Freferences\u002Frefactoring.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Froot_cause.md",750,"https:\u002F\u002Fgithub.com\u002Fkhoavu882\u002Fdo-flow\u002Fblob\u002Fmain\u002Fcore\u002Fshared\u002Fskills\u002Fdo-diagnose\u002Freferences\u002Froot_cause.md",[61,67,73,80,87,94],{"skillNo":62,"name":63,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M78BWJFR71W5PFWF9JZFQZD2","beta","https:\u002F\u002Fgithub.com\u002Fkhoavu882\u002Fdo-flow\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fbench-noise\u002Fskills\u002Fbeta\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M78BWGHVFZRKM7S4JYGPRA3Y","alpha","https:\u002F\u002Fgithub.com\u002Fkhoavu882\u002Fdo-flow\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fbench-noise\u002Fskills\u002Falpha\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M78BWB5C33WTE4YTSTBWJ01C","do","DoFlow universal dispatcher and the entry point for a plain code-change request: it classifies the task, routes it to the matching \u002Fdo-* workflow and applies that workflow's gates. Use whenever the user asks to add, fix, change or build something in code without naming a \u002Fdo-* skill, a request bundles several unrelated asks, or needs a tool recommendation or effort estimate first (e.g., 'add a retry to the upload client in src\u002Fupload.js', 'give me a rough estimate for this change', 'first do X, then document Y'). Skip it for questions about how existing code behaves, explanations, reviews, and work already inside a \u002Fdo-* skill.","https:\u002F\u002Fgithub.com\u002Fkhoavu882\u002Fdo-flow\u002Fblob\u002Fmain\u002Fcore\u002Fshared\u002Fskills\u002Fdo\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M78BW76N1YR7QRVXBQAV3QBN","do-test","Execute project builds, automated test suites, and coverage verification with intelligent error reporting across whatever toolchain the repo already uses. Use whenever the user wants to run existing tests, execute test suites, verify builds, check test coverage, or check compile status (e.g., 'run the tests', 'execute test suite', 'check coverage', 'verify build', 'does this still build'). Always activate this skill when verifying test suites or running builds without writing new application code.","https:\u002F\u002Fgithub.com\u002Fkhoavu882\u002Fdo-flow\u002Fblob\u002Fmain\u002Fcore\u002Fshared\u002Fskills\u002Fdo-test\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M78BW2RW6HSN8D43AM83P1AV","do-plan","Generate the implementation plan (HOW) and dependency-ordered task checklist from requirement.md + design.md (plus design\u002Fspecs.md's IC-### interface contracts when the feature has one), with a Constitution Check gate, as Phase 3 of the doflow chain. Use whenever requirement.md and design.md exist and the next step is creating an actionable, owner-and-file-scoped task breakdown before implementation, or when the user says 'create an implementation plan', 'break this down into tasks', 'plan the work', or 'plan Phase 3'. Always activate this skill before executing feature implementation.","https:\u002F\u002Fgithub.com\u002Fkhoavu882\u002Fdo-flow\u002Fblob\u002Fmain\u002Fcore\u002Fshared\u002Fskills\u002Fdo-plan\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M78BVXDWJ66PYCWNZR706GHE","do-implement","Direct, standalone code implementation from a description, \u002Fdo-code-review findings, or an existing task — no DoFlow chain artifacts required. Use when the user names \u002Fdo-implement, says 'now implement that', 'fix what the review found' or 'address these comments', or \u002Fdo routed a bug, refactor, dependency change or small edit here. A plain change request that names no \u002Fdo-* skill goes to \u002Fdo first, which classifies it and routes it back here when it fits. Skip it for questions, reviews, and new features that need the full chain.","https:\u002F\u002Fgithub.com\u002Fkhoavu882\u002Fdo-flow\u002Fblob\u002Fmain\u002Fcore\u002Fshared\u002Fskills\u002Fdo-implement\u002FSKILL.md",[],[]]