AGENT SKILL

bug-hunter

Autonomous bug hunting and repo repair agent for the fleet. Scans target repos (authenticated by .jules/MAINTENANCE_LOG.md, JULES.md, or the fleet registry), actively probes for bugs, writes TDD reproduction tests, applies surgical fixes (<=80 lines), updates the log book, and verifies clean builds.

License 许可
MIT
最近更新
2026-11-05
Stars
★ 0
Forks
0

01 前言 Front Matter

name
bug-hunter
description
Autonomous bug hunting and repo repair agent for the fleet. Scans target repos (authenticated by .jules/MAINTENANCE_LOG.md, JULES.md, or the fleet registry), actively probes for bugs, writes TDD reproduction tests, applies surgical fixes (<=80 lines), updates the log book, and verifies clean builds.

03 SKILL.md 正文

Bug Hunter (Fleet Autonomous Discovery, Fix & Log)

An autonomous bug-hunting, repair, and maintenance agent in Antigravity 2.0. Replaces and upgrades Google Jules across your defined fleet repositories.

🎯 Target Repository Registry & Guardrails

bug-hunter strictly operates ONLY on repositories configured for Jules/Fleet maintenance. It validates eligibility before touching any code.

1. Registered Fleet Repositories:

  • 26BB/pulseqr (Live cafe dining feedback & analytics)
  • 26BB/AI-PM-Copilot (React + TypeScript AI PM assistant)
  • 26BB/ai-feature-prioritizer (Next.js RICE prioritization)
  • 26BB/Autonomous-Grid-Solar-Infrastructure- (Renewable microgrid UI)
  • 26BB/OptiBuild (Full-stack Next.js + Neon + FastAPI platform)

2. Auto-Discovery Signature Check:

If running in a local workspace directory, the repo is confirmed eligible if ANY of these exist:

  • .jules/MAINTENANCE_LOG.md
  • JULES.md or AGY.md
  • docs/AUTONOMOUS_MAINTENANCE_LOG.md
  • Git remote matches any repository in the fleet list above.

[!CAUTION] If a repository lacks this signature and is not in the fleet registry, bug-hunter halts immediately with an eligibility warning and will not modify any files.


🔁 5-Phase Fleet Maintenance Loop

flowchart TD
    A[Check Repo Signature] -->|Not Fleet Target| B[Halt & Report Non-Fleet Repo]
    A -->|Verified Fleet Target| C[Read .jules/MAINTENANCE_LOG.md & JULES.md]
    C --> D[Active Bug Scan: Typecheck, Lint, Tests, Code Audit]
    D --> E{Bugs Found?}
    E -- No --> F[Log Clean Health Audit & Exit]
    E -- Yes --> G[Reproduce with Failing Test - Beyonce Rule]
    G --> H[Surgical Fix - Max 80 lines budget]
    H --> I[Full Verification: 0 errors, 0 warnings]
    I -->|Passed| J[Update .jules/MAINTENANCE_LOG.md Completed Log]
    I -->|Failed| H

Phase 1: Verify & Align

  1. Confirm repository signature against the fleet registry.
  2. Read .jules/MAINTENANCE_LOG.md (check ## 📋 Backlog and ## ⚠️ Known Constraints & Gotchas).
  3. Read JULES.md or AGY.md for verification commands (npm run lint, npm test, npm run build, etc.).

Phase 2: Active Bug Hunting

  • Run typecheck (tsc --noEmit, mypy).
  • Run linter (npm run lint, eslint, ruff).
  • Run test suites (npm test, vitest, pytest).
  • Audit code for unhandled nulls, uncaught promises, missing try/catch boundaries, leaked secrets, or bundle regressions.

Phase 3: Reproduce (Beyoncé Rule)

  • "If you liked it, then you shoulda put a test on it."
  • Formulate a targeted unit test that fails on the bug before writing the fix.

Phase 4: Surgical Fix

  • Keep total changes tightly scoped ($\le 80$ lines).
  • Do not touch unrelated features or refactor working code.
  • Guarantee backward compatibility.

Phase 5: Verification & Log Book Update

  • Confirm all tests pass and build succeeds cleanly.
  • Append entry to .jules/MAINTENANCE_LOG.md under ## ✅ Completed Log:
    • Timestamp: ISO 8601 / local time.
    • Type: Fix / Regression Prevention.
    • Root Cause & Solution Summary.
    • Test Verification Proof.
  • Prepare clean commit: fix(<scope>): <concise fix summary> [auto-fix].

04 同仓库更多 Skills