[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FQK133CMP4ZT00TW6S7TB1":3,"skill-same:01M6FQK133CMP4ZT00TW6S7TB1":63},{"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":28,"linkOnly":29,"markdownContent":30,"markdownBody":31,"frontMatter":32,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":36,"repositoryHtmlUrl":37,"repositoryHomepageUrl":38,"ownerHtmlUrl":39,"ownerBlogUrl":40,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M6FQK133CMP4ZT00TW6S7TB1","bmad-fix-ci",null,"Diagnose and fix GitHub CI failures locally. Use when the user says 'fix ci' or 'fix ci failures'.","reformlab\u002FReformLab","reformlab","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F264161760?v=4","01M6CVRNMTPJRX8QX0P5J8NRZ6","01M6CVRNS5KTS18YC3AZHP1BZ3",2,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002Freformlab\u002FReformLab\u002Fblob\u002Fmaster\u002F_bmad\u002Fbmm\u002Fskills\u002Fbmad-fix-ci\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27],"fix ci","ci","fix","bmad","bmad fix ci","github","fix ci failures","diagnose","user","use","2026-11-10 10:12:30",false,"---\nname: bmad-fix-ci\ndescription: \"Diagnose and fix GitHub CI failures locally. Use when the user says 'fix ci' or 'fix ci failures'.\"\n---\n\n# Fix CI\n\n## Overview\n\nThis skill checks GitHub Actions CI status for the current branch, diagnoses failures from the logs, applies fixes iteratively, verifies locally, and commits the result. Act as a pragmatic developer focused on getting CI green with minimal targeted changes. Produces a local commit with all fixes applied — does not push.\n\n**Supported failure types:** ruff lint, mypy typecheck, pytest, npm lint, npm typecheck, npm test. For unrecognized failures (infra issues, dependency problems, permissions), reports findings and halts for the user to decide.\n\n**Iteration:** After fixing and verifying, if new failures surface, loops back to fix again (max 3 iterations, tracked explicitly). This catches cascading issues where fixing one error reveals another.\n\n## On Activation\n\nLoad available config from `{project-root}\u002F_bmad\u002Fconfig.yaml` and `{project-root}\u002F_bmad\u002Fconfig.user.yaml` (root level and `bmm` section). If config is missing, let the user know `bmad-builder-setup` can configure the module at any time. Use sensible defaults for anything not configured.\n\nResolve: `{communication_language}`, `{user_name}`.\n\n## Execution\n\n### Step 0: Precondition Check\n\nVerify `gh auth status` succeeds. If not, tell the user to run `gh auth login` and halt.\n\n### Step 1: Check CI Status\n\nGet the current branch and check for failed runs:\n\n```bash\ngit branch --show-current\ngh run list --branch \u003Ccurrent-branch> --limit 5\n```\n\nIf there are **no runs at all**, report: \"No CI runs found for this branch. CI may not have triggered yet, or the branch may not have a workflow configured.\" and halt.\n\nIf there are runs but **none have failed**, report that CI is green and stop.\n\nIf there are failed runs, display the selected run's ID, name, timestamp, and workflow name. If multiple failed runs exist, confirm with the user: \"Targeting run #\u003Cid> (\u003Cname> · \u003Ctime ago>). Proceed or pick a different run?\"\n\n### Step 2: Fetch Failure Logs\n\nFirst identify which jobs failed:\n\n```bash\ngh run view \u003Crun-id> --json jobs --jq '.jobs[] | select(.conclusion == \"failure\") | {name, conclusion}'\n```\n\nThen fetch logs only for the failed job(s):\n\n```bash\ngh run view \u003Crun-id> --log-failed\n```\n\n### Step 3: Diagnose\n\nSet `iteration = 1` (track this explicitly — increment before each loop-back).\n\nClassify each failure into one of these categories:\n\n| Category | Signals | Local verification command |\n|----------|---------|--------------------------|\n| **Ruff lint** | ruff errors, lint violations | `uv run ruff check src\u002F tests\u002F` |\n| **Mypy typecheck** | type errors, mypy output | `uv run mypy src\u002F` |\n| **Pytest** | test failures, assertion errors | `uv run pytest tests\u002F` |\n| **NPM lint** | eslint errors, lint violations | `cd frontend && npm run lint` |\n| **NPM typecheck** | TypeScript errors, tsc output | `cd frontend && npm run typecheck` |\n| **NPM test** | vitest\u002Fjest failures | `cd frontend && npm test` |\n| **Unknown** | infra, dependency, timeout, permissions | *Cannot auto-fix* |\n\nIf **all** failures are \"Unknown\": report to the user: (1) which jobs failed, (2) relevant log excerpt (max 20 lines), (3) your interpretation of the root cause, and (4) suggested next steps. Halt.\n\nIf there is a mix of known and unknown: fix the known ones, then clearly warn the user: \"CI will still fail after pushing because [unknown failure summary] cannot be auto-resolved. Review and fix manually before pushing.\"\n\n### Step 4: Fix\n\nApply fixes for each identified failure type. Prefer minimal targeted changes — do not refactor surrounding code:\n- **Lint:** auto-fix with `uv run ruff check --fix src\u002F tests\u002F` first; manual edits for what auto-fix can't resolve\n- **Type errors:** fix type annotations, imports, missing types\n- **Test failures:** prefer fixing the code unless the test itself is clearly wrong (e.g., hardcoded expected value that changed). If a test appears intentionally failing (xfail, skip markers, TODO comments), flag it to the user rather than modifying\n- **Frontend equivalents:** similar approach with npm tooling\n\n### Step 5: Verify Locally\n\nRun the verification commands relevant to the failures you fixed. Backend and frontend checks are independent — run them in parallel when both are needed. All must pass before proceeding.\n\nIf fixes touch shared modules or types imported broadly, run the full suite rather than just targeted checks.\n\nIf verification reveals **new failures** not present in the original CI logs and `iteration \u003C 3`, increment iteration and loop back to Step 3. If `iteration >= 3`, report: (1) what was fixed so far, (2) unresolved failures with log excerpts, (3) recommendation: \"The partial fixes are staged. You can commit as-is and push to confirm what remains, or reset and fix manually.\"\n\n### Step 6: Commit\n\nDisplay `git diff --stat` so the user can review what changed. Then stage only the files you changed and commit:\n\n```\nfix(ci): \u003Cconcise description of what was fixed>\n```\n\nIf the commit fails due to a pre-commit hook, treat the hook failure as a new verification failure and loop back to Step 3 (incrementing the iteration counter). Do not use `--no-verify`.\n\nDo **not** push. Report what was fixed and that the commit is ready to push.\n\nSkill complete — no further automated action. The user may push when ready.\n","# Fix CI\n\n## Overview\n\nThis skill checks GitHub Actions CI status for the current branch, diagnoses failures from the logs, applies fixes iteratively, verifies locally, and commits the result. Act as a pragmatic developer focused on getting CI green with minimal targeted changes. Produces a local commit with all fixes applied — does not push.\n\n**Supported failure types:** ruff lint, mypy typecheck, pytest, npm lint, npm typecheck, npm test. For unrecognized failures (infra issues, dependency problems, permissions), reports findings and halts for the user to decide.\n\n**Iteration:** After fixing and verifying, if new failures surface, loops back to fix again (max 3 iterations, tracked explicitly). This catches cascading issues where fixing one error reveals another.\n\n## On Activation\n\nLoad available config from `{project-root}\u002F_bmad\u002Fconfig.yaml` and `{project-root}\u002F_bmad\u002Fconfig.user.yaml` (root level and `bmm` section). If config is missing, let the user know `bmad-builder-setup` can configure the module at any time. Use sensible defaults for anything not configured.\n\nResolve: `{communication_language}`, `{user_name}`.\n\n## Execution\n\n### Step 0: Precondition Check\n\nVerify `gh auth status` succeeds. If not, tell the user to run `gh auth login` and halt.\n\n### Step 1: Check CI Status\n\nGet the current branch and check for failed runs:\n\n```bash\ngit branch --show-current\ngh run list --branch \u003Ccurrent-branch> --limit 5\n```\n\nIf there are **no runs at all**, report: \"No CI runs found for this branch. CI may not have triggered yet, or the branch may not have a workflow configured.\" and halt.\n\nIf there are runs but **none have failed**, report that CI is green and stop.\n\nIf there are failed runs, display the selected run's ID, name, timestamp, and workflow name. If multiple failed runs exist, confirm with the user: \"Targeting run #\u003Cid> (\u003Cname> · \u003Ctime ago>). Proceed or pick a different run?\"\n\n### Step 2: Fetch Failure Logs\n\nFirst identify which jobs failed:\n\n```bash\ngh run view \u003Crun-id> --json jobs --jq '.jobs[] | select(.conclusion == \"failure\") | {name, conclusion}'\n```\n\nThen fetch logs only for the failed job(s):\n\n```bash\ngh run view \u003Crun-id> --log-failed\n```\n\n### Step 3: Diagnose\n\nSet `iteration = 1` (track this explicitly — increment before each loop-back).\n\nClassify each failure into one of these categories:\n\n| Category | Signals | Local verification command |\n|----------|---------|--------------------------|\n| **Ruff lint** | ruff errors, lint violations | `uv run ruff check src\u002F tests\u002F` |\n| **Mypy typecheck** | type errors, mypy output | `uv run mypy src\u002F` |\n| **Pytest** | test failures, assertion errors | `uv run pytest tests\u002F` |\n| **NPM lint** | eslint errors, lint violations | `cd frontend && npm run lint` |\n| **NPM typecheck** | TypeScript errors, tsc output | `cd frontend && npm run typecheck` |\n| **NPM test** | vitest\u002Fjest failures | `cd frontend && npm test` |\n| **Unknown** | infra, dependency, timeout, permissions | *Cannot auto-fix* |\n\nIf **all** failures are \"Unknown\": report to the user: (1) which jobs failed, (2) relevant log excerpt (max 20 lines), (3) your interpretation of the root cause, and (4) suggested next steps. Halt.\n\nIf there is a mix of known and unknown: fix the known ones, then clearly warn the user: \"CI will still fail after pushing because [unknown failure summary] cannot be auto-resolved. Review and fix manually before pushing.\"\n\n### Step 4: Fix\n\nApply fixes for each identified failure type. Prefer minimal targeted changes — do not refactor surrounding code:\n- **Lint:** auto-fix with `uv run ruff check --fix src\u002F tests\u002F` first; manual edits for what auto-fix can't resolve\n- **Type errors:** fix type annotations, imports, missing types\n- **Test failures:** prefer fixing the code unless the test itself is clearly wrong (e.g., hardcoded expected value that changed). If a test appears intentionally failing (xfail, skip markers, TODO comments), flag it to the user rather than modifying\n- **Frontend equivalents:** similar approach with npm tooling\n\n### Step 5: Verify Locally\n\nRun the verification commands relevant to the failures you fixed. Backend and frontend checks are independent — run them in parallel when both are needed. All must pass before proceeding.\n\nIf fixes touch shared modules or types imported broadly, run the full suite rather than just targeted checks.\n\nIf verification reveals **new failures** not present in the original CI logs and `iteration \u003C 3`, increment iteration and loop back to Step 3. If `iteration >= 3`, report: (1) what was fixed so far, (2) unresolved failures with log excerpts, (3) recommendation: \"The partial fixes are staged. You can commit as-is and push to confirm what remains, or reset and fix manually.\"\n\n### Step 6: Commit\n\nDisplay `git diff --stat` so the user can review what changed. Then stage only the files you changed and commit:\n\n```\nfix(ci): \u003Cconcise description of what was fixed>\n```\n\nIf the commit fails due to a pre-commit hook, treat the hook failure as a new verification failure and loop back to Step 3 (incrementing the iteration counter). Do not use `--no-verify`.\n\nDo **not** push. Report what was fixed and that the commit is ready to push.\n\nSkill complete — no further automated action. The user may push when ready.\n",{"name":5,"description":7},"master","314a64e40d9abca764698290593908a736500b30","_bmad\u002Fbmm\u002Fskills\u002Fbmad-fix-ci",0,"https:\u002F\u002Fgithub.com\u002Freformlab\u002FReformLab","https:\u002F\u002Fdocs.reform-lab.eu\u002F","https:\u002F\u002Fgithub.com\u002Freformlab","https:\u002F\u002Freform-lab.eu\u002F","See who your policy actually helps","2026-05-25 03:50:07",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add reformlab\u002FReformLab --skill bmad-fix-ci",{"tool":49,"command":50},"bunx","bunx skills add reformlab\u002FReformLab --skill bmad-fix-ci",{"tool":52,"command":53},"pnpm","pnpm dlx skills add reformlab\u002FReformLab --skill bmad-fix-ci","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Freformlab\u002FReformLab\u002Fblob\u002Fmaster\u002F_bmad\u002Fbmm\u002Fskills\u002Fbmad-fix-ci\u002FSKILL.md",true,[57],{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":62},"bmad-skill-manifest.yaml","REFERENCE","参考文档",12,"https:\u002F\u002Fgithub.com\u002Freformlab\u002FReformLab\u002Fblob\u002Fmaster\u002F_bmad\u002Fbmm\u002Fskills\u002Fbmad-fix-ci\u002Fbmad-skill-manifest.yaml",[64,89,108,120,132,151],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":28},"01M6FQK4CGE9096SN2JRE7DA8H","bmad-assist-help","Explain how bmad-assist works in this project by inspecting the local bmad-assist config, sprint status, epics, state, runs, prompts, logs, and relevant source code. Use when the user asks how bmad-assist behaves, how it reads epics and stories, why a run resumed or failed, what files are authoritative, or to investigate bmad-assist execution in the current repo.","https:\u002F\u002Fgithub.com\u002Freformlab\u002FReformLab\u002Fblob\u002Fmaster\u002F_bmad\u002Fcore\u002Fskills\u002Fbmad-assist-help\u002FSKILL.md",[],[71,21,72,73,74,75,76,77,78,79,27,80,81,82,83,84,85,86,87,88],"help","bmad assist help","relevant","logs","sprint","project","local","config","files","repo","explain","why","run","how","code","investigate","execution","state",{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":28},"01M6FQJW69SATT3C9741MT2KJH","bmad-workflow-builder","Builds, converts, and analyzes workflows and skills. Use when the user requests to \"build a workflow\", \"modify a workflow\", \"quality check workflow\", \"analyze skill\", or \"convert a skill\".","https:\u002F\u002Fgithub.com\u002Freformlab\u002FReformLab\u002Fblob\u002Fmaster\u002F.opencode\u002Fskills\u002Fbmad-workflow-builder\u002FSKILL.md",[],[21,96,97,98,99,26,27,100,101,102,103,104,105,106,107],"workflow","builder","workflow builder","bmad workflow builder","build","quality check","requests","check","workflows","convert","analyze","quality",{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":28},"01M6FQJQMT5GW37ANR711FCBJR","bmad-validate-prd","Validate a PRD against standards. Use when the user says \"validate this PRD\" or \"run PRD validation\"","https:\u002F\u002Fgithub.com\u002Freformlab\u002FReformLab\u002Fblob\u002Fmaster\u002F.opencode\u002Fskills\u002Fbmad-validate-prd\u002FSKILL.md",[],[115,116,117,21,83,118,26,27,119],"validate","prd","bmad validate prd","validation","standards",{"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":28},"01M6FQJMCSRVGCG65DAKKGW0M1","bmad-ux-designer","ux-designer agent","https:\u002F\u002Fgithub.com\u002Freformlab\u002FReformLab\u002Fblob\u002Fmaster\u002F.opencode\u002Fskills\u002Fbmad-ux-designer\u002FSKILL.md",[],[21,127,128,129,130,131],"ux","bmad ux","designer","UX Designer","bmad ux designer",{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":28},"01M6FQJDFKBXTWMBJD29FAC8TA","bmad-testarch-trace","Generate traceability matrix and quality gate decision. Use when the user says \"lets create traceability matrix\" or \"I want to analyze test coverage\"","https:\u002F\u002Fgithub.com\u002Freformlab\u002FReformLab\u002Fblob\u002Fmaster\u002F.opencode\u002Fskills\u002Fbmad-testarch-trace\u002FSKILL.md",[],[139,21,140,141,142,143,144,145,146,106,107,147,26,27,148,149,150],"bmad testarch trace","bmad testarch","trace","coverage","test","quality gate","create","generate","decision","test coverage","gate","traceability",{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":28},"01M6FQJ5879PFAM3W7E41CBFCS","bmad-testarch-test-review","Review test quality using best practices validation. Use when user says \"lets review tests\" or \"I want to evaluate test quality\"","https:\u002F\u002Fgithub.com\u002Freformlab\u002FReformLab\u002Fblob\u002Fmaster\u002F.opencode\u002Fskills\u002Fbmad-testarch-test-review\u002FSKILL.md",[],[143,158,159,140,21,160,118,107,26,27,161],"review","bmad testarch test review","best practices","tests"]