docs: update PDF skill README
This commit is contained in:
1 parent
99b2a6fe99
commit
0c089e7abf
1 file changed
+24
-8
@@ -1,25 +1,41 @@
|
||||
# pdf
|
||||
|
||||
An agent skill for exporting documents to PDF and checking the final page layout.
|
||||
A client-agnostic Agent Skill for exporting documents to PDF and visually verifying the final page layout.
|
||||
|
||||
The skill exports from the editable source when available, renders every page, and has the agent open the page images at a readable scale. It compares the export with the requested formatting and any supplied reference. After a layout fix, it repeats the visual check on the new export.
|
||||
## What it does
|
||||
|
||||
## Usage
|
||||
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.
|
||||
|
||||
Invoke the skill as `$pdf` in T3 Code or ask your agent to use the `pdf` skill. For example, ask it to export a document and check that the PDF matches a reference, or to review an existing PDF for layout problems.
|
||||
## Requirements
|
||||
|
||||
The workflow uses the authoring application's PDF exporter and an image-capable viewing tool. Poppler's `pdftoppm` is the suggested renderer. An equivalent renderer or PDF viewer that exposes the page images to the model also works.
|
||||
- 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 this repository as `pdf` inside your agent's personal skills directory. For example, on a Codex setup that uses `~/.codex/skills`:
|
||||
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 ~/.codex/skills/pdf
|
||||
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](LICENSE).
|
||||
MIT, see [LICENSE](LICENSE).
|
||||
Reference in new issue
Block a user