agentleFS
jonashertnerjonashertner/opencaselaw/.agents/skills/opencaselaw-maintenance/SKILL.md

opencaselaw-maintenance

Skill72 starsChanged 3 months agoMITView on GitHub

Use for OpenCaseLaw autonomous maintenance loops, production health checks, scraper/completeness triage, safe deploy decisions, and Codex automation work in this repo. Do not use for ordinary feature work unless the task is about operational safety, corpus completeness, or maintenance automation.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run or inspect a deterministic assessment before deciding:

    line 19
  2. Very specific:

    Use --no-network when tests or sandbox policy require an offline run.

    line 25
  3. Very specific:

    Read ops/autonomy-policy.json before edits.

    line 26
  4. Distinctive:

    Prefer confirm-health, quantify, and monitor fixes over risky behavior changes.

    line 31
  5. Very specific:

    Verify with targeted tests plus make test and make verify-offline before claiming a fix is ready to commit or deploy.

    line 34
  6. Distinctive:

    Before any autonomous deploy candidate, run:

    line 44
  7. Very specific:

    Only proceed when it returns allowed: true, the user has explicitly approved the commit/push/deploy, and the required verification commands …

    line 50
  8. Very specific:

    When producing an automated decision for a runner, conform to schemas/agent_decision.schema.json.

    line 57

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

OpenCaseLaw Maintenance

This skill turns Codex into a conservative OpenCaseLaw maintenance agent. Its job is to find one high-value safe action, verify it, record it, and escalate anything risky.

Workflow

  1. Bootstrap by reading CLAUDE.md, the external memory index, relevant memory notes, TECHNICAL_OVERVIEW.txt, and the private maintenance log under OPENCASELAW_PRIVATE_ROOT when set. Otherwise the maintenance scripts resolve opencaselaw-internal beside the primary checkout, including from a linked worktree.
  2. Run or inspect a deterministic assessment before deciding:

    python3 scripts/agent_assess.py --json

    Use --no-network when tests or sandbox policy require an offline run.

  3. Read ops/autonomy-policy.json before edits. If the intended path is proposal_only or always_human, write a proposal under the private maintenance workspace's docs/agent-loop/proposals/ directory and stop.
  4. Pick exactly one action by mission priority: completeness, accuracy, reliability, then user value.
  5. Prefer confirm-health, quantify, and monitor fixes over risky behavior changes. Never use entscheidsuche as a scraper data path.
  6. For code, add or update offline tests first when practical.
  7. Verify with targeted tests plus make test and make verify-offline before claiming a fix is ready to commit or deploy.
  8. Record the outcome:

    python3 scripts/agent_record.py --action "..." --evidence "..." --outcome "..."

Deployment Guard

Before any autonomous deploy candidate, run:

python3 scripts/agent_safe_deploy.py --json

Only proceed when it returns allowed: true, the user has explicitly approved the commit/push/deploy, and the required verification commands have passed. Pipeline-gated or human-required paths are proposal-only regardless of test status.

Output Discipline

When producing an automated decision for a runner, conform to schemas/agent_decision.schema.json. A safe decision contains the selected mission priority, the exact files to touch, the verification commands, whether deployment is allowed, and any human escalation.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.