optimize-deepseek-v4-prompts

optimize-deepseek-v4-prompts is a skill for Claude Code, Codex from IchenDEV/prompt-optimizer-plugins. It costs 151 tokens per session (1,494 once invoked), scanned A, original, MIT.

A prompt-writing guide for DeepSeek-V4 Pro and Flash, two versions of the DeepSeek language model. It uses the model's technical report to clarify, check, and rewrite prompts.

In plain words
What is it for?
Use it to improve, debug, rewrite, migrate, or design prompts for DeepSeek-V4. It helps define the needed inputs, output format, evidence, checks, and completion requirements.
Why use it?
It helps turn vague or existing instructions into prompts that preserve the intended result and constraints. It also separates documented model behavior from suggestions based on prompt design.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the prompt-optimizer plugin — 9 skills shipped together

Good fit Use it to improve, debug, rewrite, migrate, or design prompts for DeepSeek-V4. It helps define the needed inputs, output format, evidence, checks, and completion requirements.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ichendev/prompt-optimizer-plugins/optimize-deepseek-v4-prompts
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.

Any agent
npx skills add IchenDEV/prompt-optimizer-plugins --skill optimize-deepseek-v4-prompts
Clone the repo
git clone --depth 1 https://github.com/IchenDEV/prompt-optimizer-plugins

Made for: Claude Code, Codex.

Or install prompt-optimizer, the plugin that ships this one along with the rest of its 9 skills.

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 optimize-deepseek-v4-prompts

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ichendev/prompt-optimizer-plugins/optimize-deepseek-v4-prompts"><img src="https://agentmods.dev/badge/skills/ichendev/prompt-optimizer-plugins/optimize-deepseek-v4-prompts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 151 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,494 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.00151 $0.01494
Opus 5 $0.00076 $0.00747
Sonnet 5 $0.00030 $0.00299
Haiku 4.5 $0.00015 $0.00149

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

Security

Grade A, and why

optimize-deepseek-v4-prompts 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/prompt-optimizer/skills/optimize-deepseek-v4-prompts/SKILL.md · 91 lines

How it starts

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

Optimize DeepSeek-V4 Prompts

Turn rough ideas and existing prompt stacks into copy-ready prompts for DeepSeek-V4 Pro or Flash. Preserve the user's intent and constraints, ask for genuinely blocking information, and distinguish paper-reported behavior from prompt-design inference.

Use the technical-report basis

Read references/official-guidance.md before applying model-specific advice. The source is a DeepSeek-AI technical report, not a general prompt-engineering guide, so keep claims bounded to what it reports and the explicitly labeled optimizer implications. Fetch the live report or current platform documentation before making claims about released model IDs, API fields, availability, limits, or pricing.

Follow the workflow

1. Capture the prompt contract

Identify:

  • the intended outcome, audience, language, and risk level;
  • whether the target is DeepSeek-V4 Pro, Flash, or an unspecified V4 variant;
  • the inputs, reference corpus, search access, and real tools the model will receive;
  • facts and constraints to preserve, especially complex writing constraints;
  • required output content, format, evidence, verification, and completion criteria;
  • whether runtime reasoning mode or an end-to-end API request was actually requested.

Treat these as diagnostic dimensions, not mandatory headings. Preserve system, developer, user, and tool-description boundaries when the user supplies a layered prompt stack.

2. Apply the clarity gate

Ask a question only when two reasonable answers would materially change the outcome, source boundary, model variant, tool permissions, output schema, or success criteria.

Treat these gaps as blocking by default:

  • a vague topic and generic verb with no identifiable deliverable or audience;
  • an unspecified corpus, search boundary, or tool set whose choice changes the answer;
  • an external action without clear authorization;
  • conflicting complex constraints or an undefined strict schema;
  • a request for variant-specific or runtime advice when Pro versus Flash or latency versus quality materially changes the recommendation.

Read the full file on GitHub · 91 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 91 lines · 151 tokens per session scan A 7da2b714b6f2

Subscribe to this mod's changes

optimize-deepseek-v4-prompts is a skill published in the GitHub repository IchenDEV/prompt-optimizer-plugins (6 stars, last pushed 3d ago), licensed MIT. It adds 151 tokens to every session and 1,494 once invoked, about $0.0008 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-31.

Related

Other skills, from other repositories

instructor

Extract structured data from LLM responses with Pydantic validation, retry failed extractions automatically, parse complex JSON with type safety, and stream partial results with Instructor - battle-tested structured output library.

OpenLAIR/dr-claw · 41 tokens

build-dotnet-agent-service

Build a local-first F# or C# Semantic Kernel agent service with explicit tools, model capability checks, evaluation fixtures, and draft-before-write promotion.

gaelic-ghost/socket · 36 tokens

instructor

Extract structured data from LLM responses with Pydantic validation, retry failed extractions automatically, parse complex JSON with type safety, and stream partial results with Instructor - battle-tested structured output library.

Orchestra-Research/AI-Research-SKILLs · 41 tokens

analyze-prompt

Use when the user wants to review, score, or improve how they write prompts; when coaching prompt quality; or when tracking prompting mistakes over a session. Keywords: prompt analysis, prompt coaching, how should I ask, rate my prompt, am I prompting well, prompt statistics, prompt score.

rayapatiranjithai/prompt-analyzer · 64 tokens

prompt-mini

Forges weak Claude Code prompts into structured, credit-saving, framework-aware prompts. Use when prompts are vague, missing scope, or mention a stack without clear task definition.

nidhinjs/prompt-mini · 37 tokens

prompt-report

Use when the user wants an end-of-session summary of their prompting: overall stats, best and worst prompts, biggest recurring mistake, improvement curve, and personalized recommendations. Keywords: prompt report, session summary, how did I do, my prompting stats, prompt scorecard, prompting progress.

rayapatiranjithai/prompt-analyzer · 60 tokens