agentleFS
mahsumaktasmahsumaktas/agent-evolution-kit/skills/agent-output-hygiene-ops/SKILL.md

agent-system-output-hygiene-ops

Skill2 starsChanged 9 months agoMITView on GitHub

Audit and remediate AgentSystem cron output hygiene by detecting raw tool logs, stack traces, and noisy summaries. Use when jobs leak 403/429/internal details, summaries are not user-safe, or post-change validation is required.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run this skill when cron summaries must stay concise and safe for user-facing channels.

    line 8
  2. Very specific:

    If leaks exist, patch top leaking jobs using references/prompt-remediation.md.

    line 17
  3. Very specific:

    Run scripts/hygiene_audit.sh and identify highest-frequency leaking job IDs.

    line 27
  4. Distinctive:

    prefer deterministic local fallback over noisy web-search errors

    line 32

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

AgentSystem Output Hygiene Ops

Run this skill when cron summaries must stay concise and safe for user-facing channels.

Quick Start

  1. Run hygiene audit:
bash scripts/hygiene_audit.sh --run-suite
  1. If leaks exist, patch top leaking jobs using references/prompt-remediation.md.
  2. Smoke-test patched jobs:
agent-system cron run <job-id> --expect-final --timeout 480000
agent-system cron runs --id <job-id> --limit 2 --expect-final

Workflow

  1. Run scripts/hygiene_audit.sh and identify highest-frequency leaking job IDs.
  2. Prioritize jobs leaking raw tool output (Exec, stack trace, raw JSON, 403/429 payloads).
  3. Apply strict output contract to prompt:
  • ban raw logs and internal diagnostics
  • force compact final format or NO_REPLY
  • prefer deterministic local fallback over noisy web-search errors
  1. Re-run patched jobs and confirm the latest run is clean.
  2. Re-run health suite and record report paths.

Resources

  • scripts/hygiene_audit.sh: summarizes leak-heavy jobs from latest health report.
  • references/prompt-remediation.md: safe prompt patch template and command pattern.

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.