Original Reddit post

I built a small tool called promptcraft that converts raw prompts into structured XML prompts following Claude best practices for prompt engineering . It runs entirely locally. No LLM calls, no API requests. All you need is Go to install it. The idea is simple: Claude tends to perform better when prompts include things like role framing, constraints, and explicit output format. Most people don’t write prompts that way, so promptcraft automatically adds that structure without modifying the user’s original request. You can use it as: • an MCP server for Claude Desktop / Claude Code • a Claude Code hook that automatically enhances prompts • a simple CLI To be clear, this is nowhere near perfect. I just started experimenting with this idea and it’s very much a rule-based system, so it won’t match LLM-powered prompt generators. But it’s fast, local, and free to run, which makes it useful in some workflows for myself. Would really appreciate feedback: Does this seem useful at all? Are there prompt signals or patterns you think I should detect? Any obvious improvements to the approach? Open to any suggestions or criticism. Repo Link with README for more info - https://github.com/g14a/promptcraft submitted by /u/g14a

Originally posted by u/g14a on r/ClaudeCode