Matt Pocock’s Software Factory course
I took Matt Pocock’s Software Factory course on Nov 9. This course covers his infamous skills repository and the software development theory and best practices that went into it.
Skills
-
/grill-with-docs+ add sufficient context to avoid unnecessary/obvious grilling questions.-
It’s important to use consistent terminology across both agents and within human engineers. Implement a
GLOSSARY.md(and extend it with aGLOSSARY_MAP.md) for terms to use and terms to avoid -
Only offer to create an ADR when all three are true:
- Hard to reverse: the cost of changing your mind later is meaningful
- Surprising without context: a future reader will wonder “why did they do it this way?”
- The result of a real trade-off: there were genuine alternatives and you picked one for specific reasons
If any of the three is missing, skip the ADR.
-
-
/wayfinderfor larger planningMethods Used for Mode Grilling Answering a list of questions in a standard grilling session With you Prototype Raising fidelity by making something to react to With you Research Fetching third-party information you don’t have locally AFK, a sub-agent Task Manual work that must happen before a decision A checklist for you -
- Important to understand the concepts of moduleAnything with an interface and an implementation. Deliberately scale-agnostic: a function, class, package, or tier-spanning slice., interfaceEverything a caller must know to use the module correctly: the type signature, but also invariants, ordering constraints, error modes, required configuration, and performance characteristics., implementationWhat’s inside a module, its body of code. Distinct from an adapter, which describes the slot it fills at a seam., depthLeverage at the interface. The amount of behaviour a caller (or test) can exercise per unit of interface they have to learn., seamA place where you can alter behaviour without editing in that place; the location at which a module’s interface lives., adapterA concrete thing that satisfies an interface at a seam. Describes role (what slot it fills), not substance (what’s inside)., leverageWhat callers get from depth. More capability per unit of interface they learn. One implementation pays back across N call sites and M tests., and localityWhat maintainers get from depth. Change, bugs, knowledge, and verification concentrate in one place rather than spreading across callers..
/improve-codebase-architecture
-
/prskill to summarize, show proof, and to describe risks- The main types of reviews:
- Automated checks (unit tests, type checking, linting, etc).
- Automated review (LLM-as-a-judge review).
- Human review.
/retroto teach an agent how to improve future implementations and PRs- Implement a
CODING_STANDARDS.mdto help with PRs - One-way vs two-way doors. Every PR is either a one-way or a two-way door (an idea that comes from AWS).
- Two-way door: you can walk through and walk back if you need to. You can merge the PR and then unmerge it.
- One-way door: walking through it makes something happen as a result, such as data loss, incurred cost, or a security implication. For example, a change that sends an email to 50,000 people, or a breaking change in a public library.
- One-way doors need to be reviewed much more closely than two-way doors.
- The main types of reviews:
Notes
- Remember to continuously update and prune the ADRs, glossary, and coding standards.
dependency-cruiser- Validate and visualize dependencies