agentleFS
MicrosoftKnown publishermicrosoft/FeatureManagement-Python/.github/skills/ci-failure-debugging/SKILL.md

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

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
  1. Very specific:

    Run pylint featuremanagement and fix reported issues.

    line 47
  2. Very specific:

    Do NOT add # pylint: disable comments unless absolutely necessary.

    line 48
  3. Distinctive:

    Do NOT add new imports or dependencies to fix warnings.

    line 49
  4. Very specific:

    Run black featuremanagement to auto-format.

    line 55
  5. Very specific:

    If CI uses black --check, it means files need reformatting — run black locally to fix.

    line 56
  6. Very specific:

    Run mypy featuremanagement.

    line 60
  7. Distinctive:

    All functions must have type annotations.

    line 61
  8. Very specific:

    Use Optional[X] or X | None for nullable types.

    line 62
  9. Very specific:

    Check mypy.ini for the full configuration.

    line 63
  10. Very specific:

    Do NOT modify cspell.config.yaml unless adding a new ignore path.

    line 69
  11. Very specific:

    Run pytest tests to reproduce.

    line 73
  12. Distinctive:

    If adding new code, ensure both sync and async tests exist where applicable.

    line 78

≈ “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.

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

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:

  1. black — code formatting
  2. pylint — static analysis
  3. mypy — type checking (strict mode)
  4. cspell — spell checking
  5. pytest — unit tests with coverage
  6. 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:

CheckCommandNotes
pylintpylint featuremanagement
blackblack --check featuremanagementUse black featuremanagement to auto-fix
mypymypy featuremanagementUses strict = True from mypy.ini
cspellnpx cspell "**"Config in cspell.config.yaml, custom words in project-words.txt
pytestpytest tests --doctest-modules --cov-report=xml --cov-report=html
pylint (samples)pylint --disable=missing-function-docstring,missing-class-docstring samples testsRequires python -m pip install -r samples/requirements.txt

Step 3: Fix the issue

pylint failures

  • Run pylint featuremanagement and fix reported issues.
  • Do NOT add # pylint: disable comments unless absolutely necessary.
  • Do NOT add new imports or dependencies to fix warnings.
  • The project disables duplicate-code in pyproject.toml.
  • Max line length is 120. Min public methods is 1. Max branches is 20. Max returns is 7.

black failures

  • Run black featuremanagement to auto-format. Line length is 120 (configured in pyproject.toml).
  • If CI uses black --check, it means files need reformatting — run black locally to fix.

mypy failures

  • Run mypy featuremanagement. The project uses strict = True with Python 3.10 target.
  • All functions must have type annotations.
  • Use Optional[X] or X | None for nullable types.
  • Check mypy.ini for 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.yaml unless adding a new ignore path.

pytest failures

  • Run pytest tests to reproduce.
  • Sync tests: tests/test_*.py
  • Async tests: tests/test_*_async.py (use pytest-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/ and tests/ directories.

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.