AGENT SKILL

mine

Classify the checkpoint runs and review cycles no earlier mining judged, or re-judge named ones, and store the judgments in ele's mining cache.

License 许可
GPL-3.0
最近更新
2026-11-14
Stars
★ 0
Forks
0

01 前言 Front Matter

name
mine
description
Classify the checkpoint runs and review cycles no earlier mining judged, or re-judge named ones, and store the judgments in ele's mining cache.
disable-model-invocation
true

02 资源文件 2

03 SKILL.md 正文

Mine

Each analysis lists the units no pass has judged, past its watermark, unless a re-judge names its units. Subagents classify their digests with a fixed prompt in references/, and ele stores the judgments under that prompt's hash.

Analysis Prompt
checkpoint-runs references/classify-checkpoint-runs.md
review-cycles references/classify-review-cycles.md

Both analyses unless the user names one. Pass each prompt as an absolute path resolved from this skill's base directory.

Never edit a prompt to suit a run. Its bytes are the classifier: a changed prompt judges under a new hash, and re-judging units already judged is a separate request the user scopes by naming its units.

1. List

Per analysis, <scratchpad> being the session scratchpad:

mkdir -p <scratchpad>/mine && find <scratchpad>/mine -maxdepth 1 -name '<analysis>-*.out.jsonl' -delete
ele mine --digests <scratchpad>/mine/<analysis> <analysis> > <scratchpad>/mine/<analysis>.jsonl 2> <scratchpad>/mine/<analysis>.err; echo $?

To re-judge named units, list only those: write each as {"session":…,"timestamp":…} on its own line of <scratchpad>/mine/<analysis>.units.jsonl and add --units <that file> to the list command; the rest runs unchanged. A unit judged before is stored again only when its prompt or its digest has changed. When ele refuses the units file, correct it from the user's list, never by guessing a unit, and list again.

Read <analysis>.err. On a non-zero exit it holds the error: report it and stop that analysis, unless it is a units refusal the user's list still corrects. Otherwise it may warn that the sync failed or the index is incomplete, so the list may be short, and may count the unjudged units at or before the watermark, which this skill leaves alone. Each goes in the report. Each line of <analysis>.jsonl is one unit, its digest the file to classify. Nothing listed, say so and stop for that analysis.

Done when each analysis's list and .err have been read, a refused units file is corrected and listed again while the user's list still corrects it, and an analysis that listed nothing, or exited non-zero on any other error, has stopped with its reason reported.

2. Classify

Split each analysis's units into batches of up to five. Launch one general-purpose subagent per batch, all in one message so they run in parallel, in the background. Each prompt is:

Read <prompt> first and follow it.
Digests:
<digest path>
...
Output file: <scratchpad>/mine/<analysis>-<batch>.out.jsonl

Done when every batch of every analysis has been launched.

3. Store

Once every batch has reported, per analysis, join its output files and store them. awk 1 ends each file's last line, which cat would run into the next file's first:

awk 1 <scratchpad>/mine/<analysis>-*.out.jsonl > <scratchpad>/mine/<analysis>.judged.jsonl
ele mine --judgments <scratchpad>/mine/<analysis>.judged.jsonl --prompt <prompt> --digests <scratchpad>/mine/<analysis> <analysis>

When no batch wrote an output file, store nothing and report every unit as unjudged.

ele hashes the digest file each batch read. It refuses the whole file when a line names no unit of the analysis, a unit with no digest file, one unit twice, or a unit whose session is still live, and stores nothing. Correct that line's session or timestamp from line 1 of its digest — never the prompt — and store again; drop a line naming a live unit, as the next mine lists it once its session is quiet. A line no digest corrects stops that analysis: report the error and every unit as unjudged. A line whose result the report cannot read, such as a string is_checkpoint or a report_ts that is not RFC 3339, is left out with a left out line on stderr and the rest stored; report its unit as unjudged. A unit a batch left out is not a failure: the watermark stops before it, and the next mine lists it again.

Done when, per analysis, ele mine --judgments has printed Stored <n> of <m> judgments, or it stored nothing and reports every unit unjudged: no batch wrote output, or a refusal no digest corrects, its error reported.

4. Report

Per analysis: units listed, judgments stored, the watermark ele printed, units left unjudged with the batch that missed them or the refusal that stopped the store, the count behind the watermark, and the runs each subagent called hard to classify.

Done when each analysis gives every field above, or says it has none.

04 同仓库更多 Skills

nicolaspearson
nicolaspearson/claude-ephant

wrap

Wrap up a session by asking what to keep as notes, plan inbox items, progress lines or a recipe, which due reminders to close, and whether to hand off. Use when the user asks to wrap up or end a session, or asks "anything to remember or hand off?"; never start one unasked.

★ 0
nicolaspearson
nicolaspearson/claude-ephant

ticket-audit

Audit a tracker's ticket map against the code for stale premises and contradictions. Use when about to pick up a ticket or close a map, or when asked for a ticket audit; for ele plans, use ele:plan-audit.

★ 0
nicolaspearson
nicolaspearson/claude-ephant

setup

Set up ele after installing it, or in a directory no owner covers, by proposing the ele owner commands that map it and running them once the user approves. Use when the user asks to set up or configure ele, when the start block says no owner covers the directory, or when ele status names no owner here.

★ 0
nicolaspearson
nicolaspearson/claude-ephant

review

Review a merge request or pull request, a local branch or a commit with checkpoint's reviewers, and walk through its major findings, then any minor ones you pick, to publish, copy or skip. Uncommitted work is checkpoint's.

★ 0
nicolaspearson
nicolaspearson/claude-ephant

remember

Save a decision, an open question, a dated fact or a reminder for a later date so later sessions start with it. Use when the user says "remember this", "we decided…" or "remind me on…", or a skill or ele's Stop hook asks for notes.

★ 0
nicolaspearson
nicolaspearson/claude-ephant

recipe

Propose a reusable multi-step procedure this session ran as a user skill, and write it once the user approves; with audit, check the user's skills for commands, flags and versions that no longer exist. Use when the user asks to save a procedure as a recipe or skill, or to audit their skills for stale commands; /ele:wrap offers a recipe too; never start one unasked.

★ 0