review: tighten triggers, add license, polish README
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
"name": "md-to-pdf",
|
||||
"description": "Regenerate a PDF from a Markdown file on natural-language request (e.g. 'exportier mal das PDF', 'regenerate the PDF'). Uses project-local .md-to-pdf.config.js when present, otherwise a bundled default styled for A4 with small tables.",
|
||||
"version": "0.1.0",
|
||||
"license": "MIT",
|
||||
"author": {
|
||||
"name": "Jean-Luc Makiola",
|
||||
"email": "mail@jeanlucmakiola.de"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: md-to-pdf
|
||||
description: Use when the user asks to export, regenerate, build, or "make" a PDF from a Markdown file. Triggers on phrases like "exportier mal das PDF", "mach das als PDF", "regenerate the PDF", "PDF neu generieren", "convert this markdown to pdf". Do NOT trigger on requests to read, open, or display an existing PDF.
|
||||
description: Use when the user asks to export, regenerate, build, or "make" a PDF from a Markdown file. Triggers on phrases like "exportier mal das PDF", "mach das als PDF", "regenerate the PDF", "PDF neu generieren", "convert this markdown to pdf". Do NOT trigger on requests to read, open, display, summarize, preview, or render a PDF or Markdown file inline.
|
||||
version: 0.1.0
|
||||
---
|
||||
|
||||
@@ -10,7 +10,7 @@ Regenerate a PDF from a Markdown file using the user's preferred styling. The sk
|
||||
|
||||
## When This Skill Applies
|
||||
|
||||
Trigger when the user wants a Markdown file converted to PDF — typical phrasings: "exportier mal", "mach mir das als PDF", "PDF regenerieren", "regenerate the PDF", "convert to pdf". Do **not** trigger when the user just wants to view, read, or open an existing PDF.
|
||||
Trigger when the user wants a Markdown file converted to PDF — typical phrasings: "exportier mal", "mach mir das als PDF", "PDF regenerieren", "regenerate the PDF", "convert to pdf". Do **not** trigger when the user wants to view, read, open, summarize, preview, or render a PDF or Markdown file inline (no conversion intended).
|
||||
|
||||
## Procedure
|
||||
|
||||
@@ -19,7 +19,7 @@ Trigger when the user wants a Markdown file converted to PDF — typical phrasin
|
||||
Resolve in this order — stop at the first that yields a single unambiguous file:
|
||||
|
||||
1. A `.md` path explicitly named in the user's most recent message.
|
||||
2. The `.md` file the assistant most recently read or wrote in this session.
|
||||
2. The `.md` file the assistant most recently read or wrote in this session, **only if a single such file is unambiguously most recent**. If multiple files were touched and you cannot identify one with confidence, fall through to rule 3.
|
||||
3. The single most-recently-modified `.md` file in the current working directory (`ls -t *.md | head -1` semantics).
|
||||
|
||||
If none of these resolves to one file, **ask** the user which file to convert. Do not guess.
|
||||
|
||||
Reference in New Issue
Block a user