agentleFS
Starr-delStarr-del/ShipSafe/skills/deploy-log-doctor/SKILL.md

deploy-log-doctor

Skill0 starsChanged 5 months agoMITView on GitHub

Diagnose failed build and deploy logs from Vercel, Netlify, Cloudflare Pages, or GitHub Actions. Use this whenever the user pastes a build log, says a deploy failed, mentions 'build error', 'deployment failed', 'works locally but not in production', or shows any CI output containing an error — even if they don't ask for a diagnosis explicitly. Runs fully offline — no API keys, no network, no credentials.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run the classifier on the log first, then interpret:

    line 10
  2. Distinctive:

    If it returns a diagnosis, walk the user through the fix steps, adapting them to the user's actual framework and platform.

    line 21
  3. Distinctive:

    If it returns nothing (exit 2), the log is probably truncated above the real error — ask for the section around the first ERROR line and …

    line 22
  4. Distinctive:

    After fixing, suggest the rollback-readiness skill to catch the next failure class before it happens.

    line 23
  5. Distinctive:

    All paths below are relative to this skill's directory (deploy-log-doctor/).

    line 27

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

deploy-log-doctor

Part of shipsafe — offline deploy-safety skills. Every script is stdlib-only Python 3.8+; nothing leaves the machine.

Run the classifier on the log first, then interpret:

python3 scripts/diagnose_log.py <logfile>        # or pipe: cat log | python3 scripts/diagnose_log.py -
python3 scripts/diagnose_log.py <logfile> --json # structured output

The script matches 11 curated failure signatures (missing env vars, case-sensitive imports, Node version mismatches, OOM, lockfile drift, peer-dep conflicts, Prisma generate, and more) and emits the root cause plus numbered fix steps.

Workflow:

  1. Save the user's log to a file (or pipe it) and run the script.
  2. If it returns a diagnosis, walk the user through the fix steps, adapting them to the user's actual framework and platform.
  3. If it returns nothing (exit 2), the log is probably truncated above the real error — ask for the section around the first ERROR line and rerun.
  4. After fixing, suggest the rollback-readiness skill to catch the next failure class before it happens.

Exit codes: 0 diagnosed, 2 no signature matched.

All paths below are relative to this skill's directory (deploy-log-doctor/).

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.