agentleFS
dlupiakdlupiak/claude-session-dashboard/.claude/skills/fix-ci/SKILL.md

fix-ci

Skill71 starsChanged 9 months agoMITView on GitHub

Investigate and fix the latest failing CI workflow

23 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use create-pr, commit and 2 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • SentrySkill

    create-pr

    Create pull requests following Sentry conventions. Use when opening PRs, writing PR descriptions, or preparing changes for review. Follows Sentry's code review guidelines.

    Also in 6 projects that use this

  • SentrySkill

    commit

    Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.

    Also in 5 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 5 projects that use this

  • +1 more from getsentry

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 10 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 22 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If $ARGUMENTS.run-id is provided, use that.

    line 22
  2. Distinctive:

    Read the logs and classify the failure:

    line 29
  3. Distinctive:

    Use superpowers:systematic-debugging to find root cause before attempting any fix.

    line 42
  4. Very specific:

    Run the failing CI step locally from apps/web/:

    line 46
  5. Distinctive:

    If reproducing a specific test:

    line 57
  6. Distinctive:

    If the failure is an E2E test or a visual/runtime bug:

    line 63
  7. Very specific:

    Start the dev server if not running: check lsof -i :3000

    line 65
  8. Very specific:

    Check console errors: mcp__playwright__browser_console_messages

    line 68
  9. Very specific:

    Check network failures: mcp__playwright__browser_network_requests

    line 69
  10. Distinctive:

    Read the failing source code

    line 76
  11. Distinctive:

    If the test expectation is wrong (not the code), fix the test

    line 78
  12. Distinctive:

    Run the exact failing step again locally:

    line 82
  13. Distinctive:

    Always reproduce locally before fixing — don't guess at fixes

    line 111
  14. Distinctive:

    If the failure is flaky (passes locally, fails in CI), check for:

    line 112
  15. Distinctive:

    Don't disable or skip tests to "fix" CI — fix the underlying issue

    line 117

“Common” is measured: kept by at least 6 in 10 of the 22 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Fix CI Workflow

Investigate the latest CI failure, reproduce locally, and fix it.

Steps

1. Identify the Failure

# Get latest (or specific) workflow run
gh run list --limit 5
gh run view <run-id>

If $ARGUMENTS.run-id is provided, use that. Otherwise pick the latest failed run.

  • Show which jobs failed and which passed
  • Download the failed job logs: gh run view <run-id> --log-failed

2. Analyze the Error

Read the logs and classify the failure:

TypeIndicators
typecheckerror TS, tsc --noEmit
linteslint, warning/error with rule names
unit testvitest, FAIL, expect(
e2e testplaywright, spec.ts, timeout, locator
buildnpm run build, vite build, rollup
dependencynpm ci, ERESOLVE, peer dep

Extract the exact error message, file path, and line number.

Use superpowers:systematic-debugging to find root cause before attempting any fix.

3. Reproduce Locally

Run the failing CI step locally from apps/web/:

CI StepLocal Command
typechecknpm run typecheck
lintnpm run lint
unit testnpm run test
e2e testnpm run test:e2e
buildnpm run build
installnpm ci

If reproducing a specific test:

  • Unit: npx vitest run <test-file>
  • E2E: npx playwright test <spec-file>

4. Investigate with Playwright (if E2E failure)

If the failure is an E2E test or a visual/runtime bug:

  1. Start the dev server if not running: check lsof -i :3000
  2. Navigate to the failing page: mcp__playwright__browser_navigate
  3. Take a screenshot: mcp__playwright__browser_take_screenshot
  4. Check console errors: mcp__playwright__browser_console_messages
  5. Check network failures: mcp__playwright__browser_network_requests
  6. Get the accessibility tree: mcp__playwright__browser_snapshot
  7. Interact as the test would — click, fill forms, etc.
  8. Compare actual behavior with what the test expects

5. Fix the Issue

  • Read the failing source code
  • Apply the minimal fix
  • If the test expectation is wrong (not the code), fix the test

6. Verify the Fix

Run the exact failing step again locally:

cd apps/web
# Run the specific failing command

Then run the full quality suite to ensure no regressions:

cd apps/web
npm run typecheck
npm run lint
npm run test
npm run build

7. Report

Output a summary:

## CI Fix Summary
- Run: #<run-id> (<branch>)
- Failed job: <job-name>
- Root cause: <description>
- Fix: <what was changed>
- Local verification: PASS / FAIL

Rules

  • Always reproduce locally before fixing — don't guess at fixes
  • If the failure is flaky (passes locally, fails in CI), check for:
    • Race conditions / timing issues
    • Missing env vars in CI
    • Different Node.js versions
    • CI-specific caching issues
  • Don't disable or skip tests to "fix" CI — fix the underlying issue
  • Close the Playwright browser when done: mcp__playwright__browser_close

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.