Install
$ agentstack add skill-eai-org-agent-toolkit-compact-docs-writer ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Compact docs writer
Rewrite a doc — or draft a new one — for token economy: carry all its rules and intent in the least text possible, because the doc loads into agent context and is paid for on every read. Then prove nothing was lost: present the change with a word delta measured from the files, and apply only on approval.
Core principle
Write each piece of information with the least text that still preserves every rule, constraint, edge case, and intent. Two directions, equally binding:
- Cut duplication, filler, and anything restatable more briefly.
- Never drop text whose removal loses information or instruction, just to be shorter.
Recurring reflex: "Can this exact rule be said in fewer words?" — if yes, do it.
The no-op test licenses one more deletion. Ask of each sentence, in isolation: "does it change the agent's behaviour versus its default?" If not, it's a no-op — the agent already acts this way, so removing it loses nothing: delete the whole sentence rather than trimming words from it.
Compaction counts words and information density, not whitespace. Blank lines between distinct chunks cost effectively nothing and aid the human reader, so keep them where they help; never collapse a long passage into one dense block to look shorter. The same economy runs both ways: a human-readability gain that is free or near-free in tokens — a blank line, a line break, a semicolon-chained enumeration rendered as a bullet list — is always applied, never skipped to look compact.
Structure follows the same economy: co-locate a concept — its rule, exceptions, and caveats under one heading, never scattered — so a reader who jumps to one part gets the others with it.
Leading words
When one concept keeps getting restated, collapse it into a single leading word the model already carries from pretraining, and reuse that word wherever the concept applies: it anchors the same behaviour in one token and reads sharper than any paraphrase. The collapse still obeys the core principle — the word must carry every constraint it replaces, and whatever it doesn't carry stays spelled out: "fast, low-overhead feedback" collapses into a tight loop, but a "deterministic" requirement isn't inside tight, so it survives as its own word. Hunt for these collapses in every pass.
Workflow
- Compact. Rewrite the target to meet the core principle in one pass — a first draft already
meets the standard; don't ship a loose draft expecting a later pass to tighten it. If a chunk is needed only in a sub-case and is big enough to tax every read, you may suggest extracting it into a referenced file — never force it; the enforced standard is compact text, not splitting.
- Self-review before presenting (terse yes/no):
- Every original rule, instruction, edge case, and intent still present?
- Every surviving rule in the fewest words — tight phrasing, not just free of redundancy?
Answer by drafting a shorter rival phrasing for each new or rewritten sentence, not by re-reading: an unchallenged yes is a rubber stamp.
- Removal audit against the rendered diff, not memory: read every removed line — and every
reordered or merged one, which count as removals — and confirm each drops only duplication, filler, or a verified no-op, never a load-bearing rule, instruction, edge case, or nuance. After a merge, re-verify the result still carries every item from both sources.
- Present & confirm. Show the change as a unified diff inside a fenced
diffcode block —
every removed line prefixed -, every added line +, so they render red/green — and when a long line changes by only a few words, add a word-level view ([-removed-]{+added+}) pinpointing them. Include a word/token delta measured from the files, never estimated: write the not-yet-applied draft to a scratch file (in the session's temp/scratch dir, never the working tree) and wc -w it against the original. Label it not yet applied and awaiting approval; apply only on approval; after applying, say so plainly. Ask for approval in the presentation text or in a later turn, never via a question tool call in the same turn: text emitted before a tool call may not be displayed, so the question would land without the draft.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: eai-org
- Source: eai-org/agent-toolkit
- License: MIT
- Homepage: https://medium.com/engineering-in-the-age-of-ai
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.