Source profileQuality 92/100Review permissions

gaelic-ghost/socket/plugins/python-skills/skills/diagnose-python-project/SKILL.md

diagnose-python-project

Diagnose Python uv sync, lock, import, test, Ruff, mypy, FastAPI, FastMCP, packaging, and CI failures with concrete phase classification and next checks.

Source repository stars
6
Declared platforms
1
Static risk flags
1
Last source update
2026-08-26
Source checked
2026-08-28

Decision brief

What it does: where it fits

Diagnose Python uv sync, lock, import, test, Ruff, mypy, FastAPI, FastMCP, packaging, and CI failures with concrete phase classification and next checks.

Best for

  • Use this skill when uv sync, uv run pytest, uv run ruff, uv run mypy, package build checks, FastAPI startup, or FastMCP startup fails.
  • Use this skill when Python version selection, dependency groups, lockfiles, package layout, imports, test discovery, or type checking are unclear.
  • Use this skill before widening into refactors after a vague Python error.

Not for

  • Tasks that require unconfirmed production actions or broad system permissions.
  • Environments where the pinned source and install steps cannot be inspected.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexDeclaredSource recordInstall path and trigger
Claude CodeNot declaredNo explicit evidencePortability before use
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/gaelic-ghost/socket --skill "plugins/python-skills/skills/diagnose-python-project"
Safe inspection promptEditorial

Inspect the Agent Skill "diagnose-python-project" from https://github.com/gaelic-ghost/socket/blob/ccbde05d2d542ce20d1645b425c75dc531b53721/plugins/python-skills/skills/diagnose-python-project/SKILL.md at commit ccbde05d2d542ce20d1645b425c75dc531b53721. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    Diagnostic Workflow

    1. Capture repository shape:

    Capture repository shape:Identify the exact failing command.Re-run only the narrowest failing command when reproduction is needed.
  2. 02

    Purpose

    Find the first meaningful cause of a Python failure and explain it in human terms.

    Find the first meaningful cause of a Python failure and explain it in human terms.The useful answer is not "tests failed." It is what command failed, which project or package failed, which phase failed, why it most likely failed, and the smallest next check or fix.
  3. 03

    When To Use

    Use this skill when uv sync, uv run pytest, uv run ruff, uv run mypy, package build checks, FastAPI startup, or FastMCP startup fails.

    Use this skill when uv sync, uv run pytest, uv run ruff, uv run mypy, package build checks, FastAPI startup, or FastMCP startup fails.Use this skill when Python version selection, dependency groups, lockfiles, package layout, imports, test discovery, or type checking are unclear.Use this skill before widening into refactors after a vague Python error.
  4. 04

    Source Check

    Use repo-local files, checked-out dependency sources, Dash MCP or Dash HTTP for installed docsets, and then official project documentation when Dash/local coverage is missing or stale:

    uv documentationpytest documentationRuff documentation
  5. 05

    Common Failure Classes

    Look for requires-python, .python-version, CI setup, and uv interpreter selection.

    Look for requires-python, .python-version, CI setup, and uv interpreter selection.Report when the repo asks for a Python version that local or CI does not provide.Look for dependency groups, optional dependencies, extras, index configuration, lockfile drift, and private package sources.

Permission review

Static risk signals and limitations

Runs scripts

medium · line 35

The documentation asks the agent to run terminal commands or scripts.

Re-run only the narrowest failing command when reproduction is needed.

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score92/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars6SourceRepository attention, not individual Skill quality
Compatibility1 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
gaelic-ghost/socket
Skill path
plugins/python-skills/skills/diagnose-python-project/SKILL.md
Commit
ccbde05d2d542ce20d1645b425c75dc531b53721
License
Apache-2.0
Collected
2026-08-28
Default branch
main
View the original SKILL.md

Diagnose Python Project

Purpose

Find the first meaningful cause of a Python failure and explain it in human terms.

The useful answer is not "tests failed." It is what command failed, which project or package failed, which phase failed, why it most likely failed, and the smallest next check or fix.

When To Use

  • Use this skill when uv sync, uv run pytest, uv run ruff, uv run mypy, package build checks, FastAPI startup, or FastMCP startup fails.
  • Use this skill when Python version selection, dependency groups, lockfiles, package layout, imports, test discovery, or type checking are unclear.
  • Use this skill before widening into refactors after a vague Python error.

Source Check

Use repo-local files, checked-out dependency sources, Dash MCP or Dash HTTP for installed docsets, and then official project documentation when Dash/local coverage is missing or stale:

