Adopt a kebab-case stable identity, keep the version in its own field (v1, v2, or vMAJOR.MINOR.PATCH), and push everything else into metadata. That separation exists because a name should answer "which prompt is this," not "which revision" or "who can use it," and mixing those jobs breaks search and tooling the moment a prompt changes. Run a quick inventory of your current prompts this week and you will likely find the gaps already.
TL;DR:
- Using kebab-case for prompt names ensures stability, readability, and safety across systems, avoiding collisions and version-related renaming issues.
- A naming schema should follow the pattern domain-usecase-component-type, with allowed characters limited to lowercase letters, numbers, and hyphens.
- Prompt versioning should follow semantic rules, with major, minor, and patch updates, and each change must include a changelog entry for reliable tracking.
- All metadata fields such as audience, status, target models, and tags must be separated from the prompt name to maintain concise, durable identifiers.
- Automated validation tools, including regex checks and registry cross-references, are essential for maintaining consistency and preventing naming drift.
Table of Contents
- Core principles for prompt names and discoverability
- A naming grammar you can copy directly
- Versioning rules and changelog practice
- Metadata, tags, and fields that keep names short
- Validation, tooling, and automated checks worth setting up
- How to roll this out without breaking active prompts
- Examples and templates you can copy
- Common pitfalls and fixes
- Why naming discipline pays off in production
- How PromptChief supports naming, versioning, and metadata in practice
- FAQ
- Sources
Core principles for prompt names and discoverability
A prompt name has one job: give a stable, unique identity to a prompt regardless of how its content changes over time. The prompt-cli documentation recommends keeping that identity separate from revision tracking and from discoverability fields like audience, status, model, and output format, which belong in metadata or tags instead.
That separation matters because identity and content move at different speeds. A prompt's wording might change ten times while its identity, the thing other systems reference and other people search for, stays constant. When teams bake version numbers, dates, or model names into the title itself, every edit forces a cascading rename across registries, filenames, and any code or documentation that references the old string.
Machine-safety is the second design goal. Names need to survive being used as file paths, URL slugs, and database keys without escaping or collisions, which is why kebab-case (lowercase words separated by hyphens, no spaces or special characters) has become the practical standard across prompt libraries and directory specs alike.
Naming conventions must also deliver on:
- Uniqueness: no two prompts share an identity, even across teams or folders.
- Readability: a person skimming a list should understand the prompt's purpose without opening it.
- Durability: the name should not need to change when the prompt's wording, model target, or status changes.
None of this replaces good prompt writing. A clean name makes a prompt easy to find, but OpenAI's prompt engineering guidance is clear that output quality depends on clear instructions, structure, delimiters, and examples, not on what the prompt is called. Treat naming as a retrieval and governance layer that sits on top of good prompt design, never as a substitute for it.
Pro Tip: If you can't guess what a prompt does from its name alone, the name has failed its one job.
A naming grammar you can copy directly
A workable schema has four segments, each with a defined purpose: domain-usecase-component-type. Written out, a real example looks like support-ticket-triage-classifier, where "support" is the domain, "ticket-triage" is the use case, and "classifier" names the prompt type.
Each segment should draw from a short, approved vocabulary rather than free text:
- Domain: the team or product area (
support,marketing,eng,sales). - Use case: the specific job the prompt does (
ticket-triage,email-reply,code-review). - Component (optional): a sub-step when a use case has multiple prompts (
extract,summarize,draft). - Type: the prompt's function (
classifier,generator,rewriter,validator).
Allowed characters stay limited to lowercase letters, numbers, and hyphens, with no spaces, underscores, or punctuation. Most teams cap total length around 60 characters, long enough to be descriptive, short enough to stay readable in a list view or a dropdown.
Abbreviations are the usual failure point. One team writes cust, another writes customer, and search breaks silently. The fix is a single approved-abbreviation table, maintained by whoever owns the registry, that every contributor checks before inventing a new shorthand.
| Good name | Bad name | Why |
|---|---|---|
support-ticket-triage-classifier | TicketTriageClassifier_v2 | Mixed case, underscore, embedded version |
marketing-email-reply-generator | email generator (new) | Spaces, vague qualifier |
eng-code-review-summarizer | code_review_prompt_FINAL | Underscore, non-durable qualifier |
sales-lead-qualifier-v1 | lead-ql | Unapproved abbreviation, ambiguous |
Run these names past a regex check (lowercase letters, numbers, and hyphens only) before anyone saves a prompt, and you will catch most of the inconsistency at the source.
Versioning rules and changelog practice
Treat prompt revisions the way engineering teams treat API releases. Paul Serban's guide to building a versioned, testable, model-agnostic prompt library recommends semantic versioning tied to what actually changed in the prompt's behavior, not just that it changed.
The bump rules are straightforward once you define "breaking" for a prompt:
- Major: the input format, output schema, or behavior changes in a way that breaks anything depending on the old version.
- Minor: a backward-compatible addition, like a new optional field or an extra example.
- Patch: a wording fix, typo correction, or formatting tweak with no behavior change.
Active versions stay immutable. Once a prompt version is in production, you never overwrite it in place; you publish a new version and retire the old one on your own schedule. This matters because the same guidance treats prompts as production artifacts with registry IDs, input and output schemas, and observability data attached, which only works if a version number reliably points to one fixed piece of text.
One of the most effective practices for prompt stability is pairing every version bump with a short changelog entry, as practitioner guidance on versioned prompt libraries describes: a line recording what changed, why, and what the evaluation results looked like before the new version replaced the old one. Without that, rollbacks turn into guesswork about which version actually worked.
A minimal changelog entry needs:
- Intent: one sentence on why the change was made.
- Evaluation status: pass, fail, or pending, against whatever test set you use.
- Rollback note: the previous version ID, so reverting is a one-line operation.
Storage follows the same logic: either a v# directory per major version or a vMAJOR.MINOR.PATCH suffix on the file, consistently applied across the whole library so nobody has to guess which pattern a given team used.
For deeper governance patterns around embedding version control into production LLM pipelines, the practitioner post on prompt versioning covers how teams fold these checks into their delivery process rather than treating them as a one-off cleanup.
Metadata, tags, and fields that keep names short
Everything that is not part of a prompt's stable identity belongs in metadata, not the name. This is what keeps a naming grammar from turning into a run-on string of qualifiers nobody can type correctly.
A practical metadata record covers:
- Audience: who the prompt is built for (internal team, external customer-facing, developer-only).
- Status: draft, active, deprecated, or archived.
- Target models: which models the prompt is tuned for (GPT, Claude, Gemini, or model-agnostic).
- Language: the primary language the prompt expects and produces.
- Output format: plain text, JSON, markdown, or a specific schema.
- Owner: the person or team responsible for updates.
- Tags: free-form labels for cross-cutting search (
customer-facing,high-risk,experimental).
Tags and structured fields serve different purposes. Structured fields answer yes/no or one-of-several questions a filter can act on directly, like status or output format. Tags handle the messier, overlapping labels that do not fit a fixed list, like flagging a prompt as experimental while it is also marked active for a limited rollout.
Model hints are a good example of why this split matters. Instead of naming a prompt support-ticket-triage-classifier-gpt4, you keep the name model-agnostic and store target_models: ["gpt-4", "claude-3"] in metadata. If the team later retunes the same prompt for a new model, the identity does not change, only the metadata does.
This is also what makes fine-grained search possible. A query like "active, English-language, customer-facing prompts tuned for Claude" is a metadata filter, not a naming problem, and trying to encode all of that into a filename produces exactly the unreadable strings a good convention is meant to prevent.
Validation, tooling, and automated checks worth setting up
A naming convention that depends on everyone remembering the rules will decay within a few months. The fix is automation that rejects bad names before they enter the registry. The prompt-cli structure docs note that name mismatches between registry, filename, and metadata are a common source of broken tooling, and that linting is the most reliable way to catch them.
A basic validation layer should check:
- Regex compliance: lowercase letters, numbers, and hyphens only, matching your defined pattern.
- Uniqueness: no collisions against existing registry entries.
- Name-metadata cross-check: the registry name, the filename, and the
metadata.namefield all match exactly. - Placeholder validation: any variables or fillable fields in the prompt body follow a consistent syntax (for example,
{{customer_name}}) and are documented in metadata.
Registry policy should enforce a few hard rules at the process level: no in-place edits to a version once it is marked active, a changelog entry required on every version bump, and automatic rejection of any submission that fails the schema check.
Pro Tip: A pre-commit hook that runs the regex and uniqueness check takes an afternoon to build and catches most naming drift before it reaches production.
For teams building this out, a lightweight CLI linter, a pre-commit hook tied to your version control system, and a bulk-rename script that runs in a dry mode before touching anything live are the three tools worth prioritizing first. The prompt-cli project documents patterns for exactly this kind of validation.

