Stop saying 'write code': 8 senior-engineer prompt templates for Claude
aitrendz_xyz · x · 2026-11-05
aitrendzxyz shared a set of structured prompt templates for Claude and other coding assistants, arguing that vague instructions like "write code" or "fix this error" produce bad output, and that role-plus-deliverable prompts get senior-engineer-quality results. Seven templates shown in the thread:
- Understand and refactor a codebase: model acts as a new senior hire — map architecture and data flow, flag structural problems, duplication and bottlenecks, then propose a refactor plan.
- Senior debugging engineer: step-by-step root-cause analysis of a production bug, with edge cases and production-ready fixes.
- Design and build a system: scalable architecture, component structure, data flow, API design, DB schema, caching strategy, plus a minimal production implementation.
- Performance tuning: find bottlenecks and inefficient logic, list issues with fixes and improved code.
- Rebuild it clean: behavior-preserving refactor with better modularity, lower coupling, and a new folder layout.
- Multi-agent workflow: one prompt orchestrating Architect, Engineer, Reviewer and Optimizer roles, showing each stage's output.
- Production-ready UI components: accessible, responsive components covering loading states and edge cases, with architecture, props design and usage examples.
Related event: Structured prompts beat vague asks for Claude coding, templates trend(3 posts)→
More from coding & agent
- Eon launches Yukon serverless data engine, arguing AI adoption is bottlenecked by data infra, not models — EXM7777 · 2026-11-05
- Git Magic by Ben Lynn lands on ChapterPal with an AI tutor, in two editions — burkov · 2026-11-05
- OpenCV Live Demos a Robot 'Visual Cortex' with RealSense, Jetson, ROS 2 and VLMs — chrismatthieu · 2026-11-05
- BigCommerce API MCP Server lets AI assistants manage store products, customers, and orders — modelcontextprotocol · 2026-11-05
- EmailMCP monetizes AI email agents: 23 read tools free, 28 send tools at $9.99/mo — modelcontextprotocol · 2026-11-05
- Todoist's internal Doistbot does state-of-the-art code reviews for under $2 — dscape · 2026-11-05