infrastructure-doctor

Solid

Skill for the doctor infrastructure module providing repository-level diagnostics and safe, reversible automated repair. Use when the local checkout is acting up, before opening a bug, when onboarding a fresh clone, or as a periodic health probe. Every mutation is backed up under .doctor/backups/ and journalled in .doctor/actions.jsonl so any change can be undone byte-for-byte.

DevOps & Infrastructure 18 stars 1 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 81/100

Stars 20%
43
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Doctor Module Repository-level "doctor mode": a diagnostic engine plus an automated, audited resolution engine. The doctor never leaves the patient worse off — every mutation is snapshotted before it runs and can be reversed by a single `undo` command. ## Quick start ```bash # Diagnose only (read-only). uv run python -m infrastructure.doctor # Same, JSON for an agent. uv run python -m infrastructure.doctor --json diagnose # Show what would be fixed (no changes). uv run python -m infrastructure.doctor fix --plan # Apply the safest set of fixes. uv run python -m infrastructure.doctor fix --apply # Allow `uv sync` and other moderate-therapy fixes. uv run python -m infrastructure.doctor fix --apply --moderate # Allow radical fixes (e.g. delete orphan output directories — still backed up). uv run python -m infrastructure.doctor fix --apply --aggressive # Reverse the most recent applied, reversible action. uv run python -m infrastructure.doctor undo --last # Reverse one specific action (see `history`). uv run python -m infrastructure.doctor undo --action-id <id> # Inspect the journal. uv run python -m infrastructure.doctor history # Agent-facing capability manifest. uv run python -m infrastructure.doctor capabilities # Stable-text robot manual. uv run python -m infrastructure.doctor robot-docs ``` ## Safety contract Every fix flows through `infrastructure.doctor.safety.mutate(plan, state)`. That function is the **only** code in this module that writes to the filesy...

Details

Author
docxology
Repository
docxology/template
Created
11 months ago
Last Updated
today
Language
Python
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category