prompt-miner

Solid

Rank past prompts by session outcome and mine the markers that produce the best sessions. Runs the deterministic mine-traces.mjs engine over Claude + Pi JSONL traces, scores each session by a friction + ground-truth outcome proxy, ranks the initiating prompts, then synthesizes falsifiable prompt markers STRATIFIED by session type and proposes harness memory/identity improvements behind a /retro-style propose-then-confirm gate. A cross-session, data-driven cousin of /retro. TRIGGER when: /prompt-miner invoked, or asked to "mine prompts", "rank prompts by outcome", "what prompt patterns work best", "mine session traces", "find good prompt markers", "analyze prompt quality".

AI & Automation 38 stars 3 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 86/100

Stars 20%
53
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# prompt-miner Mine the harness's own session history to learn which prompt traits produce the best sessions, and feed those learnings back into memory/identity. This skill is the **judgment layer** on top of the deterministic `mine-traces.mjs` engine: the engine collects, scores, and ranks; this skill correlates prompt features against outcome, mines **falsifiable markers**, and proposes durable lessons for approval. It is a cross-session, data-driven cousin of `/retro`. Where `/retro` reflects on the *current* conversation, `/prompt-miner` reflects on the *corpus* of past sessions across both harnesses. > `disable-model-invocation: true` suppresses **auto**-invocation only — the model > will not fire this skill on its own. A user-typed `/prompt-miner` still runs the > full body below, including the Step-3 LLM marker synthesis. There is no conflict: > the deterministic engine produces an objective dataset; the LLM step interprets > it. ## Privacy contract This skill reads real session transcripts, which can contain secrets and private content. The contract is non-negotiable: - **Default output is feature vectors + metadata only — never raw prompt text.** The engine omits `promptText` unless `--include-prompt-text` is passed. - `--include-prompt-text` applies a redaction pass (line-level token patterns + block-level key bodies) and prints a `WARNING` banner. Use it only when you must read the prompt wording, and never commit the result. - All artifacts land in the...

Details

Author
mifunedev
Repository
mifunedev/openharness
Created
5 months ago
Last Updated
today
Language
TypeScript
License
Apache-2.0

Similar Skills

Semantically similar based on skill content — not just same category