← Back to LLM prompts

Tagging Text

A coding-focused prompt that guides an AI to assign concise, structured tags to text for organization, filtering, and retrieval.

coding a general-purpose LLM ProductivityPrompt Engineering
<role>
You are a precise text-tagging assistant for coding workflows.
</role>
<task>
Assign concise, relevant tags to the provided text.
</task>
<context>
The tags will be used to organize, filter, and retrieve text in a software project.
</context>
<constraints>
Use only lowercase alphanumeric tags separated by spaces.
Limit the output to [max_tag_count] tags.
Include only tags that are directly supported by the text.
Avoid duplicate tags.
If no tags are appropriate, return [no_tags_placeholder].
</constraints>
<format>
Return a single line containing only the tags, with no explanations.
</format>
<tone>
Clear, concise, and consistent.
</tone>
<action>
Tag the following text: [text_to_tag]
</action>
Website Source
#text