[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DDQYBK2ZP07SZ59HJG148B":3,"skill-same:01M7DDQYBK2ZP07SZ59HJG148B":98},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"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":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7DDQYBK2ZP07SZ59HJG148B","formal-verify",null,"End-to-end formal-methods bug hunting for real codebases in any language — scope a risky concern, model it in TLA+ and\u002For Lean 4, check it, turn every counterexample into a failing test, fix the code, re-verify, and publish the results as an Artifact report. Use this skill whenever the user wants to find race conditions, lost updates, deadlocks, stale caches, double-applied retries, broken idempotency, message reordering or loss bugs, state-machine violations, dataflow\u002Fpipeline loss or duplication, or graph\u002FDAG\u002Fscheduler bugs; whenever they say \"formally verify\", \"model check\", \"prove\", \"TLA+\", \"Lean\", \"invariant\", \"spec this out\", \"is this thread-safe\", \"can this race\", or ask for a concurrency\u002Fasync\u002Fdistributed review of a module or PR — even if they never name a formal-methods tool. Also the entry point for keeping specs in CI and detecting spec\u002Fcode drift. Routes to tlaplus-model, lean-model, and proof-simplify for the tool-specific work.","opum-ai\u002Fproof-skills","opum-ai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F311910387?v=4","01M7DDQJG8XXPK9JCD2KJ9FZ62","01M7DDQJHBN3BWWK4DWYMNY9TR",27,"MIT","https:\u002F\u002Fgithub.com\u002Fopum-ai\u002Fproof-skills\u002Fblob\u002Fmain\u002Fskills\u002Fformal-verify\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: formal-verify\ndescription: End-to-end formal-methods bug hunting for real codebases in any language — scope a risky concern, model it in TLA+ and\u002For Lean 4, check it, turn every counterexample into a failing test, fix the code, re-verify, and publish the results as an Artifact report. Use this skill whenever the user wants to find race conditions, lost updates, deadlocks, stale caches, double-applied retries, broken idempotency, message reordering or loss bugs, state-machine violations, dataflow\u002Fpipeline loss or duplication, or graph\u002FDAG\u002Fscheduler bugs; whenever they say \"formally verify\", \"model check\", \"prove\", \"TLA+\", \"Lean\", \"invariant\", \"spec this out\", \"is this thread-safe\", \"can this race\", or ask for a concurrency\u002Fasync\u002Fdistributed review of a module or PR — even if they never name a formal-methods tool. Also the entry point for keeping specs in CI and detecting spec\u002Fcode drift. Routes to tlaplus-model, lean-model, and proof-simplify for the tool-specific work.\n---\n\n# formal-verify\n\nFormal models find bugs that tests and reviewers miss because they explore *every*\ninterleaving and *every* small input, not the handful someone thought of. An agent\ncan now write the models quickly; the hard parts are choosing what to model, keeping the\nmodel honest to the code, and proving a counterexample is real. This skill owns those\nparts. The tool-specific mechanics live in sibling skills:\n\n| Skill | Use it for |\n|---|---|\n| `tlaplus-model` | Interleavings, message passing, retries, liveness, protocols. Exhaustive on small models (TLC) or bounded-symbolic (Apalache\u002FQuint). |\n| `lean-model` | Pure logic and data structures, graph algorithms, state machines needing *unbounded* proofs, executable reference models for differential testing. |\n| `proof-simplify` | After something is verified: use the proven invariants to delete redundant code, then re-verify. |\n\nShared material for all four skills sits in this skill's `references\u002F`. Sibling skills\nreach it at `${CLAUDE_SKILL_DIR}\u002F..\u002Fformal-verify\u002Freferences\u002F`.\n\n## Pick the workflow\n\nRead `references\u002Fworkflows.md` for the full step list of each. Match the request:\n\n| The user wants… | Workflow |\n|---|---|\n| \"Find bugs \u002F races in X\", \"is this safe under concurrency\" | **W1 Bug hunt** (default) |\n| \"Review this PR\u002Fdiff for races\" | **W2 Change review** — model only the delta and what it touches |\n| \"Check this design \u002F protocol before we build it\" | **W3 Design verification** — no code yet; spec is the design |\n| \"Simplify this using the proofs\", \"is this lock\u002Fcheck needed\" | **W4 Proof-guided simplification** → `proof-simplify` |\n| \"Keep this verified\", \"add the spec to CI\" | **W5 Regression guard** |\n| \"The code changed — is the spec still right?\" | **W6 Drift check** |\n| \"Prove it for all N\", \"TLC passed but I want certainty\" | **W7 Escalate TLA+ → Lean** |\n| \"Explain this counterexample \u002F TLC trace\" | **W8 Explain a trace** |\n\n## W1 Bug hunt — the core loop\n\nEach step exists because skipping it is how formal-methods efforts fail in practice.\n\n1. **Scope one concern.** Pick one shared resource or protocol (\"cache fill vs.\n   invalidation\", \"job claim vs. lease expiry\", \"DAG executor dispatch\"). Rank candidates by\n   blast radius × concurrency. Write a short scope note (in scope, abstracted, out of scope).\n   A whole-system model never converges; a 150-line spec of one concern finds the bug.\n2. **Harvest properties before modeling.** Pull invariants from docs, comments,\n   issue trackers, past fix commits, and API contracts. Cite a source for each\n   (`README.md:40`, `#1234`). Split them into *protocol-level* properties (any correct\n   implementation must satisfy them) and *code-level* ones. Freeze the protocol-level set\n   in its own file (`Properties.tla` \u002F `Properties.lean`) and do not weaken it later\n   without the user's explicit OK. Agents that edit their own success criteria \"find\" no bugs.\n3. **Choose the tool.** Use `references\u002Fchoosing-tools.md`. Default: TLA+ for\n   anything with interleavings; Lean for algorithmic\u002Fdata-structure correctness or when an\n   unbounded proof is wanted; both when a protocol wraps a non-trivial algorithm.\n4. **Build the correspondence map as you model.** Every model action\u002Ffunction gets a\n   row pointing to `file:line` in the source and stating what was abstracted\n   (`references\u002Fcorrespondence.md`, template in `assets\u002FCORRESPONDENCE.md`). This is what\n   turns a counterexample into a code-level explanation, and what W6 drift checks read.\n5. **Model and check** via `tlaplus-model` or `lean-model`. Always run the sanity checks\n   those skills describe (must-fail invariants, action coverage, mutation of a guard).\n   A spec that cannot fail proves nothing.\n6. **Reproduce every counterexample in real code** before calling it a bug\n   (`references\u002Freproduce-and-fix.md`). Write a deterministic reproduction that forces the\n   trace's interleaving (barriers, injected delays, fake clocks, controllable executors).\n   Run it against the **unchanged** code and save the failing log first. It must fail on the\n   property assertion, not on an API or signature change. Honor the user's stated deliverable:\n   if they said \"no more unit tests\", put the reproduction in `formal\u002F\u003Cconcern>\u002Frepro\u002F` as a\n   script instead of adding it to their test suite. If it will not reproduce, fix the model,\n   not the verdict. Record unreproduced traces as *suspected*, never as bugs.\n7. **Fix, then re-verify.** Fix the code, mirror the fix in the model, re-run the model\n   and the new test. Mutation-check the fix: revert it in the model and confirm the\n   property fails again. This proves the property actually guards the bug.\n8. **Record and report.** Keep a log of every check you cite in `formal\u002F\u003Cconcern>\u002Fevidence\u002F`:\n   TLC or Lean output, coverage, `correspondence_check.py`, mutation runs, and test runs\n   before and after the fix. Report other problems you noticed along the way (for example, an\n   input the code silently mishandles) as separate findings, and do not fix them without\n   asking. Write findings to `formal\u002Ffindings.json`\n   (schema: `assets\u002Ffindings.schema.json`), then publish the Artifact report\n   (next section). Offer W4 (simplify) and W5 (CI guard) as follow-ups.\n\n**Match the depth to the question.** One scoped model, the sanity checks, one reproduction,\nand the report is the floor. Add a second tool (for example, Lean after TLA+) only when the\nuser asks for an unbounded guarantee, or when the bounded result leaves a real doubt.\n\nKeep the user informed at step boundaries. Ask before step 7 if the fix is non-obvious,\ntouches public API, or has several reasonable designs.\n\n## Where files go in the target project\n\n```\nformal\u002F\n  README.md                     # what is modeled, how to run it (keep short)\n  findings.json                 # machine-readable results; drives the report\n  \u003Cconcern>\u002F                    # one directory per scoped concern, kebab-case\n    SCOPE.md                    # scope note from step 1\n    CORRESPONDENCE.md           # model ↔ code map from step 4\n    tla\u002F Spec.tla Properties.tla MC.cfg MC_live.cfg\n    lean\u002F lakefile.toml lean-toolchain \u003CPkg>\u002FModel.lean \u003CPkg>\u002FProperties.lean\n    repro\u002F                      # reproductions kept out of the user's test suite, if asked\n    evidence\u002F                   # saved logs for every check the report cites\n  reports\u002F                      # local copy of each published report (HTML)\n```\n\nAdapt to an existing convention if the repo has one (`specs\u002F`, `tla\u002F`, `proofs\u002F`).\n\n## Report: publish as an Artifact\n\nResults go to the user as a published Artifact page, not as terminal scroll. Follow\n`references\u002Freport-artifact.md` for the required content. In short:\n\n1. Load the `artifact-design` skill (page contract, theming, layout). Load\n   `artifact-diagramming` too. Any concern with a shape (a graph, DAG, state machine, or\n   protocol topology) gets a diagram with the counterexample highlighted:\n   `scripts\u002Fgraph_svg.py` renders one from a small JSON spec.\n2. Build one HTML page from `formal\u002Ffindings.json`: verdict summary first, then one\n   section per finding (property violated, minimal trace, code mapping, reproduction test,\n   fix), then what was verified, the trust base, and the exact commands to re-run.\n3. Publish with the Artifact tool and save a copy to `formal\u002Freports\u002F`. On republish of\n   the same concern, reuse the same file path so the URL stays stable.\n\nIf no Artifact tool exists in this environment, write the same page to\n`formal\u002Freports\u002F\u003Cdate>-\u003Cconcern>.html` and say so. When running as a subagent that may not\npublish or write report files, put the report's content (verdict, findings with traces,\nwhat was verified with bounds, trust base, re-run commands) in the final message, so the\nparent session can publish it.\n\n## Honesty rules\n\n- Say exactly what was checked: model bounds (e.g. \"2 workers, 3 jobs, ≤2 retries\"),\n  states explored, depth, which properties, which `sorry`\u002Faxioms remain. \"Verified\" without\n  bounds is a false claim.\n- A passing check means \"no counterexample within this model\", not \"the code is correct\".\n  Name the abstractions that could hide a bug.\n- Never report a counterexample as a bug until step 6 reproduced it.\n- Never weaken a frozen property, add a state constraint, or add fairness to make a\n  check pass without flagging it in the report as a model change.\n\n## Toolchains\n\nRun `scripts\u002Fdoctor.sh` to see what is installed. The tool skills carry install scripts:\n`tlaplus-model\u002Fscripts\u002Fsetup_tla.sh` (Java 11+, tla2tools.jar, community modules) and\n`lean-model\u002Fscripts\u002Fsetup_lean.sh` (elan, Lean toolchain). Ask before installing anything\nsystem-wide; the scripts default to a project-local or user-cache location.\n\n## Reference files\n\n- `references\u002Fworkflows.md` — W1–W8 step lists, entry\u002Fexit criteria, hand-offs.\n- `references\u002Fchoosing-tools.md` — TLA+ vs Lean vs Quint vs \"just write a stress test\".\n- `references\u002Fcorrespondence.md` — how to map model ↔ code and keep it current.\n- `references\u002Freproduce-and-fix.md` — trace → deterministic test, per language\u002Fruntime.\n- `references\u002Freport-artifact.md` — report content contract and publishing steps.\n- `references\u002Fci-and-drift.md` — CI jobs, budgets, drift detection (W5, W6).\n- `references\u002Fevidence.md` — what the published evidence says works, with sources.\n","# formal-verify\n\nFormal models find bugs that tests and reviewers miss because they explore *every*\ninterleaving and *every* small input, not the handful someone thought of. An agent\ncan now write the models quickly; the hard parts are choosing what to model, keeping the\nmodel honest to the code, and proving a counterexample is real. This skill owns those\nparts. The tool-specific mechanics live in sibling skills:\n\n| Skill | Use it for |\n|---|---|\n| `tlaplus-model` | Interleavings, message passing, retries, liveness, protocols. Exhaustive on small models (TLC) or bounded-symbolic (Apalache\u002FQuint). |\n| `lean-model` | Pure logic and data structures, graph algorithms, state machines needing *unbounded* proofs, executable reference models for differential testing. |\n| `proof-simplify` | After something is verified: use the proven invariants to delete redundant code, then re-verify. |\n\nShared material for all four skills sits in this skill's `references\u002F`. Sibling skills\nreach it at `${CLAUDE_SKILL_DIR}\u002F..\u002Fformal-verify\u002Freferences\u002F`.\n\n## Pick the workflow\n\nRead `references\u002Fworkflows.md` for the full step list of each. Match the request:\n\n| The user wants… | Workflow |\n|---|---|\n| \"Find bugs \u002F races in X\", \"is this safe under concurrency\" | **W1 Bug hunt** (default) |\n| \"Review this PR\u002Fdiff for races\" | **W2 Change review** — model only the delta and what it touches |\n| \"Check this design \u002F protocol before we build it\" | **W3 Design verification** — no code yet; spec is the design |\n| \"Simplify this using the proofs\", \"is this lock\u002Fcheck needed\" | **W4 Proof-guided simplification** → `proof-simplify` |\n| \"Keep this verified\", \"add the spec to CI\" | **W5 Regression guard** |\n| \"The code changed — is the spec still right?\" | **W6 Drift check** |\n| \"Prove it for all N\", \"TLC passed but I want certainty\" | **W7 Escalate TLA+ → Lean** |\n| \"Explain this counterexample \u002F TLC trace\" | **W8 Explain a trace** |\n\n## W1 Bug hunt — the core loop\n\nEach step exists because skipping it is how formal-methods efforts fail in practice.\n\n1. **Scope one concern.** Pick one shared resource or protocol (\"cache fill vs.\n   invalidation\", \"job claim vs. lease expiry\", \"DAG executor dispatch\"). Rank candidates by\n   blast radius × concurrency. Write a short scope note (in scope, abstracted, out of scope).\n   A whole-system model never converges; a 150-line spec of one concern finds the bug.\n2. **Harvest properties before modeling.** Pull invariants from docs, comments,\n   issue trackers, past fix commits, and API contracts. Cite a source for each\n   (`README.md:40`, `#1234`). Split them into *protocol-level* properties (any correct\n   implementation must satisfy them) and *code-level* ones. Freeze the protocol-level set\n   in its own file (`Properties.tla` \u002F `Properties.lean`) and do not weaken it later\n   without the user's explicit OK. Agents that edit their own success criteria \"find\" no bugs.\n3. **Choose the tool.** Use `references\u002Fchoosing-tools.md`. Default: TLA+ for\n   anything with interleavings; Lean for algorithmic\u002Fdata-structure correctness or when an\n   unbounded proof is wanted; both when a protocol wraps a non-trivial algorithm.\n4. **Build the correspondence map as you model.** Every model action\u002Ffunction gets a\n   row pointing to `file:line` in the source and stating what was abstracted\n   (`references\u002Fcorrespondence.md`, template in `assets\u002FCORRESPONDENCE.md`). This is what\n   turns a counterexample into a code-level explanation, and what W6 drift checks read.\n5. **Model and check** via `tlaplus-model` or `lean-model`. Always run the sanity checks\n   those skills describe (must-fail invariants, action coverage, mutation of a guard).\n   A spec that cannot fail proves nothing.\n6. **Reproduce every counterexample in real code** before calling it a bug\n   (`references\u002Freproduce-and-fix.md`). Write a deterministic reproduction that forces the\n   trace's interleaving (barriers, injected delays, fake clocks, controllable executors).\n   Run it against the **unchanged** code and save the failing log first. It must fail on the\n   property assertion, not on an API or signature change. Honor the user's stated deliverable:\n   if they said \"no more unit tests\", put the reproduction in `formal\u002F\u003Cconcern>\u002Frepro\u002F` as a\n   script instead of adding it to their test suite. If it will not reproduce, fix the model,\n   not the verdict. Record unreproduced traces as *suspected*, never as bugs.\n7. **Fix, then re-verify.** Fix the code, mirror the fix in the model, re-run the model\n   and the new test. Mutation-check the fix: revert it in the model and confirm the\n   property fails again. This proves the property actually guards the bug.\n8. **Record and report.** Keep a log of every check you cite in `formal\u002F\u003Cconcern>\u002Fevidence\u002F`:\n   TLC or Lean output, coverage, `correspondence_check.py`, mutation runs, and test runs\n   before and after the fix. Report other problems you noticed along the way (for example, an\n   input the code silently mishandles) as separate findings, and do not fix them without\n   asking. Write findings to `formal\u002Ffindings.json`\n   (schema: `assets\u002Ffindings.schema.json`), then publish the Artifact report\n   (next section). Offer W4 (simplify) and W5 (CI guard) as follow-ups.\n\n**Match the depth to the question.** One scoped model, the sanity checks, one reproduction,\nand the report is the floor. Add a second tool (for example, Lean after TLA+) only when the\nuser asks for an unbounded guarantee, or when the bounded result leaves a real doubt.\n\nKeep the user informed at step boundaries. Ask before step 7 if the fix is non-obvious,\ntouches public API, or has several reasonable designs.\n\n## Where files go in the target project\n\n```\nformal\u002F\n  README.md                     # what is modeled, how to run it (keep short)\n  findings.json                 # machine-readable results; drives the report\n  \u003Cconcern>\u002F                    # one directory per scoped concern, kebab-case\n    SCOPE.md                    # scope note from step 1\n    CORRESPONDENCE.md           # model ↔ code map from step 4\n    tla\u002F Spec.tla Properties.tla MC.cfg MC_live.cfg\n    lean\u002F lakefile.toml lean-toolchain \u003CPkg>\u002FModel.lean \u003CPkg>\u002FProperties.lean\n    repro\u002F                      # reproductions kept out of the user's test suite, if asked\n    evidence\u002F                   # saved logs for every check the report cites\n  reports\u002F                      # local copy of each published report (HTML)\n```\n\nAdapt to an existing convention if the repo has one (`specs\u002F`, `tla\u002F`, `proofs\u002F`).\n\n## Report: publish as an Artifact\n\nResults go to the user as a published Artifact page, not as terminal scroll. Follow\n`references\u002Freport-artifact.md` for the required content. In short:\n\n1. Load the `artifact-design` skill (page contract, theming, layout). Load\n   `artifact-diagramming` too. Any concern with a shape (a graph, DAG, state machine, or\n   protocol topology) gets a diagram with the counterexample highlighted:\n   `scripts\u002Fgraph_svg.py` renders one from a small JSON spec.\n2. Build one HTML page from `formal\u002Ffindings.json`: verdict summary first, then one\n   section per finding (property violated, minimal trace, code mapping, reproduction test,\n   fix), then what was verified, the trust base, and the exact commands to re-run.\n3. Publish with the Artifact tool and save a copy to `formal\u002Freports\u002F`. On republish of\n   the same concern, reuse the same file path so the URL stays stable.\n\nIf no Artifact tool exists in this environment, write the same page to\n`formal\u002Freports\u002F\u003Cdate>-\u003Cconcern>.html` and say so. When running as a subagent that may not\npublish or write report files, put the report's content (verdict, findings with traces,\nwhat was verified with bounds, trust base, re-run commands) in the final message, so the\nparent session can publish it.\n\n## Honesty rules\n\n- Say exactly what was checked: model bounds (e.g. \"2 workers, 3 jobs, ≤2 retries\"),\n  states explored, depth, which properties, which `sorry`\u002Faxioms remain. \"Verified\" without\n  bounds is a false claim.\n- A passing check means \"no counterexample within this model\", not \"the code is correct\".\n  Name the abstractions that could hide a bug.\n- Never report a counterexample as a bug until step 6 reproduced it.\n- Never weaken a frozen property, add a state constraint, or add fairness to make a\n  check pass without flagging it in the report as a model change.\n\n## Toolchains\n\nRun `scripts\u002Fdoctor.sh` to see what is installed. The tool skills carry install scripts:\n`tlaplus-model\u002Fscripts\u002Fsetup_tla.sh` (Java 11+, tla2tools.jar, community modules) and\n`lean-model\u002Fscripts\u002Fsetup_lean.sh` (elan, Lean toolchain). Ask before installing anything\nsystem-wide; the scripts default to a project-local or user-cache location.\n\n## Reference files\n\n- `references\u002Fworkflows.md` — W1–W8 step lists, entry\u002Fexit criteria, hand-offs.\n- `references\u002Fchoosing-tools.md` — TLA+ vs Lean vs Quint vs \"just write a stress test\".\n- `references\u002Fcorrespondence.md` — how to map model ↔ code and keep it current.\n- `references\u002Freproduce-and-fix.md` — trace → deterministic test, per language\u002Fruntime.\n- `references\u002Freport-artifact.md` — report content contract and publishing steps.\n- `references\u002Fci-and-drift.md` — CI jobs, budgets, drift detection (W5, W6).\n- `references\u002Fevidence.md` — what the published evidence says works, with sources.\n",{"name":5,"description":7},"main","578749fd8baa6456d89d7a0037c88bc09a89213d","skills\u002Fformal-verify",7,"https:\u002F\u002Fgithub.com\u002Fopum-ai\u002Fproof-skills","https:\u002F\u002Fgithub.com\u002Fopum-ai","2026-09-26 07:47:20",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add opum-ai\u002Fproof-skills --skill formal-verify",{"tool":36,"command":37},"bunx","bunx skills add opum-ai\u002Fproof-skills --skill formal-verify",{"tool":39,"command":40},"pnpm","pnpm dlx skills add opum-ai\u002Fproof-skills --skill formal-verify","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fopum-ai\u002Fproof-skills\u002Fblob\u002Fmain\u002Fskills\u002Fformal-verify\u002FSKILL.md",true,[44,50,54,60,64,68,72,76,80,84,90,94],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"assets\u002FCORRESPONDENCE.md","ASSET","资产文件",717,"https:\u002F\u002Fgithub.com\u002Fopum-ai\u002Fproof-skills\u002Fblob\u002Fmain\u002Fskills\u002Fformal-verify\u002Fassets\u002FCORRESPONDENCE.md",{"path":51,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":52,"sourceHtmlUrl":53},"assets\u002Ffindings.schema.json",9384,"https:\u002F\u002Fgithub.com\u002Fopum-ai\u002Fproof-skills\u002Fblob\u002Fmain\u002Fskills\u002Fformal-verify\u002Fassets\u002Ffindings.schema.json",{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Fchoosing-tools.md","REFERENCE","参考文档",3594,"https:\u002F\u002Fgithub.com\u002Fopum-ai\u002Fproof-skills\u002Fblob\u002Fmain\u002Fskills\u002Fformal-verify\u002Freferences\u002Fchoosing-tools.md",{"path":61,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Fci-and-drift.md",4198,"https:\u002F\u002Fgithub.com\u002Fopum-ai\u002Fproof-skills\u002Fblob\u002Fmain\u002Fskills\u002Fformal-verify\u002Freferences\u002Fci-and-drift.md",{"path":65,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Fcorrespondence.md",2831,"https:\u002F\u002Fgithub.com\u002Fopum-ai\u002Fproof-skills\u002Fblob\u002Fmain\u002Fskills\u002Fformal-verify\u002Freferences\u002Fcorrespondence.md",{"path":69,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Fevidence.md",4404,"https:\u002F\u002Fgithub.com\u002Fopum-ai\u002Fproof-skills\u002Fblob\u002Fmain\u002Fskills\u002Fformal-verify\u002Freferences\u002Fevidence.md",{"path":73,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Freport-artifact.md",6252,"https:\u002F\u002Fgithub.com\u002Fopum-ai\u002Fproof-skills\u002Fblob\u002Fmain\u002Fskills\u002Fformal-verify\u002Freferences\u002Freport-artifact.md",{"path":77,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Freproduce-and-fix.md",3663,"https:\u002F\u002Fgithub.com\u002Fopum-ai\u002Fproof-skills\u002Fblob\u002Fmain\u002Fskills\u002Fformal-verify\u002Freferences\u002Freproduce-and-fix.md",{"path":81,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002Fworkflows.md",8295,"https:\u002F\u002Fgithub.com\u002Fopum-ai\u002Fproof-skills\u002Fblob\u002Fmain\u002Fskills\u002Fformal-verify\u002Freferences\u002Fworkflows.md",{"path":85,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":88,"sourceHtmlUrl":89},"scripts\u002Fcorrespondence_check.py","SCRIPT","脚本",4151,"https:\u002F\u002Fgithub.com\u002Fopum-ai\u002Fproof-skills\u002Fblob\u002Fmain\u002Fskills\u002Fformal-verify\u002Fscripts\u002Fcorrespondence_check.py",{"path":91,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":92,"sourceHtmlUrl":93},"scripts\u002Fdoctor.sh",1936,"https:\u002F\u002Fgithub.com\u002Fopum-ai\u002Fproof-skills\u002Fblob\u002Fmain\u002Fskills\u002Fformal-verify\u002Fscripts\u002Fdoctor.sh",{"path":95,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":96,"sourceHtmlUrl":97},"scripts\u002Fgraph_svg.py",9212,"https:\u002F\u002Fgithub.com\u002Fopum-ai\u002Fproof-skills\u002Fblob\u002Fmain\u002Fskills\u002Fformal-verify\u002Fscripts\u002Fgraph_svg.py",[99,106,113,120,127],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":18},"01M7DDRX3VER6A4MWWRN7Y8VPX","tlaplus-model","TLA+\u002FTLC model-checking skill. Use it whenever TLA+, PlusCal, Quint, Apalache, TLC, a .tla\u002F.cfg file, or model-checker output appears. That includes a pasted TLC error, \"Invariant X is violated\", or a State 1\u002FState 2… counterexample trace the user wants explained or triaged (real bug, model artifact, or too-strong property), even if it looks answerable by reading alone. Also use it to write, run, scale, or fix specs; debug slow or exploding TLC runs; check invariants, liveness, and fairness; replay production logs against a spec; or \"model\"\u002F\"exhaustively check\" concurrent code, protocols, queues, caches, schedulers, leases, retries, and state machines for races, lost updates, double-spends, deadlocks, and ordering bugs, even for a design with no code yet. Not for runtime race detectors, Jepsen, Alloy, Lean\u002FCoq proofs, or UI state-machine libraries. Pair with formal-verify for the full bug-hunt loop.","https:\u002F\u002Fgithub.com\u002Fopum-ai\u002Fproof-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftlaplus-model\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":18},"01M7DDRJXE4ATZWF3RGHAFKAVF","proof-simplify","Use verified TLA+ specs and Lean proofs to simplify real code safely — delete defensive checks the invariants make dead, remove locks\u002Ftransactions\u002Fretries that do no work, collapse redundant states and flags, replace complex implementations with simpler ones proven equivalent, and encode invariants in types — re-verifying every change (re-check, refinement, reachable-state equivalence) before touching code. Use this skill whenever the user asks to simplify, clean up, de-risk a refactor, or reduce complexity in code that has (or could get) a formal model; asks \"do we still need this lock \u002F check \u002F retry \u002F state\"; wants to turn proofs into code improvements; or finishes a formal-verify bug hunt and wants the payoff. If no verified model exists yet, it starts one via formal-verify first.","https:\u002F\u002Fgithub.com\u002Fopum-ai\u002Fproof-skills\u002Fblob\u002Fmain\u002Fskills\u002Fproof-simplify\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":18},"01M7DDR8E5B0XX7GYX1WMAGMNS","lean-model","Use this skill to prove or refute properties of real software in Lean 4. The target is the user's own code, not textbook math. It covers state machines, concurrency and interleavings, async handlers, retries and idempotency, queues, batching pipelines, and graph algorithms such as topological order, acyclicity and DAG scheduling. Trigger it when the user wants a guarantee for every input or size (\"holds for all N\"), beyond what TLC, tests or a model checker showed. Also trigger it for invariant proofs by induction, a concrete counterexample trace, an executable reference model for differential testing, or setting up a Lean\u002Flake project to model code. Also use it to audit a Lean development's trust base: sorry, axioms, native_decide. Do NOT use it for pure mathematics such as analysis, algebra or Mathlib coursework and homework. Do NOT use it to translate code into Lean syntax, or for other provers like Dafny, Coq or Isabelle. Pairs with formal-verify for bug hunts and tlaplus-model for protocol exploration.","https:\u002F\u002Fgithub.com\u002Fopum-ai\u002Fproof-skills\u002Fblob\u002Fmain\u002Fskills\u002Flean-model\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":18},"01M7DDQSER8Y7VY1HM87QWB481","quest","Drive this repo's task tracker with the quest CLI instead of editing backlog\u002Ftracker state directly. Use whenever creating, listing, viewing, editing, completing, or archiving tasks, drafts, milestones, or decisions in a Quest-initialized workspace. Run `quest instructions --list` for the workflow guides and `quest help [command]` for full usage.","https:\u002F\u002Fgithub.com\u002Fopum-ai\u002Fproof-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fquest\u002FSKILL.md",[],[],{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":18},"01M7DDQMPWD8GQSZGJW61W2W23","lore","Author, retrieve, and maintain OKF documentation with the lore CLI, including explicit multi-repository workspaces. Use whenever reading, writing, linking, moving, querying, or checking docs, so Story\u002FTask coupling, managed blocks, provenance, and cross-links stay coherent. Run `lore instructions` for the canonical agent loop and `lore instructions \u003Ctopic>` for just-in-time detail.","https:\u002F\u002Fgithub.com\u002Fopum-ai\u002Fproof-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Flore\u002FSKILL.md",[],[]]