大模型网摘deepseek.wang

Prompt Tutorials · 2026-11-25

Build Your Personal Prompt Library: Directory Structure and Naming Conventions

Once you have been writing prompts for a while, the biggest problem is not coming up with new ones — it's finding the old ones. Which chat log has the code-review prompt you tuned last week? Which version of the weekly-report template is the latest? DeepSeek's low API pricing and open-weight local deployment mean many people iterate heavily, and heavy iteration creates messy archives. This article lays out a directory structure, naming conventions, and template skeletons you can copy directly.

1. Start with directories: organize by task domain, not by model

A common mistake is creating folders per model (one for deepseek-r1, one for deepseek-v3). For any given task you'll switch between the chat model and thinking mode anyway, so splitting by model breaks up related material. Organize by task domain instead:

prompt-library/
├── code/            # code: review, refactoring, test generation, SQL
├── writing/         # writing: weekly reports, emails, polishing, translation
├── analysis/        # analysis: data interpretation, option comparison, logic checks
├── math/            # math and derivations
├── system/          # system prompts (system messages for API calls)
└── archive/         # deprecated but too good to delete

One .md file per task within each directory. Don't cram ten prompts into one big document — it kills both retrieval and iteration.

2. Naming: let filenames carry their own metadata

Recommended format: domain-task-version-status.md, e.g. code-review-v3-verified.md, writing-weekly-report-v1-draft.md.

Give every file a fixed internal structure: one line describing the purpose plus the recommended model/mode, then the template body, then a change log. Three seconds after opening a file, you should know whether it's usable.

3. Template skeleton: DeepSeek rewards structure, not theatrics

One principle to remember when writing templates for models like DeepSeek: R-series reasoning models do their best work on well-specified constraints and complex reasoning — they don't need role-play dressing like "you are a veteran expert with twenty years of experience." Meanwhile, V-series chat models handle simple tasks fine, so there's no need to trigger deep thinking on everything. Writing out the goal, input, constraints, and output format clearly beats piling on adjectives.

Below are two complete templates you can paste and use right away.

Code review (chat mode is enough day-to-day; turn on deep thinking for complex architecture questions):

# Purpose: Python code review | For: V-series / deep thinking optional | Status: verified

Please review the following Python code and output in the fixed format below.

【Input】
{paste code}

【Review dimensions】 (check in this order; write "none" for dimensions with no issues)
1. Correctness: logic errors, edge cases, exception handling
2. Security: injection risks, sensitive data exposure
3. Performance: obvious inefficiencies
4. Readability: naming, duplicated code

【Output format】
- One line per issue: [severity: high/medium/low] location → problem → suggested fix (with a code snippet)
- Final line: overall verdict — merge as-is / merge after fixes

【Constraints】
- No vague style commentary; only concrete issues at specific locations
- Do not rewrite the entire file

Data interpretation (a multi-step reasoning task where deep thinking is worth enabling):

# Purpose: business data interpretation | Recommended: deep thinking on | Status: verified

Analyze the data below. Reason first, then conclude; do not skip the reasoning.

【Data】
{paste table or numbers, noting time range and measurement definitions}

【Task】
1. Identify significant change points in the data (period-over-period / year-over-year anomalies)
2. For each change point, give at least two possible explanations,
   plus how to verify each (what additional data is needed)
3. End with your ranked likelihood assessment and reasoning

【Constraints】
- If the data can't support a conclusion, explicitly write "insufficient evidence" — don't invent a story
- Tag every numeric conclusion with its source (which part of the raw data)
- Use numbered lists; the conclusion section must stay within 5 items

4. Maintenance rhythm: do exactly one thing after each use

Prompt libraries usually die because maintenance costs too much. Lower the bar: after each use, update only two fields — if the result disappointed you, add one line to the change log about what went wrong; if it worked, flip status to verified. Spend ten minutes a month reviewing archive to confirm the discarded ones are truly obsolete. A light process you can sustain beats a heavy one you abandon.

One more note: if you plan to share your library with a team or publish it, avoid superlative-style clickbait in titles and stick to honest "use case" descriptions — it actually gets a better reception.

You don't need to build the whole library in a day: set up the directories, migrate the three prompts that worked best for you today, and within a week you'll feel the difference between "ready at hand" and "scrolling through chat history."