用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/boshu2/agentops --skill toil-mining命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Use Agent Mail as an optional messaging and file-reservation adapter for explicitly coordinated writers. Triggers: "coordinate writers", "reserve files".
Operate explicit orchestrator, implementer, validator, and scribe roles through a caller-selected agent runtime. Triggers: "agent-native factory", "role-shaped agent panes", "persistent workers".
Initialize minimal AgentOps documentation and verdict storage without taking over repository workflow. Triggers: "bootstrap AgentOps", "initialize AgentOps docs".
基于 SOC 职业分类
| name | toil-mining |
| description | Mine caller-supplied usage history for |
Mine explicitly supplied session, shell, RTK, or CASS history without modifying the sources. The result is evidence for a caller; this skill does not file work, schedule automation, or mutate a tracker.
Each candidate must contain a measured count, source references, confidence in the clustering, pain evidence, and the smallest plausible automation shape. Separate observations from recommendations.
A cluster qualifies as toil only above a measured floor: at least three occurrences in the supplied window, each resolvable to a source reference. Two occurrences are a coincidence; a vivid memory of "doing this constantly" with one resolvable instance is an anecdote. The named failure mode is salience mining — ranking by how annoying the last occurrence felt rather than by count, which surfaces yesterday's irritation over the quiet weekly drain. If the supplied history cannot establish the count, report the candidate as below-threshold with its actual measured count; never round an impression up to a frequency.
Rank clusters by the product of three measured factors, not by any single one:
Score each factor from cited evidence and show the three inputs next to every composite score so the caller can re-weigh them. A factor the history cannot support is reported as unmeasured — scored at the floor, never guessed at the midpoint. The named failure mode is frequency-only ranking: a daily two-second nuisance outranking a weekly half-hour error-prone ritual because only one axis was measured. The product form exists precisely so that a high-frequency, near-zero-cost, never-fails cluster ranks where it belongs: low.
The helper accepts only explicit session paths and requires an explicit, timezone-qualified window:
python3 skills/toil-mining/scripts/recent_human.py --since 2026-07-12T00:00:00Z \
--until 2026-07-16T00:00:00Z /path/to/session-a.jsonl /path/to/session-b.jsonl \
> /tmp/recent-human.json
It extracts event_msg / user_message records with source_path, one-based
line, normalized UTC timestamp, and request text. Codex attachment and IDE
wrappers are normalized by keeping the text after # My request for Codex:.
Restored or forked copies are deduplicated by client_id, with the earliest
occurrence retained.
The extractor treats a nonempty client_id as the high-confidence UI-origin
boundary. Records without it are reported as missing_client_id, not guessed to
be human. It also excludes these narrow generated envelope families and reports
their counts: internal context tags (codex_internal_context, environment,
permissions, skill/app/plugin instructions), fresh-context cross-family refuter
prompts, and agent Message Type: envelopes. This is deliberately conservative:
a directly typed message from a client that omits client_id remains unchecked.
The JSON result includes input/parsed/candidate/emitted counts, exclusions by reason, checked facts, and not-checked facts. Malformed records are counted, not silently discarded. The helper reads only the supplied JSONL and writes only to stdout; it does not read attachment contents, discover more sessions, cluster meaning, score toil, file work, or schedule automation. It is retrieval/report-only.
Write .agents/scratch/toil-mining/YYYY-MM-DD-candidates.md only when the caller
asks for a local artifact; otherwise return the report inline. Include checked and
not-checked sources. Do not include owners, priorities, claims, queues, or a next
action.