genai-engineering
Skill0 starsChanged 9 days agoMITView on GitHub
Use when designing, implementing, reviewing, or changing features that use a language model - prompts, structured output, RAG, tool-using agents, evals and benchmarks, model or provider changes, LLM security, cost and latency budgets, or AI observability.
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- backend-engineeringSkill
- change-planningSkill
- change-reviewSkill
- device-healthSkill
- instruction-maintenanceSkill
- pakemSkill
- pakem-updateSkill
- project-bootstrapSkill
- release-deliverySkill
- root-cause-debuggingSkill
- sensitive-operationsSkill
- state-and-handoffSkill
- ui-ux-qualitySkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are 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.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Follow cost and latency.
- Distinctive: line 51
Follow observability: content-free traces and metrics by default.
≈ “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
GenAI Engineering
Applies to projects with the llm capability. Agent architecture (plain tool loop,
LangGraph, another framework) is a project decision; these rules hold for any of them.
1. Always
- Prompts are versioned files, never inline strings: one file per prompt with an id, version, and change note. Follow prompts.
- Explicit model per call: provider and model id are passed explicitly, never left to a library default; record them with each result.
- Evals before shipping changes: any change of model, prompt, provider, or generation parameters ships only after the eval suite is re-run and compared with the current baseline. Follow evals.
- No content in logs: prompts, retrieved documents, and model output are never logged; log ids, token counts, latency, model, outcome category.
- Budgets: token, cost, latency, and payload limits are enforced before sending. Follow cost and latency.
- Security: apply LLM security controls.
2. When code consumes the model's output
(records, routing decisions, numbers, UI fields)
- Request strict structured output (JSON schema), validate it in code, allow bounded repair or retry, then fail closed with a clear outcome.
- Deterministic code computes facts (scores, totals, matches, permissions); the model interprets supplied evidence only. Follow structured output.
3. When a model decision has consequential side effects
(money, messages to people, changes to records)
- A confidence gate: below the threshold, a human confirms before the action.
- Dry-run mode for new pipelines until results are reviewed.
- Record which model, prompt version, and confidence produced each action.
4. Retrieval and agents
- Retrieval: follow RAG.
- Tool-using agents: follow agent patterns - typed tools, guards enforced in code, iteration caps, least privilege.
5. Observability
Follow observability: content-free traces and metrics by default; any content capture needs a written decision.
6. Presentation
AI output shown to users is recognisably the model's, states the basis of any facts
it presents, and follows the project's own design (ui-ux-quality). Never display or
store hidden reasoning.
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.

