[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EW595EKQ5HNXMVK97QC2AT":3,"skill-same:01M7EW595EKQ5HNXMVK97QC2AT":62},{"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":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":6,"ownerHtmlUrl":46,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":47,"install":48,"resources":61},"01M7EW595EKQ5HNXMVK97QC2AT","check",null,"The green gate: fixes lint (never suppresses), type-checks, runs affected tests then the full suite, builds like CI, replays CI locally and reads the branch's GitHub CI status read-only. Use when the user says \"is it green?\", \"run the checks\", \"fix the lint\", \"will CI pass?\", or after \u002Fbuild or \u002Ffix finishes and before \u002Freview-coach or \u002Fship.","varun-singhh\u002Flfg","varun-singhh","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F47475007?v=4","01M7EW56BZPRBG0ERQ2335ENA4","Varun Singh","01M7EW56CH2J3RJNQ36E8RX61F",10,"MIT","https:\u002F\u002Fgithub.com\u002Fvarun-singhh\u002Flfg\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fcheck\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: check\ndescription: >\n  The green gate: fixes lint (never suppresses), type-checks, runs affected tests then the full\n  suite, builds like CI, replays CI locally and reads the branch's GitHub CI status read-only.\n  Use when the user says \"is it green?\", \"run the checks\", \"fix the lint\", \"will CI pass?\", or\n  after \u002Fbuild or \u002Ffix finishes and before \u002Freview-coach or \u002Fship.\nauthor: Varun Singh\nphase: prove\nlanes: [express, standard, full, hotfix]\nreads: [diff, 01-brief.md, 02-design.md, tasks.json, 03-build-*.md]\nwrites: [04-qa.md, ready.json]\nauto-trigger: false\npreflight: graphs\n---\n\n# \u002Fcheck: get to green, honestly\n\n## Step 0: preflight\n\n1. `lfg graphs ensure`. Non-zero exit: stop and show its output. Continue on a stale graph only if the user typed `--allow-stale`.\n2. `lfg run path`. Exit 1 (no current run): `lfg run new check-\u003Cbranch-slug>`.\n3. `lfg rule graph-first` and follow it for every lookup below.\n\n## Steps\n\n1. **Scope the change.** `detect_changes_tool` on the working tree (uncommitted work included) → the changed nodes. Note the lane from `tasks.json` or `lfg lane --json`.\n2. **Lint, fixed by hand.** Run the repo's lint\u002Fformat autofix command (from `~\u002F.lfg\u002Frepos\u002F\u003Crepo-id>\u002Fcommands.json`, else the repo's own scripts). Then fix every remaining error and warning in the touched files by editing the code. The fix is always in the code: the lint config, rule list and inline directives stay as they were.\n3. **Types.** Run the repo's type-check command. Fix every error at its cause.\n4. **Affected tests first.** For each changed node: `query_graph_tool` with `tests_for`. Run just those tests for fast feedback. Changed nodes with no test → record as **untested** (gate 2) and tell the user; write the missing test if the seam is agreed in `tasks.json`.\n5. **The gate.** `lfg gate` (one line per check, output only for failures; full logs in `RUN\u002Fgate-logs\u002F\u003Ccheck>.log`, read one only if the shown lines aren't enough): lint, types, full suite, build, gitleaks, new-suppression check, from exit codes. It writes `ready.json`. Read the per-check results from its output, never from memory.\n6. **Local CI replay.** `lfg ci-local` (use `--list` first if unsure what it will run). It also runs `actionlint` on the workflows.\n7. **Remote CI, read-only.** `gh auth status` (not logged in → ask the user to run `gh auth login` themselves; skip this step and say so). Then for the current branch:\n   - `gh pr checks` (if a PR exists),\n   - `gh run list --branch \u003Cbranch> --limit 5`,\n   - `gh run view \u003Cid> --log-failed` for any failed run. Summarise the failing step; fix it locally if the failure is in code this change touches.\n8. **SonarQube (when `lfg sonar status` exits 0).** `lfg sonar scan` in the worktree or checkout you are checking. Exit 1 means a bug, vulnerability or security hotspot, or a major-or-worse issue, sits on a line this branch changed: fix each at its cause and scan again (fix the code, never the Sonar config). If GitHub's SonarCloud check failed, `lfg sonar cloud` shows its own verdict; \"analysis failed\" there is SonarCloud's side, not your code, so say so instead of chasing it.\n9. **AI changes only (gate 6):** run the eval suite; score ≥ baseline − tolerance and cost per call ≤ budget, from `02-design.md`.\n10. **Loop.** Any red check → fix the cause → re-run that check, then `lfg gate` again. Stop after 3 attempts on the same failure and report it with its output (suggest `\u002Ffix` for a real bug).\n11. **QA matrix.** Map every acceptance criterion in `01-brief.md` (and each ticket's `verification` in `tasks.json`) to the test(s) that prove it. A criterion with no test fails gate 3 (Express: docs-only criteria are waived, say so).\n\n**Done when:** `lfg gate` exits 0 in this run, `lfg ci-local` exits 0, every criterion maps to a passing test, and `04-qa.md` is written. Otherwise: done when the report below says exactly what is still red.\n\n## Output\n\n`04-qa.md` in the run folder:\n\n```markdown\n# QA: \u003Crun-id>\nLane: \u003Clane> · Gate: green|red (ready.json) · CI replay: green|red · Remote CI: \u003Cstate or \"not checked: reason\">\n\n| # | Acceptance criterion | Test(s) (file::name) | Result |\n|---|---|---|---|\n\n## Checks run\n| Check | Command | Exit | Notes (fixes made, attempts) |\n\n## Untested changed nodes\n## Still red (with output excerpt)\n```\n\nReply to the user with: gate status per check, what you fixed, anything still red, untested nodes, and the next skill (`\u002Fsecure` or `\u002Freview-coach`; `\u002Ffix` if stuck).\n\n## Rules\n\n- **A run filed under another repo** (this repo's tasks live in another repo's run, e.g. `\u002Flfg` resumed that repo's handoff): write this repo's results as `04-qa-\u003Crepo>.md` and `ready-\u003Crepo>.json`, with `\u003Crepo>` the repo's folder name (e.g. `aegis-compliance-portal`), never over the run's own files. The dashboard shows them under this repo, and the owner repo keeps its own.\n- A failing test is never skipped, deleted or weakened. If a test looks wrong, say so and ask.\n- New `eslint-disable`, `# noqa`, `@ts-ignore`, `#[allow]`, `.skip(`, `xit(` or `@pytest.mark.skip` in the diff fails the gate; remove it and fix the code.\n- `gh` is read-only here: `auth status`, `pr checks\u002Fview`, `run list\u002Fview`. See `lfg rule git-guard`.\n- Report only what ran. A skipped step is named with its reason.\n- Leave all changes unstaged.\n","# \u002Fcheck: get to green, honestly\n\n## Step 0: preflight\n\n1. `lfg graphs ensure`. Non-zero exit: stop and show its output. Continue on a stale graph only if the user typed `--allow-stale`.\n2. `lfg run path`. Exit 1 (no current run): `lfg run new check-\u003Cbranch-slug>`.\n3. `lfg rule graph-first` and follow it for every lookup below.\n\n## Steps\n\n1. **Scope the change.** `detect_changes_tool` on the working tree (uncommitted work included) → the changed nodes. Note the lane from `tasks.json` or `lfg lane --json`.\n2. **Lint, fixed by hand.** Run the repo's lint\u002Fformat autofix command (from `~\u002F.lfg\u002Frepos\u002F\u003Crepo-id>\u002Fcommands.json`, else the repo's own scripts). Then fix every remaining error and warning in the touched files by editing the code. The fix is always in the code: the lint config, rule list and inline directives stay as they were.\n3. **Types.** Run the repo's type-check command. Fix every error at its cause.\n4. **Affected tests first.** For each changed node: `query_graph_tool` with `tests_for`. Run just those tests for fast feedback. Changed nodes with no test → record as **untested** (gate 2) and tell the user; write the missing test if the seam is agreed in `tasks.json`.\n5. **The gate.** `lfg gate` (one line per check, output only for failures; full logs in `RUN\u002Fgate-logs\u002F\u003Ccheck>.log`, read one only if the shown lines aren't enough): lint, types, full suite, build, gitleaks, new-suppression check, from exit codes. It writes `ready.json`. Read the per-check results from its output, never from memory.\n6. **Local CI replay.** `lfg ci-local` (use `--list` first if unsure what it will run). It also runs `actionlint` on the workflows.\n7. **Remote CI, read-only.** `gh auth status` (not logged in → ask the user to run `gh auth login` themselves; skip this step and say so). Then for the current branch:\n   - `gh pr checks` (if a PR exists),\n   - `gh run list --branch \u003Cbranch> --limit 5`,\n   - `gh run view \u003Cid> --log-failed` for any failed run. Summarise the failing step; fix it locally if the failure is in code this change touches.\n8. **SonarQube (when `lfg sonar status` exits 0).** `lfg sonar scan` in the worktree or checkout you are checking. Exit 1 means a bug, vulnerability or security hotspot, or a major-or-worse issue, sits on a line this branch changed: fix each at its cause and scan again (fix the code, never the Sonar config). If GitHub's SonarCloud check failed, `lfg sonar cloud` shows its own verdict; \"analysis failed\" there is SonarCloud's side, not your code, so say so instead of chasing it.\n9. **AI changes only (gate 6):** run the eval suite; score ≥ baseline − tolerance and cost per call ≤ budget, from `02-design.md`.\n10. **Loop.** Any red check → fix the cause → re-run that check, then `lfg gate` again. Stop after 3 attempts on the same failure and report it with its output (suggest `\u002Ffix` for a real bug).\n11. **QA matrix.** Map every acceptance criterion in `01-brief.md` (and each ticket's `verification` in `tasks.json`) to the test(s) that prove it. A criterion with no test fails gate 3 (Express: docs-only criteria are waived, say so).\n\n**Done when:** `lfg gate` exits 0 in this run, `lfg ci-local` exits 0, every criterion maps to a passing test, and `04-qa.md` is written. Otherwise: done when the report below says exactly what is still red.\n\n## Output\n\n`04-qa.md` in the run folder:\n\n```markdown\n# QA: \u003Crun-id>\nLane: \u003Clane> · Gate: green|red (ready.json) · CI replay: green|red · Remote CI: \u003Cstate or \"not checked: reason\">\n\n| # | Acceptance criterion | Test(s) (file::name) | Result |\n|---|---|---|---|\n\n## Checks run\n| Check | Command | Exit | Notes (fixes made, attempts) |\n\n## Untested changed nodes\n## Still red (with output excerpt)\n```\n\nReply to the user with: gate status per check, what you fixed, anything still red, untested nodes, and the next skill (`\u002Fsecure` or `\u002Freview-coach`; `\u002Ffix` if stuck).\n\n## Rules\n\n- **A run filed under another repo** (this repo's tasks live in another repo's run, e.g. `\u002Flfg` resumed that repo's handoff): write this repo's results as `04-qa-\u003Crepo>.md` and `ready-\u003Crepo>.json`, with `\u003Crepo>` the repo's folder name (e.g. `aegis-compliance-portal`), never over the run's own files. The dashboard shows them under this repo, and the owner repo keeps its own.\n- A failing test is never skipped, deleted or weakened. If a test looks wrong, say so and ask.\n- New `eslint-disable`, `# noqa`, `@ts-ignore`, `#[allow]`, `.skip(`, `xit(` or `@pytest.mark.skip` in the diff fails the gate; remove it and fix the code.\n- `gh` is read-only here: `auth status`, `pr checks\u002Fview`, `run list\u002Fview`. See `lfg rule git-guard`.\n- Report only what ran. A skipped step is named with its reason.\n- Leave all changes unstaged.\n",{"name":5,"lanes":24,"phase":29,"reads":30,"author":12,"writes":36,"preflight":39,"description":40,"auto-trigger":20},[25,26,27,28],"express","standard","full","hotfix","prove",[31,32,33,34,35],"diff","01-brief.md","02-design.md","tasks.json","03-build-*.md",[37,38],"04-qa.md","ready.json","graphs","The green gate: fixes lint (never suppresses), type-checks, runs affected tests then the full suite, builds like CI, replays CI locally and reads the branch's GitHub CI status read-only. Use when the user says \"is it green?\", \"run the checks\", \"fix the lint\", \"will CI pass?\", or after \u002Fbuild or \u002Ffix finishes and before \u002Freview-coach or \u002Fship.\n","main","a96f05bb9ac611c9f782ae172978527ae88a0e2a","plugin\u002Fskills\u002Fcheck",3,"https:\u002F\u002Fgithub.com\u002Fvarun-singhh\u002Flfg","https:\u002F\u002Fgithub.com\u002Fvarun-singhh","2026-10-26 09:46:56",{"source":8,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add varun-singhh\u002Flfg --skill check",{"tool":54,"command":55},"bunx","bunx skills add varun-singhh\u002Flfg --skill check",{"tool":57,"command":58},"pnpm","pnpm dlx skills add varun-singhh\u002Flfg --skill check","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvarun-singhh\u002Flfg\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fcheck\u002FSKILL.md",true,[],[63,70,77,84,91,98],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7EW8S36ZEV45CNQHPXEYMBQ","wizard","Guided start-to-finish run of the whole pipeline on an idea or a Linear issue. Runs every stage (grill, plan, build, check, secure, pentest, review, ship check, ship packet, learn), explains each one in plain words before and after, and loops failures through \u002Ffix until all 8 gates are green (max 3 loops per gate). Use when the user types \"\u002Fwizard \u003Cidea>\", \"\u002Fwizard LIN-123\", \"\u002Fwizard resume\", \"walk me through everything\", \"do every step and explain it\". Explicit only; never auto-triggered.","https:\u002F\u002Fgithub.com\u002Fvarun-singhh\u002Flfg\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fwizard\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7EW8N8AK16QK833BM7RPRG1","why","Explains why code looks the way it does: the commits that shaped a file, a function or a few lines, what each one changed and why, and the issues, tickets and pull requests they mention. Use when the user asks \"why is this here?\", \"why was this changed?\", \"who added this and what for?\", \"what's the story behind X?\", or is about to change code they don't understand.","https:\u002F\u002Fgithub.com\u002Fvarun-singhh\u002Flfg\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fwhy\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7EW8J137JBC7PG1RFGEWE5R","which","Looks at graph status, the current run folder, git status and Linear, then tells you the single next skill to run and why. Use when the user says \"which skill do I use?\", \"what now?\", \"what next?\", \"where was I?\", \"I'm lost\", or starts a session without saying what they want.","https:\u002F\u002Fgithub.com\u002Fvarun-singhh\u002Flfg\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fwhich\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7EW8F69YN5RZEKXK910Y99W","suggest-tests","Suggest tests you should write based on your code. Uses AST parsing to find functions and suggests tests based on code patterns. Use when writing new code or modifying existing code.","https:\u002F\u002Fgithub.com\u002Fvarun-singhh\u002Flfg\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fsuggest-tests\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M7EW89W1RXBHYWP5KYDWFKT5","spike","Builds a throwaway prototype to answer one design question, in a scratch folder inside the run folder, then deletes it and keeps only the conclusion. Use when the user says \"try a quick prototype\", \"would this approach work?\", \"spike this\", \"let me feel this state model\", \"show me a few UI options\", or when a plan has an open question that a cheap working artifact would settle.","https:\u002F\u002Fgithub.com\u002Fvarun-singhh\u002Flfg\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fspike\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M7EW84HQB6X33R0PGSZCNDDV","ship","Proves the change is shippable and hands it to you: re-runs the green gate, runs the ship check (Docker build, scan, run, smoke test, delete, verify cleanup) and the shipping checklist, then writes COMMIT_MSG.md and PR_BODY.md. Never commits, pushes or deploys. Use when the user says \"ship it\", \"ready for a PR\", \"prep the commit\", \"is it shippable?\".","https:\u002F\u002Fgithub.com\u002Fvarun-singhh\u002Flfg\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fship\u002FSKILL.md",[],[]]