Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

docs(skills): require valid markdown output (#14091)

Max Deichmannf34b83dbdc5b
diff --git a/.agents/skills/skill-creator/SKILL.md b/.agents/skills/skill-creator/SKILL.md
index 6fab226237..fb453a41fc 100644
--- a/.agents/skills/skill-creator/SKILL.md
+++ b/.agents/skills/skill-creator/SKILL.md
@@ -71,6 +71,25 @@ When using subagents for validation, treat that as an evaluation surface. The go
Prefer raw artifacts such as example prompts, outputs, diffs, logs, or traces. Give the minimum task-local context needed to perform the validation. Avoid passing the intended answer, suspected bug, intended fix, or your prior conclusions unless the validation explicitly requires them.
+### Require Valid Markdown Output
+
+When a skill instructs Codex to return Markdown, require the final output to be
+valid Markdown, not just Markdown-like text.
+
+In the skill instructions, explicitly require Codex to:
+
+- use valid Markdown syntax for headings, lists, links, tables, and code fences;
+- include a space after list markers such as `-`, `*`, and `1.`;
+- close every Markdown link and parenthesis correctly;
+- avoid malformed tables, dangling backticks, or partially opened fenced code
+ blocks;
+- prefer plain paragraphs over complex formatting when the structure would be
+ fragile.
+
+If a skill produces structured reports, include a short output-format section
+that says the response must be valid Markdown and should be checked for basic
+syntax mistakes before returning it.
+
### Anatomy of a Skill
Every skill consists of a required SKILL.md file and optional bundled resources:
@@ -377,6 +396,9 @@ Do not include any other fields in YAML frontmatter.
Write instructions for using the skill and its bundled resources.
+If the skill expects Markdown output, add an explicit output-format section that
+requires valid Markdown syntax in the final response.
+
### Step 5: Validate the Skill
Once development of the skill is complete, validate the skill folder to catch basic issues early:
diff --git a/.agents/skills/weekly-production-review/SKILL.md b/.agents/skills/weekly-production-review/SKILL.md
index 6518899c84..2458086c48 100644
--- a/.agents/skills/weekly-production-review/SKILL.md
+++ b/.agents/skills/weekly-production-review/SKILL.md
@@ -272,3 +272,15 @@ Then present sections in this order:
2. Customer Incident Table.
3. Linear Bug Table.
4. Datadog Alert/Page Signals.
+
+## Output Format
+
+Return valid Markdown only.
+
+- Use valid Markdown syntax for headings, bullets, links, and tables.
+- Include a space after list markers such as `-`, `*`, and `1.`.
+- Close links and parentheses correctly.
+- Do not emit malformed tables, dangling backticks, or partially opened code
+ fences.
+- If a section would be fragile to format, prefer a plain paragraph over broken
+ Markdown.