genai-engineering
Skill0 starsChanged 2 months agoMITView on GitHub
Build and harden LLM apps: RAG, agents, evals, guardrails, cost/latency. Use when building or debugging a RAG system, LLM feature, agent or eval set, or when an LLM app is slow, costly or hallucinating.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- alfonsusenrico/pakemtheir own version, first seen Oct 25, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- alfonsusenrico/pakem★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository46 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agentkit-auditSkill
- chart-designSkill
- context-budgetSkill
- context-compressorSkill
- daily-standupSkill
- data-architectSkill
- data-eng-routerSkill
- data-quality-standardsSkill
- data-storytellingSkill
- debug-loopSkill
- doc-standardsSkill
- ext-archifySkill
- ext-awsSkill
- ext-azureSkill
- ext-cli-opsSkill
- ext-codegraphSkill
- ext-databricksSkill
- ext-diagramsSkill
- ext-gap-discoverySkill
- ext-gcpSkill
- ext-hallmarkSkill
- ext-meta-museSkill
- ext-reaSkill
- ext-security-auditSkill
- ext-seoSkill
- ext-slidesSkill
- ext-systems-designSkill
- ext-ui-uxSkill
- frontend-motion-3dSkill
- humanizerSkill
- mcp-security-reviewSkill
- meeting-to-actionsSkill
- memorySkill
- memory-syncSkill
- ml-lifecycleSkill
- orchestrateSkill
- pipeline-scaffoldSkill
- prompt-enhancerSkill
- pr-reviewSkill
- session-insightsSkill
- setup-guardianSkill
- skill-forgeSkill
- smart-navigatorSkill
- spec-writerSkill
- token-saverSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
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 14
Eval before tuning: Before changing a prompt, model, or chunker, make sure a small eval set exists (20-50 real cases with expected …
- Distinctive: line 19
Every later change is judged against it.
- Distinctive: line 54
Read the prompt template, retrieval config and one failing trace, not the whole app.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
GenAI Engineering
LLM apps fail in retrieval, missing evals, and unmeasured cost. Work in that order.
Procedure
- Eval before tuning. Before changing a prompt, model, or chunker,
make sure a small eval set exists (20-50 real cases with expected
outcomes). No eval set → build one first; see
reference/patterns.md#evals. For RAG, score retrieval and generation separately with the four Ragas-style metrics inreference/patterns.md#rag-evals. Every later change is judged against it. - Diagnose the layer. For a bad answer, check in order: was the right context retrieved (retrieval recall)? Was it in the prompt (context assembly)? Did the model use it (generation)? Fix the first broken layer only. Most "hallucination" bugs are retrieval bugs.
- Pick the smallest thing that works. Long-context stuffing before
RAG for small corpora; hybrid (BM25 + vector) before a fancier
retriever; a single well-scoped call before an agent loop; a cheaper
model tier for classification/extraction, the strong model only where
evals show it's needed. To check a GGUF/safetensors file's
metadata and tensor totals without loading it, use
ext-rea. - Control cost and latency explicitly. Stable prefix first (system prompt, tools, few-shot) so prompt caching hits; batch APIs for offline jobs; cap max output tokens; log tokens-in/out and latency per call. Numbers, not vibes.
- Guard the trust boundary. Retrieved documents and tool outputs are untrusted input — never let them issue instructions (prompt injection). Redact PII before it hits a third-party model; validate structured output against a schema.
- Hand off implementation-heavy work to the
ml-engineersubagent with the eval set, the broken layer, and the target metric named. - Verify: re-run the eval set after each change; if the score drops, revert or fix and re-run until it recovers (max 3 attempts, then report what still fails).
Reference
reference/patterns.md— RAG design choices, eval harness shape, agent loop rules, cost/latency levers, guardrail checklist.
Token economy
- Read the prompt template, retrieval config and one failing trace, not the whole app.
- Evals print a pass-rate summary; open single failures only to diagnose.
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.