Diagnostic Workflow

  1. Capture repository shape:
    rg --files -g 'pyproject.toml' -g 'uv.lock' -g '.python-version' -g 'requirements*.txt' -g 'setup.py' -g 'setup.cfg' -g 'tox.ini' -g 'noxfile.py' -g '*.py'
    
  2. Identify the exact failing command.
  3. Re-run only the narrowest failing command when reproduction is needed.
  4. Classify the failure phase:
    • Python version
    • dependency resolution
    • lockfile sync
    • import or package layout
    • test discovery
    • test execution
    • lint
    • format
    • type check
    • FastAPI startup
    • FastMCP startup
    • package build
    • CI environment
  5. Identify the first meaningful error.
  6. Explain the likely cause and smallest next check.

Common Failure Classes

Python Version

Look for requires-python, .python-version, CI setup, and uv interpreter selection.

Report when the repo asks for a Python version that local or CI does not provide.

Dependency Resolution

Look for dependency groups, optional dependencies, extras, index configuration, lockfile drift, and private package sources.

Do not turn authenticated index failures into generic network diagnoses. Name the package source or credential surface when visible.

Imports And Package Layout

Separate installed-package import failures from test-context import failures.

For src/ layouts, check whether commands run through uv with the package installed. For workspaces, check whether the command targets the intended package member.

Test Discovery And Execution

Discovery failures usually point at package imports, pytest configuration, plugin availability, markers, or test file naming.

Execution failures usually point at behavior, fixtures, environment, timing, async boundaries, or external dependencies.

Ruff

Separate lint failures from format failures.

Use uv run ruff check . for lint and uv run ruff format --check . only when the repo enforces formatting.

mypy

Check configuration scope, missing stubs, optional dependencies, package exports, and Python-version settings before suppressing errors.

FastAPI And FastMCP

Check import paths, app object names, lifespan handling, settings loading, dependency initialization, and environment variables.

For combined FastAPI/FastMCP apps, verify that mounted app lifespan behavior was preserved.

Output Shape

Return:

  1. Command: exact failing command.
  2. Phase: failure phase.
  3. Project: package, workspace member, app, or workflow involved.
  4. First meaningful error: short quoted or paraphrased error.
  5. Likely cause: concrete explanation.
  6. Next check: one or two smallest useful commands or edits.

Guardrails

  • Do not bury the first meaningful error under a long transcript.
  • Do not rerun broad commands repeatedly before narrowing the phase.
  • Do not delete lockfiles, virtual environments, caches, or generated artifacts without explaining why and getting approval when destructive.
  • Do not add sys.path hacks to hide package-layout problems.
  • Do not suppress Ruff or mypy findings to make checks pass unless the suppression is intentional and documented.

Frequently asked questions

What to verify before installation and use

What does the diagnose-python-project source document cover?

Diagnose Python uv sync, lock, import, test, Ruff, mypy, FastAPI, FastMCP, packaging, and CI failures with concrete phase classification and next checks.

How do I install diagnose-python-project?

The source record exposes this install command: npx skills add https://github.com/gaelic-ghost/socket --skill "plugins/python-skills/skills/diagnose-python-project". Inspect the command and pinned source before running it.

Which Agent platforms does the source record declare?

The pinned source record declares support for: codex.

Which permission-related actions were detected?

Static rules flagged exec-script in the source; the page lists the matching lines and excerpts.

Alternatives

Compare before choosing

Computed 9325,136

alirezarezvani/claude-skills

chaos-engineering

Use when planning, running, or learning from chaos engineering experiments. Triggers on "chaos experiment", "fault injection", "gameday", "resilience test", "blast radius", "steady state", "abort criteria", "Chaos Toolkit", "Chaos Mesh", "Litmus", "Gremlin", "AWS FIS", or any deliberate failure-injection question. Ships experiment designer, blast-radius calculator, and postmortem generator (all stdlib Python), 4 references on chaos principles + experiment design + attack taxonomy + tooling lands

Computed 98262

majiayu000/spellbook

comprehensive-testing

Complete testing strategy covering TDD workflow, test pyramid, unit/integration/E2E/property testing, framework best practices (Jest, Vitest, pytest), mock strategies, and CI integration. Use when writing tests, reviewing test quality, or establishing testing standards.

Computed 9764

Jamie-BitFlight/claude_skills

standards-for-python-development

Shared Python 3.11+ development standards covering type safety (ty, native generics, Protocol, TypeIs), layered architecture, error handling, performance, identifier naming, UI/CLI patterns (Rich/Typer), testing requirements (pytest, 80% coverage, TDD), and quality gates. Activates when any Python skill or agent needs to apply shared standards for implementation, code review, refactoring, or test authoring.

Computed 966,897

trailofbits/skills

vector-forge

Mutation-driven test vector generation. Finds implementations of a cryptographic algorithm or protocol, runs mutation testing to identify escaped mutants, then generates new test vectors that deliberately exercise the uncovered code paths. Compares before/after mutation kill rates to prove vector effectiveness. Use when generating cryptographic test vectors, measuring Wycheproof coverage gaps, finding escaped mutants via mutation testing, creating cross-implementation test suites, or improving t