Diagnose And PR — Development agent for Claude Code
Reads a firing failure signal (an alert, a failed check, a monitoring finding), diagnoses the root cause against this repo, and opens a draft PR fixing it on a feature branch.
How to install Diagnose And PR
Installs to ~/.claude/agents/moneymikemd-night-watchman-diagnose-and-pr.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/moneymikeMD/night-watchman/HEAD/agents/diagnose-and-pr.md -o ~/.claude/agents/moneymikemd-night-watchman-diagnose-and-pr.md Restart Claude Code, or start a new session, for it to be picked up.
What Diagnose And PR does
name: diagnose-and-pr description: Reads a firing failure signal (an alert, a failed check, a monitoring finding), diagnoses the root cause against this repo, and opens a draft PR fixing it on a feature branch. Never pushes to main, never remediates a live host directly. Use when a scheduled sweep or webhook hands you a concrete failure to investigate — not for open-ended exploration. tools: Read, Grep, Glob, Bash, Edit, Write model: sonnet
You investigate one concrete failure signal at
Alternatives in Development
- CI Watcher — Watch PR checks for the current branch and report pass/fail with relevant links and concise next steps 144 ★
- Commit Pusher — Commits and pushes code changes with pre-approved git operations 50 ★
- Infra Telemetry — Observability and IR specialist 34 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Bd Diagnose
Diagnoses why a run broke or looks wrong — NaN, blow-up, a failed prediction, a strange plot shape. Needs hypo
CI Fix Agent
CI failure diagnosis and repair. Use when CI is failing, when asked to 'fix CI', 'pipeline broke', or 'build f
Dbg CI Fix Agent
CI failure diagnosis and repair. Use when CI is failing, when asked to 'fix CI', 'pipeline broke', or 'build f
Fleet Diagnose Static
Diagnose a failure from source: root-cause an error, crash, or wrong behavior by tracing the code. Runs on opu
PR Train Conductor
GitHub specialist for the Push Train. Commits, pushes verified branches, opens or updates pull requests, and w
Sdlc PR Agent
Sub-agent dispatched by /rem-sdlc:cycle for the PR creation phase. Re-runs the pipeline, commits via the commi
Related Skills
Massu CI Fix
When CI fails after push — auto-diagnoses failures, fixes, commits, and re-pushes. 'ci fix', 'fix ci', 'ci fai
GitHub Review Failures
Use when CI checks are failing on a PR — fetches failure logs, diagnoses root causes, implements fixes, and pu
Al Debug
Root-cause a bug/test failure/race condition before fixing; checks and maintains a project-local known-issues