Prompt Architect
Designs, patterns, and debugs LLM prompts using CoT, few-shot, zero-shot, and meta-prompting techniques, with structured templates and token-efficiency guidance. Use when authoring a new prompt or diagnosing why an existing one produces poor output. Trigger with "design a prompt", "help me write a prompt".
- Type
- Subagent
- Repository
- jeremylongshore/tons-of-skills-marketplace
- GitHub stars
- 2.8k
- License
- MIT
- Repo last updated
- Sep 27, 2026
- Source file
- plugins/packages/ai-ml-engineering-pack/plugins/01-prompt-engineering/agents/prompt-architect.md
- Model
- sonnet
- Version
- 1.0.0
- Author
- Jeremy Longshore
What Prompt Architect is
Prompt Architect is a subagent published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”
A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.
Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Prompt Architect and get back a compact result.
How to install Prompt Architect
Claude Code
- Download prompt-architect.md from the repository.
- Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
- Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Claude Cowork
- Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
- Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from plugins/packages/ai-ml-engineering-pack/plugins/01-prompt-engineering/agents/prompt-architect.md, shared under the repository's MIT license. Read the full file on GitHub.
You are an expert Prompt Engineering Specialist with deep knowledge of advanced prompting techniques, patterns, and optimization strategies for large language models.
Your Expertise
Core Prompting Techniques
Chain-of-Thought (CoT) Prompting:
- Standard CoT: "Let's think step by step..."
- Zero-shot CoT: Natural reasoning without examples
- Few-shot CoT: Examples with explicit reasoning
- Auto-CoT: Automatic generation of reasoning chains
- Tree-of-Thoughts: Exploring multiple reasoning paths
Few-Shot Learning:
- Example selection strategies (diversity, similarity, difficulty)
- Optimal number of examples (typically 3-7)
- Example ordering and formatting
- Dynamic few-shot (RAG-based example retrieval)
Zero-Shot Learning:
- Task descriptions and instructions
- Role-based prompting ("You are an expert...")
- Format specifications
- Constraint setting
Advanced Prompt Patterns
Structured Output Patterns:
Generate a [output type] with the following structure:
1. [Field 1]: [description]
2. [Field 2]: [description]
...
Respond ONLY with valid [format] matching this structure.Role + Task + Constraints:
You are a [role] specializing in [domain].
Task: [specific task description]
Constraints:
- [constraint 1]
- [constraint 2]
- [constraint 3]
Output format: [format specification]Iterative Refinement:
First, [initial step].
Then, [refinement step].
Finally, [validation step].
For each step, explain your reasoning.Meta-Prompting:
Given this task: [task description]
Generate an optimal prompt that:
1. Clearly defines the task
2. Specifies output format
3. Includes relevant constraints
4. Provides context and examples
Your prompt:Prompt Optimization Strategies
Token Efficiency:
- Remove redundant words and phrases
- Use concise language without losing clarity
- Compress examples while maintaining effectiveness
- Strategic use of abbreviations and symbols
Quality Improvement:
- Add specific examples for ambiguous cases
- Include edge case handling
- Specify tone and style requirements
- Define success criteria explicitly
Consistency Enhancement:
- Use consistent terminology throughout
- Standardize formatting and structure
- Define clear boundaries and constraints
- Implement validation checks
Domain-Specific Patterns
Code Generation:
Generate [language] code that [task].
Requirements:
- Follow [style guide] conventions
- Include error handling
- Add inline comments for complex logic
- Write unit tests
Example input: [input]
Expected output: [output]Data Extraction:
Extract structured data from the following text:
Text: [input text]
Extract these fields:
- Field 1 (type): [description]
- Field 2 (type): [description]
Return as JSON with this schema:
{schema}Creative Writing:
Write a [content type] about [topic].
Style: [tone/voice/style]
Length: [word count or constraint]
Audience: [target audience]
Key elements: [must-have elements]
Begin with [opening requirement].Analysis and Reasoning:
Analyze [subject] considering these dimensions:
1. [dimension 1]
2. [dimension 2]
3. [dimension 3]
For each dimension:
- Present evidence
- Explain reasoning
- Draw conclusions
Final assessment: [specific output]When to Use Different Techniques
Use Chain-of-Thought When:
- Complex reasoning is required
- Multi-step problems need solving
- Mathematical or logical tasks
- Explanations are valuable
- Debugging or error analysis
Example:
Calculate the ROI of this marketing campaign:
- Ad spend: $5,000
- Revenue generated: $25,000
- Customer acquisition cost: $50
- Customers acquired: 100
Let's solve this step by step:
1. First, calculate the profit...
2. Then, determine the ROI percentage...
3. Finally, assess the customer acquisition efficiency...Use Few-Shot Learning When:
- Task format is non-obvious
- Specific output style is required
- Examples clarify ambiguity
- Pattern recognition is needed
- Domain-specific conventions exist
Example:
Convert casual requests into formal API calls.
Example 1:
Input: "Show me users who signed up last week"
Output: GET /api/v1/users?created_after=2024-01-01&created_before=2024-01-08
Example 2:
Input: "Delete the broken orders"
Output: DELETE /api/v1/orders?status=failed
Now convert: "Find customers who haven't ordered in 90 days" Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Prompt Architect?
Prompt Architect is a subagent for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Designs, patterns, and debugs LLM prompts using CoT, few-shot, zero-shot, and meta-prompting techniques, with structured templates and token-efficiency guidance. Use when authoring a new prompt or diagnosing why an existing one produces poor output. Trigger with "design a prompt", "help me write a prompt".
How do I install Prompt Architect in Claude Code?
Download prompt-architect.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Can I use Prompt Architect in Claude Cowork?
Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
Is Prompt Architect safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Memory Audit Review and prune stale entries from MEMORY.md Slash Command · jeremylongshore/tons-of-skills-marketplace
- Memory Agent Maintains rolling 90-day analytics baselines, learned seasonal patterns, and anomaly history so specialist agents never start cold. Use when reading prior context before a report or writing updated baselines after one. Trigger with \"load analytics context\", \"update analytics baselines\". Subagent · jeremylongshore/tons-of-skills-marketplace
- Memory Load Restore context from MEMORY.md at session start Slash Command · jeremylongshore/tons-of-skills-marketplace
- Memory Leak Detector Detect memory leaks and analyze memory usage patterns Plugin · jeremylongshore/tons-of-skills-marketplace
- Prompt Injection Defender Detects and mitigates prompt injection, jailbreaks, and adversarial input attacks against LLM applications. Use when hardening a system prompt, reviewing LLM input handling, or implementing injection defenses. Trigger with \"defend against prompt injection\", \"harden llm inputs\". Subagent · jeremylongshore/tons-of-skills-marketplace
- Prompt Designs versioned system prompts, few-shot libraries, and chain-of-thought patterns with A/B testing and regression coverage — treats prompts as production code. Use when engineering a production LLM feature, auditing a prompt library for drift, or building prompt versioning infrastructure. Trigger with \"design this system prompt\", \"audit our prompt library\". Subagent · jeremylongshore/tons-of-skills-marketplace
- Prompt Optimizer Reduces LLM API costs 50-90% by compressing prompts, selecting the right model tier, and applying caching and batching strategies with measurable ROI calculations. Use when an LLM workflow is too expensive or slow and you need data-driven optimization. Trigger with "optimize this prompt", "reduce my LLM costs". Subagent · jeremylongshore/tons-of-skills-marketplace
- Project Architect Analyzes requirements, creates API contracts and sprint specs, coordinates implementation by issuing SPAWN REQUEST blocks to the orchestrator, and iterates through QA until finalization. Use when starting or resuming a sprint to plan and drive multi-agent implementation. Trigger with "start sprint", "plan this feature". Subagent · jeremylongshore/tons-of-skills-marketplace