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…
In this repository12 other files it gives its agents.
- commit-curatorSkill
- context-compactorSkill
- cost-trackerSkill
- decision-recorderSkill
- mcp-finderSkill
- permission-auditorSkill
- prd-builderSkill
- pr-reviewerSkill
- repo-onboarderSkill
- scope-clarifierSkill
- skill-matcherSkill
- tdd-flowSkill
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
- Very specific: line 11
If top match scores 6+: use it — show Using: [Prompt Name] in one line, fill known variables silently, ask only for genuinely unknown …
- Distinctive: line 12
If all variables are inferable from context: execute entirely silently
- Distinctive: line 13
If no match above 4: execute the message directly without the skill
- Distinctive: line 85
When a pattern repeats 3+ times in a session, or user says "save this as a prompt":
≈ “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.
Files
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:
- Score the message against the prompt library (0-10 per template)
- 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) - If all variables are inferable from context: execute entirely silently
- 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 rewritingresearch.md— Deep research, compare options, devil's advocate, market research, fact-checkingcoding.md— Bug fixing, code explanation, code review, feature building, script writingthinking.md— Decisions, brainstorming, first principles, pre-mortem, action plan, mental modelslearning.md— Concept explainer, study guide, teach me by doing, Socratic methodbusiness.md— Positioning, pricing, sales email, competitor analysis, launch checklistcreative.md— Story generator, naming, taglines, dialogue, reframeproductivity.md— Task breakdown, weekly review, habit system, meeting prep, delegationanti-sycophancy.md— Challenge this, steelman opposition, adversarial review, red teamcontext-discipline.md— Session start, compact timing, model selection, token hygieneai-engineer.md— Architecture, RAG audit, agent debugger, eval suite, cost killer, production reviewtrading.md— Strategy auditor, prop firm rule checker, prediction market designer, risk frameworkcontent-creation.md— Faceless content system, viral hooks, short-form scripts, Apify pipelinecareer-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-whenmatch 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 skillAdding prompts
When a pattern repeats 3+ times in a session, or user says "save this as a prompt":
- Extract the template with
[VARIABLE]placeholders - Write to
Brain\_prompts\[best-category].md - Confirm: "Added [Name] to
_prompts/[category].md"
Slash command
/pm [description] — force-triggers the match flow.
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
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.

