Project

From Vibe Prompting to a Spec: Recreating the HP-10B with AI

I wanted to see how far I could get by working with AI on a project I could describe clearly but had never built before: recreating an HP-10B financial calculator as a web app (Click to see the final result). I began with two references, a photograph of the calculator and its owner’s manual. ChatGPT […]

Try the demoView on GitHub

Published:

Last verified:

By Marco Cerrato

Image of the HP10B Calculator.

Before you start

Low code required

I wanted to see how far I could get by working with AI on a project I could describe clearly but had never built before: recreating an HP-10B financial calculator as a web app (Click to see the final result). I began with two references, a photograph of the calculator and its owner’s manual. ChatGPT helped me prepare a prompt for a coding agent. I then used OpenCode to plan the project, turn the plan into a specification, and build the app in small steps.

This article shares that process so you can try it with a project of your own. The goal is to show how I moved from an informal idea, or “vibe prompt,” to spec-driven development (SDD), where the agent has a written description of what to build and how to check it. Your results will vary with your references, choices, coding agent, model, and feedback. The point is to try the workflow and learn how to structure an AI-assisted project.

Step 1: Choose a project and gather references

I chose the HP-10B because I could provide concrete references for both its appearance and its behavior. The photo showed the body, display, labels, and key layout. The owner’s manual explained the functions and provided worked examples with key sequences and expected answers.

That separation helped make the task specific. A picture could guide the visual design, while the manual could help define how the calculator should respond. For another project, use the materials you have that show what the result should look like and what it should do. These might be screenshots, a paper form, a process document, sample inputs and outputs, or a product manual.

Step 2: Use ChatGPT to shape the handoff prompt

I used GPT-6.1 Sol with Medium reasoning in the ChatGPT app to help prepare a prompt for the coding agent. I wanted the agent to begin by asking questions and planning, then proceed to implementation after we had agreed on the scope.

The prompt below is a reusable starting point based on the workflow I used. Attach your reference files and adapt the goal and constraints for your own project.

I want to build [describe the app or project]. Use the attached materials as references. [Explain what each reference shows or defines.]

Keep the project as simple as its purpose allows. For this project, use vanilla JavaScript with HTML and CSS. Avoid adding a framework, database, or backend unless a clear requirement makes one necessary. Use browser storage only if the app needs to retain information, and explain the simplest suitable option.

Start in planning mode. Review the references, then ask me the questions you need answered to understand the users, goals, features, constraints, and what a successful result should do. Ask questions in manageable groups. Point out unclear or conflicting requirements and wait for my answers before finalizing the plan.

After we agree on the scope, create a written specification that describes the expected behavior, interface, technical constraints, and acceptance checks. Use examples from the references where possible. Break implementation into small tasks with a clear completion check for each one.

Keep the specification as the source of truth during implementation. Track task status, decisions, obstacles, bugs, and my feedback in project files. Do not begin the build until we have reviewed the plan and specification.

Once I approve the plan, switch to build mode. Complete one small task at a time, compare the result with the specification, run the relevant checks, and record what changed and what still needs work. Ask me when a decision materially changes the agreed scope.

This prompt sets up a conversation, rather than expecting one instruction to cover everything. The agent asks about the project, I provide context, and together we turn an initial idea into requirements that can be checked.

Step 3: Let the agent ask questions before it writes the plan

I pasted the prompt into OpenCode and began in Plan mode. I chose OpenCode because it provides separate Plan and Build modes and lets me select the models for the work. I used DeepSeek V4.1 Flash with medium thinking for planning and for the build.

The agent asked me questions about what I wanted the app to do and how I expected it to work. I also set a boundary around complexity. This was a simple calculator app, so I wanted vanilla JavaScript and no framework or database. I asked the agent to use browser storage if the app needed to retain state. That led to choices such as opening the app directly from index.html, saving its state when the browser tab refreshed, and clearing that state when the calculator was turned off.

This is the “vibe prompting” part of the process. I started with the outcome I wanted and clarified details through conversation. The planning questions helped surface decisions that otherwise might have been left to guesswork.

Step 4: Turn the conversation into a specification

After we worked through the questions, I asked the agent to organize the agreed requirements into a detailed specification and a small, reviewable task list. That written specification became the bridge from the initial prompt to implementation. It described the app and its expected behavior in enough detail for the agent to work through the project systematically.

For the calculator, the specification covered the visual layout, key behavior, calculations, display formatting, and testing. The manual’s worked examples became acceptance checks: a particular sequence of key presses should produce the answer shown in the manual.

I also asked the agent to record progress, decisions, obstacles, bugs, and my feedback. The repository ended up with specs.md as the detailed specification, AGENTS.md as the instructions for future coding sessions, and a Project_Management/ folder containing a task board, changelog, decision log, and issue log. Explore the project files on GitHub

Step 5: Build in small tasks and check the results

Once I had reviewed the plan and specification, I switched to Build mode. The agent worked through the tasks, starting with the interface and input handling and continuing into the calculator functions. I reviewed the app and gave feedback as we went.

The manual helped catch a subtle calculation bug. In one example, the app returned an internal rate of return (IRR) of 17.18%, while the manual showed 15.96%. IRR is the rate of return implied by a series of cash flows. The issue log records that the app had used an effective annual rate convention, while the HP-10B example used a nominal annual rate. Correcting the rate conversion also fixed the example’s net present value, which matched the manual at 622.85. See the issue log

The project’s changelog reports that all 34 acceptance checks passed in five browsers. The app’s browser test suite can be opened by adding ?test=1 to its URL. See the changelog

Try the process with your own idea

Start with a small project and gather a few useful references. Ask ChatGPT to help you write a prompt that tells your coding agent to ask questions, plan, and produce a specification before it builds. Review the specification, break it into tasks, then guide the agent through implementation and checks.

You do not need to reproduce my calculator or use the same tools and model. Your version will reflect the information you provide and the choices you make along the way. The useful outcome is learning how to turn a loosely described idea into a plan and specification you can review while an AI coding agent builds it.

Try the HP-10B web calculator · Run its browser checks · Explore the repository

Continued study

Follow Not A Programmer

Hands-on walkthroughs and notes on applying AI effectively at work.