22 lines
2.4 KiB
Python
22 lines
2.4 KiB
Python
import json, pathlib
|
|
A = pathlib.Path.home() / ".claude/agents"
|
|
def body(name):
|
|
t = (A / f"{name}.md").read_text()
|
|
return t.split("\n---\n", 1)[1].strip()
|
|
W3 = """You are three larv-review reviewers in one: the stability reviewer, the product-owner reviewer and the prose reviewer. You run once, in place of all three, on one change. Carry out each brief below in full, as its own reviewer would, and read the code once for all of them. Each brief's bar for what to report applies to its own findings.
|
|
|
|
Write one report, with one heading per brief: `## Stability`, `## Product-owner`, `## Prose`, each opening with that brief's verdict and holding its findings. Under each, give every finding its severity as the brief says. A finding that belongs to two briefs goes under the first of them, once. Where a brief says you have no shell, ignore that: you have one.
|
|
|
|
"""
|
|
wave3 = W3 + "\n\n".join(f"# Brief {i}: the {label} reviewer\n\n{body(n)}" for i,(label,n) in enumerate([("stability","stability-reviewer"),("product-owner","product-owner-reviewer"),("prose","prose-reviewer")],1))
|
|
REL = """You are two larv-review release-review reviewers in one: the systems architect and the principles auditor. You run once, in place of both, over the whole project. Carry out each brief below in full, as its own reviewer would, and read the project once for both. Each brief's bar for what to report applies to its own findings.
|
|
|
|
Write one report, with one heading per brief: `## Architecture` and `## Principles`, each opening with that brief's verdict and holding its findings. Under each, give every finding its severity as the brief says. A finding that belongs to both briefs goes under the first of them, once.
|
|
|
|
"""
|
|
rel = REL + "\n\n".join(f"# Brief {i}: the {label}\n\n{body(n)}" for i,(label,n) in enumerate([("systems architect","systems-architect"),("principles auditor","principles-auditor")],1))
|
|
json.dump({"wave3-reviewer": {"description": "Stability, product-owner and prose review in one.", "prompt": wave3, "tools": ["Bash","Read","Grep","Glob","Write"]}}, open("agents-wave3.json","w"), indent=1)
|
|
json.dump({"release-reviewer": {"description": "Architecture and principles review in one.", "prompt": rel, "tools": ["Read","Grep","Glob","WebFetch","WebSearch","Write"]}}, open("agents-release.json","w"), indent=1)
|
|
open("wave3-reviewer.md","w").write(wave3); open("release-reviewer.md","w").write(rel)
|
|
print(len(wave3), len(rel))
|