Repository navigation
An agent skill for RepoBeagle: when to scan, which mode, and how to read the verdict.
Highlights
skill/SKILL.mdis a first-party agent skill (YAML frontmatter, host-neutral) that teaches an agent when to reach for RepoBeagle — before cloning/installing/running something untrusted, before enabling an MCP server/skill/plugin, on dependency PRs, before trusting a badge, before unpacking an archive/release asset — when not to (trusted code, monorepos under a deadline, triage-only situations) and the stop rules (RED: don't run; YELLOW: read first; GREEN: evidence, not proof; partial/headnever a full GREEN).- It contains a situation→command→stop-rule table (
head,scan,run,gate/batch,verify,explain/diff,init/feedback), a verdict/scope/complete reading table, a JSON field reference (findings includingfixed_in,dependency_path,package, suppression state;meta.complete/scope/tools/cache/trace/archive/release_assets/workspace), presentation rules (cite severity/rule/file:line/remediation, state scope, never paste raw JSON, quoteverifyfor badges), and the feedback/ignore loop. skill/mcp.jsonregisters the existing stdio server (repobeagle mcp) for MCP hosts; the light-mode wheel ships both files atshare/repobeagle/skill/.- It is drift-guarded:
tests/test_skill.pyextracts every documentedrepobeagle …invocation, asserts the subcommand and every flag exist in--help, executes every recipe against the fixtures (the{json}placeholder is a temp path), and checks every documented JSON field against a real report or the module source. A renamed flag, removed recipe or invented field fails CI.
Verification
- PR #103 (reviewed by the maintainer):
offline2 m 19 s (509 assertions incl.tests/test_skill.py),gate / gate7 s,packaging-macos16 s — green; the packaging test asserts the wheel shipsskill/SKILL.md+skill/mcp.json. - Acceptance from the released image (digest
sha256:35f7a8c95895e7e548ee418ff80b4675c30a47fd7a9a3b6337a0b592058c42b5,cosign verifyVALID,stableidentical):
tests/test_skill.py inside the image: PASS (frontmatter/manifest, 20 invocations/flags, 6 recipes, 37 fields)
head tests/fixtures/trap-gha -> YELLOW, meta.scope metadata (skill: triage, not a full verdict)
scan tests/fixtures/trap-gha --strict -> RED, exit 2, high findings cited (skill: stop, quote evidence)
scan tests/fixtures/control-clean -> GREEN, exit 0 (skill: proceed, state scope)
scan … --max-seconds 0.001 -> "VERDICT: YELLOW (partial)", exit 1 (skill: never present as GREEN)
verify javierbits/repobeagle -> signature VALID, UP TO DATE (skill: quote this, not the colour)
run --repo tests/fixtures/trap-npm -> exit 1, "refusing to run" (skill: the interceptor's own policy)
Upgrade
Copy skill/SKILL.md (and mcp.json for MCP hosts) into your agent's skill directory, pinned to this tag; light-mode installs already carry it at <prefix>/share/repobeagle/skill/.
Notes
- The skill is host-neutral by design; agent-host-specific frontmatter extensions can be added downstream.
- Prose can still drift semantically where CI cannot judge; commands, flags, recipes and fields are guarded.