codex-goal-mining

codex-goal-mining is a skill for Codex from vincentkoc/dotskills. It costs 94 tokens per session (1,597 once invoked), scanned A, original, MIT.

A local data-analysis workflow for Codex /goal history. It measures recorded work time, resumed conversation spans, statuses, and repeated runs, including data from more than one configured machine.

In plain words
What is it for?
Use it to report local or fleet-wide goals, rank active or blocked work, compare time and token usage, and create copy-paste suites for repeated campaigns.
Why use it?
It turns scattered goal records into evidence about unfinished or recurring work and repeatable test or execution suites.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: reads ~/.codex paths; mentions Codex; $skill-name invocation.

Good fit Use it to report local or fleet-wide goals, rank active or blocked work, compare time and token usage, and create copy-paste suites for repeated campaigns.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vincentkoc/dotskills/codex-goal-mining
Install

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.

Any agent
npx skills add vincentkoc/dotskills --skill codex-goal-mining
Clone the repo
git clone --depth 1 https://github.com/vincentkoc/dotskills

Made for: Codex.

Its marketplace also offers this one on its own, as the plugin codex-goal-mining — /plugin install codex-goal-mining after adding the marketplace above.

Wrote 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.

agentmods badge for codex-goal-mining

README.md
[![agentmods](https://agentmods.dev/badge/skills/vincentkoc/dotskills/codex-goal-mining/github.svg)](https://agentmods.dev/skills/vincentkoc/dotskills/codex-goal-mining)
Your own site
<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.

agentmods 80×15 button for codex-goal-mining

Your own site · 80×15
<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>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,597 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 15d ago against content hash bab3b842d3ad, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/codex-goal-report-test.py, scripts/codex-goal-report.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/codex-goal-mining/SKILL.md · 126 lines

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 /goal commands 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

  1. 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 --since semantics 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-attempt for a single configured/first interpreter attempt per host. Policy entries may declare python and wsl_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, and wsl_transport separately 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.
  2. Treat the data sources correctly.
    • Prefer goals_1.sqlite for objective, status, tokens, and Codex-recorded active goal time.
    • Join state_5.sqlite for 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.
  3. 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.complete reports machine collection success, not historical completeness. State uninspected sources, parse errors, missing records, and uncertain identity explicitly.
  4. 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 complete status is not independent proof of delivery.
  5. 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.
  6. Keep reports private.
    • Default to terminal/JSON delivery. Use --output only 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.
  7. 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.

Read the full file on GitHub · 126 lines

Files

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.

Changes

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.

  1. 15d ago Changed · +11 lines bab3b842d3ad
  2. 27d ago Changed a9d93d099a63
  3. 28d ago Changed · +37 lines 7ff78f903055
  4. 2mo ago Changed · +1 lines 4651fc80b0be
  5. 2mo ago Changed · +16 lines 3c22065669ef
  6. 3mo ago First seen · 61 lines · 94 tokens per session scan A 5d8e2f97618b

Subscribe to this mod's changes

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.

Related

codex-goal-mining compared with skills from other repositories

codex-goal-mining next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codex-goal-miningvincentkoc/dotskillsSkill111todayMITA94Codex
research-reportShenSeanChen/waku-agentSkill2.3ktodayMITA0Claude Code, Codex
systematic-debuggingmoltis-org/moltisSkill3.0k1mo agoMITA33Claude Code, Codex
da-anomaly-analysisShenSeanChen/waku-agentSkill2.3ktodayMITA0Claude Code, Codex
ideationmoltis-org/moltisSkill3.0k1mo agoMITA75Claude Code, Codex
meeting-prepShenSeanChen/waku-agentSkill2.3ktodayMITA0Claude Code, Codex
slacrawlmoltis-org/moltisSkill3.0k1mo agoMITA41Claude Code, Codex