[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ADG2K9P2R945SERS950QZ2":3,"skill-same:01M7ADG2K9P2R945SERS950QZ2":49},{"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":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M7ADG2K9P2R945SERS950QZ2","debug-ci-failures",null,"Use when CI is failing and the cause needs to be found across builds, jobs, or environments.","Leostruka\u002Fdevin-bundle","Leostruka","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F81370685?v=4","01M7AD8MAK63VDNAWRDRRRW04N","leandro ostruka","01M7AD8MBS65YDS1KMMV7YPM07",0,"MIT","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fdebug-ci-failures\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: debug-ci-failures\ndescription: Use when CI is failing and the cause needs to be found across builds, jobs, or environments.\ntriggers: [user, model]\n---\n# Debug CI Failures\n\nSystematically diagnose and resolve CI failures. CI-agnostic - works with GitHub Actions, CircleCI, GitLab CI, Jenkins, or any CI system.\n\n## Decision logic: which CI system\n\n| CI System | How to access | Tools |\n|---|---|---|\n| GitHub Actions | `gh run list`, `gh run view`, `gh api` | `gh` CLI (preferred) |\n| CircleCI | CircleCI MCP server (if configured) | `mcp__circleci-mcp-server__*` |\n| GitLab CI | `glab ci list`, `glab ci view` | `glab` CLI |\n| Jenkins | `jenkins-cli` or HTTP API | `jenkins` CLI |\n| Other \u002F unknown | Read CI config + parse logs manually | `webfetch`, `curl`, log files |\n\nIf no CI CLI or MCP is available, ask the user to provide the failure logs or a URL to the failed pipeline.\n\n## Step 1: Identify the project and CI system\n\nDetermine which project and CI to investigate:\n\n1. **Local project context:** If in a git repository, detect the project from `git remote get-url origin` and `git branch --show-current`. Check for CI config files: `.github\u002Fworkflows\u002F`, `.circleci\u002Fconfig.yml`, `.gitlab-ci.yml`, `Jenkinsfile`.\n2. **User-provided URL:** If the user provides a CI URL (pipeline, workflow, or job), use it directly.\n3. **Ask:** If neither works, ask the user which CI system and project to investigate.\n\n## Step 2: Check pipeline status\n\nQuickly triage the current state:\n\n- **Passing:** Let the user know the pipeline is green. Ask if they want to investigate a specific older failure.\n- **Running:** Let the user know the pipeline is still in progress. Offer to check back or investigate a previous run.\n- **Failing:** Note which workflows and jobs failed, then proceed to Step 3.\n\nThis avoids unnecessary log fetching when there is nothing to debug.\n\n### GitHub Actions\n```bash\ngh run list --limit 5\ngh run view \u003Crun-id>\n```\n\n### CircleCI (if MCP available)\nUse `mcp__circleci-mcp-server__get_latest_pipeline_status`.\n\n### Other\nParse the CI dashboard or ask the user for the status.\n\n## Step 3: Fetch failure logs\n\nGet the actual error output from failed jobs.\n\n### GitHub Actions\n```bash\ngh run view \u003Crun-id> --log-failed\n```\n\n### CircleCI (if MCP available)\nUse `mcp__circleci-mcp-server__get_build_failure_logs`.\n\n### Other\nAsk the user to paste the failure logs, or fetch them via `webfetch` if a URL is available.\n\n## Step 4: Check for flaky tests\n\nDistinguish genuine failures from intermittent issues:\n\n- Look for tests that fail intermittently across runs (pass on retry, fail on different seeds)\n- Check if the same test has failed in previous runs but passed on retry\n- Look for timing-dependent tests, network-dependent tests, order-dependent tests\n\n### GitHub Actions\n```bash\ngh run list --limit 20 --json conclusion,name,createdAt | python3 -c \"\nimport json, sys\nruns = json.load(sys.stdin)\nfrom collections import Counter\nc = Counter(r['name'] for r in runs if r['conclusion'] == 'failure')\nfor name, count in c.most_common():\n    print(f'{count}x {name}')\n\"\n```\n\nIf flaky tests are found, clearly flag which failures might be caused by flakiness rather than real issues.\n\n## Step 5: Get detailed test results\n\nIf the failure involves test failures, get detailed metadata:\n\n- Which specific tests failed\n- Error messages and stack traces\n- Test durations (slow tests may indicate timeouts)\n\n### GitHub Actions\n```bash\ngh run view \u003Crun-id> --log-failed | grep -E \"(FAIL|PASS|Error|panic|assert)\" | head -50\n```\n\n### CircleCI (if MCP available)\nUse `mcp__circleci-mcp-server__get_job_test_results` with `filterByTestsResult: 'failure'`.\n\n## Step 6: Analyze and diagnose\n\nAnalyze the collected information directly. Do not write scripts or create temporary files to process results.\n\nIf output is too large (truncated), work through these fallbacks:\n\n1. **Narrow to a specific job:** Fetch logs for one job at a time.\n2. **Filter to failures only:** Grep for error\u002Ffail\u002Fpanic\u002Fassert patterns.\n3. **Ask the user:** If narrowing still truncates, ask which job or test to focus on.\n\nBased on the collected information, provide:\n\n1. **Root cause analysis:** What went wrong and why\n2. **Flaky test identification:** Which failures (if any) are likely flaky rather than real\n3. **Fix suggestions:** Concrete steps to fix the failures\n4. **Code references:** If failures point to specific files\u002Flines, read the relevant source code to provide targeted fix suggestions\n\n## Step 7: Offer follow-up actions\n\nAfter diagnosis, offer to:\n- Look at the specific source code files that caused failures\n- Help fix the failing tests or code\n- Rerun the workflow (if CI CLI supports it)\n  - GitHub Actions: `gh run rerun \u003Crun-id> [--failed]` (rerun only failed jobs)\n  - CircleCI: `mcp__circleci-mcp-server__rerun_workflow` with `fromFailed: true`\n\n## Integration with other skills\n\n- **`diagnosing-bugs`** - use for the root cause tracing methodology and disciplined diagnosis loop (red → minimise → hypothesise → instrument → fix → regression-test) when the CI failure is a real bug\n- **`deep-mode`** - when the failure is intermittent, spans multiple jobs, or you need to correlate patterns across many historical builds\n- **`tdd`** - after fixing, write a regression test that would have caught the CI failure\n- **`mutation-testing`** - after fixing, consider running mutation testing on the affected area to find more gaps\n- **`git-github-adaptive-engineering`** - the CI self-healing flow (flow 5) routes red-CI work here; its Fase Zero state check (`scripts\u002Fphase-zero.py`) and `gh run` arsenal complement this playbook.\n","# Debug CI Failures\n\nSystematically diagnose and resolve CI failures. CI-agnostic - works with GitHub Actions, CircleCI, GitLab CI, Jenkins, or any CI system.\n\n## Decision logic: which CI system\n\n| CI System | How to access | Tools |\n|---|---|---|\n| GitHub Actions | `gh run list`, `gh run view`, `gh api` | `gh` CLI (preferred) |\n| CircleCI | CircleCI MCP server (if configured) | `mcp__circleci-mcp-server__*` |\n| GitLab CI | `glab ci list`, `glab ci view` | `glab` CLI |\n| Jenkins | `jenkins-cli` or HTTP API | `jenkins` CLI |\n| Other \u002F unknown | Read CI config + parse logs manually | `webfetch`, `curl`, log files |\n\nIf no CI CLI or MCP is available, ask the user to provide the failure logs or a URL to the failed pipeline.\n\n## Step 1: Identify the project and CI system\n\nDetermine which project and CI to investigate:\n\n1. **Local project context:** If in a git repository, detect the project from `git remote get-url origin` and `git branch --show-current`. Check for CI config files: `.github\u002Fworkflows\u002F`, `.circleci\u002Fconfig.yml`, `.gitlab-ci.yml`, `Jenkinsfile`.\n2. **User-provided URL:** If the user provides a CI URL (pipeline, workflow, or job), use it directly.\n3. **Ask:** If neither works, ask the user which CI system and project to investigate.\n\n## Step 2: Check pipeline status\n\nQuickly triage the current state:\n\n- **Passing:** Let the user know the pipeline is green. Ask if they want to investigate a specific older failure.\n- **Running:** Let the user know the pipeline is still in progress. Offer to check back or investigate a previous run.\n- **Failing:** Note which workflows and jobs failed, then proceed to Step 3.\n\nThis avoids unnecessary log fetching when there is nothing to debug.\n\n### GitHub Actions\n```bash\ngh run list --limit 5\ngh run view \u003Crun-id>\n```\n\n### CircleCI (if MCP available)\nUse `mcp__circleci-mcp-server__get_latest_pipeline_status`.\n\n### Other\nParse the CI dashboard or ask the user for the status.\n\n## Step 3: Fetch failure logs\n\nGet the actual error output from failed jobs.\n\n### GitHub Actions\n```bash\ngh run view \u003Crun-id> --log-failed\n```\n\n### CircleCI (if MCP available)\nUse `mcp__circleci-mcp-server__get_build_failure_logs`.\n\n### Other\nAsk the user to paste the failure logs, or fetch them via `webfetch` if a URL is available.\n\n## Step 4: Check for flaky tests\n\nDistinguish genuine failures from intermittent issues:\n\n- Look for tests that fail intermittently across runs (pass on retry, fail on different seeds)\n- Check if the same test has failed in previous runs but passed on retry\n- Look for timing-dependent tests, network-dependent tests, order-dependent tests\n\n### GitHub Actions\n```bash\ngh run list --limit 20 --json conclusion,name,createdAt | python3 -c \"\nimport json, sys\nruns = json.load(sys.stdin)\nfrom collections import Counter\nc = Counter(r['name'] for r in runs if r['conclusion'] == 'failure')\nfor name, count in c.most_common():\n    print(f'{count}x {name}')\n\"\n```\n\nIf flaky tests are found, clearly flag which failures might be caused by flakiness rather than real issues.\n\n## Step 5: Get detailed test results\n\nIf the failure involves test failures, get detailed metadata:\n\n- Which specific tests failed\n- Error messages and stack traces\n- Test durations (slow tests may indicate timeouts)\n\n### GitHub Actions\n```bash\ngh run view \u003Crun-id> --log-failed | grep -E \"(FAIL|PASS|Error|panic|assert)\" | head -50\n```\n\n### CircleCI (if MCP available)\nUse `mcp__circleci-mcp-server__get_job_test_results` with `filterByTestsResult: 'failure'`.\n\n## Step 6: Analyze and diagnose\n\nAnalyze the collected information directly. Do not write scripts or create temporary files to process results.\n\nIf output is too large (truncated), work through these fallbacks:\n\n1. **Narrow to a specific job:** Fetch logs for one job at a time.\n2. **Filter to failures only:** Grep for error\u002Ffail\u002Fpanic\u002Fassert patterns.\n3. **Ask the user:** If narrowing still truncates, ask which job or test to focus on.\n\nBased on the collected information, provide:\n\n1. **Root cause analysis:** What went wrong and why\n2. **Flaky test identification:** Which failures (if any) are likely flaky rather than real\n3. **Fix suggestions:** Concrete steps to fix the failures\n4. **Code references:** If failures point to specific files\u002Flines, read the relevant source code to provide targeted fix suggestions\n\n## Step 7: Offer follow-up actions\n\nAfter diagnosis, offer to:\n- Look at the specific source code files that caused failures\n- Help fix the failing tests or code\n- Rerun the workflow (if CI CLI supports it)\n  - GitHub Actions: `gh run rerun \u003Crun-id> [--failed]` (rerun only failed jobs)\n  - CircleCI: `mcp__circleci-mcp-server__rerun_workflow` with `fromFailed: true`\n\n## Integration with other skills\n\n- **`diagnosing-bugs`** - use for the root cause tracing methodology and disciplined diagnosis loop (red → minimise → hypothesise → instrument → fix → regression-test) when the CI failure is a real bug\n- **`deep-mode`** - when the failure is intermittent, spans multiple jobs, or you need to correlate patterns across many historical builds\n- **`tdd`** - after fixing, write a regression test that would have caught the CI failure\n- **`mutation-testing`** - after fixing, consider running mutation testing on the affected area to find more gaps\n- **`git-github-adaptive-engineering`** - the CI self-healing flow (flow 5) routes red-CI work here; its Fase Zero state check (`scripts\u002Fphase-zero.py`) and `gh run` arsenal complement this playbook.\n",{"name":5,"triggers":24,"description":7},[25,26],"user","model","main","0032dd465157e15d3ddd16afb75f4fe2dc1a356c","skills\u002Fdebug-ci-failures",1,"https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle","https:\u002F\u002Fleostruka.github.io\u002Fdevin-bundle\u002F","https:\u002F\u002Fgithub.com\u002FLeostruka","2026-11-15 05:19:58",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add Leostruka\u002Fdevin-bundle --skill debug-ci-failures",{"tool":41,"command":42},"bunx","bunx skills add Leostruka\u002Fdevin-bundle --skill debug-ci-failures",{"tool":44,"command":45},"pnpm","pnpm dlx skills add Leostruka\u002Fdevin-bundle --skill debug-ci-failures","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fdebug-ci-failures\u002FSKILL.md",true,[],[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M7E0K3MG2XC4FSRV0MK6SFR1","montador-de-ideias","Use when assembling, expanding, or elevating a raw project idea or initial prompt into an ultra-detailed, first-principles dossier and compiled master prompt with journalistic OSINT market research, Tech Lead and Staff Architect justifications, atomic and modular hardening\u002Foptimization, and high-impact contact surfaces.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fmontador-de-ideias\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7E0J7JJWZ8QMK01RZ3B3C9Z","git-github-adaptive-engineering","Use when any task touches git history, GitHub issues\u002FPRs\u002Freleases\u002FCI, repo governance, or branch and merge decisions. Runs the Fase Zero situational-awareness battery, picks one of five delivery flows via the adaptive decision engine, and enforces commit\u002FPR information-density standards. Orchestrates the gh, git-workflows, github-actions, pr, and debug\u002Ffinish skills.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fgit-github-adaptive-engineering\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7E0GJFRPFEVQQMXEM58EWDM","adaptive-agenda-calendar-routine-engine","Use when planning or executing work across hours, days, weeks, or sprints. Turns the calendar into a strict time-blocked agenda (HH:MM-HH:MM blocks carrying a routine profile, expected inputs, and a handoff output artifact), runs the 5-stage cognitive flow (Radar and Hunt -> Triage plus Steve Jobs conception -> workbench manifest -> >=32-cycle loop -> Close plus Open-Minded Scrum), and unfolds macro calendar milestones into micro agenda blocks through extensions\u002Fgcal\u002Fwrapper.py.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fadaptive-agenda-calendar-routine-engine\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7AE2K9FTY0BVS48N0A9JFKF","demo","Use when demonstrating a skill in a fixture project.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fdevin-config\u002Fproject\u002F.devin\u002Fskills\u002Fdemo\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7AE2G3DP38PTV3B1N7MW5TS","duplicate-skill","Use when testing duplicate skill name detection.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fdevin-config\u002Fproject\u002F.devin\u002Fskills\u002Fbeta\u002FSKILL.md",[],[],{"skillNo":86,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7AE2DBR8ZHT6T875MJ392GK","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fdevin-config\u002Fproject\u002F.devin\u002Fskills\u002Falpha\u002FSKILL.md",[],[]]