DQIII8: Skill for Claude Code

.claude/skills/prompt-optimize/SKILL.md

prompt-optimize is a skill for Claude Code from senda-labs/DQIII8. It costs 46 tokens per session (852 once invoked), scanned A, original, MIT.

A prompt-review and rewriting tool for DQIII8 workflows such as language-model routing, image generation, text-to-speech, agent instructions, and Telegram messages.

In plain words
What is it for?
Use it to classify a prompt, score its clarity and completeness, and produce an improved version.
Why use it?
It identifies unclear or incomplete instructions and checks whether the requested output format and edge cases are covered.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

This is senda-labs/DQIII8's own configuration. It tells Claude Code how to work on DQIII8 itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything DQIII8 configures →

Part of the dqiii8 plugin — 22 skills, 14 commands, 17 agents shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to senda-labs/DQIII8. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/senda-labs/DQIII8/main/.claude/skills/prompt-optimize/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/senda-labs/DQIII8

Made for: Claude Code.

Or install dqiii8, the plugin that ships this one along with the rest of its 22 skills, 14 commands, 17 agents.

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 prompt-optimize

README.md
[![agentmods](https://agentmods.dev/badge/skills/senda-labs/dqiii8/prompt-optimize/github.svg)](https://agentmods.dev/skills/senda-labs/dqiii8/prompt-optimize)
Your own site
<a href="https://agentmods.dev/skills/senda-labs/dqiii8/prompt-optimize"><img src="https://agentmods.dev/badge/skills/senda-labs/dqiii8/prompt-optimize/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 prompt-optimize

Your own site · 80×15
<a href="https://agentmods.dev/skills/senda-labs/dqiii8/prompt-optimize"><img src="https://agentmods.dev/badge/skills/senda-labs/dqiii8/prompt-optimize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 852 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.00046 $0.00852
Opus 5 $0.00023 $0.00426
Sonnet 5 $0.00009 $0.00170
Haiku 4.5 $0.00005 $0.00085

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

Security

Grade A, and why

prompt-optimize 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 12d 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.

.claude/skills/prompt-optimize/SKILL.md · 110 lines

How it starts

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

/prompt-optimize — Optimize a Prompt for DQIII8/Pipeline

Analyze and optimize a prompt for maximum effectiveness in the DQIII8 ecosystem (LLM routing, scene director, TTS, Telegram bot, or agent instructions).

Usage

/prompt-optimize [the prompt text or file path]

Your Task

Given the prompt in $ARGUMENTS:

1. Classify the prompt type

  • LLM routing prompt (sent to Ollama/Groq/Claude)
  • Image generation prompt (sent to fal.ai flux-general)
  • TTS prompt (narration text for ElevenLabs)
  • Agent instruction (agent .md system prompt)
  • Telegram bot message (user-facing output)

2. Evaluate on 5 dimensions (score 0-10 each)

Dimension What to check
Clarity Unambiguous intent, no vague instructions
Specificity Concrete examples, exact formats, numbers
Conciseness No filler words, no redundant instructions
Output contract Explicit format (JSON/markdown/text) stated
Edge cases Handles empty input, failure, ambiguity

3. Produce optimized version

Apply these DQIII8-specific improvements:

For LLM prompts:

  • Add Output ONLY JSON (no markdown): if structured output needed
  • Include exact field names in the output contract
  • State the model tier this will run on (Haiku/Sonnet/Groq)

For image prompts (fal.ai):

  • Lead with cinematographer style reference
  • Include shot_type + camera_angle early in the prompt
  • End with no text no watermarks no logos
  • Keep under 200 tokens

For TTS narration:

  • Present tense, max 8 words per sentence
  • Include YOU/YOUR in at least 1 sentence
  • Start with a specific name, date, or number
  • Never start with "In [year]" / "During" / "Throughout"

For agent instructions:

  • Add ## When NOT to use section if missing
  • Verify trigger keywords match CLAUDE.md delegation table
  • Confirm model assignment matches the canonical C/B/B+/B++/A/S tier table (.claude/rules/03_tiering_and_routing.md)

Read the full file on GitHub · 110 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. 12d ago First seen · 110 lines · 46 tokens per session scan A 7910ff7e96bb

Subscribe to this mod's changes

prompt-optimize is a skill published in the GitHub repository senda-labs/DQIII8 (11 stars, last pushed 24d ago), licensed MIT. It adds 46 tokens to every session and 852 once invoked, about $0.0002 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-08-30.