devkit.prompt-optimize

devkit.prompt-optimize is a command for coding agents from giuseppe-trisciuoglio/developer-kit. It costs 37 tokens per session (824 once invoked), scanned A, original, MIT.

A command that rewrites a supplied instruction into a clearer prompt for an AI model. It uses prompt-writing methods such as examples, structured reasoning, and rule-based guidance.

In plain words
What is it for?
It is for improving prompts before using them, adding clearer structure, and tailoring prompt work to a selected model or level of detail.
Why use it?
It helps turn vague or incomplete instructions into prompts that are easier for an AI model to follow. The command also accepts a target model and an optimization level.

Command

Part of the developer-kit-ai plugin — 3 skills, 1 command, 1 agent shipped together

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.

agentmods
npx agentmods add commands/giuseppe-trisciuoglio/developer-kit/devkit.prompt-optimize
Clone the repo
git clone --depth 1 https://github.com/giuseppe-trisciuoglio/developer-kit

Or install developer-kit-ai, the plugin that ships this one along with the rest of its 3 skills, 1 command, 1 agent.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/giuseppe-trisciuoglio/developer-kit/devkit.prompt-optimize.svg)](https://agentmods.dev/commands/giuseppe-trisciuoglio/developer-kit/devkit.prompt-optimize)
Your own site
<a href="https://agentmods.dev/commands/giuseppe-trisciuoglio/developer-kit/devkit.prompt-optimize"><img src="https://agentmods.dev/badge/commands/giuseppe-trisciuoglio/developer-kit/devkit.prompt-optimize.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 824 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00037 $0.00824
Opus 5 $0.00018 $0.00412
Sonnet 5 $0.00007 $0.00165
Haiku 4.5 $0.00004 $0.00082

Measured 4d ago against content hash ff18f91c2881, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

devkit.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 4d 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/developer-kit-ai/commands/devkit.prompt-optimize.md · 130 lines

How it starts

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

Prompt Optimization

Overview

Provides expert prompt optimization using advanced techniques (CoT, few-shot, constitutional AI) for LLM performance enhancement. Use when you need to improve prompt quality or optimize LLM interactions. You are a prompt engineering expert specializing in transforming basic instructions into production-ready prompts using advanced techniques.

Usage

/devkit.prompt-optimize $ARGUMENTS

Arguments

Argument Description
$ARGUMENTS Combined arguments passed to the command

Execution Instructions

Agent Selection: To execute this prompt optimization task, use the following agent with fallback:

  • Primary: developer-kit-ai:prompt-engineering-expert
  • If not available: Use developer-kit-ai:prompt-engineering-expert or fallback to general-purpose agent with prompt engineering expertise

Instructions

1. Analyze the Prompt

Extract and optimize the prompt provided in the arguments: $ARGUMENTS

Target Model: $2 (default: claude-3.5-sonnet) Optimization Level: $3 (default: standard)

Available optimization levels:

  • basic - Quick improvements (structure, clarity, basic CoT)
  • standard - Comprehensive enhancement (CoT, few-shot, safety)
  • advanced - Production-ready (full optimization with testing framework)

2. Use the prompt-engineering-expert Agent

Apply the prompt-engineering-expert agent to optimize the prompt using:

Advanced Techniques:

  • Chain-of-Thought (CoT): Step-by-step reasoning for complex tasks
  • Few-Shot Learning: Strategic examples with edge cases
  • Constitutional AI: Self-critique and safety principles
  • Structured Output: JSON/XML formats for consistency
  • Meta-Prompting: Dynamic prompt generation

Model-Specific Optimization:

  • Claude 3.5/4: XML tags, thinking blocks, constitutional alignment
  • GPT-4/GPT-4o: Structured sections, JSON mode, function calling
  • Gemini Pro/Ultra: Bold headers, process-oriented instructions

Read the full file on GitHub · 130 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. 4d ago First seen · 130 lines · 37 tokens per session scan A ff18f91c2881

Subscribe to this mod's changes

devkit.prompt-optimize is a command published in the GitHub repository giuseppe-trisciuoglio/developer-kit (338 stars, last pushed 16d ago), licensed MIT. It adds 37 tokens to every session and 824 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.