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

House style for placeholders and 'read failed' markers

A pile of personal recipes with inconsistent placeholders that need editing every time you reuse them.

VerifiedVersion and environmentChecked 2026-11-14
Scope
your own recipe collection
Checked
2026-11-14

Inconsistent placeholders cost more than looks: every reuse needs manual editing, and edits get missed. Fix a convention and afterwards you only change values.

Placeholders: brackets with a type prefix

FormMeansExample
[path: ...]A file or directory[path: pdfs/]
[field: ...]A column or field name[field: amount]
[range: ...]A count or interval[range: first 5]
[output: ...]Artifact filename and format[output: index.md]
[constraint: ...]A hard limit[constraint: do not modify originals]

Why brackets rather than {{double braces}}: recipes often quote code, and double braces collide with template syntax; brackets are never parsed as syntax and read as fill-me-in at a glance.

Three-part read-failure marker

Bad-data handling must be uniform, or you re-decide every time:

[READ FAILED] file: xxx.pdf | reason: no text layer | tried: character extraction

All three parts are required: which file, why it failed, what was attempted. 'Read failed' alone is not enough — the reader cannot tell whether another tool might succeed.

Two companion rules

  • No guessing: anything in the body must come from the source; anything derived from a filename is labelled as such.
  • The totals equation: every artifact ends with total = successes + failures to catch silent skipping.
This does not need to be elegant. Its value is never having to re-decide, not appearance. Once fixed, write it into your recipe template, not into memory.

What counts as working

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

  • Placeholders use one prefix set across recipes
  • Every recipe ends with the totals equation
  • Read failures always carry all three parts

Where it fails

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

SymptomCauseWhat to do
A placeholder is still missed on reuseIt looks like prose and cannot be scannedWrap in brackets so it stands out
The failure list has filenames onlyOnly the first part was writtenAdd reason and attempted action

Sources

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