evo-build-diagnosis

evo-build-diagnosis is a skill for Claude Code, Codex from OpenLAIR/OpenSkill. It costs 97 tokens per session (555 once invoked), scanned A, original, Apache-2.0.

A Python build-failure diagnosis tool for repositories. It scans Python files, checks dependencies and project configuration, runs tests, and analyzes the resulting errors.

In plain words
What is it for?
Use it to inspect Python repositories, parse pytest failures, check common build files, and write a failure report.
Why use it?
It brings syntax errors, missing imports, configuration problems, and test failures into one diagnosis. This helps explain why a project does not build or pass its tests.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect Python repositories, parse pytest failures, check common build files, and write a failure report.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openlair/openskill/evo-build-diagnosis
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add OpenLAIR/OpenSkill --skill evo-build-diagnosis
Clone the repo
git clone --depth 1 https://github.com/OpenLAIR/OpenSkill

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for evo-build-diagnosis

README.md
[![agentmods](https://agentmods.dev/badge/skills/openlair/openskill/evo-build-diagnosis/github.svg)](https://agentmods.dev/skills/openlair/openskill/evo-build-diagnosis)
Your own site
<a href="https://agentmods.dev/skills/openlair/openskill/evo-build-diagnosis"><img src="https://agentmods.dev/badge/skills/openlair/openskill/evo-build-diagnosis/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for evo-build-diagnosis

Your own site · 80×15
<a href="https://agentmods.dev/skills/openlair/openskill/evo-build-diagnosis"><img src="https://agentmods.dev/badge/skills/openlair/openskill/evo-build-diagnosis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 555 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00097 $0.00555
Opus 5 $0.00048 $0.00278
Sonnet 5 $0.00019 $0.00111
Haiku 4.5 $0.00010 $0.00056

Measured yesterday against content hash 531ff0182c26, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

evo-build-diagnosis scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/diagnosis.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

tasks-evolved/fix-build-agentops/environment/skills/evo-build-diagnosis/SKILL.md · 48 lines

What it actually says

Build Diagnosis Skill

This skill analyzes Python repositories to identify root causes of build failures.

When to Use

  • A Python project fails to build or install
  • pytest tests are failing with errors
  • CI/CD pipelines report build failures
  • You need to diagnose syntax errors, import errors, or configuration issues

Workflow

  1. Find the repository using find_repo_path() to locate the project root
  2. Scan for syntax errors using parse_syntax_errors() which uses ast.parse()/compile() on all .py files
  3. Check imports using check_import_availability() to verify all dependencies are installed
  4. Analyze build config using analyze_build_config() to parse pyproject.toml/setup.py/setup.cfg
  5. Run tests using run_tests_and_capture_failures() to execute pytest and parse JUnit XML output
  6. Write report using write_diagnosis_report() to produce failed_reasons.txt

Key Functions

All functions are in scripts/diagnosis.py:

  • find_repo_path(base_dirs) - Locates the repository root by searching common paths
  • parse_syntax_errors(repo_path) - Scans all .py files for syntax errors using compile()
  • run_build_and_capture_errors(repo_path) - Runs pip install and captures errors
  • run_tests_and_capture_failures(repo_path) - Runs pytest with --junitxml and parses results
  • analyze_build_config(repo_path) - Parses pyproject.toml, setup.py, setup.cfg
  • check_import_availability(dependencies) - Checks if modules can be imported
  • write_diagnosis_report(findings, output_path) - Writes structured failed_reasons.txt

Important Notes

  • Always use encoding='utf-8' when reading Python source files to avoid encoding errors
  • AST col_offset values are UTF-8 byte offsets, not character indices
  • Use subprocess isolation when running pytest to avoid state pollution
  • Check Python version compatibility (3.7-3.12 syntax differences)

Reference

See references/domain_reference.md for detailed domain knowledge.

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 48 lines · 97 tokens per session scan A 531ff0182c26

Subscribe to this mod's changes

evo-build-diagnosis is a skill published in the GitHub repository OpenLAIR/OpenSkill (88 stars, last pushed yesterday), licensed Apache-2.0. It adds 97 tokens to every session and 555 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-11.

Related

Other skills, from other repositories

python-code-quality

Code quality checks, linting, formatting, and type checking commands for the Agent Framework Python codebase. Use this when running checks, fixing lint errors, or troubleshooting CI failures.

microsoft/agent-framework · 40 tokens

plugin-architecture-patterns

Design, implement, or diagnose Xberg plugin traits, typed registries, priority collisions, lifecycle, native extractors, and Alef-generated Python plugin bridges. Load for plugin-system work, not ordinary extractor parsing.

xberg-io/xberg · 49 tokens

pyghidra-scripting

Write and run Python (PyGhidra) code inside the Ghidra session that ReVa's MCP server is already attached to, using the five ReVa scripting tools — run-script, list-scripts, read-script, write-script, edit-script. Use this whenever the user asks to execute Python against the current program, reach for the Ghidra Flat…

cyberkaida/reverse-engineering-assistant · 209 tokens

cnsplots

Create, revise, and troubleshoot publication-ready scientific plots in Python with cnsplots, including distribution, regression, heatmap, genomics, survival, set, flow, and multi-panel figures. Use when a user asks for cnsplots code, Cell/Nature/Science-style visualization, precise physical figure dimensions…

faridrashidi/cnsplots · 79 tokens

memory-optimization

Optimize Python code for reduced memory usage and improved memory efficiency. Use when asked to reduce memory footprint, fix memory leaks, optimize data structures for memory, handle large datasets efficiently, or diagnose memory issues. Covers object sizing, generator patterns, efficient data structures, and memory…

benchflow-ai/skillsbench · 60 tokens

python-lsp

Semantic Python code queries via a stdio LSP client driving pyright-langserver. Provides binding-resolved go-to-definition, find-references, hover types, type diagnostics, file symbol outlines, and project-wide symbol search — name resolution and type inference that tree-sitter and ripgrep cannot do. Use when you need…

oaustegard/claude-skills · 155 tokens