agentleFS
shyamsridhar123shyamsridhar123/kevin-copilot/.github/skills/learn/SKILL.md

learn

Skill7 starsChanged 3 months agoMITView on GitHub

Extract reusable patterns from recent work into instincts. Run after completing features, fixing bugs, or at session end to capture what the project learned.

195 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use add-anydoc, add-clidash and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • TomGranotSkill

    add-anydoc

    Add local office-document-to-Markdown conversion to NanoClaw agent containers with the pinned Firecrawl AnyDoc CLI. Use when agents need to read attached Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV, or text-based PDF files without uploading them to a hosted parser.

    Also in 5 projects that use this

  • TomGranotSkill

    add-clidash

    Add clidash — a zero-dependency, read-only web dashboard that derives its tabs and tables at runtime from any CLI that lists resources as JSON. Ships pre-wired for NanoClaw's ncl CLI (agent groups, sessions, channels, users, roles), plus message-activity charts, a log tail, and a read-only file viewer for group skills/CLAUDE.md/profiles.

    Also in 5 projects that use this

  • seek888Skill

    open-gstack-browser

    Launch GStack Browser — AI-controlled Chromium with the sidebar extension baked in. Opens a visible browser window where you can watch every action in real time. The sidebar shows a live activity feed and chat. Anti-bot stealth built in. Use when asked to "open gstack browser", "launch browser", "connect chrome", "open chrome", "real browser", "launch chrome", "side panel", or "control my browser". Voice triggers (speech-to-text aliases): "show me the browser".

    Also in 11 projects that use this

  • Saqlain-811Skill

    ios-sync

    Regenerate the iOS debug bridge against the latest upstream gstack templates. (gstack)

    Also in 6 projects that use this

  • MicrosoftSkill

    add-codex

    Use Codex (CLI + AppServer) as the full agent provider — planning, tool orchestration, native compaction, MCP tools, session resume — in place of the Claude Agent SDK. ChatGPT subscription or OPENAI_API_KEY. Per-group via agent_provider. Distinct from using OpenAI as an MCP tool (where Claude remains the planner).

    Also in 6 projects that use this

  • MicrosoftSkill

    add-deltachat

    Add DeltaChat channel integration via @deltachat/stdio-rpc-server. Native adapter — no Chat SDK bridge. Email-based messaging with end-to-end encryption.

    Also in 6 projects that use this

  • +5 more from TomGranot
  • +1 more from microsoft

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 6 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 170 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After completing a feature or fixing a bug

    line 12
  2. Distinctive:

    When you want to capture a pattern you noticed

    line 14
  3. Distinctive:

    Run these in parallel to collect data:

    line 21
  4. Distinctive:

    Look for recurring patterns across the evidence:

    line 31
  5. Distinctive:

    Test-first vs test-after behavior

    line 40
  6. Distinctive:

    No observations for 30 days: -0.1

    line 82
  7. Very specific:

    Ensure .atv/instincts/ directory exists

    line 95
  8. Very specific:

    Run /instincts to see all learned patterns

    line 122
  9. Very specific:

    Run /evolve when instincts reach high confidence to generate full skills

    line 123

“Common” is measured: kept by at least 6 in 10 of the 170 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

/learn — Extract Patterns into Instincts

Analyze recent work (observations, git history, solutions) and extract reusable "instincts" — small learned behaviors with confidence scoring.

When to Use

  • After completing a feature or fixing a bug
  • At the end of a coding session
  • When you want to capture a pattern you noticed
  • Periodically to keep the project's knowledge current

Execution Flow

Step 1: Gather Evidence

Run these in parallel to collect data:

  1. Git history — git log --oneline -20 for recent commits
  2. Recent diffs — git diff HEAD~5..HEAD --stat for what changed
  3. Observations — Read .atv/observations.jsonl for tool use patterns from hooks
  4. Existing instincts — Read .atv/instincts/project.yaml (create if missing)
  5. Solutions — Read docs/solutions/ for documented patterns

Step 2: Analyze Patterns

Look for recurring patterns across the evidence:

Code style patterns:

  • Error handling conventions (wrapping, custom types, sentinel errors)
  • Naming conventions (variable, function, file naming)
  • Import organization preferences
  • Comment style and documentation patterns

Workflow patterns:

  • Test-first vs test-after behavior
  • Commit granularity preferences
  • Branch naming conventions
  • Review practices

Architecture patterns:

  • Package/module organization
  • Dependency injection style
  • Interface usage patterns
  • Configuration management approach

Tool usage patterns (from observations.jsonl):

  • Frequently used shell commands
  • Common file editing sequences
  • Preferred build/test commands

Step 3: Create or Update Instincts

For each new pattern discovered, create an instinct entry. For patterns that match existing instincts, increase confidence and observation count.

Instinct format (YAML in .atv/instincts/project.yaml):

instincts:
  - id: kebab-case-unique-id
    trigger: "when [specific situation]"
    behavior: "do [specific action]"
    confidence: 0.5
    domain: code-style|testing|architecture|error-handling|workflow|tooling
    observations: 1
    first_seen: YYYY-MM-DD
    last_seen: YYYY-MM-DD
    evidence:
      - "commit abc123: wrapped all errors with fmt.Errorf"
      - "observed 3 times in observations.jsonl"

Confidence rules:

  • New instinct starts at 0.5
  • Each additional observation: +0.1 (capped at 0.95)
  • Contradictory evidence: -0.15
  • No observations for 30 days: -0.1
  • Minimum: 0.1 (below this, remove the instinct)

Important constraints:

  • Maximum 50 active instincts per project
  • Each instinct must be atomic — one trigger, one behavior
  • Triggers must be specific (not "when writing code")
  • Behaviors must be actionable (not "write good code")
  • Evidence must cite specific commits or observations

Step 4: Write Results

  1. Write updated .atv/instincts/project.yaml
  2. Ensure .atv/instincts/ directory exists

Step 5: Report

Show a summary:

Learning complete!

New instincts:
  + always-wrap-errors (0.5) — wrap errors with fmt.Errorf using %w
  + table-driven-tests (0.5) — use table-driven test pattern for Go tests

Updated instincts:
  ↑ prefer-early-returns (0.6 → 0.7) — 1 new observation
  ↑ run-tests-before-commit (0.7 → 0.8) — 2 new observations

Ready to evolve (confidence > 0.8):
  ★ run-tests-before-commit — consider /evolve to generate a skill

Total: X instincts (Y new, Z updated)
Instinct file: .atv/instincts/project.yaml

Notes

  • Instincts are project-scoped and committed to the repo — the whole team benefits
  • Run /instincts to see all learned patterns
  • Run /evolve when instincts reach high confidence to generate full skills
  • The observer hooks in .github/hooks/copilot-hooks.json automatically capture tool use data

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.