---
description: Refine a prompt using the CO-STAR framework
agent: general
---

# Prompt Improvement: $ARGUMENTS

**Goal:** Optimize the user's prompt using the CO-STAR framework.

## 1. Load Context

Read the Prompt Engineering skill to understand the framework:
`read .opencode/skills/stack/prompt-engineering/SKILL.md`

## 2. Analyze Input

Analyze the user's raw prompt: "$ARGUMENTS"

Identify missing components:

- [ ] Context (Who?)
- [ ] Objective (What?)
- [ ] Style (How?)
- [ ] Tone (Emotion?)
- [ ] Audience (For whom?)
- [ ] Response (Format?)

## 3. Refine

Rewrite the prompt to include all missing components. Use the CO-STAR format.

## 4. Output

Present the result in a code block for easy copying:

```markdown
# Refined Prompt

**Context:** ...
**Objective:** ...
**Style:** ...
**Tone:** ...
**Audience:** ...
**Response:** ...
```
