Skip to content

Hello-QM/catgo-LRG / server/catgo/workflow/skills/campaign

campaign-md-orchestration

Verified

Drive 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.

scripts/ingest_lit.py

View on GitHub
#!/usr/bin/env python3
"""Ingest literature into a campaign: a PDF (via MinerU) or a GitHub repo pointer.

    python ingest_lit.py --project <dir> --pdf <paper.pdf>
    python ingest_lit.py --project <dir> --repo <url> [--purpose "..."] [--commit SHA]
"""
from __future__ import annotations

import argparse
import sys

import campaign_lib as cl
import campaign_lit as lit


def main(argv: list[str] | None = None) -> int:
    ap = argparse.ArgumentParser(description="ingest literature")
    ap.add_argument("--project", required=True)
    ap.add_argument("--pdf", default="", help="PDF to convert via MinerU")
    ap.add_argument("--repo", default="", help="GitHub repo URL")
    ap.add_argument("--purpose", default="")
    ap.add_argument("--commit", default="")
    args = ap.parse_args(argv)
    if not args.pdf and not args.repo:
        print("provide --pdf or --repo", file=sys.stderr)
        return 2
    try:
        if args.pdf:
            dest = lit.ingest_pdf(args.project, args.pdf)
        else:
            dest = lit.ingest_repo(args.project, args.repo,
                                   purpose=args.purpose, commit=args.commit)
    except cl.CampaignError as exc:
        print(str(exc), file=sys.stderr)
        return 1
    print(f"ingested -> {dest}")
    return 0


if __name__ == "__main__":
    sys.exit(main())
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: 472kUpdated Claude CodeCodexVerifiedInstall
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: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
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 availableStars: 322kUpdated Claude CodeCodexVerifiedInstall