Skip to content
MyDSHMy DSH Field Notes
中文
Independently maintained; not affiliated with DeepSeek. No association with mydsh.dev or other MyDSH sites.

Home/Modes & context/Prompt structure & placeholders

From a one-line prompt to a full recipe: add inputs, outputs, and acceptance

A one-line instruction produces variable results, needing manual fixing every time.

VerifiedVersion and environmentChecked 2026-11-14
Scope
any task needing reproducible output
Checked
2026-11-14

Copyable command

Scan every PDF under pdfs/ and generate index.md. Mark unreadable files as 'read failed'; do not skip them. Do only the first 5 so I can check the format.

The problem with a one-liner is that it states only what to do, not the other three things: where input comes from, what output looks like, and what counts as done. Add those and results become reproducible.

Before

Help me turn these PDFs into an index.

After

Scan every PDF under [directory: pdfs/] and generate a Markdown index at index.md.

[Input]
- Only PDFs directly in pdfs/, no recursion
- Files with no extractable text go in their own section marked 'read failed'

[Output]
A table with four columns: filename | one-line description | three keywords | modified time
- The description must come from the body, never inferred from the filename
- Group by topic, newest first within a group

[Acceptance]
- index.md exists and no original PDF was modified
- Every description can be located in the source text
- Unreadable files are listed separately, not skipped
- total = successes + failures

Do only the first 5 for now so I can check the format, then continue.

What each section fixes

SectionFixesWithout it
InputBoundaries and preconditions: what to process, what not to, what to do with bad dataIt decides scope itself, differently each time
OutputShape and criteria: how many columns, what format, which fields must not be guessedOutput varies; nothing can be checked mechanically
AcceptanceWhat done means, checkablyIt says it finished; you cannot say whether it did

Two details most often missed

  • Say 'do not guess' explicitly. Without 'the description must come from the body', it invents a plausible line from the filename.
  • Put 'first five only' in the instruction. That one clause turns a gamble into two confirmations at almost no cost.
Every acceptance line must be mechanically checkable. 'Good quality' is not an acceptance item; 'total = successes + failures' is.

What counts as working

Check every line. All of them pass or the job is not done.

  • The rewritten instruction has input, output, and acceptance
  • Every acceptance item is mechanically checkable
  • The first run covered only a small sample

Where it fails

Symptom, cause, what to do — written in the order it actually happens.

SymptomCauseWhat to do
Three sections and results still varyBoundaries unclear, or the output section leaves room for 'whatever looks reasonable'Make boundaries judgeable and fields explicit
It skipped failed filesThe instruction never forbade skippingAdd: unreadable files must still appear, marked as failed

Sources

Verified means measured here. Compiled means every line carries a source.