data-classification-prompt-standard
Skill0 starsChanged 6 months agoMITView on GitHub
Use when writing, reviewing, or optimizing batch data classification prompts. Enforces the strict structural anatomy, taxonomy rules, input/output formats, and few-shot requirements necessary for high-accuracy data classification at scale.
In this repository20 other files it gives its agents.
- Skills/Agentic AI Development/AI-research-SKILLs-1.1.0/CLAUDE.mdCLAUDE.md
- agent-evaluationSkill
- mermaidjs-v11Skill
- plotlySkill
- skill-creatorSkill
- data-scientistSkill
- ponytail-auditSkill
- ponytail-debtSkill
- ponytail-gainSkill
- ponytail-helpSkill
- ponytail-reviewSkill
- ponytailSkill
- canvas-designSkill
- frontend-ui-uxSkill
- aihotSkill
- storage-analyzerSkill
- notebooklm-slidesSkill
- pdf-generatorSkill
- professional-communicationSkill
- professional-proofreaderSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 12 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Every classification prompt MUST include the following sections, ordered exactly as shown:
- Distinctive: line 28
Every taxonomy label MUST be atomic and singular in concept.
- Distinctive: line 30
If a proposed label contains these characters, you must challenge the user: *"Should this be split into two separate taxonomies?
- Distinctive: line 33
Every taxonomy item must follow this precise format, containing a definition and examples:
- Distinctive: line 47
Check all taxonomy pairs for potential overlap or ambiguity.
- Distinctive: line 48
If two categories could potentially apply to the same input, you MUST force the user to define a disambiguation rule to ensure mutual …
- Distinctive: line 51
Every classification taxonomy MUST include two mandatory fallback categories:
- Distinctive: line 52
Unmapped Context: Use when the row is a valid target for the classification objective, but none of the defined taxonomy categories fit.
- Distinctive: line 53
False Positive: Use when the row itself is irrelevant and does not fit the classification objective or scope at all.
- Very specific: line 57
Input Placeholders: Use curly braces for dynamic variables at the end of the prompt (e.g., Text: {Text}, Row Data: {Row_Data}).
- Very specific: line 59
Multi-value Fields: If a field can have multiple values, use a pipe | delimiter within a single string (e.g., "tags": "tag1 | tag2"), NOT …
- Very specific: line 61
Reasoning Key: Ensure there is a "reasoning" key that captures the Chain of Thought as a single continuous string.
- Distinctive: line 72
Realism: Use real or highly realistic data.
- Distinctive: line 76
Lost-in-the-Middle Mitigation: Place critical, "do-not-break" constraints at the very START and very END of the prompt.
- Distinctive: line 77
Propagation Rules: If there are rules about how a fallback category impacts other fields (e.g., "If Category is False Positive, then Impact …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Data Classification Prompt Standard
This skill defines the structural standard for writing batch classification prompts. Any agent or user building a data classification prompt must adhere to this standard. It acts as the "constitution" for classification workflows.
1. Prompt Anatomy
Every classification prompt MUST include the following sections, ordered exactly as shown:
- SYSTEM CONTEXT & PERSONA (Top): Define the AI's role, persona, and domain expertise. This establishes the context before providing any tasks.
- OBJECTIVE (Near top): A clear, concise statement of the specific classification task and a high-level overview of the expected output format.
- TAXONOMY / CATEGORIES (Middle-top): The complete list of target categories (labels) the model is allowed to output, along with their precise definitions. See Taxonomy Enforcement Rules below.
- EXCLUSIONS & BOUNDARIES (Middle): Explicit instructions on what to ignore, edge cases that do not qualify, and boundaries for classification.
- INSTRUCTIONS & REASONING (Middle): Numbered, hard rules the model MUST follow. Explain the step-by-step reasoning or thought process (Chain of Thought) the model should execute before arriving at an answer.
- FEW-SHOT EXAMPLES (Lower-middle): Minimum 3 complete input-to-output examples. This grounds the instructions in reality.
- OUTPUT FORMAT (Near end): The strict JSON schema definition and output formatting constraints. Placed near the end to leverage recency bias.
- INPUT DATA (Very end): The actual data to classify, using
{placeholders}for dynamic replacement.
2. Taxonomy Enforcement Rules
Taxonomies dictate the boundaries of the classification. You must enforce these four rules during taxonomy creation:
Rule 1: Atomic Taxonomy Names
- Every taxonomy label MUST be atomic and singular in concept.
- FORBIDDEN: The use of
/,&, or\to combine distinct concepts (e.g., "IT Support & Server Maintenance", "Hardware/Software"). - If a proposed label contains these characters, you must challenge the user: "Should this be split into two separate taxonomies? If they represent different concepts, they MUST be split. Only keep them combined if they are the exact same concept known by different names."
Rule 2: Hierarchical Definition Format
Every taxonomy item must follow this precise format, containing a definition and examples:
**Level 1: [Category Name]**
Definition: [Scope boundaries — explicitly state when to use this category]
Positive Example: [1 real-data example that perfectly matches this category]
**Level 2: [Subcategory Name]** (If applicable)
Definition: [Precise scope + explicit exclusion boundary]
Positive Example: [Real data that SHOULD match]
Negative Examples: [1-3 edge cases that SHOULD NOT match, explaining why they belong elsewhere]Rule 3: Mutual Exclusivity Validation
- Check all taxonomy pairs for potential overlap or ambiguity.
- If two categories could potentially apply to the same input, you MUST force the user to define a disambiguation rule to ensure mutual exclusivity.
Rule 4: Dual Fallback Categories
Every classification taxonomy MUST include two mandatory fallback categories:
- Unmapped Context: Use when the row is a valid target for the classification objective, but none of the defined taxonomy categories fit.
- False Positive: Use when the row itself is irrelevant and does not fit the classification objective or scope at all.
3. Input/Output Standard
- Input Placeholders: Use curly braces for dynamic variables at the end of the prompt (e.g.,
Text: {Text},Row Data: {Row_Data}). - Output Structure: The final output MUST be a single flat JSON object. No arrays of objects unless absolutely unavoidable.
- Multi-value Fields: If a field can have multiple values, use a pipe
|delimiter within a single string (e.g.,"tags": "tag1 | tag2"), NOT JSON arrays. - No Markdown Wrapping: Output ONLY raw JSON. Do not wrap the JSON in ```json blocks.
- Reasoning Key: Ensure there is a
"reasoning"key that captures the Chain of Thought as a single continuous string. DO NOT use arrays for reasoning steps. - Confidence Key: Include a
"confidence"key containing either"high","medium", or"low". This serves as a secondary signal for human-in-the-loop review.
4. Few-Shot Example Standard
- Minimum Requirement: Include at least 3 complete examples. 4 to 5 is recommended.
- Coverage: The examples must cover:
- A typical, straightforward case (True Positive).
- A tricky edge case.
- A fallback / false-positive case.
- Completeness: Each example must include the simulated Input, the simulated Chain of Thought/Reasoning, and the final Output JSON.
- Realism: Use real or highly realistic data. Do not use synthetic "lorem ipsum" placeholders.
5. Context Engineering Integration
- Lost-in-the-Middle Mitigation: Place critical, "do-not-break" constraints at the very START and very END of the prompt.
- Propagation Rules: If there are rules about how a fallback category impacts other fields (e.g., "If Category is False Positive, then Impact must also be False Positive"), place these near the TOP of the Instructions.
- Stable Placement: The Taxonomy definitions should remain in the middle, as they are large blocks of stable context that require lower attention pressure.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

