agentleFS
maxwell2732maxwell2732/claudecode-research-harness-workflow/skills/ci/SKILL.md

ci

Skill42 starsChanged 6 days agoMITView on GitHub

CI red? Call us. Pipeline fire brigade deploys. Use when user mentions CI failures, build errors, test failures, or pipeline issues. Do NOT load for: local builds, standard implementation work, reviews, or setup.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the appropriate reference file from "Feature Details" above, or launch the ci-cd-fixer sub-agent

    line 39
  2. Distinctive:

    When a CI failure occurs, first triage the cause:

    line 44
  3. Distinctive:

    If changes to tests/configuration are unavoidable:

    line 92
  4. Distinctive:

    Use structured logs to identify the commit that caused the CI failure.

    line 111

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

CI/CD Skills

A set of skills for resolving CI/CD pipeline issues.


Trigger Conditions

  • "CI failed", "GitHub Actions failure"
  • "Build error", "Tests won't pass"
  • "Fix the pipeline"

Feature Details

FeatureDetailsTrigger
Failure AnalysisSee references/analyzing-failures.md"Read the log", "Investigate the cause"
Test FixingSee references/fixing-tests.md"Fix the test", "Suggest a fix"

Execution Steps

  1. Test vs. Implementation determination (Step 0)
  2. Classify user intent (analyze or fix)
  3. Assess complexity (see below)
  4. Read the appropriate reference file from "Feature Details" above, or launch the ci-cd-fixer sub-agent
  5. Review results and re-run if necessary

Step 0: Test vs. Implementation Determination (Quality Gate)

When a CI failure occurs, first triage the cause:

CI failure reported
    ↓
┌─────────────────────────────────────────┐
│       Test vs. Implementation           │
├─────────────────────────────────────────┤
│  Analyze the cause:                     │
│  ├── Implementation is wrong → Fix impl │
│  ├── Test is outdated → Confirm w/ user │
│  └── Environment issue → Fix env        │
└─────────────────────────────────────────┘

Prohibited Actions (Anti-tampering)

⚠️ Prohibited actions when CI fails

The following "solutions" are prohibited:

| Prohibited | Example | Correct approach |
|------------|---------|------------------|
| Skipping tests | `it.skip(...)` | Fix the implementation |
| Removing assertions | Delete `expect()` | Verify expected values |
| Bypassing CI checks | `continue-on-error` | Fix the root cause |
| Relaxing lint rules | `eslint-disable` | Fix the code |

Decision Flow

🔴 CI is failing

**A decision is needed**:

1. **Implementation is wrong** → Fix the implementation ✅
2. **Test expected value is outdated** → Ask user for confirmation
3. **Environment issue** → Fix the environment configuration

⚠️ Tampering with tests (skipping, removing assertions) is prohibited

Which applies here?

When Approval Is Needed

If changes to tests/configuration are unavoidable:

## 🚨 Approval Request for Test/Config Change

### Reason
[Why this change is necessary]

### Change Content
[Diff]

### Alternatives Considered
- [ ] Confirmed that fixing the implementation cannot resolve this

Waiting for explicit user approval

Using Extended Git Log Flags (CC 2.1.49+)

Use structured logs to identify the commit that caused the CI failure.

Identifying the Culprit Commit

# Analyze commits with structured format
git log --format="%h|%s|%an|%ad" --date=short -10

# Analyze chronologically with topological order
git log --topo-order --oneline -20

# Link changed files to causes
git log --raw --oneline -5

Key Use Cases

UseFlagEffect
Identify failure cause`--format="%h%s"`Structured commit list
Chronological tracking--topo-orderTrack considering merge order
Understand change impact--rawDetailed file change display
Exclude-merge analysis--cherry-pick --no-mergesExtract only real commits

Sample Output

🔍 CI Failure Cause Analysis

Recent commits (structured):
| Hash | Subject | Author | Date |
|------|---------|--------|------|
| a1b2c3d | feat: update API | Alice | 2026-02-04 |
| e4f5g6h | test: add tests | Bob | 2026-02-03 |

Changed files (--raw):
├── src/api/endpoint.ts (Modified) ← type error here
├── tests/api.test.ts (Modified)
└── package.json (Modified)

→ Commit a1b2c3d is likely the cause
  Type error: src/api/endpoint.ts:42

Sub-agent Integration

Launch ci-cd-fixer via the Task tool when the following conditions are met:

  • Fix → re-run → fail loop has occurred 2 or more times
  • Or the error spans multiple files in a complex case

Launch pattern:

Task tool:
  subagent_type="ci-cd-fixer"
  prompt="Please diagnose and fix the CI failure. Error log: {error_log}"

ci-cd-fixer operates with safety first (default dry-run mode). See agents/ci-cd-fixer.md for details.


For VibeCoder

🔧 How to talk about broken CI

1. **"CI failed" / "It went red"**
   - Automated tests are failing

2. **"Why is it failing?"**
   - Investigate the cause

3. **"Fix it"**
   - Attempt automatic repair

💡 Important: Fixes that "cheat" tests are prohibited
   - ❌ Deleting or skipping tests
   - ✅ Properly fixing the code

If you think "the test seems wrong",
confirm first before deciding on a course of action

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.