agentleFS
ljf06853ljf06853/keepfire/skills/recalling-recipes/SKILL.md

recalling-recipes

Skill1 starsChanged 5 months agoMITView on GitHub

Use when the user wants to reuse a past prompt pattern — "use my usual PR review style", "用我以前那种方式", /use — AND before starting any substantial implement/debug/review/refactor/test task: check whether the user's recipe library already holds a proven approach before inventing your own.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    NEVER paste an old prompt blindly.

    line 13
  2. Very specific:

    If a strong match exists, offer it in one line — 🔥 你有一条相关配方「<title>」,要用吗? — and continue only on yes.

    line 23
  3. Very specific:

    No CLI? Grep ~/.keepfire/cards/*.md titles, trigger_phrases, and tags yourself.

    line 34
  4. Distinctive:

    No CLI? Read the card and adapt it yourself: current task + filled skeleton + constraints + output contract + "preserve these qualities" + …

    line 52
  5. Distinctive:

    Close the loop: After the task succeeds, if the user says the result was better than before, offer to save an improved version:

    line 55
  6. Distinctive:

    If two recipes half-match, prefer the one whose intent matches, then whose stack matches.

    line 65

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

Recalling Recipes

The user maintains a library of proven prompt recipes under ~/.keepfire/cards/. Reusing a proven recipe beats inventing an approach from scratch — but only if it is adapted to the current task.

<HARD-GATE> NEVER paste an old prompt blindly. Always adapt: fill placeholders from the current task and repository, drop stale file names and dead constraints, keep the recipe's structure, constraints, and quality signals. </HARD-GATE>

Two entry modes

Explicit (user asked to reuse a style): run the full checklist below.

Ambient (you are about to start a substantial coding task): do a quick search first. If a strong match exists, offer it in one line — 🔥 你有一条相关配方「<title>」,要用吗? — and continue only on yes. If nothing matches well, proceed silently; never nag.

Checklist

  1. Search the library:
keepfire search "task keywords" --top 5

No CLI? Grep ~/.keepfire/cards/*.md titles, trigger_phrases, and tags yourself. Empty library → tell the user how to start: say "keep this prompt" after a good one.

  1. Present the top 1–3 candidates with id, intent, and why they matched.
  2. Select per use_mode in ~/.keepfire/config.json:
    • always_ask — let the user pick
    • ask_if_low_confidence (default) — auto-apply only a strong match, otherwise ask
    • auto — apply the best match
  3. Render the adapted prompt:
keepfire use --id <id> "current task text"     # any unique id fragment works
keepfire use --pick 2 "current task text"      # or pick the Nth candidate

The output is the working instruction — follow it to execute the coding task. No CLI? Read the card and adapt it yourself: current task + filled skeleton + constraints + output contract + "preserve these qualities" + "avoid".

  1. Close the loop. After the task succeeds, if the user says the result was better than before, offer to save an improved version:
keepfire improve <id> --note "what changed" --why "signal1|signal2"

Judgment calls

  • The recipe's structure is the value; its old context is disposable.
  • If two recipes half-match, prefer the one whose intent matches, then whose stack matches.
  • A recipe used successfully bumps its ranking automatically (use_count) — no action needed.

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.