How to roll this out without breaking active prompts
Migrating an existing prompt library to a new convention works best as a sequence, not a single weekend project. The PromptG spec's registry recommendations lay out a practical order:
- Inventory every prompt currently in use and assign an owner to each one.
- Decide a migration window and back up the existing library before touching anything.
- Publish the naming grammar and the approved-abbreviation table to the whole team.
- Run automated validation against the proposed new names in a staging environment first.
- Rename stable identities following the grammar, keeping old names as aliases for a transition period.
- Add metadata (audience, status, model, owner, tags) to every renamed prompt.
- Version active prompts under the new scheme and retire ad hoc version markers from old names.
- Schedule recurring review and archive cycles so deprecated prompts get retired on a fixed cadence rather than piling up.
Keeping old names as aliases during the transition matters more than it sounds. Guidance on building versioned prompt libraries recommends mapping old name to new canonical ID directly in the registry, so any stored reference, log entry, or external integration keeps working while people adjust to the new names. For a deeper walkthrough of structuring the library itself before you rename anything inside it, see our guide to building a prompt library structure.
Examples and templates you can copy
Seeing the grammar applied across different prompt types makes it easier to apply consistently. Here are working examples using the domain-usecase-component-type pattern:
| Prompt purpose | Canonical name |
|---|---|
| Summarize long documents | content-doc-summarize-generator |
| Generate SQL from natural language | eng-sql-generation-generator |
| Review pull request code | eng-code-review-reviewer |
| Draft customer email replies | support-email-reply-generator |
| Classify support tickets | support-ticket-triage-classifier |
| Rewrite marketing copy | marketing-copy-rewrite-rewriter |
| Qualify sales leads | sales-lead-qualify-classifier |
| Validate structured JSON output | eng-output-schema-validator |
File layout should mirror the registry exactly, since the directory standards referenced in community prompt repositories call for kebab-case filenames, zero-padded sequence numbers where ordering matters, and dates written as YYYY-MM-DD, with no spaces or underscores anywhere in the path.
A minimal metadata record looks like this in practice:
name:support-ticket-triage-classifierversion:2.1.0status:activetarget_models:["gpt-4", "claude-3"]owner:support-teamchangelog:"2.1.0: added escalation tag field, evaluated against 50-case test set, passed"
For ready-made examples across common use cases, our library of AI prompt templates follows this same structure.
Common pitfalls and fixes
Most naming failures trace back to the same handful of mistakes. Encoding a version number or status directly in the name (email-reply-v2-FINAL) is the most common one, and it guarantees a rename every time the prompt updates. Inconsistent abbreviations are a close second: one contributor's cust and another's customer fragment search results across a library that otherwise looks clean.
Ambiguous verbs and nouns cause subtler damage. A name like process-data tells you almost nothing about what the prompt actually does, while eng-csv-clean-transformer tells you domain, input type, and function in one glance. Editing an active version in place, rather than publishing a new version, is the most damaging pitfall of all, since it breaks any evaluation history or rollback plan tied to that version number.
The fixes are direct:
- Run a normalization script against existing names to strip embedded versions and statuses.
- Route renames through the prompt's owner, never a bulk automated pass alone.
- Enforce the approved-abbreviation table at validation time, not as a style suggestion.
- Migrate with aliases or redirects so old references keep resolving during the transition.
When a prompt needs a friendlier label for a non-technical audience, keep that as a separate display_name field in metadata and leave the machine ID untouched.
Why naming discipline pays off in production
The teams that get burned by prompt chaos are rarely the ones with messy content. They are the ones where nobody can say with confidence which version of a prompt shipped last Tuesday. Immutability and validation sound like process overhead until the day a rollback takes five minutes instead of an afternoon of archaeology through chat logs and shared docs.
Scale your rigor to your risk. A two-person team can get away with a lighter version of this system; a company running prompts against customer-facing workflows cannot. Try the full convention in a staging registry before rolling it out everywhere, and adjust the vocabulary to match how your team actually talks about its work.
— John
How PromptChief supports naming, versioning, and metadata in practice
We built PromptChief around the same separation this article argues for: a stable prompt identity, version history, and structured metadata fields like audience, model, and status, all kept distinct instead of jammed into one filename. Changelog notes and synchronization mean your naming convention travels with you across devices instead of living in one person's folder. 
See how it works on our prompt management page or compare plans and pricing to find the right fit for your team.
FAQ
What are the six key elements of a prompt?
Definitions vary across practitioners, but a common version includes instruction, context, input data, output format, examples, and constraints or tone guidance. Vendor documentation from OpenAI emphasizes clear instructions, structure, and examples as the elements that most affect output quality.
What are the naming conventions?
A reliable prompt naming convention uses a kebab-case identity built from fixed segments like domain, use case, and prompt type, with version numbers and discoverability details kept out of the name itself. The prompt-cli structure guidance recommends storing version and metadata separately so the name stays stable as the prompt evolves.
What are the four main elements of a prompt?
A common simplified framework names instruction, context, input data, and output indicator as the four core elements. This mirrors the structural guidance in Claude's prompting best practices, which stresses explicit instructions and clear delimiters between sections.
What is the best format for prompts?
There is no single required format, but vendor guidance from OpenAI, Claude, and Google's Gemini API consistently recommends clear instructions, explicit delimiters, relevant examples, and a stated output format. The naming scheme you use for the prompt file is separate from this internal structure, though both matter for reliable results.
Sources
- prompt-cli docs — prompt structure
- How to build a versioned, testable, and model-agnostic prompt library — Paul Serban
- Best practices for prompt engineering with the OpenAI API — OpenAI Help Center
