engineering-discipline
Skill3 starsChanged 3 months agoMITView on GitHub
Behavioral guidelines to reduce common agent coding mistakes — thinking before coding, simplicity, surgical changes, goal-driven execution, and mandatory verification for data/BI work. Adapted from andrej-karpathy-skills (MIT), with a data/BI engineering layer added. Use this skill whenever writing, editing, or reviewing code, and especially before any change to a data pipeline, fact table, or stored proc.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- MMACABRE/SKILLStheir own version, first seen Nov 8, 2026
- linchpin/skillstheir own version, first seen Oct 2, 2026
- yogvidwankhede/vishwakarmatheir own version, first seen Sep 26, 2026
- remembervictorchatbot-vip/AI_Token_Savingtheir own version, first seen Aug 22, 2026
- murphycheng-24/coding-guidelinestheir own version, first seen Jul 7, 2026
- imnotdev25/skillstheir own version, first seen May 25, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- KailasMahavarkar/agentic-skills★ 2same name
- imnotdev25/skills★ 1same name
- linchpin/skills★ 1same name
- MMACABRE/SKILLS★ 1same name
- murphycheng-24/coding-guidelines★ 1same name
- yogvidwankhede/vishwakarma★ 1same name
- remembervictorchatbot-vip/AI_Token_Saving★ 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 repositoryOne other file it gives its agents.
- self-awarenessSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 0 are common, 15 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
15
Distinctive
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 16
Don't assume. Don't hide confusion.
- Distinctive: line 19
When a request has more than one reasonable reading, present both.
- Distinctive: line 20
If a simpler approach exists, say so.
- Distinctive: line 21
When something is unclear, stop and name exactly what is unclear.
- Distinctive: line 27
No features that weren't asked for.
- Distinctive: line 28
No abstraction layer for something used once.
- Distinctive: line 29
No configurability, no extension points, no "flexibility for later" unless requested.
- Distinctive: line 30
No error handling for cases that can't occur.
- Distinctive: line 31
If it came out at 200 lines and 50 would do, rewrite it.
- Distinctive: line 33
Test: would a senior engineer reviewing this call it overbuilt?
- Distinctive: line 39
Don't "improve" adjacent code, comments, naming, or formatting.
- Distinctive: line 40
Don't refactor what isn't broken.
- Distinctive: line 43
Do remove imports, CTEs, temp tables, or variables that *your* change orphaned.
- Distinctive: line 45
Test: every changed line traces directly back to the request.
- Distinctive: line 72
Every data change comes with the reconciliation output attached.
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Engineering Discipline
Sections 1-4 are adapted from multica-ai/andrej-karpathy-skills (MIT) — Forrest Chang's write-up of Andrej Karpathy's observations on LLM coding pitfalls, which Karpathy then amplified. Section 5 (data/BI verification) and section 6 (project-specific template) are added here.
Tradeoff: these rules bias toward caution over speed. For trivial edits, use judgment — not every change needs the full ceremony.
This is behavioral context, not a contract. Stating these rules improves the distribution of responses toward them; it doesn't guarantee compliance on every single response. Treat a lapse as a signal to re-check the diff, not proof the rules failed.
1. Think before coding
Don't assume. Don't hide confusion. Surface tradeoffs.
- State assumptions out loud before implementing. If uncertain, ask instead of guessing.
- When a request has more than one reasonable reading, present both. Don't silently pick one.
- If a simpler approach exists, say so. Push back when the pushback is warranted.
- When something is unclear, stop and name exactly what is unclear. A vague "let me know if that's not right" at the end doesn't count.
2. Simplicity first
The minimum that solves the stated problem. Nothing speculative.
- No features that weren't asked for.
- No abstraction layer for something used once.
- No configurability, no extension points, no "flexibility for later" unless requested.
- No error handling for cases that can't occur.
- If it came out at 200 lines and 50 would do, rewrite it.
Test: would a senior engineer reviewing this call it overbuilt? If yes, cut it.
3. Surgical changes
Touch only what the task requires. Clean up only your own mess.
- Don't "improve" adjacent code, comments, naming, or formatting.
- Don't refactor what isn't broken.
- Match the surrounding style even where you'd personally do it differently.
- Spot unrelated dead code? Mention it. Don't delete it.
- Do remove imports, CTEs, temp tables, or variables that your change orphaned.
Test: every changed line traces directly back to the request.
4. Goal-driven execution
Define success criteria up front, then loop until they're met. Strong criteria let you run independently; "make it work" guarantees a round trip.
For multi-step work, state the plan as steps paired with checks:
1. [Step] → verify: [check]
2. [Step] → verify: [check]Reframe imperatives as verifiable goals — see references/goal-driven-execution.md for the full reframing table (e.g. "Fix the bug" → "Write a test that reproduces it, then make it pass").
5. Verification for data and BI work
Data pipelines have no test suite to hide behind, and the failure mode is silent wrong numbers rather than a stack trace. Before touching a fact table, stored proc, or reference data, read references/data-verification.md in full — it covers grain, reconciliation queries, snapshot/SCD date-key filters, fan-out joins, and environment promotion rules. Do not skip it because the change "looks small."
6. Project-specific
Every repo this skill is dropped into should fill in its own specifics: environments and naming conventions, which control tables require insert-then-swap, tables too large for an ad-hoc full scan, and where deployment scripts and review process live. Use references/project-specific-template.md as the starting shape and fill it in per project — don't leave it as a placeholder.
These guidelines are working if
- Diffs contain only requested changes.
- Clarifying questions arrive before implementation rather than after a bad run.
- Every data change comes with the reconciliation output attached.
Reference Files
references/examples.md— concrete before/after code examples for each principlereferences/goal-driven-execution.md— imperative-to-verifiable-goal reframing table, with examplesreferences/data-verification.md— grain, reconciliation queries, SCD/snapshot filters, fan-out checks, environment promotionreferences/project-specific-template.md— template to fill in per repo (naming conventions, control tables, deployment process)
Sources
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.

