Preserve existing Markdown document writing style while editing. Use when modifying existing .md files to add new analysis results, sections, or notes without rewriting prior content. Prioritize append/insert over replace unless the user explicitly requests a rewrite; keep headings, terminology, table formats, and link style consistent with the existing document.
Edit existing Markdown documents by adding content in a way that matches the document's current writing style and structure. Default behavior is non-destructive: keep existing text intact and only insert new sections where appropriate.
Before editing, scan the target .md file for:
#, ##, ### usage and numbering conventions.M±SD, decimals), separators.[[...]], [@paper], plain text references.Produce a short "style contract" (internal checklist) and follow it for all inserted text.
Pick one of the following, in this priority order:
If the user did not explicitly request rewrite, do not overwrite the whole file even if automation would be easier.
Preferred insertion rules:
# 3. results if adding new results).If a safe insertion point cannot be determined, ask the user where to add the new content.
Rules:
M±SD, p-value format).분석구간, 요약, 해석상 주의사항) instead of inventing new ones.When inserts are produced by scripts, add a small marker line to the inserted block, e.g.:
<!-- AUTO_APPEND: <id> -->Then: