# Prompt

> Canonical: https://skillalmanac.com/glossary/prompt | Last verified: 2026-11-24 | Index status: index-eligible

A prompt is input supplied to an AI model to guide its response. A text prompt can contain a question, an instruction, an example or a role; supported inputs can also include images, depending on the model.

Also called: prompts, ai prompt, ai prompts, what is a prompt in ai, prompt ai.

## In plain language

A text prompt is the text you give an AI model to guide its response. It can be a question, an instruction, an example, or the start of a sentence for the model to finish. Anthropic's guidance compares Claude to a new employee who lacks context on your norms and workflows: the more precisely you explain what you want, the better the result.

## Technical definition

Google's glossary defines a prompt as any text entered as input to a large language model to condition the model to behave in a certain way, and says prompts can be as short as a phrase or arbitrarily long. In OpenAI's API guide, messages have roles: developer messages are instructions provided by the developer, prioritized ahead of user messages. The same guide says content generated by a model is non-deterministic, that different model types might need to be prompted differently, and that even different snapshots of models in the same family could produce different results.

## How it shows up when you use agents

The examples here use text prompts. Prompt inputs need not always be text alone: OpenAI documents language models that accept images, and image models that accept text and image inputs. The supported media depend on the model and API.

In Claude Code, you start a session by running `claude` in a project directory and then ask questions, such as "what does this project do?" (Claude Code quickstart). Claude Code also reads CLAUDE.md, a markdown file in your project root, at the start of every session (Claude Code overview). See [System prompt](/glossary/system-prompt) and [Context window](/glossary/context-window).

What goes wrong when this is misunderstood:

- **Vague prompts get weaker results.** Anthropic says Claude responds well to clear, explicit instructions. The Claude Code quickstart contrasts "fix the bug" with "fix the login bug where users see a blank screen after entering wrong credentials."
- **Missing context.** Anthropic describes Claude as a new employee who lacks context on your norms and workflows, and suggests showing your prompt to a colleague: if they would be confused, Claude will be too.
- **A prompt may not carry over between models.** OpenAI states that different model types might need to be prompted differently and that even different snapshots could produce different results.

See [Prompt engineering](/glossary/prompt-engineering) and [Few-shot prompting](/glossary/few-shot-prompting).

## Common confusions

- **Prompt versus system prompt.** OpenAI's guide describes developer messages as instructions provided by the developer, prioritized ahead of user messages. See [System prompt](/glossary/system-prompt).
- **Prompt versus prompt engineering.** A prompt is the input. Google's glossary defines prompt engineering as the art of creating prompts that elicit the desired responses from a large language model.
- **Prompt versus context window.** Google's glossary defines the context window as the number of tokens a model can process in a given prompt. See [Context window](/glossary/context-window).

## Worked examples in this catalogue

### [prompt-writing](https://skillalmanac.com/skills/skill-almanac/prompt-writing)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Writes and lints LLM prompts with a fixed structure, injection rules and a numeric test plan.

Why it exercises the concept: A skill that writes and lints LLM prompts.

### [Claude Code](https://skillalmanac.com/tools/claude-code)

```
claude
```

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Running claude in a project directory starts Claude Code, where you can ask what does this project do?

Why it exercises the concept: What you ask in the session is a prompt.

## Related terms

- [Prompt engineering](https://skillalmanac.com/glossary/prompt-engineering.md)
- [System prompt](https://skillalmanac.com/glossary/system-prompt.md)
- [Context window](https://skillalmanac.com/glossary/context-window.md)
- [Token](https://skillalmanac.com/glossary/token.md)
- [Few-shot prompting](https://skillalmanac.com/glossary/few-shot-prompting.md)
- [Large language model (LLM)](https://skillalmanac.com/glossary/large-language-model.md)

## Sources

- [Images and vision](https://developers.openai.com/api/docs/guides/images-vision), OpenAI (accessed 2026-11-24)
- [Machine Learning Glossary: Generative AI](https://developers.google.com/machine-learning/glossary/generative), Google for Developers (accessed 2026-11-24)
- [Prompting best practices](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices), Anthropic (Claude Docs) (accessed 2026-11-24)
- [Prompt engineering](https://developers.openai.com/api/docs/guides/prompt-engineering), OpenAI (API Docs) (accessed 2026-11-24)
- [Quickstart](https://code.claude.com/docs/en/quickstart), Anthropic (Claude Code Docs) (accessed 2026-11-24)
- [Claude Code overview](https://code.claude.com/docs/en/overview), Anthropic (Claude Code Docs) (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-24. [Glossary index](https://skillalmanac.com/glossary.md).
