prompt-optimizer

Transform vague prompts into TCRO-structured prompts for code tasks.

13|2|Updated Aug 9, 2025
One-click install
npx skills add https://github.com/petbrains/mvp-builder --skill prompt-optimizer-petbrains
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prompt-optimizer
Source: https://github.com/petbrains/mvp-builder/tree/main/.claude/skills/prompt-optimizer
Command: npx skills add https://github.com/petbrains/mvp-builder --skill prompt-optimizer-petbrains

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Transforms vague requests into precise TCRO-structured prompts for code tasks.

Core Features & Use Cases

  • Apply TCRO templates to improve prompts
  • Phase-based prompt development for complex tasks
  • Negative constraints and phase separation

Quick Start

Identify mode, select a template, compose prompt using the TCRO structure.

Frequently Asked Questions about prompt-optimizer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I transform vague prompts into structured prompts for code generation?

TCRO-structured prompts break requests into Task, Context, Requirements, and Output format, making vague prompts precise for code generation. This Skill applies TCRO templates to your initial prompt, then validates and refines it through phases until Claude Code produces the exact output you need.

What is TCRO prompt engineering and when should I use it?

TCRO (Task, Context, Requirements, Output) is a structured framework for writing prompts that eliminates ambiguity. Use it when initial prompts fail to produce results, when scaling multi-step workflows, or when you need consistent output formatting across repeated code tasks.

How do I structure a multi-step workflow prompt to avoid pattern drift?

Phase-based prompt development separates each workflow stage and applies constraints at each phase. This Skill selects templates by task type, adds negative constraints, and validates phase transitions so each step builds on the previous one without losing intent.

Can I use TCRO templates to improve prompts that aren't working?

Yes. TCRO templates diagnose why prompts fail by identifying missing context, unclear requirements, or malformed output specs. This Skill restructures your existing prompt using the template for your task type, then resubmits it with explicit constraints and formatting rules.

What's the difference between using TCRO and writing prompts without structure?

Unstructured prompts rely on trial and error; TCRO separates concern into discrete, reusable components so results are predictable and repeatable. This Skill accelerates debugging by pinpointing which component (task clarity, context, requirements, or output format) caused the failure.

Do I need to know prompt engineering before using this Skill?

No. This Skill teaches TCRO structure through templates and guides you through phase-based composition. Start by identifying your task type; the Skill selects a matching template and walks you through filling in Task, Context, Requirements, and Output fields.