{
  "markdown": "<p align=\"center\">\n  <img src=\"./assets/prompt-smith-banner.svg\" alt=\"Prompt Smith Banner\" width=\"100%\"/>\n</p>\n\n<p align=\"center\">\n  <img src=\"https://img.shields.io/badge/Claude_Code-Slash_Commands-blueviolet?style=for-the-badge\" alt=\"Claude Code\"/>\n  <img src=\"https://img.shields.io/badge/v1.2.2-Stable-green?style=for-the-badge\" alt=\"Version\"/>\n  <img src=\"https://img.shields.io/badge/MIT-License-blue?style=for-the-badge\" alt=\"License\"/>\n</p>\n\n<h1 align=\"center\">Prompt Smith</h1>\n\n<p align=\"center\">\n  <strong>A slash command for <a href=\"https://github.com/anthropics/claude-code\">Claude Code</a></strong> that optimizes rough prompts into cleaner, more executable versions.\n</p>\n\n<p align=\"center\">\n  <code>Requires Claude Code CLI — Run this command inside a Claude Code session</code>\n</p>\n\n---\n\n> **What is Claude Code?** [Claude Code](https://github.com/anthropics/claude-code) is Anthropic's official agentic coding CLI. Prompt Smith adds a slash command that rewrites your prompts before execution.\n\n---\n\n## What It Does\n\nPrompt Smith takes a rough prompt and **optimizes it** for Claude Code execution:\n\n- **Optimize** — Rewrite for clarity, structure, and precision\n- **Preview** — Show original and optimized side-by-side with a summary of what changed\n- **Choose** — Pick or switch optimization modes\n- **Edit** — Refine the optimized prompt before executing\n- **Confirm** — Review before execution (or bypass with `--yes`)\n- **Execute** — Run the optimized prompt immediately after confirmation\n\n---\n\n## Quick Start\n\n```bash\n# Add the marketplace (one-time)\nclaude plugin marketplace add maxencemeloni/claude-code-prompt-smith\n\n# Install the plugin\nclaude plugin install prompt-smith\n\n# Use (in any project)\nclaude\n/prompt Refactor this function to be more readable\n```\n\n> **Update:** `claude plugin marketplace update prompt-smith-marketplace && claude plugin update prompt-smith@prompt-smith-marketplace`\n\n---\n\n## Command\n\n| Command | Purpose |\n|---------|---------|\n| `/prompt` | Optimize a rough prompt with mode selection, preview, and confirmation |\n\n### Syntax\n\n```text\n/prompt [--mode default|agentic|compact|strict] [--yes] [--dry-run] [--help] <prompt>\n```\n\n### Flags\n\n| Flag | Purpose |\n|------|---------|\n| `--mode <mode>` | Select optimization mode (`default`, `agentic`, `compact`, `strict`) |\n| `--yes` | Skip confirmation and execute immediately |\n| `--dry-run` | Show optimized prompt without executing (preview only) |\n| `--list-modes` | Show available modes |\n| `--help` | Show usage information and examples |\n\n### Examples\n\n```text\n/prompt Refactor this function to be more readable\n```\n\n```text\n/prompt --mode agentic Organize the work in parallel and validate each step\n```\n\n```text\n/prompt --mode compact Rewrite this prompt to be shorter\n```\n\n```text\n/prompt --mode strict --yes Fix this prompt without changing its intent\n```\n\n```text\n/prompt --dry-run Build a REST API with authentication\n```\n\n```text\n/prompt --help\n```\n\n### Workflow\n\n1. **Parse** — Extract flags and raw prompt from input\n2. **Select mode** — Use explicit `--mode` or infer the best fit\n3. **Preview** — Show mode, rationale, original, optimized prompt, and what changed\n4. **Confirm** — Select an action: execute, edit, regenerate in another mode, or cancel\n5. **Execute** — Run the optimized prompt in the same session\n\n---\n\n## Optimization Modes\n\n| Mode | Purpose | Best For |\n|------|---------|----------|\n| **default** | General cleanup | Most prompts |\n| **agentic** | Execution-focused structure | Orchestration, automation, multi-step delivery, repo work |\n| **compact** | Shortest clean version | Utility prompts, when brevity matters |\n| **strict** | Maximum fidelity | Sensitive wording, policy text, minimal rewrite |\n\n---\n\n## Sample Output\n\n```markdown\nPrompt Smith\nMode: agentic\nWhy this mode: prompt involves multi-step execution and delivery\n\nAvailable modes:\n  - default   — general cleanup\n  - agentic   — orchestration and execution-focused structure\n  - compact   — shortest clean version\n  - strict    — maximum fidelity\n\nOriginal prompt:\n  refactor the auth module, add tests, and make sure nothing breaks\n\nOptimized prompt:\n  ## Objective\n  Refactor the auth module while preserving all existing behavior.\n\n  ## Workflow\n  1. Read and understand the current auth module structure\n  2. Identify refactoring opportunities (duplication, complexity, naming)\n  3. Apply changes incrementally\n  4. Add or update tests to cover refactored code\n  5. Run the full test suite and verify no regressions\n\n  ## Constraints\n  - Do not change the public API surface\n  - Every refactored path must have test coverage\n\nWhat changed: restructured into sections, added explicit workflow steps, clarified constraints\n\n┌─────────────────────────────────────┐\n│  What would you like to do?         │\n│                                     │\n│  > Execute                          │\n│    Edit                             │\n│    Regenerate                       │\n│    Cancel                           │\n└─────────────────────────────────────┘\n```\n\n---\n\n## Design Principles\n\n| Principle | Meaning |\n|-----------|---------|\n| **Fidelity first** | Never silently change the user's intended outcome |\n| **Claude Code native** | Output reads like a terminal instruction, not generic chat |\n| **Minimal structure** | Add structure only when it helps execution |\n| **Confirm by default** | Never execute without consent (unless `--yes`) |\n\n---\n\n## Install\n\n```bash\n# 1. Add the marketplace (one-time)\nclaude plugin marketplace add maxencemeloni/claude-code-prompt-smith\n\n# 2. Install the plugin\nclaude plugin install prompt-smith\n```\n\nWorks on all platforms.\n\n```bash\n# Update (refresh marketplace first, then update)\nclaude plugin marketplace update prompt-smith-marketplace\nclaude plugin update prompt-smith@prompt-smith-marketplace\n\n# Uninstall\nclaude plugin uninstall prompt-smith@prompt-smith-marketplace\n```\n\n---\n\n## Contributing\n\n1. Fork the repo\n2. Add/modify commands in `commands/`\n3. Validate with `claude plugin validate .`\n4. Submit a PR\n\nSee [CHANGELOG.md](./CHANGELOG.md) for the full changelog.\n\n---\n\n## Development\n\nWhen working on Prompt Smith with Claude Code, the `CLAUDE.md` file at the project root provides development context including:\n\n- **Design principles** — Fidelity first, Claude Code native, minimal structure\n- **Mode definitions** — Rationale for each optimization mode\n- **Version management** — How to bump versions and update documentation\n- **Local testing** — How to test dev vs. plugin commands\n- **Test prompts** — Sample prompts for verifying each mode\n\nThis context is only loaded when developing Prompt Smith itself, not when users run the command in their projects.\n\n### Release\n\nUse `/release <version> <description>` to automate the full release flow.\n\n---\n\n## More Claude Code Plugins\n\n| Plugin | Command | Description |\n|--------|---------|-------------|\n| [Agent Smith](https://github.com/maxencemeloni/claude-code-agent-smith) | `/analyze-agent` | Analyzes, validates, and optimizes your Claude Code configuration. Full 7-pillar evaluation with interactive triage and guided fixes. |\n\n[Check out Agent Smith for more details](https://agent-smith.mmapi.fr/)\n\n---\n\n## License\n\nMIT — see [LICENSE](./LICENSE)\n\n---\n\n<p align=\"center\">\n  <a href=\"https://github.com/maxencemeloni/claude-code-prompt-smith\">GitHub</a> ·\n  <a href=\"https://prompt-smith.mmapi.fr/\">Website</a>\n</p>\n",
  "bytes": 7433,
  "sha": "e72dc045d083763c43ccc2e41ea92722ad2e1c6ffdd119e89202ea48226dd650",
  "repo_slug": "maxencemeloni/claude-code-prompt-smith",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/plg_maxencemeloni_claude_code_prompt_smith_p_16b2b20c/readme"
}