ci-failure-debugging
Skill26 starsChanged 3 years agoMITView on GitHub
Debug and fix failing CI validation checks for this Python project. Use when asked to fix CI failures, debug failing PR checks, fix pylint/mypy/black/cspell/pytest errors, or when a PR validation workflow fails.
- Installs packages
In this repository3 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- samplesSkill
- sync-async-patternSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 3 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 47
Run pylint featuremanagement and fix reported issues.
- Very specific: line 48
Do NOT add # pylint: disable comments unless absolutely necessary.
- Distinctive: line 49
Do NOT add new imports or dependencies to fix warnings.
- Very specific: line 55
Run black featuremanagement to auto-format.
- Very specific: line 56
If CI uses black --check, it means files need reformatting — run black locally to fix.
- Very specific: line 60
Run mypy featuremanagement.
- Distinctive: line 61
All functions must have type annotations.
- Very specific: line 62
Use Optional[X] or X | None for nullable types.
- Very specific: line 63
Check mypy.ini for the full configuration.
- Very specific: line 69
Do NOT modify cspell.config.yaml unless adding a new ignore path.
- Very specific: line 73
Run pytest tests to reproduce.
- Distinctive: line 78
If adding new code, ensure both sync and async tests exist where applicable.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.
Files
CI Failure Debugging
This project's PR validation runs the following checks on Python 3.10–3.14. To debug failures, identify which step failed and follow the corresponding section below.
Step 1: Identify the failing check
The validation workflow runs these steps in order:
- black — code formatting
- pylint — static analysis
- mypy — type checking (strict mode)
- cspell — spell checking
- pytest — unit tests with coverage
- pylint (samples/tests) — lint samples and tests with relaxed rules
Step 2: Reproduce locally
Set up the environment first:
python -m pip install -e ".[dev,test]"Then run the specific failing check:
| Check | Command | Notes |
| pylint | pylint featuremanagement | |
| black | black --check featuremanagement | Use black featuremanagement to auto-fix |
| mypy | mypy featuremanagement | Uses strict = True from mypy.ini |
| cspell | npx cspell "**" | Config in cspell.config.yaml, custom words in project-words.txt |
| pytest | pytest tests --doctest-modules --cov-report=xml --cov-report=html | |
| pylint (samples) | pylint --disable=missing-function-docstring,missing-class-docstring samples tests | Requires python -m pip install -r samples/requirements.txt |
Step 3: Fix the issue
pylint failures
- Run
pylint featuremanagementand fix reported issues. - Do NOT add
# pylint: disablecomments unless absolutely necessary. - Do NOT add new imports or dependencies to fix warnings.
- The project disables
duplicate-codeinpyproject.toml. - Max line length is 120. Min public methods is 1. Max branches is 20. Max returns is 7.
black failures
- Run
black featuremanagementto auto-format. Line length is 120 (configured inpyproject.toml). - If CI uses
black --check, it means files need reformatting — runblacklocally to fix.
mypy failures
- Run
mypy featuremanagement. The project usesstrict = Truewith Python 3.10 target. - All functions must have type annotations.
- Use
Optional[X]orX | Nonefor nullable types. - Check
mypy.inifor the full configuration.
cspell failures
- Misspelled words: fix the typo in your code.
- Legitimate technical terms: add the word to
project-words.txt(one word per line, alphabetically sorted). - Do NOT modify
cspell.config.yamlunless adding a new ignore path.
pytest failures
- Run
pytest teststo reproduce. - Sync tests:
tests/test_*.py - Async tests:
tests/test_*_async.py(usepytest-asyncio) - Time window filter tests:
tests/time_window_filter/ - Telemetry tests:
tests/test_send_telemetry_appinsights.py - If adding new code, ensure both sync and async tests exist where applicable.
pylint (samples/tests) failures
- This step runs with
--disable=missing-function-docstring,missing-class-docstring. - Requires sample dependencies:
python -m pip install -r samples/requirements.txt. - Fix any remaining pylint issues in
samples/andtests/directories.
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
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.

