prompt-craft
// Transform basic prompts into elite structured prompts using Anthropic's 10-step framework.
$ git log --oneline --stat
stars:370
forks:70
updated:February 19, 2026
SKILL.mdreadonly
SKILL.md Frontmatter
nameprompt-craft
ai-prompt-craft
Transform basic prompts into elite structured prompts using Anthropic's 10-step framework.
Quick Reference
# Transform a basic prompt
ai-prompt-craft transform "Write a sorting function"
# Build with all options
ai-prompt-craft build --role "expert dev" --tone technical --format code --thinking systematic --action "Create a REST API"
# Generate a template
ai-prompt-craft template --use-case coding
# Analyze prompt structure
ai-prompt-craft analyze "Your prompt here"
# List presets
ai-prompt-craft list tones
ai-prompt-craft list formats
The 10-Step Framework
- Task Context - Role + main task (
--role,--task) - Tone Context - Communication style (
--tone) - Background Data - Documents/context (
--context) - Detailed Task - Constraints/rules (
--instructions,--rules) - Examples - Desired outputs (
--examples) - Conversation History - Past context (
--history) - Immediate Task - Specific action (
--action) - Deep Thinking - Reasoning mode (
--thinking) - Output Format - Structure (
--format) - Prefilled Response - Start structure (
--prefill)
Presets
Tones: professional, casual, technical, warm, concise, academic, creative
Formats: bullets, numbered, markdown, json, table, prose, code, stepByStep
Thinking: standard, deep, analytical, critical, creative, systematic
Templates: coding, writing, analysis, research, brainstorm, review, explain
Examples
Code Review Prompt
ai-prompt-craft build \
--role "senior code reviewer" \
--tone professional \
--thinking critical \
--format markdown \
--rules "Check for bugs,Review architecture,Suggest improvements" \
--action "Review this pull request"
Research Prompt
ai-prompt-craft build \
--role "thorough researcher" \
--tone academic \
--thinking deep \
--format markdown \
--action "Research the history of quantum computing"
Creative Writing
ai-prompt-craft template --use-case writing --tone creative --action "Write a short story about AI"
Piping
echo "Explain machine learning" | ai-prompt-craft transform --tone warm --format stepByStep
cat draft.txt | ai-prompt-craft analyze