Build a Personal Prompt Refiner and Generator with Claude Artifacts
Turn one Claude chat into a personal prompt refiner with Artifacts: it sharpens weak prompts and grows rough ideas into basic, advanced and expert versions.
This article is published in English.
Sources: How To Create Your Own AI Prompt Generator That Works Forever
Most people who use language models daily end up with a folder of "good prompts" that nobody can search, and a habit of rewriting the same instructions about tone, format, audience and structure every time they start a task. Often the prompt takes longer to write than the output it produces. This guide shows how to replace that routine with a small, self-built tool: a prompt refiner and generator that runs inside a Claude chat, costs nothing extra, and needs no code from you. By the end you will have a working app, know what each of its modes is for, and understand why the prompts it produces tend to perform better than the ones you type by hand.
Why a prompt tool beats a prompt collection
A saved prompt is a frozen answer to one specific problem. When the next problem is slightly different, you either adapt the old prompt manually or start over. Generic templates found online have the opposite flaw: they are so broad that they rarely fit anything well without extra work.
What actually makes a prompt effective is a fairly stable checklist of ingredients: a clear role, the context the model cannot guess, the audience, constraints, the desired output format, and the things to avoid. A tool that knows this checklist and fills it in for you is more useful than any number of stored examples, because it adapts to whatever rough input you give it.
Hosted prompt generators exist, but many of them sit behind a subscription or a sign-up flow before you can try a single request. Building your own removes that friction and lets you shape the tool around the categories you actually work in. If you want the theory behind structured prompts in more depth, our guide to a seven-layer framework for production-ready LLM prompts walks through each layer.
How Claude Artifacts make this possible
The build relies on Claude's Artifacts feature. When you ask Claude for something interactive, such as a calculator, a to-do list or a small game, it does not just print a block of source code. It generates the app and renders it live in a preview panel next to the conversation, so within moments you are clicking buttons instead of reading code. If you want a change, you describe it in the chat and the app is regenerated in place.
For a prompt tool, this matters because the app can send your text back to the model and display the rewritten result, all without leaving the chat window. At the time of writing, this works on the free Claude plan as well as paid ones, but plan features and usage limits change, so check what your account currently includes.
Building the app in three steps
Step 1: Open a fresh chat
Start a new conversation in Claude. A clean chat keeps the build instructions from mixing with unrelated context, and it gives you a dedicated thread you can bookmark later.
Step 2: Describe the app you want
Paste a request that spells out the app's purpose and features, then send it and be patient; generating a full interface can take a few minutes. A detailed request produces a more polished result. The version used for this walkthrough asks Claude to act as an expert developer and build a responsive, production-quality web app named "Prompt Generator" with two core features:
- A prompt refiner that improves an existing prompt using one of these filters: General, Detailed, Expert, Short, Creative Writing, Image, Video, Coding, Marketing and Research, and returns a single optimized prompt.
- A prompt generator that turns an idea or requirement into prompts, filtered by General, Writing, Image, Video, Coding, Marketing and Research, and returns three outputs: a basic, an advanced and an expert prompt.
Listing the filters and the exact outputs is what makes the difference. Without them, Claude has to invent the product design itself, and you get something more generic.
If you would rather not write a specification at all, a one-line request is enough to get a minimal version:
Create a prompt refiner app
That shorter request still yields a basic refiner. You can then grow it iteratively by asking for extra modes, filters or layout changes in follow-up messages, which is often a good way to discover what you actually need.
Step 3: Open the artifact and keep the chat
When Claude finishes, its reply contains a clickable artifact titled after your app, here "Prompt Generator". Click it and the tool opens in the preview panel, ready to use. Save or bookmark the conversation; whenever you need a new prompt, you return to that chat and the app is waiting for you.
A tour of the finished tool
The generated app used in this walkthrough has two modes, switched with buttons in the top-right corner: Refiner and Generator. The refiner works on a prompt you already have; the generator starts from a raw idea. Both share a dark workspace with inputs on the left and results on the right, displayed on paper-textured cards. Your own build may look different, since the model makes its own design choices, but the flow will be similar.
Mode 1: Sharpening an existing prompt with the Refiner
The refiner is for the prompt that almost works. You bring a rough draft, choose the kind of output you need, and let the tool fill in what is missing.
Paste the draft
Put your prompt in the input box. It does not need to be tidy; unstructured or half-finished text is exactly the input this mode expects. A typical weak example is a one-liner asking for a high-quality, realistic image of a cat.
Choose a style
Ten style stamps are available: General, Detailed, Expert, Short, Creative Writing, Image, Video, Coding, Marketing and Research. Each one rewrites the prompt with that use case in mind. An Image style, for instance, pushes the rewrite toward composition, lighting and lens details, while Coding would push toward language, constraints and expected output.
Refine and copy
Press Refine prompt and, after a few seconds, the improved version appears on the result card. The Copy button puts it on your clipboard, and from there it works in any assistant: ChatGPT, Claude, Gemini or whichever you prefer.
What the rewrite adds
With the Image style, the one-line cat request becomes a full scene description. The refined version specifies the subject (a tabby cat on a sunny windowsill), a centered composition, soft light entering from the left with warm golden tones and gentle shadows, a palette of amber, cream and soft gray, a photorealistic look with fine fur detail and shallow depth of field, and a 4:3 frame as if shot at eye level with a 50mm portrait lens.
Notice that none of these details are exotic. They are simply the decisions an image model would otherwise make at random. The refiner's value is that it forces those decisions to be explicit.
Mode 2: Turning an idea into three prompts with the Generator
The generator handles the case where you have a goal but no prompt yet. Instead of one output, it returns three versions at different levels of detail.
Describe the idea plainly
Write what you want in everyday language, without trying to sound like a prompt. For example: you need a video prompt showing a car driving through green, hilly meadows in the rain.
Pick a category and generate
Choose the category that matches the task: General, Writing, Image, Video, Coding, Marketing or Research. Then press Generate prompts, and three cards fill in at the same time.
How the three tiers differ
- Basic is short and minimal: essentially the car, the meadows, the rain and a note that the shot should feel cinematic.
- Advanced adds structure and context: a winding road through misty rolling hills, low cloud on the hilltops, puddles rippling beside the road and a wet sheen on the asphalt, a medium tracking shot from slightly behind and to the side, overcast diffused light with soft reflections, and a 4K photorealistic finish with smooth motion.
- Expert is fully engineered. It opens by assigning a role (a cinematographer directing a photorealistic automotive sequence) and then breaks the brief into labeled sections: subject, environment, weather and lighting, camera, mood and tone, technical settings, and an explicit list of things to avoid, such as stylized visuals, harsh sunlight, dry roads or urban backgrounds. The camera section even describes a shot sequence, moving from a descending drone shot to a low wheel-level tracking shot to a hood-mounted view.
Each card has its own Copy button, so you compare the three and take whichever fits. A sensible rule of thumb is to use Basic when speed matters, Expert when the result really counts, and to mix them freely; nothing stops you from starting with the basic version and escalating only if the output disappoints.
When the tool helps and when it does not
The expert tier illustrates why structured prompts work: roles, labeled sections and an "avoid" list reduce the space of plausible outputs, so the model guesses less. That same structure has costs, though. Long prompts consume more of the context window, and highly specific constraints can over-fit, producing rigid results when you actually wanted the model to surprise you.
A few practical cautions apply:
- The refiner can only add details it can infer or invent. If your task depends on private facts, such as your product's name, your data schema or your brand voice, you still need to supply them.
- Invented specifics, like a speed range or a frame rate, are guesses. Review them before pasting the prompt somewhere that matters.
- Because the app is generated by a model, two builds from the same request will not be identical. If you like a particular version, keep that chat rather than rebuilding.
- Treat the tool as a first draft generator. Reading the expert output is also a quick way to learn which dimensions you tend to forget in your own prompts.
Wrapping up
- A reusable prompt tool scales better than a folder of saved prompts, because it applies the same structural checklist to any new input.
- Claude Artifacts let you build that tool from a single request, with no code and no separate hosting.
- Being explicit about modes, filters and outputs in the build request produces a much more useful app than a one-line ask, though the one-liner is a fine starting point.
- The refiner fixes prompts you already have; the generator's basic, advanced and expert tiers let you trade speed against precision.
- Always review what the tool adds, supply the context only you know, and keep the chat so your tool is there next time.