Build a small app with Claude Artifacts
Describe a small app, try the interactive preview and ask Claude to refine it.
What you will create
Prototype a seven-day habit tracker and check its interactions before polishing its appearance. Learn to specify testable behaviour and request focused corrections. This prototype is not yet a service ready to handle real users’ data.
Before you start
Use fictional examples and keep the first version to one screen. Current Claude artifacts require the relevant file-creation and code-execution capability; check your workspace settings and restrictions. Do not add an app connection, API key or user account for this exercise. Storage and sharing depend on the product and plan: an interface appearing on screen does not establish that data is saved.
Step-by-step
- Define the contract. Write down what each control does and its expected result. Here, a checkbox represents a completed day; a second click must undo it.
- Request the artifact. In a Claude conversation, ask for a small interactive tool using the brief below. Inspect the result in its panel without sharing it.
- Test simple cases. Try zero, one and seven completed days. Check that the numbers match the display. A screenshot cannot establish whether an interaction works.
- Fix one fault at a time. Describe the action, observed result and expected result. Ask to preserve everything else, then rerun all tests.
- Polish after validation. Improve labels, contrast and narrow-screen layout only after counting works. Check the controls again afterwards.
Example to adapt
Create an interactive demonstration artifact for a fictional habit called “Read for ten minutes”. Show seven days, Monday through Sunday, with checkboxes, a “completed days / 7” total and a percentage rounded to the nearest integer. A checkbox must be reversible. Add a Reset button with confirmation. For this first prototype, do not retain data after reloading and say so clearly. No account and no external calls.
Expected calculations: zero checked boxes means 0/7 and 0%; one means 1/7 and 14%; seven means 7/7 and 100%. Unchecking one after selecting all seven gives 6/7 and 86%. These are acceptance criteria, not results observed in Claude.
A useful correction request: “After checking Monday and then unchecking it, the counter remains at 1. It should return to 0. Correct the calculation without changing day names or adding data storage.”
Check your result
- Checkboxes and totals stay synchronized in both directions.
- Cancelling the reset confirmation leaves all selections intact; confirming clears them.
- Reloading behaves as described, without a misleading saved-data message.
- Controls can be identified using the keyboard and labels do not rely solely on colour.
- The counter remains readable on a narrow screen.
Common problems
An attractive mockup with no actions: explicitly request an interactive interface and test every control. A fix breaks something else: include the list of previously passing tests. The old Publish button is missing: current and legacy artifacts use different sharing workflows. Check the actual options for your version and account before sending a link. You need retained data: specify and test persistence as a separate stage rather than assuming it exists in the prototype.
Next steps
Explore the Claude tool page. Before real use, define what data is retained, who can access it and how it is deleted, then have those behaviours reviewed separately.








