Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add zm1990s/kb-agent --skill documentsgit clone --depth 1 https://github.com/zm1990s/kb-agentWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/zm1990s/kb-agent/documents)<a href="https://agentmods.dev/skills/zm1990s/kb-agent/documents"><img src="https://agentmods.dev/badge/skills/zm1990s/kb-agent/documents/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/zm1990s/kb-agent/documents"><img src="https://agentmods.dev/badge/skills/zm1990s/kb-agent/documents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00071 | $0.08578 |
| Opus 5.5 | $0.00028 | $0.03431 |
| Sonnet 5.5 | $0.00014 | $0.01716 |
| Haiku 4.5 | $0.00007 | $0.00858 |
Grade A, and why
documents scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
88% identical to docx — 163 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 465 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Documents Skill (Read • Create • Edit • Redline • Comment)
Use this skill when you need to create or modify .docx, Word, or Google
Docs-targeted document artifacts in this container environment and verify
them visually.
Tools + Contract
- Use Codex workspace dependencies for docx artifact work: resolve them through the workspace dependency loader or runtime skill, then treat the returned Node/Python runtimes and package directory as authoritative. Do not use system
node, systempython, global npm packages, or repo-local installs. - For document creation and deterministic OOXML edits, it is still acceptable to use the bundled Python/OOXML helper scripts in this skill package when the JS surface is incomplete.
- Run any builder or helper file from a writable workspace or temp directory, not from the managed dependency directory itself.
- Final user-facing responses should describe only the requested document result. Do not link QA intermediates unless the user explicitly asks for them.
Google Docs-targeted output
For a net-new Google Docs request, create and visually verify a local .docx with this skill first. The native Google Docs deliverable must then be produced by the Google Drive plugin's document import action, mcp__codex_apps__google_drive_import_document, with upload_mode: "native_google_docs".
Before rendering or importing any Google Docs-targeted DOCX, run the deterministic title sanitizer:
python scripts/google_docs_title_sanitize.py input.docx --out sanitized.docx
python scripts/google_docs_title_sanitize.py sanitized.docx --check
Use the sanitized DOCX for render QA and native Google Docs import. This is not a style preference or prose reminder: the sanitizer removes Word Title paragraph-style border residue, direct title-paragraph borders, and leading title-block paragraph borders from the OOXML so Word's built-in blue title rule cannot survive into the imported Google Doc.
Do not use Computer Use, Browser Use, blank-Google-Doc creation plus Google Docs write APIs, or another direct-to-Docs construction path for net-new Google Docs unless the user explicitly asks for that alternate workflow. If they do, mention first that output quality is expected to be best when a local .docx is imported through the Google Drive plugin.
What ships with it
60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- agents/openai.yaml 314 B
- assets/file-document.png 11 KB
- examples/end_to_end_smoke_test.md 930 B
- LICENSE.txt 1.4 KB
- manifest.txt 2.0 KB
- ooxml/comments.md 1.8 KB
- ooxml/hyperlinks_and_fields.md 2.4 KB
- ooxml/rels_and_content_types.md 1.3 KB
- ooxml/tracked_changes.md 1.6 KB
- references/design_presets.md 17 KB
- references/header_templates.md 12 KB
- render_docx.py 15 KB runs code
- scripts/a11y_audit.py 13 KB runs code
- scripts/accept_tracked_changes.py 5.4 KB runs code
- scripts/add_tracked_replacements.py 5.7 KB runs code
- scripts/apply_template_styles.py 4.0 KB runs code
- scripts/captions_and_crossrefs.py 9.5 KB runs code
- scripts/comments_add.py 8.4 KB runs code
- scripts/comments_apply_patch.py 4.8 KB runs code
- scripts/comments_extract.py 5.3 KB runs code
- scripts/comments_strip.py 4.7 KB runs code
- scripts/content_controls.py 11 KB runs code
- scripts/docx_ooxml_patch.py 22 KB runs code
- scripts/docx_table_to_csv.py 2.1 KB runs code
- scripts/fields_materialize.py 10 KB runs code
- scripts/fields_report.py 5.6 KB runs code
- scripts/flatten_ref_fields.py 4.6 KB runs code
- scripts/footnotes_report.py 2.8 KB runs code
- scripts/google_docs_title_sanitize.py 9.8 KB runs code
- scripts/heading_audit.py 3.2 KB runs code
- scripts/images_audit.py 5.7 KB runs code
- scripts/insert_note.py 8.8 KB runs code
- scripts/insert_ref_fields.py 6.9 KB runs code
- scripts/insert_toc.py 5.0 KB runs code
- scripts/internal_nav.py 12 KB runs code
- scripts/make_fixtures.py 8.5 KB runs code
- scripts/merge_docx_append.py 3.8 KB runs code
- scripts/privacy_scrub.py 5.5 KB runs code
- scripts/redact_docx.py 9.3 KB runs code
- scripts/render_and_diff.py 4.7 KB runs code
- scripts/section_audit.py 2.6 KB runs code
- scripts/set_protection.py 4.9 KB runs code
- scripts/style_lint.py 5.3 KB runs code
- scripts/style_normalize.py 5.5 KB runs code
- scripts/table_geometry.py 9.6 KB runs code
- scripts/watermark_add.py 5.2 KB runs code
- scripts/watermark_audit_remove.py 4.6 KB runs code
- scripts/xlsx_to_docx_table.py 5.5 KB runs code
- tasks/accessibility_a11y.md 1.9 KB
- tasks/captions_crossrefs.md 3.7 KB
- tasks/clean_tracked_changes.md 1.6 KB
- tasks/comments_manage.md 2.9 KB
- tasks/compare_diff.md 1.1 KB
- tasks/create_edit.md 1.9 KB
- tasks/fields_update.md 2.3 KB
- tasks/fixtures_edge_cases.md 1.7 KB
- tasks/footnotes_endnotes.md 1.8 KB
- tasks/forms_content_controls.md 2.0 KB
- tasks/headings_numbering.md 1.8 KB
- tasks/images_figures.md 1.3 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 465 lines · 71 tokens per session scan A 8ed9ed302b57
documents is a skill published in the GitHub repository zm1990s/kb-agent (5 stars, last pushed 2mo ago), licensed MIT. It adds 71 tokens to every session and 8,578 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 88% identical to docx, differing in 163 lines, and is treated as a copy.
Other skills, from other repositories
orbit-notion
Open Orbit briefing skill — selected by the Orbit pipeline when Notion is the user's only connected connector, or when the user explicitly scopes their daily digest to Notion. Pulls the past 24 hours of document edits, comments, mentions, and database row changes from the user's authenticated Notion connection and…
instrument-data-to-allotrope
Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…
legal-hold
Issue, refresh, release, or report on legal holds — drafts the hold notice as .docx, updates legalhold fields in log.yaml, and calendars the next refresh. Use when the user says "issue a hold", "refresh hold", "release hold", or asks for a portfolio-wide hold status report.
baoyu-youtube-transcript
A tool for downloading the written captions, subtitles, chapter information, speaker labels, and cover image from a YouTube video using its URL or ID.
feishu
Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.
read
Fetches URLs and PDFs, then summarizes or returns clean Markdown; can also search the web through DeepSeek when built-in search is thin. Use when asked to read, fetch, quote, cite, convert, or save a URL or PDF. Not for local text files already in the repo.