agentleFS
ntholm86ntholm86/agent-cognition-skills/learn/SKILL.md

learn

Skill4 starsChanged 20 days agoMITView on GitHub

Automatic learning service. Improve or Goal schedules it when accumulated evidence makes the current learning stale; it reads the trail as a single document, forms arc-level claims, and refreshes learning.md without changing the target. Manual invocation remains available for diagnostics or an explicit "how are we doing?" request.

193 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 14 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
  • +2 more from microsoft

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. 0 are common, 10 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 168 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    If no goal.md exists at any scope, proceed — but note the absence.

    line 43
  2. Distinctive:

    Read the trail as a single document about the target — not as a list of past runs.

    line 70
  3. Distinctive:

    What is the target becoming?: Not what it was at run 1 — what trajectory does the arc suggest?

    line 78
  4. Distinctive:

    If invoked explicitly to audit the trail (Mitigation #4), use this lens:

    line 83
  5. Distinctive:

    Diff vs. Claim: Do the actual file diffs support the grand claims made in the log entries?

    line 86
  6. Distinctive:

    Write what the arc reveals as falsifiable claims.

    line 90
  7. Distinctive:

    Avoid: "The target seems to be in good shape." That is an observation without content, not a claim.

    line 98
  8. Distinctive:

    If the operator could see the arc as a whole, would they say "yes, that is the right focus"?

    line 120
  9. Distinctive:

    Run this step when: the loop is about to declare convergence, the finding pattern looks suspiciously tidy, or the operator explicitly asked …

    line 122
  10. Very specific:

    Look for [!REALIZATION] markers across the arc that describe operational failures, successful rules of engagement, or architectural …

    line 132
  11. Very specific:

    Only Learn, or Work in its own runs, refreshes learning.md.

    line 169
  12. Distinctive:

    If the Learn run cannot name the bar, the silence claim is not yet ready to be made.

    line 181
  13. Very specific:

    If Record is not installed: record a single entry where step 0's ACM §4 paragraph resolves (a new records/ record in a bound scope, …

    line 189
  14. Distinctive:

    It does not score the trail: No number, no rubric, no grade.

    line 202

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

Read the whole arc. See what no single iteration can.

ACM role: Synthesizes the trail into learning.md — the arc-level learning the next run starts from.

The Improve loop is optimised for one iteration at a time. Learn is optimised for reading all of them at once. Where Improve asks "what should change next?", Learn asks "what has been changing, where is the weight of this target actually sitting, and is the loop looking at the right thing?"

Lineage: Learn is the "Orient" step of Boyd's OODA loop (Observe-Orient-Decide-Act), under its former name Orient — Boyd's own insight was that orientation, not decision, is the phase that shapes everything downstream and the one most commonly neglected. Cited explicitly in this suite's v1 ancestor but dropped when v2's skills merged into v3; restored here since it is this skill's own namesake.

Older memories use the former names. Before 2026-11-22 the skill was Orient and its file was orientation.md (now learning.md); the machine-made files were learning.md, learning-archive.md and history.md (now generated/trail-markers.md, generated/trail-markers-archive.md and record.py index). Trails are append-only and keep the old names; when an entry says Orient or orientation.md, read it as Learn and learning.md.

Improve schedules Learn with evidence that the current learning no longer explains the governing Goal and material trail. A material Goal change is such evidence. Learn accepts that arc-question; it does not maintain a second trigger taxonomy. Manual /learn remains available as a diagnostic override or when the operator explicitly asks "how are we doing?"

Automatic-service contract: Learn observes and refreshes derived learning. It never changes the target, chooses work on the operator's behalf, or revises goal.md. Improve or Goal schedules when the arc is read; that scheduling does not change Learn's authority.

Governing principles

This skill enacts two principles:

  1. Observable Autonomy — the trail exists so that arc-claims can be made and checked. Learn is the mechanism that reads the trail as evidence rather than as a log.
  2. Convergence Is Silence — convergence is only meaningful if the arc was read honestly before it was declared. Learn is that check.

Full statement of the principles: PRINCIPLES.md — read it if available, but this skill operates fully without it.

The work

Apply Intent automatically before beginning. For an automatically scheduled run, Intent aligns the trigger and scope inherited from Goal or Improve; for a manual diagnostic run, it aligns the operator's arc-question. The operator should never have to invoke Intent separately. If this is a standalone Learn installation and Intent is unavailable, narrate the trigger and scope before continuing.

0. Read the goal first (all scopes)

Before forming any scope statement, read the governing goals that exist. They are the operator-held goal — what the target is for and what constraints hold across all runs. Reading it first ensures the arc is read against what the operator actually cares about, not retrofitted afterward.

ACM §4 Memory Repository and Scopes. Resolve the active scope and read the governing chain as Record defines it — memory-wide, then repository, then path, then task goal, broadest first; the higher scope wins; nothing above .acm-root and no walking up the code tree. File names such as goal.md mean that file in the active scope. Unbound, ambiguous or unavailable memory is reported as such, and no guessed memory is read or written; the in-repo .acm/ of an unbound repository is legacy memory. Without Record installed, the essentials are: memory is a separate repository listed in ~/.acm/memories and bound by the work repository's root commit, and no .acm/ is ever created in the work repository. Arc-claims made without the higher mandates may miss constraints that span repositories.

If no goal.md exists at any scope, proceed — but note the absence. A Learn run on a target without a goal is reading the arc without a goal to measure the learning against.

Task scopes. When the run's active scope is a task scope (defined in record/SKILL.md), every memory file named in the steps below means that file in that scope: its trail is the arc, its learning.md is the one written. The repo scope's goal and learning are read first as parent context and win on conflict; Learn never rewrites a parent scope's learning from a task arc.

Bounded goal reads. If a goal contains the exact comments <!-- current-goal: complete --> and <!-- goal-history --> in that order, the content between them is the operator-confirmed complete current mandate. Read that bounded section for routine learning. Read the full file when Learning must explain a goal change, resolve ambiguity or conflicting evidence, or establish historical provenance. If either comment is absent, malformed, or out of order, read the full file. Never infer a boundary from headings, dates, horizontal rules, or file position.

1. Identify the scope

State what you are about to read and what question you are trying to answer before reading anything. Examples:

  • "Read the last 10 entries and determine whether the recent finding pattern is meaningful or coincidental."
  • "Read the full trail before declaring silence — is the silence well-earned or is the loop stuck in a comfortable corner?"
  • "Read the arc and assess whether the loop has been looking at the parts of the target that carry real weight."

A scope statement prevents the arc-read from being undirected. It also makes the result falsifiable: a future reader can check whether the question was answered.

1b. Freshness guard (derived artifacts)

The trail (a legacy .acm/audit-trail.md, then records/) is the source of truth. generated/trail-markers.md and its archive are optional derived surfaces (see Record); an arc-claim formed from a stale derived surface is a claim about a trail that no longer exists.

  • If the target uses derived artifacts, regenerate them from the current trail before reading them. The helper lives in the skills clone, never in the target repo: python <skills-repo>/harness/tools/record.py markers --write, run from the target repository's directory so the scope resolves. Confirm the derived file is no older than the trail. If regeneration is not possible, read the trail directly and say so in the run notes; do not form arc-claims from the stale derived files.
  • If the target has no derived artifacts, there is nothing to refresh. Read the trail directly and proceed.

Record in the run notes which case applied and what evidence established it (commands run, or the absence of derived files).

2. Read the arc

Read the trail as a single document about the target — not as a list of past runs. Look for:

  • What has changed, and in what order? The sequence often reveals a target's actual architecture more clearly than any single snapshot.
  • Outcome anchoring: For every claim and prediction made in the trail across the arc, did it actually hold up over subsequent runs? If multiple entries confidently claim improvements (e.g., "reduced complexity") but reality contradicts it, the trail is confabulating per-iteration.
  • Reversal density: Identify the ratio of smooth "successes" to reversals and failed predictions. A long unbroken sequence with no [!REVERSAL], [!REALIZATION], or mismatched predictions strongly suggests post-hoc rationalization rather than flawless execution.
  • Where has attention been concentrated? Name the specific areas of the target that received the most runs, the most finding-types, the most reversals.
  • What has been consistently avoided? Corners the loop never examined are as informative as corners it examined repeatedly.
  • Which [!REALIZATION] markers aged well, and which were later contradicted? Realizations that got overturned without a matching [!REVERSAL] signal the loop was converging on a wrong model.
  • What is the target becoming? Not what it was at run 1 — what trajectory does the arc suggest?
  • Candidate next moves: What did prior runs suggest as the next most valuable work? Are those suggestions being followed, ignored, or superseded? This is a direct signal of how the operator-gate is steering the work.

2b. Adversarial Audit Mode

If invoked explicitly to audit the trail (Mitigation #4), use this lens:

  • Hunt for rationalizations: Where does the stated outcome conveniently ignore part of the prediction?
  • Test the failures: Is the trail completely green (no reversals)? A trail with no [!REVERSAL] or [!REALIZATION] markers is mathematically unlikely in complex work and strongly indicates post-hoc LLM confabulation.
  • Diff vs. Claim: Do the actual file diffs support the grand claims made in the log entries?

3. Form arc-claims

Write what the arc reveals as falsifiable claims. The shape is always a statement a future run could disagree with by finding contrary evidence.

Examples of the right shape:

  • "This target has converged on documentation consistency but has not been examined for behavioural correctness — every finding to date has been a text fix."
  • "The loop has examined the external interface exhaustively but has not touched the internal state model. The next finding, if one exists, lives there."
  • "The trail shows three reversals in the same area. The loop has not yet found a stable model of that area."

Avoid: "The target seems to be in good shape." That is an observation without content, not a claim.

3b. Ask whether a recurring arc-claim is a single-loop symptom or a double-loop signal

When step 3 produces a claim describing a recurring pattern — the same finding-class across multiple entries, the same kind of correction applied repeatedly, the same corner returned to again and again — ask explicitly whether the recurrence is a single-loop symptom or a double-loop signal. Single-loop correction fixes the action within existing governing variables (a goal, constraint, or quality-bar choice in goal.md, or an unstated assumption the arc has been carrying) while leaving those variables themselves unexamined. If the same finding-class keeps recurring despite repeated correction, the recurrence itself is evidence that the governing variable — not the action — is the actual defect.

This question can resolve to "no." A recurring pattern is not automatically a governing-variable defect — some recurrences are the arc correctly behaving as designed (candidates sitting unpicked across entries while the operator directs attention elsewhere is an explicitly valid pattern, not a defect). Answer honestly in both directions; the question exists to be asked, not to manufacture an escalation.

When it resolves to "yes": name the specific governing variable implicated, write it as a candidate goal-revision — not another arc-claim about the target's surface — and record it as such. Whether to act on it is the operator's decision via Goal; Learn's job is to make the governing-variable question visible, not to resolve it unilaterally.

Why this belongs in Learn, and not only in Improve's step 6b: step 6b fires from inside a single iteration, when that iteration happens to notice a recurring pattern. Learn reads the whole arc at once and is positioned to catch governing-variable-level recurrences that no individual iteration had enough surface area to see — exactly the kind of finding an arc-level read exists for. (Argyris, Organizational Learning, 1977 — single-loop learning corrects action within existing governing variables; double-loop learning questions and revises the governing variables themselves.)

4. Evaluate loop effectiveness (Argyris & Schon's deutero-learning: is the way this loop learns itself sound?)

When the arc-read surfaces questions about whether the loop is achieving what it is for, answer them. The loop's effectiveness is part of the target's story — examining it is a lens, not navel-gazing. Where step 3b asks whether the target's governing variables are wrong (double-loop), this step asks the next-order question: is the mechanism by which this loop itself learns, reflects, and detects errors well designed — or is the reflection process itself what needs revision? (Argyris & Schon, Organizational Learning II, 1978 — deutero-learning: learning about the learning system itself, distinct from correcting either the action or the governing variable.)

Ask:

  • Has the loop been finding genuine findings, or finding excuses to act?
  • Is the silence earned, or is the loop stuck looking at easy surfaces?
  • Which quality bars has the loop actually tested, and which has it never been challenged on? A Learn run can only test the bars it knows about. Internal text-layer consistency, comparative defensibility under hostile external review, comparator coverage, empirical replication, and operational deployability are distinct bars; passing one says nothing about the others. Name the bar this learn run's silence claim applies to.
  • What kind of finding would this loop structurally miss? Name it concretely.
  • If the operator could see the arc as a whole, would they say "yes, that is the right focus"?

Run this step when: the loop is about to declare convergence, the finding pattern looks suspiciously tidy, or the operator explicitly asked how the loop is performing.

If this step surfaces a structural blind spot in how the loop itself learns — a lens it never applies, a trigger that never fires, a trail format that hides the evidence it should show — that is not a target-level finding to file away among this run's arc-claims. Name the specific mechanism implicated (a lens, a trigger, a check, the trail format itself), state it as a candidate revision to the loop's own design, and route it to the operator via Goal — the same way step 3b routes governing-variable findings. A blind spot in how the loop learns is at least as load-bearing as a blind spot in the target itself: it silently caps every future run's ability to find anything the current mechanism cannot see.

Acting on the candidate is itself a subsequent Improve iteration targeting the implicated mechanism — no separate incremental-vs-radical logic is needed here, because that iteration's own Purpose lens and Kaikaku question (step 3) already make that decision generically, for any target. If the outcome is a redesign of how the loop reasons, its validation is Convergence Is Silence, not the agent's own judgment that it improved.

4b. Extract operational rules (Learning)

The arc is the mechanism by which the agent learns how to work within the specific target environment. Without explicitly harvesting structural lessons, the agent will repeat the same mistakes in fresh sessions.

  • Look for [!REALIZATION] markers across the arc that describe operational failures, successful rules of engagement, or architectural landmines specific to this target (e.g., "Never trust the build script to clean up," "This repo forbids adding third-party dependencies").
  • Synthesize these historical realizations into concrete rules for future agents, each naming the records it rests on. Do not just summarize what happened; state what should be done differently next time. The rules are advice from the agent, never authority: they cannot outrank a mandate.

5. Write the learning.md

Write only to a bound scope or legacy memory; when memory is unbound, give the learning to the operator instead.

Write the arc-claims from step 3 (and any loop-effectiveness findings from step 4) to learning.md. This file is learning.md — what this scope has learned so far: where the loop's attention has been, what the arc currently shows is true of the target, and what the next runs should test.

learning.md should make sense in light of the goal (read at step 0) — arc-claims may reference whether the loop has been pursuing what the goal says matters — but must not duplicate goal content. Never write to goal.md from a Learn run.

learning.md is a derived view, not source: the full reasoning history lives in the trail; the goal is where the target is going; the learning.md is the current distillation of where the target is along the way. When Learn runs, it changes the file by small sourced items: it adds a claim, revises one, or retires one that is superseded or no longer true (the history stays in the trail), and it leaves unchanged whatever the arc still shows. It does not rewrite the whole file when the arc has not changed its meaning, because a rewrite loses detail and makes the file grow or shrink for no reason. Each claim and rule carries its date and the record ids it rests on.

The file shape is simple:

# learning.md — <target name>

_Derived view of the trail at <last record id of this scope>; written by the agent; last updated: YYYY-MM-DD (run: <slug>)_

## Current claims

<Arc-claims from step 3, each as a falsifiable statement, with its date and the record ids it rests on.>

## What the next runs should test

<Specific arc-derived suggestions for what would most advance the target now. This section should synthesize the `Candidate Next Moves` from recent trail entries.>

## Active operational rules

<Target-specific rules of engagement, each with its source records, extracted from step 4b (e.g., "Do not bypass the prediction block", "Always use replace encoding when reading audit-trail.md"). These carry the 'Learning' forward across sessions.>

## Loop-effectiveness notes

<From step 4, if triggered. Omit section if step 4 was not run.>

Only Learn, or Work in its own runs, refreshes learning.md; label it with the trail revision it was derived from (the _Derived view_ line of the shape above) and commit it as Record's commit routine describes. Never commit changes to goal.md from a Learn run.

5a. Bound every silence claim

Any claim in learning.md that the target has reached silence, convergence, or readiness must name which quality bar the silence applies to and which surfaces are in scope. Unbounded silence claims ("the target is in good shape", "text-layer silence is now earned") are the form most likely to be overturned by the next operator-initiated probe, because a bar the learn has never tested cannot be inside the silence claim.

The pattern: "Silence on <named bar> for <named surfaces>. Bars not tested by this Learn run: <list>." Such a claim is Learn's own reading of the arc, never convergence: convergence comes only from independent evaluators (Principle 3).

Examples:

  • "Silence on internal text-layer consistency for all non-operator-locked surfaces. Bars not tested: comparative defensibility under hostile external review, comparator coverage."
  • "Silence on comparative defensibility for the prior-work bullets currently in scope. Bars not tested: comparator coverage (whether the right set of prior works has been engaged at all), empirical replication."

If the Learn run cannot name the bar, the silence claim is not yet ready to be made. Either name the bar or write the claim as a bar-scoped observation rather than as silence.

Origin: This rule was promoted from the manifesto target's retro-v201 -> retro-v202 transition (entry slug retrospect-v202-comparative-defensibility, 2026-06-04), where a retrospect-declared text-layer silence was overturned within the same day by an operator-initiated publication-rigour-review run that tested a quality bar the prior retrospect had never been challenged on. Full provenance in this repo's .acm/audit-trail.md under entry slug retro-named-boundary-rule-from-manifesto-arc.

6. Record

Apply Record automatically now. The operator should never have to invoke Record separately. If this is a standalone Learn installation and Record is unavailable, use the entry contract below directly.

If Record is not installed: record a single entry where step 0's ACM §4 paragraph resolves (a new records/ record in a bound scope, appended to .acm/audit-trail.md in legacy memory, reported to the operator when unbound) containing:

  • Date, target, operator (if known), model identity (provider + tool-call ID prefix if observable).
  • The scope statement from step 1.
  • The arc-claims from step 3 — written as falsifiable statements, not summaries.
  • Loop-effectiveness findings from step 4 (if triggered), marked with [!REALIZATION] where material.

There is no separate "decision" or "action" field unless a follow-up action was identified. Learn is observational; its output is claims, not changes.

What this skill does not do

  • It does not make changes to the target. Learn reads and claims; Improve changes. If the arc reveals a specific finding, hand off to Improve.
  • It does not replace Improve's step 6b. Step 6b is a lightweight in-loop reflection. Improve's learning-freshness check schedules this full arc-read only when accumulated evidence warrants it; most Improve runs should not trigger Learn.
  • It does not score the trail. No number, no rubric, no grade. Claims are the output — claims a future run can test.

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.