Prompt Architect — 27 Frameworks for Expert Prompts
Transform vague prompts into structured, expert-level prompts using 27 research-backed frameworks across 7 intent categories. Works with Claude Code, ChatGPT, Cursor, and 30+ AI tools.
Agent 可直接安装
这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。
npx -y tokrepo@latest install 08f51e3b-33aa-11f1-9bc6-00163e2b0d79 --target codex先 dry-run 确认安装计划,再运行此命令。
What it is
Prompt Architect is a Claude Code skill that systematically transforms vague prompts into structured, expert-level prompts using 27 research-backed frameworks organized across 7 intent categories. It scores every prompt on 5 dimensions: clarity, specificity, context, completeness, and structure, then recommends and applies the optimal framework.
Prompt Architect is designed for developers and prompt engineers who want consistent, high-quality prompts across AI coding tools like Claude Code, Cursor, ChatGPT, and Gemini CLI.
How it saves time or tokens
Manually optimizing prompts requires trial and error across multiple iterations. Prompt Architect eliminates this by analyzing your intent and applying a proven framework in one step. Better-structured prompts produce more accurate outputs on the first attempt, reducing the back-and-forth that wastes tokens. The 5-dimension scoring gives immediate feedback on prompt quality before sending to the model.
How to use
- Install via npx:
npx @ckelsoe/prompt-architect
- The interactive installer auto-detects your AI agents (Claude Code, Cursor, etc.).
- Select installation targets and the skill is ready to use.
- In your AI tool, describe any task and the skill analyzes, scores, and optimizes your prompt automatically.
Example
Using the CO-STAR framework for content creation:
Original prompt:
'Write a blog post about RAG'
Optimized with CO-STAR:
Context: Technical blog for AI engineers building production systems
Objective: Explain RAG architecture with practical implementation steps
Style: Tutorial with code examples, authoritative but accessible
Tone: Professional, direct, no marketing language
Audience: Mid-level developers familiar with Python and LLMs
Response: 1500-word article with architecture diagram and code samples
The RISEN framework for research tasks:
Role: Senior ML engineer reviewing embedding strategies
Instructions: Compare dense vs sparse embeddings for e-commerce search
Steps: 1) Define metrics 2) Benchmark on sample data 3) Recommend
End goal: Decision document with quantitative comparison
Narrowing: Focus on latency under 100ms, catalog size 1M+ items
Related on TokRepo
- Prompt library — curated prompts for various AI tools
- Coding tools — AI-assisted development tooling
Common pitfalls
- Installing without a GitHub token with
read:packagesscope causes npm authentication errors - Applying high-complexity frameworks like CO-STAR to simple one-shot questions adds unnecessary overhead
- The skill requires
.npmrcconfiguration for the GitHub package registry; ensure this is set before running npx
常见问题
Prompt Architect works with Claude Code, ChatGPT, Gemini CLI, Cursor, GitHub Copilot, Windsurf, OpenAI Codex, and any tool that supports the Agent Skills format. The interactive installer auto-detects which tools you have installed.
The frameworks are organized by intent: high-complexity tasks, content creation, research and analysis, code generation, debugging, data processing, and creative tasks. Each category contains frameworks optimized for that specific type of work.
Every prompt is scored on clarity (is the request unambiguous), specificity (are details provided), context (is background included), completeness (are all requirements stated), and structure (is the prompt well-organized). Each dimension gets a score, and the overall rating guides optimization.
The skill is installed as a local file. You can edit the SKILL.md to add custom frameworks. The framework format follows a consistent pattern: each framework defines named fields that the prompt must fill, making it straightforward to create new ones.
Yes, it restructures your prompt using the recommended framework. The original intent is preserved, but the format changes to include all required dimensions of the selected framework. You can review and adjust the optimized prompt before sending it to the model.
引用来源 (3)
- Prompt Architect GitHub— Prompt Architect uses 27 research-backed frameworks
- Anthropic Docs— Claude Code supports installable skills
- Anthropic Prompt Engineering Guide— Prompt engineering improves LLM output quality
来源与感谢
Created by ckelsoe. Licensed under MIT.
prompt-architect — ⭐ 96+
讨论
相关资产
提示词:笔记整理成项目提案
一条可复用的写作提示词,把零散笔记和限制条件整理成结构化项目提案,缺失信息只标注、绝不编造。
术语审计提示词:找出多份文档中的定义冲突
一套可复用的提示词:针对粘贴的多份文档,梳理同一术语的不同定义,输出带引用出处的冲突对照表,供研究人员和学生参考。
实验与实地考察准备清单提示词
可复用的 AI 提示词,将实验或实地考察目标与安全规则整理成可快速浏览的准备清单,包含分工、物资清单与出发前检查项。
提示词:把草稿逐条核对成“论断-来源”对照表
一份可复用提示词:把你自己的草稿拆成逐条事实论断,分别标注为有来源、无来源或待核实,并给出最小修改清单。