agentleFS
nb-99nb-99/skillektion/skills/skill-miner/SKILL.md

skill-miner

Skill1 starsChanged 3 months agoMITView on GitHub

Mine selected past agent sessions for repeated corrections, preferences, and workflows, then draft reusable skills. Use ONLY when the user explicitly asks to learn from chat history or turn past observations into agent guidance.

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 13 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 13

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read transcript-sources.md before collecting history from a client.

    line 9
  2. Distinctive:

    Ask the user to choose:

    line 14
  3. Distinctive:

    Read only the sessions the user confirms.

    line 23
  4. Distinctive:

    Default to user messages and final assistant responses.

    line 25
  5. Distinctive:

    Use the supported export method for the chosen client.

    line 33
  6. Distinctive:

    Keep temporary exports outside the repository.

    line 37
  7. Distinctive:

    Look for concrete repeated signals:

    line 58
  8. Distinctive:

    Create a skill only when the behavior has a distinct trigger and a reusable process or body of reference.

    line 101
  9. Distinctive:

    no artifact when normal agent behavior already covers the observation.

    line 109
  10. Distinctive:

    Prefer improving an existing skill over creating an overlapping one.

    line 111
  11. Very specific:

    Use the writing-for-agents skill when available.

    line 115
  12. Distinctive:

    use a specific trigger-oriented description.

    line 121
  13. Distinctive:

    avoid client-specific tools unless compatibility is explicit.

    line 124
  14. Distinctive:

    Write the reviewed draft to the approved path only after the user approves its content and target.

    line 132
  15. Very specific:

    Use only sessions newer than the skill's last meaningful update.

    line 142

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill Miner

Read transcript-sources.md before collecting history from a client.

1. Define The Scope

Ask the user to choose:

  • the client or exported transcript directory;
  • the project or workspace;
  • a date range or explicit sessions;
  • whether to create a new skill or improve an existing one;
  • where drafts may be written.

Show the exact sessions or files to be read before reading transcript content. Read only the sessions the user confirms.

Default to user messages and final assistant responses. Include other records only when the user explicitly selects them.

This step is complete when the user has confirmed all five scope choices and the exact sessions or files.

2. Collect Safely

Use the supported export method for the chosen client. Record the client, client version, workspace, export method, and session identifiers in temporary analysis notes.

Keep temporary exports outside the repository. Remove only temporary exports created by this workflow; leave user-provided exports untouched. Use read-only session operations and keep all transcript data local.

Sanitization is best-effort. Ask the user to exclude or redact sessions likely to contain credentials, customer data, private keys, or unrelated private conversations before analysis. If sensitive material still appears, stop that session's analysis, write no notes from it, and ask whether to exclude it.

Analysis notes carry paraphrases only, without secret-shaped values, absolute home paths, credentials, personal identifiers, or transcript quotations.

3. Extract Signals

Split the selected history into at least three sessions or time slices when enough history exists. Analyze slices independently, using parallel read-only workers when available.

Each worker must receive the same session boundary and privacy rules, and must return paraphrased signals rather than quotations or raw transcript content.

Look for concrete repeated signals:

  • corrections the user repeatedly makes;
  • preferred response length, structure, tone, and terminology;
  • recurring verification and evidence requirements;
  • stable Git, review, delegation, or tool workflows;
  • tasks that repeatedly need the same sequence or reference material;
  • mistakes that a focused checklist could prevent.

For each signal, record only a short paraphrase, affected sessions, confidence, and conflicts. Do not retain transcript quotations in the proposed skill.

This step is complete when every selected slice has been analyzed and its signals recorded. With fewer than three sessions, treat every signal as at most probable.

4. Corroborate

Classify a signal as:

  • strong: appears independently in at least three sessions or time slices;
  • probable: appears twice without contradictory evidence;
  • weak: appears once, is ambiguous, or reflects one unusual task;
  • conflicted: later behavior or explicit instructions contradict it.

Draft from strong signals. Discuss probable signals with the user. Exclude weak and conflicted signals unless the user explicitly confirms them as a durable preference.

The user's current explicit preference outranks historical inference.

This step is complete when every signal has a confidence tier and conflicts have been identified.

5. Confirm Intent

Present strong and probable signals as concise paraphrases. Ask one or two structured questions about which patterns reflect durable preferences, then ask one open question about useful behavior that may not appear in the selected history. Discard rejected signals. Treat confirmed preferences as strong.

6. Choose The Artifact

Create a skill only when the behavior has a distinct trigger and a reusable process or body of reference. Otherwise propose the narrower home:

  • a repository instruction for repository-specific rules;
  • a global rule for behavior that must apply to every task;
  • documentation for human knowledge;
  • a lint, test, script, or configuration rule for mechanically enforceable behavior;
  • no artifact when normal agent behavior already covers the observation.

Prefer improving an existing skill over creating an overlapping one.

7. Draft And Review

Use the writing-for-agents skill when available; otherwise follow the Agent Skills format directly. Ask before using unslop, when available, as a final prose pass because it applies an opinionated house style.

The draft must:

  • use a specific trigger-oriented description;
  • encode only corroborated or user-confirmed behavior;
  • state observable completion criteria;
  • avoid client-specific tools unless compatibility is explicit;
  • contain paraphrased, corroborated behavior without transcript excerpts, session identifiers, private paths, credentials, or inferred personal facts;
  • credit any third-party material it adapts.

Present each proposed rule with its confidence and a paraphrased evidence summary outside the skill. Ask the user to accept, revise, or reject it.

Write the reviewed draft to the approved path only after the user approves its content and target. Installation, commits, pushes, publishing, and pull requests each require separate confirmation.

The workflow is complete when the user has accepted or rejected every proposed rule, approved drafts have been written to their chosen locations, and all temporary exports created by this workflow have been removed.

Updating An Existing Skill

Use only sessions newer than the skill's last meaningful update. For a tracked skill, obtain that cutoff with git log -1 --format=%cI -- <path>; otherwise ask the user for it. Preserve rules that the new evidence neither contradicts nor supersedes. Show additions, changes, and removals separately before editing.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.