Index of every page on this site: llms.txt
All skills
vincentkoc avatar

/codex-goal-mining

@b0e14f5
by Vincent Kocvincentkoc/dotskills111 stars
9
Run it yourself

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.

Use this Skill: https://skilld.dev/gh/vincentkoc/dotskills/codex-goal-mining

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈119 tokens for metadata: the name and description. ≈1.7k when used: this file. ≈877 more on demand in 3 files.

Description uses 6.0% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈478 characters, or 6.0%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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.

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.

Flow

stateDiagram-v2
    [*] --> Select
    Select --> Local: local only
    Select --> Lookup: remote target
    Lookup --> Helper: registered
    Lookup --> Native: unregistered and automatic mode
    Lookup --> Blocked: unknown or required registration absent
    Lookup --> StopFleet: timeout or cancellation
    Helper --> Report: completed or refused
    Helper --> StopFleet: timeout cancellation or I/O failure
    Native --> Report: completed or terminal refusal
    Native --> Lookup: interpreter failed and retry allowed
    Native --> StopFleet: timeout or cancellation
    Local --> Report
    Blocked --> Report
    StopFleet --> Report: include unattempted targets
    Report --> [*]

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill collects and analyzes Codex goal history locally and across a configured machine fleet via SSH. It utilizes command execution and remote reporting capabilities to gather logs and database records. The skill handles sensitive local application data and includes instructions for scrubbing secrets before sharing reports.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at b0e14f5. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last week
metadata
{
  "source": "https://github.com/vincentkoc/dotskills"
}

README badge

README badge for vincentkoc/dotskills/codex-goal-mining