agentleFS
Dan-ClearyDan-Cleary/fdestack/skills/learnings/SKILL.md

learnings

Skill40 starsChanged 6 months agoMITView on GitHub

Manage ~/.fdestack/learnings.jsonl — the cross-customer pattern library. List, search, prune stale entries, edit incorrect insights, or export the file for sharing with another FDE. No write to customer files; this is meta over the learnings file itself.

9 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use product-analytics and agent-browser.

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.
  • SkeneTechnologiesSkill

    product-analytics

    When the user wants to set up product analytics -- including event taxonomy, tracking plans, funnel analysis, or tool selection (Mixpanel, Amplitude, PostHog). Also use when the user says "event tracking," "analytics setup," "tracking plan," "analytics implementation," or "user identification." For PLG metrics, see plg-metrics. For experimentation, see growth-experimentation.

    Also in 3 projects that use this

  • VercelSkill

    agent-browser

    Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 3

    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:

    If the subcommand is invalid, list options and stop.

    line 36
  2. Distinctive:

    If there are more than 20 entries, paginate (show 10 per page, ask "more?

    line 64
  3. Distinctive:

    After walking all entries, summarize:

    line 104
  4. Very specific:

    Ask: "Which learning key to edit?" then walk the FDE through fields: key, insight, confidence, skill, source.

    line 114
  5. Very specific:

    If <path> has no .jsonl extension, warn but proceed.

    line 123
  6. Very specific:

    When mutating, write to a tempfile then mv over the original.

    line 127

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

/learnings

Management UI for ~/.fdestack/learnings.jsonl.

Step 0: Parse subcommand

The first argument is the subcommand. Default: list.

SubcommandWhat it does
listShow all entries, formatted, sorted by ts (newest first)
search <kw>Show entries where key or insight matches <kw> (case-insensitive)
pruneWalk the FDE through each entry, ask whether to keep, edit, or delete
editPick a specific entry by key, walk through edit fields
export <path>Write a copy to <path> for sharing

If the subcommand is invalid, list options and stop.

Step 1: Verify the learnings file exists

LEARNINGS_FILE="$HOME/.fdestack/learnings.jsonl"
if [ ! -f "$LEARNINGS_FILE" ] || [ ! -s "$LEARNINGS_FILE" ]; then
  echo "No learnings yet. Run /poc or /engagement-retro to start capturing."
  exit 0
fi
COUNT=$(wc -l < "$LEARNINGS_FILE" | tr -d ' ')
echo "LEARNINGS: $COUNT entries"

Step 2: Execute subcommand

list

jq -s 'sort_by(.ts) | reverse | .[]' "$LEARNINGS_FILE" | jq -c .

Render each entry as:

▶ <key>   (conf <N> | skill: <skill> | <ts>)
  <insight>

If there are more than 20 entries, paginate (show 10 per page, ask "more? (y/n)").

search <kw>

jq --arg kw "$KW" 'select(
  (.key | ascii_downcase | contains($kw | ascii_downcase)) or
  (.insight | ascii_downcase | contains($kw | ascii_downcase))
)' "$LEARNINGS_FILE"

Render same as list. If zero matches: "No matches for '<kw>'."

prune

For each entry (newest first), use AskUserQuestion:

D<N> — Prune review: <key>
ELI10: This learning was captured <N days> ago from /<skill> for a customer.
The insight was: <insight>. Confidence: <N>/10.
Stakes if we pick wrong: Stale learnings poison future /customer-context
sessions (we surface the top 3 most recent). Wrong learnings are worse
than no learnings.
Recommendation: <Keep | Edit | Delete> because <reason from age + signal>
Pros / cons:
A) Keep as-is
  ✅ Still applicable; the pattern hasn't changed
  ❌ Continues to surface even if confidence has eroded
B) Edit
  ✅ Fix the framing or update confidence
  ❌ Slower per-entry; only worth it for partially-true insights
C) Delete
  ✅ Removes a stale or wrong signal
  ❌ Irreversible (the JSONL is the source of truth)
Net: Keep what still matches reality; delete what doesn't.

For (B), prompt for new insight and/or confidence, then rewrite the entry. For (C), remove the line. Track changes in memory and commit them atomically at the end.

After walking all entries, summarize:

Pruning complete.
  Kept: <N>
  Edited: <N>
  Deleted: <N>

edit

Ask: "Which learning key to edit?" then walk the FDE through fields: key, insight, confidence, skill, source. Show current value, accept new value (blank = no change). Rewrite the entry.

export <path>

cp "$LEARNINGS_FILE" "$PATH"
echo "Exported $COUNT learnings to $PATH"

If <path> has no .jsonl extension, warn but proceed.

Step 3: Atomic write (for prune / edit)

When mutating, write to a tempfile then mv over the original. Never edit in place:

TMPFILE=$(mktemp)
# write filtered/edited content to $TMPFILE
mv "$TMPFILE" "$LEARNINGS_FILE"

Step 4: No commits

The learnings file is in ~/.fdestack/, not the ops repo. It's per-FDE state, not per-customer engagement state. No git involvement.

Step 5: Summary

<subcommand> done.
  Total learnings: <N>
  [if prune/edit] Changes: <summary>
  [if export] Path: <path>

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.