Prompt quality management for Claude Code
Core Features:
- 8-Point Quality Check (LINT / BUILD / Review / Intercept)
- Eval Mode: A/B testing with test datasets
- Long Context: 200K token optimization
- Token Management: Cost estimation & context validation
- Structured Outputs: 100% JSON validity
| Situation | Recommended | Command |
|---|---|---|
| "Is this prompt good enough?" | LINT | /ps:lint <prompt> |
| "Make this prompt better" | Review | /ps:r <prompt> |
| "Just fix it and run" | Intercept | /ps:a <prompt> |
| "Design a new prompt" | BUILD | /ps:build <goal> |
| "Compare prompt variants" | Eval | See Eval Mode |
| Command | Description | Best For |
|---|---|---|
/ps:r <prompt> |
Review Mode - Show improvements, await approval | Daily use (safe) |
/ps:lint <prompt> |
LINT Mode - Full diagnosis with test cases | Debugging prompts |
/ps:a <prompt> |
Intercept Mode - Auto-improve and execute immediately | Quick tasks |
/ps:build <goal> |
BUILD Mode - Design from requirements | New prompts |
/ps:help [topic] |
Help - Show usage guide and command reference | Getting started |
Quick Example:
/ps:r Write a function to parse JSON
Shows score (3/10 → 8/10), changes, asks "Proceed? (y/n/e)"
- In VS Code, type
/pluginto open plugin terminal - Press
Tabto navigate to "Add Marketplace" - Enter:
joseph0926/prompt-smith - Press
Tabto navigate to "Install Plugin" - Select
ps@prompt-smith
git clone https://github.com/joseph0926/prompt-smith
claude --plugin-dir ./prompt-smithgit clone https://github.com/joseph0926/prompt-smith
cp -r prompt-smith/skills/prompt-smith ~/.claude/skills/Note: This method only enables natural language triggers (
use prompt-smith -r), not slash commands.
Slash Commands (recommended):
/ps:r your prompt here # Review Mode (single line)
/ps:r your prompt here
with multiple lines # Review Mode (multiline)
/ps:a your prompt here # Intercept Mode
/ps:lint your prompt # LINT Mode
/ps:build requirements # BUILD Mode
Note: Triple backticks (```) are optional. Plain text and multiline input are fully supported.
Natural Language (alternative):
use prompt-smith -r Your prompt here
/ps:lint Analyze user feedback
Output: Score 3/10 → Top 3 issues → Improved prompt → 5 test cases
/ps:r Write a function to parse JSON
Output:
+----------------------------------------------------------+
| Score: 3/10 -> 8/10 (+5) |
+----------------------------------------------------------+
Changes:
- [+] Added: Software engineer role
- [+] Added: Error handling examples
- [~] Modified: Specified return format
Proceed? (y/n/e)
/ps:a Summarize this document
Output: Auto-improved if +2 points possible → Executes immediately
| Feature | Description |
|---|---|
| Examples & TOCs | Expanded examples and added TOCs to long references |
| Structured Outputs | Stronger guidance for schema mismatch and JSON mode caution |
| Feature | Description |
|---|---|
| ps:a Token Efficiency | Minimal output: [Prompt Smith] 활성화됨 (X→Y점) |
| ps:r Intent Capture | AskUserQuestion for format/detail/constraints/goals |
| Feature | Description |
|---|---|
| Eval Mode | A/B prompt comparison with test datasets |
| Long Context | 200K token optimization (chunking, placement) |
| Token Management | Cost estimation, context window validation |
| Structured Outputs | 100% JSON validity techniques |
| Feature | Description |
|---|---|
| Progressive Loading | Skills load on-demand |
| Hooks | Auto-LINT on prompt submit (optional) |
| Agents | 3 specialized: optimizer, reviewer, test-generator |
| GitHub Actions | CI/CD integration |
See CHANGELOG.md for full release notes.
| Mode | Slash Command | Natural Language | Description |
|---|---|---|---|
| Review | /ps:r <prompt> |
use prompt-smith -r |
Show improvements, await approval |
| Intercept | /ps:a <prompt> |
use prompt-smith -a |
Auto-improve and execute |
| LINT | /ps:lint <prompt> |
lint this prompt |
Diagnose existing prompts |
| BUILD | /ps:build <goal> |
build a prompt for... |
Design from requirements |
| # | Dimension | Score | Note |
|---|---|---|---|
| 1 | ROLE | 0-2 | Base |
| 2 | CONTEXT | 0-2 | Base |
| 3 | INSTRUCTION | 0-2 | Base |
| 4 | EXAMPLE | 0-2 | Base |
| 5 | FORMAT | 0-2 | Base |
| 6 | SUCCESS_CRITERIA | 0-2 | Base (v2.7+) |
| 7 | STATE_TRACKING | 0-2 | Extended |
| 8 | TOOL_USAGE | 0-2 | Extended |
Base Score: Dimensions 1-6 (max 12 → normalized to 10) Extended Score: All 8 dimensions (normalized)
- 8-Point Quality Checklist
- Anti-Patterns
- Technique Priority (Anthropic recommended)
- Claude 4.x Best Practices
- Verify plugin: In VS Code, type
/plugin→ check installed list - Restart VS Code or reload Claude Code extension
- Try reinstalling: Remove plugin, then reinstall
- Extended items (STATE_TRACKING, TOOL_USAGE) only apply to multi-step or tool-using prompts
- If N/A, they're excluded from score calculation
- Claude Code (CLI / VS Code extension)
We welcome contributions! See CONTRIBUTING.md for guidelines.
MIT License - see LICENSE

