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.
26 other projects use a version of this.
Adopted by
Most recently taken up by
- RitvikChunamari/velomeshtheir own version, first seen Nov 29, 2026
- Tobeiyyy/FLIP-prompt-architecttheir own version, first seen Nov 26, 2026
- RezaSh798/skillstheir own version, first seen Nov 16, 2026
- RezaSh798/agenttheir own version, first seen Nov 16, 2026
- RezaSh798/agent-skillstheir own version, first seen Nov 16, 2026
- ThomasAiluminated/prompt-architecttheir own version, first seen Nov 15, 2026
Used with
Projects with it also use gitlab-report, spec-runner and 4 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
RezaSh798Skillgitlab-report
Generate structured, human-readable GitLab progress and spend reports detailing problems solved, technical fixes, development iterations, and time tracking.
Also in 3 projects that use this
RezaSh798Skillspec-runner
Sequentially execute specification tasks using isolated subagents.
Also in 3 projects that use this
HashiCorpSkillrefactor-module
Transform monolithic Terraform configurations into reusable, maintainable modules following HashiCorp's module design principles and community best practices.
Also in 3 projects that use this
grasscaograssSkillgitlab-issue
与开发人员协作创建 GitLab Issue。触发场景:(1) 用户说"建个 issue"、"提个 bug"、"记录一个问题"、"有个新需求";(2) 用户描述了一个问题或需求并要求记录到 GitLab
Also in 3 projects that use this
Tha-vivid-oneSkillspec-kit
Guide users through Spec-Driven Development (SDD) to plan and implement software features with structured specifications. Use this skill whenever the user wants to plan a feature, spec something out, start a new project, create requirements, define an implementation strategy, or mentions "spec-driven development." Also trigger when the user says things like "let's plan this feature," "what should we build," "write a spec for," "break this down into tasks," or "I need to think through this before coding." Even if they don't say "spec" explicitly — if they're about to build something non-trivial and haven't planned it yet, suggest this workflow.
Also in 3 projects that use this
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 4 projects that use this
Other versions26 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 26
- repowise-dev/claude-code-prompts★ 1.2ksame name
- aircrushin/promptMinder★ 117same name
- DylXBT/claude-orchestrator-skills★ 114same name
- Svenja-dev/claude-code-skills★ 38same name
- q2wxec/claude-code-skill★ 16same name
- ryankolean/summit-claude-skills★ 4same name
- TheVeller/claude-skills★ 4same name
- dev-ik/ai-design-rules★ 3same name
- RitvikChunamari/velomesh★ 3same name
- ciaransaunders/Skills-Public★ 2same name
16 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 25 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 25 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.

