| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 21.2 KB |
| agents/inspector-context.md | markdown | 11.6 KB |
| agents/inspector-control.md | markdown | 6.0 KB |
| agents/inspector-maintainability.md | markdown | 3.6 KB |
| references/durable-context.md | markdown | 2.0 KB |
| references/long-running-agents.md | markdown | 1.8 KB |
| references/maintainability-findings.md | markdown | 8.3 KB |
| references/prune.md | markdown | 8.3 KB |
| scripts/block-pipe-to-shell.py | script | 11.4 KB |
| scripts/check-agent-context.sh | script | 2.6 KB |
| scripts/check-doc-refs.sh | script | 2.6 KB |
| scripts/check-maintainability.sh | script | 2.6 KB |
| scripts/check-verifier-output.sh | script | 2.6 KB |
| scripts/check_agent_context.py | script | 69.5 KB |
| scripts/check_doc_refs.py | script | 7.8 KB |
| scripts/check_maintainability.py | script | 43.5 KB |
| scripts/check_moved_lines.py | script | 6.2 KB |
| scripts/check_verifier_output.py | script | 3.5 KB |
| scripts/collect-data.sh | script | 39.7 KB |
| scripts/conversation_audit.py | script | 34.6 KB |
| scripts/read_skill_description.py | script | 1.7 KB |
| scripts/run-health.ps1 | script | 14.1 KB |
| scripts/scan_skill_security.py | script | 19.5 KB |
scripts/check_verifier_output.py
View on GitHub#!/usr/bin/env python3
"""Scan a verifier log for stale external paths and suggest cache-clean commands.
Detects /tmp/ and /private/tmp/ file references that no longer exist; these are
the signature of stale worktrees pointed at by a verifier (golangci-lint cache,
go build cache, npm cache, etc.).
Run as: python3 check_verifier_output.py ROOT LOG_FILE
"""
from __future__ import annotations
import argparse
import re
import sys
from pathlib import Path
TOKEN_RE = re.compile(
r"(?P<path>(?:/|\.\./)(?:[^\s:'\"(),]+/)*[^\s:'\"(),]+\.[A-Za-z0-9_+-]+)"
)
TMP_RE = re.compile(r"(^|/)(private/)?tmp/")
def main() -> int:
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("root", help="Repo root")
parser.add_argument("log_file", help="Verifier log to scan")
args = parser.parse_args()
root = Path(args.root).resolve()
log_file = Path(args.log_file).resolve()
if not root.is_dir():
print(f"Repo root not found: {root}", file=sys.stderr)
return 2
if not log_file.is_file():
print(f"Log file not found: {log_file}", file=sys.stderr)
return 2
text = log_file.read_text(encoding="utf-8", errors="replace")
def normalize(token: str) -> Path:
if token.startswith("/"):
return Path(token)
return (root / token).resolve()
paths: list[Path] = []
for match in TOKEN_RE.finditer(text):
token = match.group("path").rstrip(".")
if "/.git/" in token:
continue
path = normalize(token)
if TMP_RE.search(path.as_posix()):
paths.append(path)
unique_paths = []
seen = set()
for path in paths:
value = path.as_posix()
if value in seen:
continue
seen.add(value)
unique_paths.append(path)
stale_paths = [path for path in unique_paths if not path.exists()]
existing_paths = [path for path in unique_paths if path.exists()]
lower = text.lower()
actions: list[str] = []
if stale_paths:
if "golangci-lint" in lower or "errcheck" in lower:
actions.append("golangci-lint cache clean")
if re.search(r"\bgo (test|vet|build)\b", lower) or "go-build" in lower:
actions.append("go clean -cache -testcache")
if "npm" in lower or "node_modules" in lower:
actions.append("npm cache verify")
if not actions:
actions.append("rerun the verifier after removing stale temporary worktrees")
status = "WARN" if stale_paths else "PASS"
print("=== VERIFIER OUTPUT SURFACE ===")
print(f"verifier_output_status: {status}")
print(f"log_file: {log_file}")
print("stale_paths:")
if stale_paths:
for path in stale_paths[:20]:
print(f" {path}")
if len(stale_paths) > 20:
print(f" ... {len(stale_paths) - 20} more")
else:
print(" (none)")
print("existing_tmp_paths:")
if existing_paths:
for path in existing_paths[:10]:
print(f" {path}")
if len(existing_paths) > 10:
print(f" ... {len(existing_paths) - 10} more")
else:
print(" (none)")
print("recommended_actions:")
if actions:
for action in dict.fromkeys(actions):
print(f" {action}")
else:
print(" (none)")
print("verifier_findings:")
if stale_paths:
print(" stale external verifier paths detected")
else:
print(" (none)")
return 0
if __name__ == "__main__":
sys.exit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |