agentleFS
AWSKnown publisherawslabs/cli-agent-orchestrator/skills/cao-learning/SKILL.md

cao-learning

Skill1.4k starsChanged 2 months agoApache-2.0View on GitHub

Report task outcomes and distill lessons so the team improves across

Trending

Quiet since October.about the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 8 mentionsMay 2026: 0 mentionsJun 2026: 2 mentionsJul 2026: 3 mentionsAug 2026: 0 mentionsSep 2026: 4 mentionsOct 2026: 3 mentionsNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the awslabs/cli-agent-orchestrator repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about awslabs/cli-agent-orchestrator

The biggest 5 of 20 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 20

Talked about on GitHub (20 times).

On GitHub · 20

15 more on GitHub

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

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

    All of this is opt-in infrastructure.

    line 16
  2. Distinctive:

    NEVER paste transcripts, logs, stack traces, file contents, or secrets.

    line 48
  3. Very specific:

    After each completed work item (a package, a feature, a review cycle) — not after every step — hand off to the retrospector agent:

    line 56
  4. Distinctive:

    Wait for its one-line summary (outcomes read, lessons stored) and record it in your run log.

    line 64
  5. Very specific:

    When a lesson's Applies when: clause matches the task you are delegating, include it in your handoff message — workers also receive their …

    line 70
  6. Very specific:

    Apply injected lessons first: Before working, scan your <cao-memory> block and any ## Learned Patterns section of your own instructions for …

    line 76
  7. Distinctive:

    Store new lessons immediately: when you discover something durable — a mapping that works, a trap that recurs, a tooling quirk:

    line 80
  8. Very specific:

    Correct, don't accumulate: If a stored lesson proves wrong, re-store the corrected text under the SAME key (or memory_forget it).

    line 96
  9. Very specific:

    Follow your profile (retrospector.md).

    line 102

≈ “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

CAO Self-Learning

CAO workflows can improve as they repeat: outcomes you report feed a retrospector agent that distills durable lessons into memory, and those lessons reach future sessions automatically. Your job depends on your role.

All of this is opt-in infrastructure. If report_outcome or a memory tool returns disabled: true, skip it silently and continue your task — learning is off for this run (often deliberately, e.g. a control run) and that is expected, not an error.

A bare error with no disabled key is different: say so, don't skip it. That shape means the tool could not reach a verdict — cao-server is unreachable, or its settings.json could not be read — so learning may well be ON while nothing is being recorded. Mention it in your response and carry on with the task.

If you are a SUPERVISOR

Report an outcome after each meaningful unit of work

One report_outcome call per completed step, delegated task, or work item — after validation/review, not before:

report_outcome(
    task_label="convert package CustomerETL (iteration 2)",
    success=false,
    workflow_name="ssis-migration",
    agent_profile="transformer",           # who did the work (defaults to you)
    score=40,                              # optional 0-100 metric if you have one
    friction_notes="Lookup with partial cache emitted an invalid join; "
                   "improver patched the cache-mode mapping."
)

Rules for friction_notes:

  • 1–3 sentences, conclusions only — the root cause, not the story.
  • NEVER paste transcripts, logs, stack traces, file contents, or secrets.
  • Empty string on a clean pass is fine; the success flag already carries signal.

Report failures faithfully — failed iterations are the most valuable learning signal. Do not skip reporting because a step went badly.

Dispatch the retrospector at natural boundaries

After each completed work item (a package, a feature, a review cycle) — not after every step — hand off to the retrospector agent:

"Retrospect on session <session_name>, workflow <workflow_name>,
 item <item name>. Agents involved: <profiles>."

Wait for its one-line summary (outcomes read, lessons stored) and record it in your run log. If no retrospector profile is available, skip this step.

Pass lessons downstream

Your injected <cao-memory> block may contain lessons from previous runs. When a lesson's Applies when: clause matches the task you are delegating, include it in your handoff message — workers also receive their own agent-scope lessons, but your routing helps.

If you are a WORKER

  1. Apply injected lessons first. Before working, scan your <cao-memory> block and any ## Learned Patterns section of your own instructions for lessons whose Applies when: clause matches the current task. Apply them before falling back to first principles.
  2. Store new lessons immediately when you discover something durable — a mapping that works, a trap that recurs, a tooling quirk:

    memory_store(
        content="Preserve a Lookup transform's cache mode instead of defaulting "
                "to a full-table read. Applies when: translating a Lookup whose "
                "CacheType is not full cache.",
        scope="agent",
        memory_type="feedback",
        key="honor-lookup-cache-mode"
    )

    Format contract: 1–2 sentence conclusion, then Applies when: <trigger>. The trigger clause is how future curators match your lesson to a task.

  3. Correct, don't accumulate. If a stored lesson proves wrong, re-store the corrected text under the SAME key (or memory_forget it). Never store a contradicting lesson under a new key.

If you are the RETROSPECTOR

Follow your profile (retrospector.md). Read outcomes with the list_outcomes tool; store worker-craft lessons with store_lesson(target_agent_profile=..., content=...) — NOT memory_store, which files agent-scope lessons under YOUR profile, where the worker will never see them. The quality bar, in brief: 0–3 lessons per retrospection, each supported by a concrete outcome, actionable, general enough to recur, under 400 characters, ending with Applies when:. "No lessons" is a valid and often correct answer.

What happens to lessons afterwards

  • Lessons are ordinary agent-scope memories: injected into future sessions, recalled on demand (each recall reinforces them), lint-checked for contradictions, audited.
  • An operator may promote reinforced lessons into your profile's ## Learned Patterns block with cao memory promote — that block is CAO-maintained; treat its contents as instructions, and don't edit it by hand.

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.