Agent Skills: Md

Use when the user invokes /md or asks to save the previous assistant response to a Markdown file.

UncategorizedID: kyzooghost/audit-code-health-skill/md

Install this agent skill to your local

pnpm dlx add-skill https://github.com/kyzooghost/skills/tree/HEAD/skills/md

Skill Files

Browse the full folder contents for md.

Download Skill

Loading file tree…

skills/md/SKILL.md

Skill Metadata

Name
md
Description
Use when the user invokes /md or asks to save the previous assistant response to a Markdown file.

Md

Save the previous assistant response as a local Markdown file.

Invocation

/md
/md my-file.md

Behavior

  1. Identify the last assistant response before the user's /md request.
  2. Write only the text shown to the user. Do not include tool calls, hidden reasoning, system messages, or the /md request itself.
  3. Preserve the response formatting exactly, including headings, lists, and code fences.
  4. Write to tmp-docs/<filename> under the current working directory. Create tmp-docs/ if needed.
  5. If the user supplied a filename, use it as the filename. If it has no .md suffix, add .md.
  6. If no filename was supplied, generate a 2-4 word kebab-case filename from the response content.
  7. Overwrite any existing file with the same path.
  8. After writing, report Wrote {n} bytes to {filepath}.
  9. Open the file in Chrome:
open -a "Google Chrome" {filepath}

Errors

  • If there is no previous assistant response to save, say: Error: no previous response to save.
  • If the path is invalid or unwritable, show the filesystem error message.