Hello-QM/catgo-LRG / server/catgo/workflow/skills/campaign
campaign-md-orchestration
VerifiedDrive a file-first, agent-in-the-loop computational campaign via a folder + markdown tree (no DB). Use when the user opts out of the visual workflow engine.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 6.2 KB |
| references/catgo-cli.md | markdown | 1.8 KB |
| scripts/INDEX.md | markdown | 1.8 KB |
| scripts/aggregate.py | script | 1011 B |
| scripts/archive.py | script | 1.8 KB |
| scripts/campaign_analysis.py | script | 4.3 KB |
| scripts/campaign_lib.py | script | 24.5 KB |
| scripts/campaign_lit.py | script | 3.3 KB |
| scripts/campaign_report.py | script | 1.6 KB |
| scripts/fetch_ref.py | script | 943 B |
| scripts/ingest_lit.py | script | 1.3 KB |
| scripts/make_report.py | script | 880 B |
| scripts/new_campaign.py | script | 932 B |
| scripts/poll.py | script | 798 B |
| scripts/submit_calc.py | script | 1.6 KB |
| scripts/test_campaign_analysis.py | script | 3.7 KB |
| scripts/test_campaign_lib.py | script | 21.8 KB |
| scripts/test_campaign_lit.py | script | 2.0 KB |
| scripts/test_campaign_report.py | script | 1.4 KB |
| scripts/test_entrypoints.py | script | 2.7 KB |
| scripts/test_skill_structure.py | script | 1.8 KB |
| scripts/test_vasp_sanity.py | script | 9.6 KB |
| scripts/vasp_sanity.py | script | 12.5 KB |
| templates/saa_her/plan.md | markdown | 1009 B |
scripts/test_entrypoints.py
View on GitHub"""Entrypoints are thin: importable, expose main(argv) delegating to campaign_lib."""
import campaign_lib as cl
def test_new_campaign_main_scaffolds(tmp_path, capsys):
import new_campaign
rc = new_campaign.main([str(tmp_path / "p"), "--name", "SAA HER",
"--template", "saa_her"])
assert rc == 0
assert (tmp_path / "p" / "plan.md").is_file()
assert "created" in capsys.readouterr().out.lower()
def test_submit_main_surfaces_gate_error(tmp_path, capsys):
import submit_calc
root = cl.scaffold_project(tmp_path / "p", "p", template="saa_her")
calc = root / "calc" / "01-stability-formation-energy" / "c"
calc.mkdir(parents=True)
(calc / "INCAR").write_text("ENCUT=520\n")
rc = submit_calc.main([
"--project", str(root),
"--calc", "calc/01-stability-formation-energy/c", "--ssh", "lab",
])
assert rc != 0 # gate refused
assert "cluster.md" in capsys.readouterr().err
def test_poll_main_runs_with_no_active(tmp_path):
import poll
root = cl.scaffold_project(tmp_path / "p", "p", template="saa_her")
rc = poll.main(["--project", str(root), "--ssh", "lab"])
assert rc == 0 # nothing active -> no ssh calls -> ok
def test_aggregate_main_writes_analysis(tmp_path, capsys):
import aggregate
root = cl.scaffold_project(tmp_path / "p", "p", template="saa_her")
d = root / "calc" / "01-stability-formation-energy" / "c"
d.mkdir(parents=True)
(d / "result.md").write_text(cl.render_result("c", {"E_form": -0.5, "dG_H": 0.1}))
rc = aggregate.main(["--project", str(root), "--plot"])
assert rc == 0
assert (root / "analysis" / "funnel.md").is_file()
assert (root / "analysis" / "volcano.png").is_file()
def test_archive_main_list(tmp_path, capsys):
import archive
root = cl.scaffold_project(tmp_path / "p", "p", template="saa_her")
stage = root / "calc" / "01-stability-formation-energy"
(stage / "bad").mkdir(parents=True)
(stage / "bad" / "STATUS.md").write_text(cl.render_status(cl.Status(
title="bad", state="FAILED", jobid="1")))
rc = archive.main(["--project", str(root), "--list"])
assert rc == 0
assert "bad" in capsys.readouterr().out
def test_archive_main_move(tmp_path):
import archive
root = cl.scaffold_project(tmp_path / "p", "p", template="saa_her")
calc = root / "calc" / "01-stability-formation-energy" / "c"
calc.mkdir(parents=True)
(calc / "INCAR").write_text("x\n")
rc = archive.main(["--project", str(root), "--calc",
"calc/01-stability-formation-energy/c", "--reason", "dup"])
assert rc == 0
assert (root / "archive" / "01-stability-formation-energy" / "c" / "INCAR").is_file()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |