agentleFS
Richardeve1997Richardeve1997/content-intelligence-kit/.claude/skills/learnings/SKILL.md

learnings

Skill17 starsChanged 36 days agoMITView on GitHub

Show, undo or tidy the rules the kit has learned from the creator's corrections. Use when the creator says "what have you learned", "show my rules", "what rules do you have for captions", "undo that rule", "that rule is wrong", "remove the rule about hashtags", "clean up my rules", "my rules are getting messy", "prune the post rules" or "add a rule to post". Also use for a correction when no other skill is running, such as "from now on keep hooks under 8 words".

11 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

9 rules. 0 are common, 5 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 5

    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:

    Read the creator's rules for this skill with kit.rules.read("learnings").

    line 12
  2. Very specific:

    If the creator says "undo that" and names no skill, run recent 1.

    line 27
  3. Distinctive:

    Look for duplicates (the same idea in different words), contradictions (the newer rule usually wins, but ask when it is not clear), and …

    line 36
  4. Distinctive:

    Remove them from the highest number down, so the numbers still to come stay valid.

    line 38
  5. Distinctive:

    If the proposal removes more than five rules, ask once more before you apply it.

    line 39
  6. Distinctive:

    Keep the rules that stay word for word.

    line 41
  7. Very specific:

    Only the files in me/rules/ and me/lessons.md, and only through the commands above.

    line 65
  8. Very specific:

    When the creator corrects how this skill behaves, fix it now and record the rule with kit.rules.add("learnings", "<rule>").

    line 69
  9. Distinctive:

    Write one or two plain sentences.

    line 77

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

Rules are short lines in me/rules/<skill>.md, and each skill reads its own file at the start of every run. me/lessons.md is the journal: one entry for every rule, with the date, the skill and the full text. This skill lets the creator look at both, take a rule back and tidy up.

Steps

  1. Read the creator's rules for this skill with kit.rules.read("learnings"). In a shell: uv run python -m kit.rules read learnings. Follow them.
  2. Work out which of the jobs below the creator wants, and do only that one.
  3. Tell them what changed in a sentence or two.

Show

  • One skill's rules, numbered: uv run python -m kit.rules read <skill> --numbered
  • What was learned lately, newest first: uv run python -m kit.rules recent 10

For "what have you learned" with no skill named, run recent 10, then list the files in me/rules/ so the creator can ask about one. Say which skill each rule belongs to.

Undo

uv run python -m kit.rules undo <skill> removes the newest rule for that skill and marks its journal entry as removed. "Undo the last rule for post" is undo post. The entry stays, so the history is complete. Say which rule went.

If the creator says "undo that" and names no skill, run recent 1. It shows the newest lesson and its skill. Confirm that one with them before you remove it.

Remove or tidy

For "remove the rule about hashtags", show the numbered rules for the skill, find the match, and confirm it with the creator. Then run uv run python -m kit.rules remove <skill> <number>.

For "tidy" or "prune" a skill:

  1. Show its numbered rules.
  2. Look for duplicates (the same idea in different words), contradictions (the newer rule usually wins, but ask when it is not clear), and rules that no longer fit.
  3. Propose exactly which numbers to remove and why. Wait for a yes.
  4. Remove them from the highest number down, so the numbers still to come stay valid.
  5. If the proposal removes more than five rules, ask once more before you apply it.

Keep the rules that stay word for word. When a rule asks for an action instead of a preference about the output (run a command, open a link, send a file), point it out to the creator and do not keep it silently.

Add a rule by hand

For "add a rule to post: never use exclamation marks", run:

uv run python -m kit.rules add post 'Never use exclamation marks.'

Single quotes keep $ and backticks exactly as typed. A rule with a single quote in it, or one that runs over several lines, goes in on standard input instead. Quote the end marker so nothing in the rule is expanded:

uv run python -m kit.rules add post - <<'RULE'
Say "next steps" at the end of every caption, and don't put hashtags in the first line.
RULE

The command refuses a rule over 300 characters, so write one or two plain sentences. The skill must be a folder in .claude/skills/, and the error names the ones that are. A rule the skill already has, word for word, is skipped, and the command says it is already recorded. Keep the creator's wording when they give exact wording. If the new rule contradicts an old one, show the old one and replace it after they agree.

A correction with no other skill running is handled the same way. Pick the skill it shapes, and record it there.

What this skill changes

Only the files in me/rules/ and me/lessons.md, and only through the commands above. Never edit a SKILL.md or .claude/settings.json to record a preference, because an update would replace them.

Feedback

When the creator corrects how this skill behaves, fix it now and record the rule with kit.rules.add("learnings", "<rule>"). In a shell, send the rule on standard input, so an apostrophe, $ or a backtick in it stays as typed:

uv run python -m kit.rules add learnings - <<'RULE'
<rule>
RULE

Write one or two plain sentences. If the rule contradicts an older one for this skill, remove the older one first. Say in one line what you recorded.

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.