AI products & updatesPractical AI workflows

Claude Artifacts: test a small tool before sharing it

An AI-generated interface can look convincing without being ready for someone else to use. This guide uses a small length-conversion exercise without connected apps to show how to define requirements, check behavior and review sharing access. It is an editorial practice example, not a claimed account-level test.

Colored program code on a computer screen, illustrating review of an AI-built tool rather than Claude’s interface
Illustrative photo: Fili Santillán · Unsplash License

What changed: Added an explicit input contract, an independently checkable action sequence and regression requirements for blank-input and partial-parsing fixes.

Key Takeaways

Define input rules, expected results and error handling before generation. Independently check ordinary values, zero, blank input and invalid characters, then rerun those cases after changes. Review the current Share panel and recipient access rather than automatically applying an older Publish tutorial.

In this article

Check the current artifact type and entry point

Claude’s Artifacts help describes creating and editing standalone work. Current artifacts require Cloud code execution and file creation. It distinguishes legacy chat artifacts created before September 16, 2026, so an older tutorial may show different controls.

Use your actual interface, organizational settings and authority. Do not casually change organization permissions for a practice task. Choose a minimal example without personal records, external connections or persistent storage. Templates, networking and storage are outside this exercise.

Turn an idea into checkable requirements

A request to make a converter leaves unanswered questions: are negatives allowed, does blank mean zero, how is precision displayed, and is anything saved? Define the scope before generating an interface.

This exercise converts meters to centimeters by multiplying by 100. Allow nonnegative decimals; explain blank, negative and nonnumeric input instead of showing a successful result. Include units, a clear button and text labels. Do not load outside material or save input.

If comparing models too, consult the task and failure conditions for model evaluation. Model choice does not replace this tool’s specification, and improved presentation does not establish correct arithmetic.

Example prompt: explain boundaries before generating

Ask for a meter-to-centimeter tool accepting only nonnegative decimal numbers, multiplying by 100 and labeling the output in centimeters. Require explanations for blank, negative and nonnumeric input, a clear action, keyboard access and a readable phone layout. Exclude app connections, AI service calls and saved data. Ask it to explain the implementation and limits before generating, then list cases for you to check.

These are requirements to verify, not a guarantee the model will follow them. If it adds networking, sign-in or storage, ask why and return to the minimum scope. Do not submit secrets, customer records or code you are not authorized to use.

Calculate expectations independently

  • Ordinary input: 1 meter should produce 100 centimeters and 1.25 should produce 125. Calculate these first; the same generation should not be its own sole judge.
  • Boundary behavior: 0 should produce 0. Clearing must not retain the previous result. Inspect rounding explanations for long decimals; displayed precision is not unlimited precision.
  • Invalid input: blank, -1 and abc should be rejected or explained. Do not silently accept blank as zero or parse an arbitrary fragment into a valid value.
  • Interaction: navigate input and buttons with a keyboard. Narrow the window and check labels, error messages and results. One successful click does not cover every path.
  • After edits: retain a problem list, request targeted changes and rerun the original cases. Presentation changes can affect input behavior.

Verify access as the recipient

The sharing documentation distinguishes Share for new artifacts from legacy Publish. Recipients generally need a Claude account for new shared artifacts; legacy public chat artifacts are an exception. Organization and artifact type affect sharing options.

Use an authorized recipient account to check opening, intended access and behavior. If you cannot test recipient access, mark it unverified. Successfully opening your own work does not establish access for another person.

If you later add apps, redesign acceptance using the external-connection permission and result checks. Vendors expose different controls. A do-not-edit prompt is not an actual permission switch.

Make invalid input an executable contract

The isolated values above do not catch a stale result. Extend the same meter-to-centimeter exercise with this authored contract; its inputs, expectations and failures are invented, not an account-level Claude test. After trimming surrounding spaces, require one or more digits, optionally followed by a decimal point and one or more digits. Exclude grouping commas, unit text, signs and scientific notation. This is a design choice for this exercise, not a universal converter rule.

Under that contract, 001.25 represents 1.25 meters. Reject .5, 1., +1, 1e2, 1,5 and 2m with an explanation. If you want to accept .5, change the contract and expectation first instead of letting the implementation guess. Both the accepted value and its product with 100 must be finite: Infinity is not a normal centimeter result. Long decimals remain subject to the actual numeric implementation and display precision.

A specific change request for the existing converter

Keep meter-to-centimeter conversion, keyboard access and phone readability. Refine only input and state: trim surrounding spaces; require one or more digits, optionally followed by a decimal point and one or more digits. Reject unit suffixes, commas, signs and exponent notation. Invalidate the previous result whenever input changes. Blank means not entered; invalid input needs an explanation; show centimeters only for valid input with a finite result. Add no networking, storage or AI calls. Explain the affected logic before implementing.
An authored specification to inspect against the implementation, not evidence that the generated tool followed it.

Run a sequence to expose stale results

Follow the table from top to bottom without reopening the artifact between rows. If 1.25 produces 125 and deleting it leaves 125 displayed, the arithmetic may be correct while the relationship between input and result is broken. If 2m produces 200, partial-string parsing violates the complete-input contract. These are distinct repairs; colors or a new success message address neither.

Request a targeted change: fix validation and result invalidation only, preserve the layout and rules, and identify the changed logic and recheck cases. Then repeat the complete sequence, submit once using the keyboard, and inspect error text at phone width. The independent calculations are 1.25 × 100 = 125, 0 × 100 = 0 and 0.5 × 100 = 50. Passing them does not establish arbitrary precision or coverage of every browser. Retain the version, failed input and actual observation for each round; recipient access remains a separate check before sharing.

An authored sequence within one session, with reference states
Order and inputExpected behaviorWhat it checks
1: 1.25125 cmOrdinary decimal conversion
2: delete all charactersNot entered; no 125 cm resultInvalidate the previous success
3: 2mInvalid input; no 200 cm resultValidate the complete string
4: 00 cmZero differs from blank
5: 0.5 with surrounding spaces50 cmTrim surrounding spaces only
6: activate ClearInput, result and old error clearedConsistent cleared state

Understand what a few passing examples establish

A few examples verify those inputs and paths, not every value, browser or device. Retain requirements and correction records, and identify who handles errors if the tool needs ongoing maintenance. Higher-reliability uses need a competent implementation review.

This exercise is not a new KitNelo converter or certified engineering software. Complex units, precision and real business rules need independent verification. AI generation, cloud execution and local processing are different concepts; do not describe an Artifact as fully offline.

Common questions

Can I try this without coding experience?

Start with minimal rules and hand-calculated expectations. Limited implementation knowledge makes complex defects harder to identify. Use invented data and low-impact tasks, and obtain competent review for more complex uses.

Does a working interface establish correct calculation?

No. Check rules, expected values, invalid input and interaction separately. Keep independent results and repeat checks after changes.

Why can someone else not open my link?

Recipient accounts, access scope, organizational settings or artifact type may be involved. Check current sharing help and the actual panel rather than assuming new artifacts behave like legacy public ones.

Further reading & sources

Newer articles on this topic

Continue with a newer article that refers to this guide or explainer.