42 lines
1.6 KiB
Markdown
42 lines
1.6 KiB
Markdown
# pdf
|
|
|
|
A client-agnostic Agent Skill for exporting documents to PDF and visually verifying the final page layout.
|
|
|
|
## What it does
|
|
|
|
The agent exports from the editable source when available or reviews a supplied PDF directly. It renders every page and inspects it at a readable scale against the requested formatting and any supplied reference. After fixing a layout issue, it re-exports and inspects every page of the new PDF before delivery.
|
|
|
|
## Requirements
|
|
|
|
- An agent client that loads `SKILL.md` skills.
|
|
- Access to the authoring application's PDF exporter when exporting from an editable source.
|
|
- Poppler's `pdftoppm` or an equivalent renderer, plus a tool that shows the rendered pages to the agent. A PDF viewer that exposes page images to the agent can also handle both steps.
|
|
|
|
## Installation
|
|
|
|
Clone the repository as `pdf` in a skills directory supported by your client. Replace `/path/to/skills` with that directory.
|
|
|
|
```sh
|
|
git clone https://git.bjphoster.com/skills/pdf.git /path/to/skills/pdf
|
|
```
|
|
|
|
If you use [skills-autoupdate](https://git.bjphoster.com/skills/.autoupdate), add `https://git.bjphoster.com/skills/pdf` to `~/.config/skills`.
|
|
|
|
Reload skills or start a new session if your client requires it.
|
|
|
|
## Usage
|
|
|
|
Invoke the `pdf` skill using your client's syntax, such as `$pdf` where supported, or ask the agent to use it in your request.
|
|
|
|
```text
|
|
Use the pdf skill to export the document to PDF and check every page against the supplied reference.
|
|
```
|
|
|
|
```text
|
|
Use the pdf skill to review the attached PDF for clipped content and unintended page breaks.
|
|
```
|
|
|
|
## License
|
|
|
|
MIT, see [LICENSE](LICENSE).
|