agentleFS
ahilarionahilarion/oh-my-forge/skills/learner/SKILL.md

learner

Skill2 starsChanged 8 months agoMITView on GitHub

Extract reusable patterns from sessions

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. tranhieutt/software_development_department★ 72same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository12 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Create a skill file in .forge/skills/ or ~/.forge/skills/:

    line 39
  2. Distinctive:

    When matched, the pattern is auto-injected into context.

    line 73

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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
<Purpose> Learner extracts reusable patterns from successful debugging or implementation sessions. It creates portable skill files that auto-inject when relevant context is detected. </Purpose>

<Use_When>

  • User says "learner", "extract pattern", "remember this solution"
  • You solved a tricky bug that might recur
  • You discovered an elegant solution to a common problem
  • User wants to build reusable knowledge </Use_When>

<Do_Not_Use_When>

  • The pattern is too specific to be reusable
  • The solution might have unintended side effects if blindly reused
  • Quick fixes that don't teach anything lasting </Do_Not_Use_When>

<Pattern_Quality_Gates> A good pattern to extract:

  • Solves a specific, recurring problem
  • Is generalizable without losing effectiveness
  • Has clear trigger conditions
  • Includes the solution and explanation

A BAD pattern to extract:

  • Context-specific workarounds
  • Hacks that mask symptoms rather than fix root causes
  • Solutions tied to specific project state </Pattern_Quality_Gates>
<Output> Create a skill file in `.forge/skills/` or `~/.forge/skills/`:
---
name: <pattern-name>
description: <one-line description>
triggers: ["keyword1", "keyword2", "keyword3"]
source: extracted
---

## Problem
[What this pattern solves]

## Solution
[How to solve it]

## Example
[Concrete example from the session]
</Output>

<Storage_Locations>

ScopePathUse For
Project.forge/skills/Project-specific patterns
Global~/.forge/skills/Universal patterns
</Storage_Locations>

<Auto_Ingestion> Patterns are matched against:

  • User prompts
  • Error messages
  • File content being read

When matched, the pattern is auto-injected into context. </Auto_Ingestion>

<Examples> <Good> User: "learner: extract the fix for aiohttp proxy crashes" Why good: Specific problem (proxy crash), reusable solution </Good><Good> Learner: "Extracted: fix-react-useeffect-cleanup - handles async cleanup in useEffect" Why good: Common React pitfall, generalizable pattern </Good><Bad> User: "learner: extract the specific workaround for this weird config" Why bad: Too context-specific to be reusable </Bad> </Examples>

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.