Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add vincentkoc/dotskills --skill codex-goal-mininggit clone --depth 1 https://github.com/vincentkoc/dotskillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/vincentkoc/dotskills/codex-goal-mining)<a href="https://agentmods.dev/skills/vincentkoc/dotskills/codex-goal-mining"><img src="https://agentmods.dev/badge/skills/vincentkoc/dotskills/codex-goal-mining/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/vincentkoc/dotskills/codex-goal-mining"><img src="https://agentmods.dev/badge/skills/vincentkoc/dotskills/codex-goal-mining.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00094 | $0.01597 |
| Opus 5.5 | $0.00038 | $0.00639 |
| Sonnet 5.5 | $0.00019 | $0.00319 |
| Haiku 4.5 | $0.00009 | $0.00160 |
Grade A, and why
codex-goal-mining scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 15d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Codex Goal Mining
Purpose
Recover structured Codex goal history and convert free-form runs into evidence-backed, repeatable suites.
When to use
- The user asks what
/goalcommands ran locally or across the fleet. - Large QA, beta, release, localization, model, cleanup, or PR campaigns need retesting.
- The user wants active, paused, blocked, or long-running goals ranked.
- Repeated semantic runs need stable suite names and copy-paste prompts.
- Goal time, thread span, tokens, dates, machines, or reachability matter.
Workflow
- Collect structured data with
scripts/codex-goal-report.py.- Fleet report:
scripts/codex-goal-report.py --policy ~/.config/codex-goal-mining/fleet-policy.json --json - Local only:
scripts/codex-goal-report.py --local --json - Recent window: add
--since YYYY-MM-DD. - Exact activity window: add
--activity-overlap --since <ISO> --until <ISO>. Existing--sincesemantics remain creation-time based without that flag. - Bounded repeat snapshots: add
--cursor-file <path>to compute reset-safe deltas. No cursor or report directory is created by default. - Selected machines: repeat
--machine <fleet-alias>. - Require fleet coverage with
--fleet; any unreachable source is rendered and returns nonzero instead of silently reporting success. - Use
--one-attemptfor a single configured/first interpreter attempt per host. Policy entries may declarepythonandwsl_python. - Remote collection requires
fleet-credentials ssh-target TARGET. Its token-free reply selects the registered helper or an unregistered native SSH alias. A missing helper, unsupported query, or invalid reply stops that target; it never authorizes native SSH. - Set
transport: "fleet-credentials"for a helper-owned target, andwsl_transportseparately for a WSL target. Removing its registration then remains an error. Omitted transport or"ssh"performs automatic lookup before each native interpreter attempt; it does not remember past ownership. - Registered targets use one helper invocation with the configured interpreter
or
python3. Helper refusals never retry another interpreter or use raw SSH. The helper needs its own enrolled context and Python 3.11+; the reporter remains compatible with Python 3.9. Local-only collection needs no helper. - A registered collection has a 180-second observation bound. On timeout, cancellation or pipe I/O failure, signal only its owned helper with TERM and allow ten seconds for cleanup. Stop the fleet pass, retain unresolved custody, and report remaining targets as unattempted. Local reaping does not prove remote exit.
- Start fleet configuration from
references/fleet-policy.example.json; never commit a real private inventory.
- Fleet report:
- Treat the data sources correctly.
- Prefer
goals_1.sqlitefor objective, status, tokens, and Codex-recorded active goal time. - Join
state_5.sqlitefor thread timestamps and rollout paths. - The collector uses JSONL when its SQLite source is unavailable. A successful SQLite report contains current goal rows, not a complete goal history; replaced or cleared goals may be absent. For historical audits, follow the coverage checks in Goal Suite Patterns. Do not describe collector output alone as complete history.
- Wall-clock thread span includes idle and resume gaps; never describe it as active labor.
- Goal database counters are lifetime snapshots. Only cursor deltas have an observation interval, and a reset is unknown rather than zero.
- Preserve root/child identity where the state database supplies it. JSONL fallback reports unknown rather than guessing.
- Prefer
- Report collection coverage first.
- List reached and unreachable machines.
- Give the date range, goal count, statuses, total active goal time, and median goal time.
- Preserve exact transport blockers instead of silently shrinking the fleet.
- Separate machine coverage, retained-history coverage, and outcome evidence.
coverage.completereports machine collection success, not historical completeness. State uninspected sources, parse errors, missing records, and uncertain identity explicitly.
- Mine patterns semantically.
- Exact duplicate text is weak evidence because operators rephrase goals.
- Cluster by intended test surface, matrix, exit criteria, and repeated operating contract.
- Prioritize unfinished goals and recurring high-time campaigns.
- Separate product beta suites from operational queues such as contributor PR sweeps.
- Treat status, tokens, and active time as recorded activity. Verify
effectiveness against the requested outcome and its evidence; a recorded
completestatus is not independent proof of delivery.
- Produce reusable reruns.
- Use
[suite:<name>] [baseline:<sha-or-date>] [matrix:<targets>] [exit:<criteria>]. - Include a fixed matrix, evidence requirements, blocker rules, and definition of done.
- Start from
references/goal-suite-patterns.md, then adapt to current evidence.
- Use
- Keep reports private.
- Default to terminal/JSON delivery. Use
--outputonly when retained output was requested or required. - Scrub secrets, private hosts, personal absolute paths, and credentials before creating a gist or sharing externally.
- Use a secret gist unless the user explicitly requests public visibility.
- Default to terminal/JSON delivery. Use
- For retained output or resumable collection state, apply the task artifact
contract from
$operations-worktree. Reuse identity-matched canonical inventories instead of copying large payloads.
What ships with it
6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 15d ago Changed · +11 lines bab3b842d3ad
- 27d ago Changed a9d93d099a63
- 28d ago Changed · +37 lines 7ff78f903055
- 2mo ago Changed · +1 lines 4651fc80b0be
- 2mo ago Changed · +16 lines 3c22065669ef
- 3mo ago First seen · 61 lines · 94 tokens per session scan A 5d8e2f97618b
codex-goal-mining is a skill published in the GitHub repository vincentkoc/dotskills (111 stars, last pushed today), licensed MIT. It adds 94 tokens to every session and 1,597 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
codex-goal-mining compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| codex-goal-miningvincentkoc/dotskills | Skill | 111 | today | MIT | A | 94 | Codex |
| research-reportShenSeanChen/waku-agent | Skill | 2.3k | today | MIT | A | 0 | Claude Code, Codex |
| systematic-debuggingmoltis-org/moltis | Skill | 3.0k | 1mo ago | MIT | A | 33 | Claude Code, Codex |
| da-anomaly-analysisShenSeanChen/waku-agent | Skill | 2.3k | today | MIT | A | 0 | Claude Code, Codex |
| ideationmoltis-org/moltis | Skill | 3.0k | 1mo ago | MIT | A | 75 | Claude Code, Codex |
| meeting-prepShenSeanChen/waku-agent | Skill | 2.3k | today | MIT | A | 0 | Claude Code, Codex |
| slacrawlmoltis-org/moltis | Skill | 3.0k | 1mo ago | MIT | A | 41 | Claude Code, Codex |