Index of every page on this site: llms.txt
All skills
heffrey avatar

/prototype-first

@555219e
by Jeffheffrey/hordev4 stars
Run it yourself

Use when deciding what to build first, when about to add config, flags, an abstraction layer, error handling for undescribed cases, or tests beyond the TDD, or when deciding whether the prototype is done

  • 1 file
  • 5.4 KB
  • Updated 3 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/heffrey/hordev/prototype-first

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈55 tokens for metadata: the name and description. ≈1.3k when used: this file.

Description uses 2.8% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈221 characters, or 2.8%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Prototype-First

A prototype is the thinnest end-to-end path a human can execute and judge. The test: can the user run it, feed it real input, and see real behavior? If you are describing what it would do instead of what it does, you are not yet a prototype.

Ordering: Build the Risky Slice First

Start with the load-bearing, uncertain, or architecturally risky piece. This is what the prototype exists to falsify. Comfortable, well-understood work waits.

Right order: Does this language model API work as described? Build the API call, test it on real input, prove the behavior. Then build UI around it.

Wrong order: Design a config system, build abstraction layers, then wire up the model call on day three and discover the API does not work that way.

What to Defer Explicitly

Record each deferral in assumption-ledger. Do not omit it silently.

  • Error handling beyond the happy path. Handle the main success case. Graceful failures for edge cases come later.
  • Configurability and settings. Hardcode values. Change them when the prototype proves what should vary.
  • Performance work. Prototype for correctness. Optimize after you know it matters.
  • Abstraction layers for future cases. Do not build for cases nobody has yet. Generalize when a second case arrives.
  • Input validation and sanitization. Validate enough to avoid crashes in the happy path. Exhaustive validation is hardening work.
  • Logging, observability, telemetry. Add these when you need them to debug or understand the prototype.

What Is Never Deferred

Do not fake behavior and present it as working. Do not stub something the user will read as real.

  • Data flow must be real. If the prototype claims to save data, it must save data. If it claims to fetch from a service, it must fetch from a service.
  • User-visible output must be honest. Do not mock results that should be computed.
  • Dependencies must resolve truthfully. If the prototype depends on an external system, it must call that system. Do not replace it with a stub during prototype phase.

Drift Detection

These are signals you have left prototype mode. Stop and recenter.

Signal Corrective Action
You are writing a config system or adding command-line flags. Remove it. Hardcode the value. assumption-ledger records the decision.
You are refactoring for elegance or symmetry before proving the core works. Halt refactoring. Prove the core first. Elegance comes in hardening.
You are designing for a case that nobody has written yet. Delete the abstraction layer. Write it when you have a second case to generalize from.
You are adding the second or third abstraction layer. You are over-designing. Walk back to a single layer or none.
You are gold-plating a passing test (adding assertions, coverage, edge case branches). Stop. The test passes. Move on. Hardening comes later.
You are implementing error handling paths nobody has described as necessary. Remove them. Handle errors in the happy path only. Add more when you see them fail.
Your code review checklist grows faster than your feature list. Your checklist is for hardening, not prototyping. Pare it back.

Knowing When the Prototype is Done

A prototype is done when it has answered one of these questions:

  1. Does the spec hold? The prototype either proves the spec works or falsifies it. If falsified, loop back to rapid-spec with evidence. If it holds, graduate to hardening.
  2. What is the real load-bearing risk? You may have built the wrong thing. The prototype showed you. Now you know what to build next.
  3. What will users actually do with this? The prototype is running in user hands (or a user's mental model). Their behavior contradicts or confirms the spec. Adjust and repeat, or move to hardening.

Do not leave prototype mode because the code is beautiful or the test suite is comprehensive. Leave it because you have evidence.

Interaction with writing-tdds

Thin does not mean untested. Tests come first even in prototype mode; there are just fewer of them.

Write tests for the risky, load-bearing slice. Write tests for the happy path. Do not write tests for error handling paths you have deferred, or for edge cases you have not hit.

If your test suite is growing faster than your feature set, you are hardening, not prototyping. Redirect tests to the critical path.

Corrective Question

Are we building to learn or to ship? If the answer is "learn," you are in prototype mode. Stay thin. Record assumptions.

If the answer is "ship," the prototype has done its job and hordev is the wrong tool for what comes next. Hardening is well-understood work against a spec you now trust — exactly the case where structure beats speed. Hand the branch over and say so plainly. Do not let a prototype drift into production by accretion.

Battle cry

"Me not that kind of orc!" — when the ask has drifted into hardening and hordev is the wrong tool. Say the line, then hand the branch over plainly.

Once, at that moment — not every message, and never two messages running. Full rules in using-hordev § Voice: conversational output only, never in artifacts, never on bad news.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 555219e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 3 months ago

README badge

README badge for heffrey/hordev/prototype-first