← Notes

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 a GLOSSARY_MAP.md) for terms to use and terms to avoid

    • Only offer to create an ADR when all three are true:

      1. Hard to reverse: the cost of changing your mind later is meaningful
      2. Surprising without context: a future reader will wonder “why did they do it this way?”
      3. 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.

  • /wayfinder for larger planning

    MethodsUsed forMode
    GrillingAnswering a list of questions in a standard grilling sessionWith you
    PrototypeRaising fidelity by making something to react toWith you
    ResearchFetching third-party information you don’t have locallyAFK, a sub-agent
    TaskManual work that must happen before a decisionA checklist for you
  • /codebase-design

    • 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
  • /pr skill to summarize, show proof, and to describe risks

    • The main types of reviews:
      1. Automated checks (unit tests, type checking, linting, etc).
      2. Automated review (LLM-as-a-judge review).
      3. Human review.
    • /retro to teach an agent how to improve future implementations and PRs
    • Implement a CODING_STANDARDS.md to 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.
  • /diagnosing-bugs

Notes

  • Remember to continuously update and prune the ADRs, glossary, and coding standards.
  • dependency-cruiser - Validate and visualize dependencies