coordinate-external-ag…
Coordinate independently operated external agents through durable handoffs. Use when work crosses hosts, sessions, accounts, services, queues, boards, pull…
Diagnose Python uv sync, lock, import, test, Ruff, mypy, FastAPI, FastMCP, packaging, and CI failures with concrete phase classification and next checks.
$ npx -y skills add gaelic-ghost/socket --skill diagnose-python-project --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/diagnose-python-projectContext preview
The summary Claude sees to decide when to auto-load this skill.
Diagnose Python uv sync, lock, import, test, Ruff, mypy, FastAPI, FastMCP, packaging, and CI failures with concrete phase classification and next checks.
name: diagnose-python-project description: Diagnose Python uv sync, lock, import, test, Ruff, mypy, FastAPI, FastMCP, packaging, and CI failures with concrete phase classification and next checks. license: Apache-2.0 compatibility: Designed for Codex and compatible Agent Skills clients diagnosing Python projects that use uv, pytest, Ruff, mypy, FastAPI, FastMCP, and Python package metadata. metadata: owner: gaelic-ghost repo: python-skills category: python-diagnostics allowed-tools: Read Bash(rg:*) Bash(git:*) Bash(uv:*)
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.
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:
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:
5. Identify the first meaningful error. 6. Explain the likely cause and smallest next check.
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.
Do not turn authenticated index failures into generic network diagnoses. Name the package source or credential surface when visible.
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.
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.
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.
Check configuration scope, missing stubs, optional dependencies, package exports, and Python-version settings before suppressing errors.
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.
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.
Stuff for Agents on macOS Promo audio: Socket Codex Marketplace Promo
Coordinate independently operated external agents through durable handoffs. Use when work crosses hosts, sessions, accounts, services, queues, boards, pull…
Assign worktree, branch, write, validation, integration, and cleanup ownership before parallel repository work. Use when a worker will inspect or modify…
Design framework-neutral agent and automation workflows before implementation. Use when choosing between Codex app automations, codex exec, Codex subagents,…
Design evaluation workflows for agent, skill, prompt, and automation behavior before implementation. Use when choosing eval cases, graders, thresholds,…
Design safe n8n workflows with deterministic routing, credentials, idempotency, recovery, local-model checks, drafts, and exact approval gates.
Coordinate bounded worker tasks with a launch envelope, report-back, escalation, and synthesis contract. Use before spawning, resuming, steering, cancelling,…