agentleFS
timdevaitimdevai/proteus/skills/prompt-matcher/SKILL.md

prompt-matcher

Skill1 starsChanged 5 months agoMITView on GitHub

Reads your message, silently finds the best matching prompt template from your library, fills in every variable it can infer, asks only what it can't, and executes. Every message gets a better prompt than you'd write manually. Always-on auto mode. On every task message, before executing: 1. Score the message against the prompt library (0-10 per template) 2. If top match scores 6+: use it — show Using: [Prompt Name] in one line, fill known variables silently, ask only for…

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is 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.

  • 1

    Very specific

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

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

    If top match scores 6+: use it — show Using: [Prompt Name] in one line, fill known variables silently, ask only for genuinely unknown …

    line 11
  2. Distinctive:

    If all variables are inferable from context: execute entirely silently

    line 12
  3. Distinctive:

    If no match above 4: execute the message directly without the skill

    line 13
  4. Distinctive:

    When a pattern repeats 3+ times in a session, or user says "save this as a prompt":

    line 85

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Prompt Matcher

Reads your message, silently finds the best matching prompt template from your library, fills in every variable it can infer, asks only what it can't, and executes. Every message gets a better prompt than you'd write manually.


When to activate

Always-on auto mode. On every task message, before executing:

  1. Score the message against the prompt library (0-10 per template)
  2. If top match scores 6+: use it — show Using: [Prompt Name] in one line, fill known variables silently, ask only for genuinely unknown variables (1 batch, never one at a time)
  3. If all variables are inferable from context: execute entirely silently
  4. If no match above 4: execute the message directly without the skill

Direct invoke: /pm [description] — forces the match flow even for low-scoring messages.

Never activate for: casual chat, yes/no questions, messages under 8 words with no task, messages already structured as a complete prompt.


Prompt Library Location

Primary library: {PROMPTS_DIR}

Categories:

  • writing.md — Email, editing, explaining, summarizing, style rewriting
  • research.md — Deep research, compare options, devil's advocate, market research, fact-checking
  • coding.md — Bug fixing, code explanation, code review, feature building, script writing
  • thinking.md — Decisions, brainstorming, first principles, pre-mortem, action plan, mental models
  • learning.md — Concept explainer, study guide, teach me by doing, Socratic method
  • business.md — Positioning, pricing, sales email, competitor analysis, launch checklist
  • creative.md — Story generator, naming, taglines, dialogue, reframe
  • productivity.md — Task breakdown, weekly review, habit system, meeting prep, delegation
  • anti-sycophancy.md — Challenge this, steelman opposition, adversarial review, red team
  • context-discipline.md — Session start, compact timing, model selection, token hygiene
  • ai-engineer.md — Architecture, RAG audit, agent debugger, eval suite, cost killer, production review
  • trading.md — Strategy auditor, prop firm rule checker, prediction market designer, risk framework
  • content-creation.md — Faceless content system, viral hooks, short-form scripts, Apify pipeline
  • career-business.md — ATS resume, cold outreach, AI service niche validator, solopreneur designer

Matching logic

Score each prompt on:

  • Intent match (0-4): does the prompt's use-when match what the user is trying to do?
  • Context fit (0-3): are most variables already answerable from the conversation?
  • Specificity (0-3): is this prompt more specific than a generic response would be?

Pick the highest scorer. If two are within 1 point, mention both and let the user choose.

Examples:

  • "debug why my agent failed" → Agent Debugger (9/10)
  • "write an email to a recruiter" → Email Writer (9/10)
  • "should I do X or Y" → Decision Maker (8/10)
  • "explain recursion simply" → Concept Explainer (9/10)
  • "make my code faster" → Cost Killer or Code Reviewer (7/10 each — ask which)
  • "go deeper on the memecoin system" → Deep Research (8/10)
  • "audit my prop firm trade" → Prop Firm Rule Checker (9/10)
  • "help me write a hook for a faceless Reel" → Viral Hook Generator (9/10)
  • "what do you think?" → no match, respond directly

Execution flow

User message received
        ↓
Score all prompts in Brain\_prompts\
        ↓
Score 6+?
   YES → Show "Using: [Name]" + fill variables silently
           ↓
         Unknown variables? → Ask all in one message
           ↓
         Execute with completed template
   NO  → Execute directly, no skill

Adding prompts

When a pattern repeats 3+ times in a session, or user says "save this as a prompt":

  1. Extract the template with [VARIABLE] placeholders
  2. Write to Brain\_prompts\[best-category].md
  3. Confirm: "Added [Name] to _prompts/[category].md"

Slash command

/pm [description] — force-triggers the match flow.

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.