Loading...
Loading...
This skill should be used when running CI checks iteratively and fixing failures. Use when executing make targets (fast-ci, all-ci, ci), iterating on lint/format/type/test errors, or needing the devrun agent pattern for pytest/ty/ruff/prettier/make/gt commands.
npx skill4agent add dagster-io/erk ci-iterationmakemakepytesttyruffprettiergtdevrunTask tool with:
- subagent_type: devrun <- MUST be devrun, NEVER general-purposeTask tool with:
- subagent_type: devrun
- description: "Run [make target] from repo root"
- prompt: "Change to repository root and execute: [make target]"| Failure Type | Fix Command |
|---|---|
| Ruff lint | |
| Ruff format | |
| Prettier | |
| Sync-Kit | |
| MD-check | Edit CLAUDE.md to contain only |
| ty | Edit files to fix type annotations |
| Tests | Read and edit source/test files |
Iteration 1: Fixing lint errors
Iteration 2: Fixing format errors
Iteration 3: Fixing type errors in src/erk/cli/commands/switch.py
Iteration 4: All checks passed## Finalization Status: SUCCESS
All CI checks passed after N iteration(s):
(check) **Lint (ruff check)**: PASSED
(check) **Format (ruff format --check)**: PASSED
(check) **Prettier**: PASSED
(check) **AGENTS.md Standard (md-check)**: PASSED
(check) **ty**: PASSED
(check) **Tests**: PASSED
(check) **Sync-Kit (erk check)**: PASSED
The code is ready for commit/PR.## Finalization Status: STUCK
I was unable to resolve the following issue after N attempts:
**Check**: [lint/format/prettier/md-check/ty/test]
**Error**:
[Exact error message]
**File**: [file path if applicable]
**Attempted Fixes**:
1. [What you tried first]
2. [What you tried second]
3. [What you tried third]
**Next Steps**:
[Suggest what needs to be done manually]Iteration 1:
- Use Task tool with devrun agent to run make target from repo root
- Found: 5 lint errors, 2 files need formatting
- Fix: Use Task tool with devrun agent to run make fix, then make format from repo root
- Result: 3 lint errors remain
Iteration 2:
- Use Task tool with devrun agent to run make target from repo root
- Found: 3 lint errors (imports)
- Fix: Edit files to fix import issues
- Result: All lint/format pass, 2 type errors
Iteration 3:
- Use Task tool with devrun agent to run make target from repo root
- Found: 2 ty errors in switch.py:45 and switch.py:67
- Fix: Add type annotations
- Result: All checks pass
SUCCESS