# Toil Mining

> Mine usage history (session archaeology, rtk analytics, shell history) for repeated toil, score frequency x pain, and emit ranked automation candidates.

- Skill: `majiayu000/toil-mining` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/toil-mining`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/toil-mining/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Data & Analytics
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/toil-mining

---


# toil-mining (Codex)

Codex-native entry point for the `toil-mining` operator skill.

The AgentOps source skill `../../skills/toil-mining/SKILL.md` is the source of
truth for domain behavior: the evidence sources, clustering and scoring rules,
the machine-echo filter, and the ranked candidate handoff to
automation-shape-routing. Read it first, then use `prompt.md` for the Codex
runtime profile.

## Codex Runtime Contract

- Use Codex plus the local shell. Do not invoke Claude Code as an executor.
- Headless or scheduled dispatch uses `codex exec` (or the local llama lane), never `claude -p`.
- Read evidence sources read-only; never rewrite or prune session archives,
  analytics DBs, or shell history.
- Load only the relevant source references or scripts for the task.
- Verify command syntax from local `--help` or checked-in references before acting.
- Return concrete evidence: commands run, files touched, exit codes, and any remaining blocker.

