prompt-architect
Skill3 starsChanged 6 months agoMITView on GitHub
Convert any rough, casual, or unstructured human prompt into a clean, professional, well-architected prompt. Use this whenever a user pastes a messy instruction, a brain-dump, a bullet list, or a vague request and wants it rewritten as a structured prompt — for an AI agent, a coding assistant, a writing task, or a teammate. Trigger this whenever the user says things like "structure this prompt", "make this a proper prompt", "turn this into a format", "rewrite this professionally", "clean up this instruction", or pastes a wall of text that is clearly meant to be an instruction. Also use it proactively when someone is about to hand a low-quality prompt to another model and would benefit from a tighter version.
13 other projects use a version of this.
Adopted by
Most recently taken up by
- dev-ik/ai-design-rulestheir own version, first seen Oct 6, 2026
- Tobeiyyy/FLIP-prompt-architecttheir own version, first seen Oct 1, 2026
- shas9/claude-skillstheir own version, first seen Sep 2, 2026
- ckelsoe/prompt-architecttheir own version, first seen Jul 24, 2026
- viktor-milev/claude-skillstheir own version, first seen Jun 21, 2026
- ciaransaunders/Skills-Publictheir own version, first seen Jun 20, 2026
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- repowise-dev/claude-code-prompts★ 1.2ksame name
- ckelsoe/prompt-architect★ 309same name
- Svenja-dev/claude-code-skills★ 38same name
- q2wxec/claude-code-skill★ 16same name
- dev-ik/ai-design-rules★ 3same name
- ryankolean/summit-claude-skills★ 3same name
- ciaransaunders/Skills-Public★ 2same name
- shas9/claude-skills★ 2same name
- Tobeiyyy/FLIP-prompt-architect★ 2same name
- cxm-ict/claude-skills★ 1same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- frontend-flutterSkill
- frontend-nextSkill
- frontend-react-nativeSkill
- frontend-reactSkill
- seo-nextSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 13 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Follow these steps in order.
- Distinctive: line 29
When in doubt, go one tier higher — extra structure rarely hurts.
- Distinctive: line 32
Place every piece of the rough prompt into the correct PAS section (defined below).
- Distinctive: line 83
Use this exact skeleton. Drop unused sections.
“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Prompt Architect
This skill turns a rough human prompt into a professionally structured one using a single, scalable framework called the Prompt Architecture Standard (PAS).
The same framework works for a non-technical request ("write me a birthday speech") and a complex technical/agentic task ("refactor this service, don't touch the API"). It scales by adding or dropping sections — the structure never changes, only the depth.
The job
Given a rough prompt, produce a clean structured prompt. Do not execute the task in the rough prompt — restructure it. The deliverable is a better prompt, not the answer to it.
Workflow
Follow these steps in order.
1. Extract intent
Read the rough prompt fully. Identify, in your own notes: the real goal, the implied audience/executor (a human? an AI agent? a coding tool?), any constraints stated or implied, and any concrete details that must be preserved verbatim (file names, values, names, URLs, exact wording).
2. Classify the task
Pick one:
- Simple / non-technical — a single creative or informational ask (write, summarize, explain, brainstorm). Use Tier 1 sections.
- Technical / agentic — a multi-step task with constraints, a defined target, or code/file changes. Use Tier 1 + Tier 2 sections.
- High-stakes / complex — agentic work where mistakes are costly, scope creep is a risk, or output must be auditable. Use all tiers.
When in doubt, go one tier higher — extra structure rarely hurts.
3. Map content into sections
Place every piece of the rough prompt into the correct PAS section (defined below). Nothing from the original should be silently dropped. If the user listed specific values, statuses, or replacements, preserve them exactly inside the relevant section.
4. Fill gaps and flag assumptions
Rough prompts are usually missing a role, an explicit output format, or success criteria. Add sensible defaults, but never invent constraints the user didn't imply. Mark anything you inferred so the user can correct it.
5. Output
Return the structured prompt in a code block (so it is copy-pasteable as a single unit), then a short "Notes" section listing what you inferred, what you added, and any gaps the user should fill in.
The Prompt Architecture Standard (PAS)
Ten sections, grouped into three tiers. Always use this order. Use only the sections the task needs.
Tier 1 — Essential (every prompt)
- Role — Who the executor should act as. Sets expertise and perspective.
"You are a senior backend engineer." / "You are an experienced speechwriter."
- Objective — The single goal, in one sentence. If you can't state it in one sentence, the task isn't scoped yet.
"Refactor the payment module to remove duplicated validation logic."
- Context — Background and the why. Situational facts the executor needs but the objective doesn't carry. Keeps the executor from guessing.
- Instructions — The ordered steps or the substance of the request. Numbered when sequence matters; imperative voice ("Do X", not "You should do X").
- Output Format — The exact shape of the deliverable: file type, length, structure, headings, tone. Vague prompts almost always omit this — it is the highest-leverage section to add.
Tier 2 — Add for technical / agentic tasks
- Scope — What is explicitly in bounds. One sentence naming the only thing(s) the executor may touch or produce.
- Constraints — Hard boundaries as a "Do NOT" / "MUST" list. The most reliable guardrail against scope creep. Place the single most important constraint first and restate it last.
- Inputs — The material the executor is given to work on (files, data, prior text), and where to find it.
- Success Criteria — A checklist defining "done correctly". Turns a subjective task into a verifiable one. Each item should be objectively checkable.
Tier 3 — Add for high-stakes / complex work
- Validation & Reporting — A self-check the executor runs before finishing (what to verify, what to search for), plus the exact format of the completion report (what changed, what was skipped, remaining issues). This closes the loop and makes the result auditable.
Optional add-ons (insert near the relevant section when useful):
- Examples — one or two input→output pairs. Few-shot examples beat lengthy description for format-sensitive tasks.
- Tone & Style — for writing tasks, specify voice, register, and audience.
- Edge Cases — how to handle ambiguity or unexpected input.
Output template
Use this exact skeleton. Drop unused sections; never reorder.
# [Task Title]
## Role
[Who the executor should act as.]
## Objective
[The single goal in one sentence.]
## Context
[Why this task exists; background the executor needs.]
## Scope
[The only thing(s) that may be touched/produced. — technical tasks]
## Constraints
- Do NOT [hard boundary — most important one first]
- MUST [non-negotiable requirement]
- [...]
## Inputs
- [File / data / source the executor works from.]
## Instructions
1. [First step]
2. [Second step]
3. [...]
## Output Format
[Exact deliverable shape: type, length, structure, tone.]
## Success Criteria
- [ ] [Objectively checkable condition]
- [ ] [...]
## Validation & Reporting
- Before finishing, verify: [self-check].
- Report: [exact format of the completion summary].
## Notes / Assumptions
[Anything inferred or added — flagged for the user to confirm. — only in the structured output if useful; otherwise put outside the code block.]Worked example
Input (rough prompt):
"hey can u fix my python script its too slow and also the variable names r bad. dont change what it does just make it faster and cleaner. also add comments"
Output (structured prompt):
# Optimize and Clean Up Python Script
## Role
You are a senior Python engineer focused on performance and readable code.
## Objective
Improve the runtime performance and readability of the provided Python script without changing its behavior.
## Scope
The single attached Python script. Do not create new files.
## Constraints
- Do NOT change the script's observable behavior, inputs, or outputs.
- Do NOT add external dependencies unless strictly necessary (flag if so).
- MUST keep the script runnable as a drop-in replacement.
## Inputs
- The Python script provided in this conversation.
## Instructions
1. Profile or reason about the script to locate performance bottlenecks.
2. Optimize the slow sections while preserving identical behavior.
3. Rename unclear variables to descriptive, PEP 8-compliant names.
4. Add concise comments explaining non-obvious logic.
## Output Format
The full revised script in a single code block, followed by a short bullet list of the changes made and why.
## Success Criteria
- [ ] Output is identical to the original for the same inputs.
- [ ] Measurable or clearly reasoned performance improvement.
- [ ] All variable names are descriptive and PEP 8-compliant.
- [ ] Non-obvious logic is commented.
## Validation & Reporting
- Before finishing, confirm behavior is unchanged.
- Report: list of optimizations, list of renamed variables, any new dependency.Notes: Inferred Python version is unconstrained — confirm if a specific version matters. Assumed a single script; adjust Scope if there are several.
Principles (why the structure is shaped this way)
- One framework, scalable depth. Non-technical prompts use 5 sections; complex ones use 10. The user learns one mental model, not many.
- Bookend the boundaries. Scope first, Constraints early, the key constraint restated in Validation — executors drift, and repetition at the edges is the cheapest insurance.
- Separate the why from the what. Context carries the why so Instructions can stay terse and unambiguous.
- Make "done" verifiable. Success Criteria + Validation convert a subjective request into a closed loop. This is the section rough prompts always lack and the one that most improves results.
- Preserve the user's specifics exactly. Names, values, file paths, and required wording from the rough prompt must survive verbatim into the structured version.
Communication
The user may range from non-technical to expert. If the rough prompt is casual and the task simple, keep the explanation light and just deliver the Tier 1 structure. If they're clearly technical, you can be terse and skip hand-holding. Always deliver the structured prompt as a single copy-pasteable code block.
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.

