tryferos

Search articles

Find an article by its title, description or topic.

The perfect TS codebase

What I’ve learned getting AI agents to write code that fits my codebase. Make sure you adapt lessons learned to your style.

  • Claude
  • OpenAI
  • Gemini
  • Grok
  • opencode

Understand better

5 articles
  1. A flame marker gives one tick on a temperature dial a recognizable meaning.
    Understand better
    Name conditions and numbers
  2. A hand plane lifts a curling strip of comments from a block of code.
    Understand better
    Comments are for what the code can't say
  3. A gauge’s shaped opening shows the required profile and checks the part’s fit.Coming soon
    Understand better
    Use types as documentation
    [Coming Soon]
  4. An entire pocket-sized proof fits beneath one loupe.Coming soon
    Understand better
    Keep files small and single-purpose
    [Coming Soon]
  5. A hand-cranked pasta machine takes in a sheet and sends ribbons out the other side.Coming soon
    Understand better
    Keep data flow explicit
    [Coming Soon]

Follow existing patterns

4 articles
  1. A railway worker sets a switch to establish one route.Coming soon
    Follow existing patterns
    Keep one way to do each thing
    [Coming Soon]
  2. Every blank passes under the same fixed-height inspection bar.Coming soon
    Follow existing patterns
    Enforce with checks
    [Coming Soon]
  3. A carpenter traces one template onto a row of matching boards.Coming soon
    Follow existing patterns
    Keep a canonical example
    [Coming Soon]
  4. A fitted tool roll gives each related tool its own adjacent pocket.Coming soon
    Follow existing patterns
    Colocate
    [Coming Soon]

Spend fewer tokens

5 articles
  1. Scissors cut a single short note from a long ticked-off list.Coming soon
    Spend fewer tokens
    Keep AGENTS.md short
    [Coming Soon]
  2. One lever lowers three inspection probes and raises a single check flag.Coming soon
    Spend fewer tokens
    Provide one fast verification command
    [Coming Soon]
  3. A sieve retains engraved blocks while small scraps fall through.Coming soon
    Spend fewer tokens
    Keep generated files out of the search path
    [Coming Soon]
  4. A red master key stands out on a ring of near-identical keys.Coming soon
    Spend fewer tokens
    Avoid duplication
    [Coming Soon]
  5. A printed hand points to the exact bolt that needs a wrench.Coming soon
    Spend fewer tokens
    Make error messages name the fix
    [Coming Soon]

Find faster

5 articles
  1. One needle lifts every index card marked with the same red diamond.Coming soon
    Find faster
    Use searchable, unique names
    [Coming Soon]
  2. A carved track guides a marble to its matching drawer.Coming soon
    Find faster
    Make the path predictable from the feature
    [Coming Soon]
  3. A wrench-shaped drawer pull identifies the tool inside.Coming soon
    Find faster
    Name files after what they contain
    [Coming Soon]
  4. A hand pulls one cable taut above a tangle, making its connection easy to trace.Coming soon
    Find faster
    Avoid dynamic indirection
    [Coming Soon]
  5. A sheaf of lined pages passes through one mail slot.Coming soon
    Find faster
    Keep one entry point per concern
    [Coming Soon]

Improve existing patterns

5 articles
  1. Lifting a machine guard reveals the meshing gears it protects the operator from.Coming soon
    Improve existing patterns
    State the reason behind each rule
    [Coming Soon]
  2. A hand cranks a press that churns out identical pages.Coming soon
    Improve existing patterns
    Turn a correction into a check or a rule
    [Coming Soon]
  3. A row of carved blocks shows a rosette taking shape one cut at a time.Coming soon
    Improve existing patterns
    Keep commits small and single-concern
    [Coming Soon]
  4. A draftsperson sets aside a square and uses a French curve to draw a new path.Coming soon
    Improve existing patterns
    Say when deviation is welcome
    [Coming Soon]
  5. A hand peels a paper reminder from a jig fitted with a mechanical stop.Coming soon
    Improve existing patterns
    Prune rules
    [Coming Soon]