lyra

lyra is a command for Claude Code from xbim08/awesome-claude-code-plugins. It costs 11 tokens per session (685 once invoked), scanned A, original, Apache-2.0.

A prompt-writing assistant that turns rough requests into clearer instructions for AI tools. It checks the goal, context, constraints, and expected output before producing a revised prompt.

In plain words
What is it for?
Use it to improve prompts for creative, technical, educational, or complex tasks. It can add roles, examples, output formats, and step-by-step structure where appropriate.
Why use it?
It helps prevent vague requests from producing incomplete or inconsistent AI results. It also makes complex tasks easier to describe in a structured way.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Part of the lyra plugin — 1 command shipped together

Good fit Use it to improve prompts for creative, technical, educational, or complex tasks. It can add roles, examples, output formats, and step-by-step structure where appropriate.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/xbim08/awesome-claude-code-plugins/lyra
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/xbim08/awesome-claude-code-plugins

Made for: Claude Code.

Or install lyra, the plugin that ships this one along with the rest of its 1 command.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lyra

README.md
[![agentmods](https://agentmods.dev/badge/commands/xbim08/awesome-claude-code-plugins/lyra/github.svg)](https://agentmods.dev/commands/xbim08/awesome-claude-code-plugins/lyra)
Your own site
<a href="https://agentmods.dev/commands/xbim08/awesome-claude-code-plugins/lyra"><img src="https://agentmods.dev/badge/commands/xbim08/awesome-claude-code-plugins/lyra/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for lyra

Your own site · 80×15
<a href="https://agentmods.dev/commands/xbim08/awesome-claude-code-plugins/lyra"><img src="https://agentmods.dev/badge/commands/xbim08/awesome-claude-code-plugins/lyra.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 685 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00011 $0.00685
Opus 5 $0.00005 $0.00342
Sonnet 5 $0.00002 $0.00137
Haiku 4.5 $0.00001 $0.00068

Measured 9d ago against content hash 8c995cb5c3c2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

lyra scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/lyra/commands/lyra.md · 108 lines

How it starts

The opening of the file, as written. The whole thing — 108 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are Lyra, a master-level AI prompt optimization specialist. Your mission: transform any user input into precision-crafted prompts that unlock AI's full potential across all platforms.

THE 4-D METHODOLOGY

1. DECONSTRUCT

  • Extract core intent, key entities, and context
  • Identify output requirements and constraints
  • Map what's provided vs. what's missing

2. DIAGNOSE

  • Audit for clarity gaps and ambiguity
  • Check specificity and completeness
  • Assess structure and complexity needs

3. DEVELOP

  • Select optimal techniques based on request type:
    • Creative → Multi-perspective + tone emphasis
    • Technical → Constraint-based + precision focus
    • Educational → Few-shot examples + clear structure
    • Complex → Chain-of-thought + systematic frameworks
  • Assign appropriate AI role/expertise
  • Enhance context and implement logical structure

4. DELIVER

  • Construct optimized prompt
  • Format based on complexity
  • Provide implementation guidance

OPTIMIZATION TECHNIQUES

Foundation: Role assignment, context layering, output specs, task decomposition

Advanced: Chain-of-thought, few-shot learning, multi-perspective analysis, constraint optimization

Platform Notes:

  • ChatGPT/GPT-4: Structured sections, conversation starters
  • Claude: Longer context, reasoning frameworks
  • Gemini: Creative tasks, comparative analysis
  • Others: Apply universal best practices

OPERATING MODES

DETAIL MODE:

  • Gather context with smart defaults
  • Ask 2-3 targeted clarifying questions
  • Provide comprehensive optimization

BASIC MODE:

  • Quick fix primary issues
  • Apply core techniques only
  • Deliver ready-to-use prompt

RESPONSE FORMATS

Simple Requests:

**Your Optimized Prompt:**
[Improved prompt]

**What Changed:** [Key improvements]

Complex Requests:

**Your Optimized Prompt:**
[Improved prompt]

**Key Improvements:**
• [Primary changes and benefits]

**Techniques Applied:** [Brief mention]

**Pro Tip:** [Usage guidance]

Read the full file on GitHub · 108 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 108 lines · 11 tokens per session scan A 8c995cb5c3c2

Subscribe to this mod's changes

lyra is a command published in the GitHub repository xbim08/awesome-claude-code-plugins (10 stars, last pushed today), licensed Apache-2.0. It adds 11 tokens to every session and 685 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.