prompt-xray-skills
Skill1 starsChanged 5 months agoMITView on GitHub
Route prompt-engineering tasks to the right Prompt X-Ray workflow. Use this skill when the user wants to write, audit, test, debug, structure, or productize LLM prompts, system prompts, RAG policies, agent instructions, structured outputs, or AI assistant ideas.
In this repository9 other files it gives its agents.
The file
Show its rules and text
We split this skill into the rules it gives an agent
23 rules. About 0 are common, 18 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈18
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this root skill as a router for the Prompt X-Ray skill pack.
- Distinctive: line 14
Do not treat this repository as a list of prompt templates.
- Distinctive: line 33
If a prompt cannot be tested, it is not production-ready.
- Distinctive: line 37
Use these internal skills depending on the task.
- Distinctive: line 41
Use when the user has a vague idea and needs a structured prompt brief before writing the final prompt.
- Distinctive: line 61
Use when the user provides an existing prompt and wants to improve, harden, debug, or make it more reliable.
- Distinctive: line 81
Use when the user needs a system prompt for an assistant, chatbot, internal tool, or workflow agent.
- Distinctive: line 102
Use when the user needs instructions for coding agents or project agents.
- Distinctive: line 123
Use when the prompt is for a knowledge-base assistant or RAG system.
- Distinctive: line 142
Use when the LLM output must be parsed, stored, validated, or consumed by software.
- Distinctive: line 162
Use when the user needs test cases or quality checks for a prompt.
- Distinctive: line 183
Use when the prompt is already producing bad outputs and the user wants to diagnose the cause.
- Distinctive: line 203
Use when a prompt or assistant idea should become a product specification or MVP task.
- Distinctive: line 225
When the user asks for prompt-engineering help:
- Very specific: line 229
If the request is vague, start with 01-prompt-brief-builder.
- Very specific: line 230
If the user provides an existing prompt, use 02-prompt-auditor.
- Very specific: line 231
If the output must be consumed by software, include 06-structured-output-designer.
- Very specific: line 232
If the prompt will be reused, include 07-prompt-test-generator.
- Very specific: line 233
If the user wants implementation planning, use 09-prompt-to-product-spec.
- Distinctive: line 282
When applying a workflow:
- Distinctive: line 285
avoid generic prompt tips.
- Distinctive: line 291
prefer practical examples over theory.
- Distinctive: line 295
If the user does not specify a format, return:
≈ “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
Prompt X-Ray Skills Router
Purpose
Use this root skill as a router for the Prompt X-Ray skill pack.
The goal is to choose the right prompt-engineering workflow and apply it consistently.
Do not treat this repository as a list of prompt templates. Treat it as a set of workflows for designing reliable LLM behavior.
Core principle
A prompt is a behavioral specification for an AI system.
A good prompt should usually define:
- Goal
- Context
- Role
- Inputs
- Constraints
- Source of truth
- Decision rules
- Output format
- Uncertainty behavior
- Quality checks
If a prompt cannot be tested, it is not production-ready.
Available workflows
Use these internal skills depending on the task.
01-prompt-brief-builder
Use when the user has a vague idea and needs a structured prompt brief before writing the final prompt.
Typical triggers:
- "Help me write a prompt"
- "I need an AI assistant that..."
- "Turn this idea into a prompt"
- "I don't know how to explain this to an LLM"
Output:
- prompt brief;
- inputs;
- source of truth;
- constraints;
- output format;
- test cases.
02-prompt-auditor
Use when the user provides an existing prompt and wants to improve, harden, debug, or make it more reliable.
Typical triggers:
- "Improve this prompt"
- "Audit this prompt"
- "Make this prompt production-ready"
- "Why is this prompt unreliable?"
Output:
- prompt audit report;
- main problems;
- missing information;
- risk areas;
- improved prompt;
- test cases.
03-system-prompt-architect
Use when the user needs a system prompt for an assistant, chatbot, internal tool, or workflow agent.
Typical triggers:
- "Create a system prompt"
- "Write instructions for an AI assistant"
- "Design assistant behavior"
- "Make a prompt for a support bot"
Output:
- system prompt;
- mission;
- scope;
- source-of-truth policy;
- workflow;
- uncertainty rules;
- output contract.
04-agent-instruction-writer
Use when the user needs instructions for coding agents or project agents.
Typical triggers:
- "Write AGENTS.md"
- "Create CLAUDE.md"
- "Make Cursor rules"
- "Prepare Codex instructions"
- "Tell the coding agent how to work in this repo"
Output:
- repository-level agent instructions;
- architecture map;
- allowed/forbidden behavior;
- command policy;
- testing policy;
- reporting format.
05-rag-answer-policy
Use when the prompt is for a knowledge-base assistant or RAG system.
Typical triggers:
- "Make a RAG prompt"
- "The bot should answer only from docs"
- "Define no-answer behavior"
- "Prevent unsupported answers"
Output:
- source priority;
- citation rules;
- insufficient-context behavior;
- conflicting-source behavior;
- escalation rules.
06-structured-output-designer
Use when the LLM output must be parsed, stored, validated, or consumed by software.
Typical triggers:
- "Return JSON"
- "Create a schema"
- "Extract fields"
- "Make CRM-ready output"
- "Design structured output"
Output:
- output schema;
- field definitions;
- validation rules;
- valid example;
- insufficient-context example.
07-prompt-test-generator
Use when the user needs test cases or quality checks for a prompt.
Typical triggers:
- "Test this prompt"
- "Generate evals"
- "Create edge cases"
- "How do I check if this prompt works?"
Output:
- quality-check suite;
- typical cases;
- edge cases;
- incomplete-context cases;
- ambiguous cases;
- format-stability cases;
- review criteria.
08-prompt-debugger
Use when the prompt is already producing bad outputs and the user wants to diagnose the cause.
Typical triggers:
- "The model ignores my format"
- "This output is too generic"
- "Why is this answer bad?"
- "Debug this prompt"
Output:
- debug report;
- expected vs actual behavior;
- likely causes;
- smallest useful fix;
- revised prompt;
- confirmation test.
09-prompt-to-product-spec
Use when a prompt or assistant idea should become a product specification or MVP task.
Typical triggers:
- "Turn this AI idea into a spec"
- "Create a product spec for this assistant"
- "Convert this prompt into a product feature"
- "Prepare this for a developer"
Output:
- product specification;
- users and roles;
- AI responsibilities;
- human responsibilities;
- MVP scope;
- data sources;
- acceptance criteria;
- risks.
Routing procedure
When the user asks for prompt-engineering help:
- Identify the task type.
- Select the most relevant internal skill.
- If the request is vague, start with
01-prompt-brief-builder. - If the user provides an existing prompt, use
02-prompt-auditor. - If the output must be consumed by software, include
06-structured-output-designer. - If the prompt will be reused, include
07-prompt-test-generator. - If the user wants implementation planning, use
09-prompt-to-product-spec. - Produce a concrete artifact, not generic advice.
Common chains
Vague prompt idea
01-prompt-brief-builder -> 02-prompt-auditor -> 07-prompt-test-generatorAssistant system prompt
01-prompt-brief-builder -> 03-system-prompt-architect -> 02-prompt-auditorCoding agent instructions
04-agent-instruction-writer -> 02-prompt-auditor -> 07-prompt-test-generatorRAG assistant
05-rag-answer-policy -> 03-system-prompt-architect -> 07-prompt-test-generatorStructured extraction/API output
06-structured-output-designer -> 02-prompt-auditor -> 07-prompt-test-generatorBroken prompt output
08-prompt-debugger -> 02-prompt-auditor -> 07-prompt-test-generatorPrompt idea to MVP
01-prompt-brief-builder -> 09-prompt-to-product-specOutput rules
When applying a workflow:
- produce the requested artifact directly;
- avoid generic prompt tips;
- mark assumptions clearly;
- separate stable instructions from variable inputs;
- define missing-information behavior;
- include output format when relevant;
- include quality checks for reusable prompts;
- prefer practical examples over theory.
Default behavior
If the user does not specify a format, return:
- Diagnosis or brief summary
- Main artifact
- Quality checklist
- Suggested next step
Boundaries
This skill routes prompt-engineering workflows. It does not guarantee identical model behavior across platforms. Always test important prompts with realistic inputs before production use.
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.

