3.4 KiB
Documentation prompts
A prompt is a short, ready-to-paste instruction that gets a coding agent moving
on the task a documentation page is about. Prompts live in one folder,
qdrant-landing/content/documentation/headless/prompts/, one file each, and
pages include them by id.
Adding one
-
Create
content/documentation/headless/prompts/<id>.md:--- title: "Set up monitoring with an AI agent" skill: qdrant-monitoring/setup page: /documentation/ops-monitoring/monitoring/ --- Help me set up monitoring for my Qdrant deployment. Read https://skills.qdrant.tech/qdrant-monitoring/setup/SKILL.md first, then ask me whether I am self-hosted, on Qdrant Cloud, or on Hybrid Cloud.titleis what shows when the element is collapsed, which is the only thing most readers will ever see of it.skillis a path underskills.qdrant.tech, without the/SKILL.mdsuffix. Omit it when no skill applies.pageis where the prompt is included. CI checks that page really includes it.open: truerenders the element expanded. Use it only where the prompt is the point of the page, as on the Agentic Tools hub.
-
Add
{{< prompt "<id>" >}}to that page, near the top of the section it relates to rather than at the bottom. -
Run
automation/prompts/check-prompts.sh. It needs no build. Pass a built site directory to also verify the real output, for exampleautomation/prompts/check-prompts.sh qdrant-landing/public.
Writing one
A few sentences. Enough to get someone moving, not a specification.
Name the skill inside the body, with its full SKILL.md URL, so the agent
loads it rather than guessing. Prompts exist partly to surface skills.
No variables. Never ask the reader to fill something in before pasting. If the task needs their configuration, tell the agent to ask for it.
Do not restate the page. The reader is already on it. A prompt that re-explains the feature earns nothing.
Ask for what the docs cannot give. The useful instructions are the ones that make an agent commit to a judgment call: which setup applies to the reader's deployment, what to check first, what to ignore.
Title it as an offer, not a label. "Set up monitoring with an AI agent" tells a reader what they get. "Prompt" does not, and the element is collapsed by default, so the title is the whole invitation.
Two rules that break silently
Prompt bodies must never reach a built index.md. Those files are consumed
by agents. A prompt is an instruction written in the imperative first person,
so an agent reading it inside a page it was told to fetch can follow the prompt
instead of answering the question it was actually asked. The shortcode's
Markdown variant drops the body and keeps the skill pointer. This is also why a
prompt is never written as a plain fenced block on the page.
The page: declaration is what the index trusts. Prompt files cannot know
who includes them, so a stale declaration would put a wrong link in the index,
and a prompt that is never included would still be listed.
check-prompts.sh guards both, plus a third rule that keeps them equivalent:
the Markdown variant of the shortcode must never render the body. Rule one is
checked in the source rather than in the built output, because pasting a body
inline is a source-level mistake and catching it there means CI needs no site
build.