Codex Goal Mining logo

Codex Goal Mining

Community
vincentkoc
codex-goal-mining

Mine structured Codex /goal history locally or across a configured machine fleet, measure active goal time and resumed thread spans, identify unfinished and recurring semantic runs, and turn them into stable copy-paste rerun suites. Use when the user asks to inspect goal history, summarize goal commands, find repeated goals, recover large beta campaigns, compare goal duration or token usage, or prepare reusable /goal prompts and privacy-scrubbed reports.

Overview

Publishervincentkoc
Repositorydotskills
Skill namecodex-goal-mining
Stars
112
Forks
9
Bundled files
6
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 6 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by vincentkoc on GitHub. Read the source before you install it.

Installation

Install the Codex Goal Mining AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/vincentkoc/dotskills/tree/main/skills/codex-goal-mining
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/vincentkoc/dotskills.git /tmp/dotskills
mkdir -p .claude/skills
cp -r /tmp/dotskills/skills/codex-goal-mining .claude/skills/codex-goal-mining
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Codex Goal Mining in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Codex Goal Mining on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Codex Goal Mining is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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 --output ~/.codex/reports/codex-fleet-goals.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.
    • 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.
    • Use JSONL only as a fallback for older installations.
    • 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.
  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.
  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.

Inputs

  • Local Codex stores under ~/.codex/.
  • Optional fleet policy supplied with --policy or CODEX_FLEET_POLICY.
  • Optional date window, machine aliases, suite focus, or output path.

Outputs

  • Markdown or JSON fleet goal report.
  • Ranked active, paused, blocked, and long-running goals.
  • Semantic campaign summary with timing and reachability caveats.
  • Stable copy-paste /goal suite prompts and rerun priority order.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Codex Goal Mining AI skill do?

Mine structured Codex /goal history locally or across a configured machine fleet, measure active goal time and resumed thread spans, identify unfinished and recurring semantic runs, and turn them into stable copy-paste rerun suites. Use when the user asks to inspect goal history, summarize goal commands, find repeated goals, recover large beta campaigns, compare goal duration or token usage, or prepare reusable /goal prompts and privacy-scrubbed reports.

Why use Codex Goal Mining on TypingMind?

Because you install it once and use it with any model. Codex Goal Mining is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Codex Goal Mining in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/vincentkoc/dotskills/tree/main/skills/codex-goal-mining. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Codex Goal Mining?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Codex Goal Mining?

As many as you like. As long as a model supports skills, you can use Codex Goal Mining with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Codex Goal Mining AI skill free?

Yes. It is published on GitHub by vincentkoc under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