agdoc

agdoc is a skill for Claude Code from umputun/agterm. It costs 227 tokens per session (3,519 once invoked), scanned A, original, MIT.

A skill that creates a static HTML document about the current work and displays it in an agterm overlay. HTML is the markup used to structure web pages, and an overlay is a panel shown above the current interface.

In plain words
What is it for?
Use it to make contextual briefings, reviews, explanations, comparisons, or design documents and show them in the current terminal interface.
Why use it?
It turns a code task, issue, pull request, plan, or topic into a viewable document without requiring the user to provide every detail when the subject is clear from the session.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Good fit Use it to make contextual briefings, reviews, explanations, comparisons, or design documents and show them in the current terminal interface.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/umputun/agterm/html-doc-overlay
Install

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.

Any agent
npx skills add umputun/agterm --skill html-doc-overlay
Clone the repo
git clone --depth 1 https://github.com/umputun/agterm

Made for: Claude Code.

Wrote 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.

agentmods badge for agdoc

README.md
[![agentmods](https://agentmods.dev/badge/skills/umputun/agterm/html-doc-overlay/github.svg)](https://agentmods.dev/skills/umputun/agterm/html-doc-overlay)
Your own site
<a href="https://agentmods.dev/skills/umputun/agterm/html-doc-overlay"><img src="https://agentmods.dev/badge/skills/umputun/agterm/html-doc-overlay/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.

agentmods 80×15 button for agdoc

Your own site · 80×15
<a href="https://agentmods.dev/skills/umputun/agterm/html-doc-overlay"><img src="https://agentmods.dev/badge/skills/umputun/agterm/html-doc-overlay.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 227 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,519 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00227 $0.03519
Opus 5.5 $0.00091 $0.01408
Sonnet 5.5 $0.00045 $0.00704
Haiku 4.5 $0.00023 $0.00352

Measured 1mo ago against content hash 0640940180a5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agdoc 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.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/embed-md.py, scripts/share.py, scripts/show.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

cookbook/html-doc-overlay/SKILL.md · 207 lines

How it starts

The opening of the file, as written. The whole thing — 207 lines — stays where its author put it; the contents beside it link to each section on GitHub.

agdoc

Build one static HTML page about a subject from the current work and show it in this session's agterm overlay. scripts/show.sh FILE does the showing; assets/<design>.html carries the look.

Every page already carries its markdown (step 6); a follow-up asking for it puts the .md on the clipboard with pbcopy.

1. Settle the brief

The brief is a subject plus an angle.

  • Arguments given: the whole string is the brief. Take the subject from it (#123, pr 45, a URL, a plan name, a file or package, a free-form topic) and the angle from any audience cue ("business point of view", "for a reviewer", "for someone new to this"). Extra instructions in it ("only the risks", "compare with X") override the default outline below.
  • No arguments: gather candidates, most specific first:
    1. what the conversation is working on right now - an issue or PR under review, a plan being executed, an investigation or design being discussed, the change just made;
    2. repo state - the current branch's PR or MR through the forge CLI step 3 selects, when there is one, commits ahead of the default branch, uncommitted changes, an in-progress plan in docs/plans/.
  • One candidate clearly dominates (the conversation is plainly about it) → take it, technical angle.
  • Otherwise the subject becomes a question (step 2): up to 4 variants, most likely first and marked (Recommended) with the reason in its description. Each label names subject and angle ("PR #45 - what it changes", "Issue #12 - business impact"); each description says what the page will contain. The built-in Other answer is the custom-instruction path, so add no option for it.
  • A #N whose kind is unknown on GitHub: gh api repos/{owner}/{repo}/issues/N --jq '.pull_request != null'; on another forge, its CLI's equivalent.

2. Choose the design

Design Template Look Fits
Editorial assets/editorial.html serif headings, hero with key numbers, pinned numbered index, cards, pipelines, timelines explaining a topic, code area, skill or plan
Brief assets/brief.html one screen, two at most: masthead, bottom line, a grid of labelled fact blocks status of a PR, issue, branch or release; a quick overview
Classic assets/classic.html plain reference page, top contents bar, pills and callouts long reference material read top to bottom
Custom assets/custom.html (base styles only) no fixed skeleton: the model designs the view for this task and its content any task whose content has a shape of its own that the three would distort, an A vs B analysis for one

Read the full file on GitHub · 207 lines

Files

What ships with it

8 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.

Changes

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.

  1. 1mo ago Changed · +76 lines · +62 tokens per session 0640940180a5
  2. 2mo ago First seen · 131 lines · 165 tokens per session scan A 74f7c74f72dc

Subscribe to this mod's changes

agdoc is a skill published in the GitHub repository umputun/agterm (780 stars, last pushed today), licensed MIT. It adds 227 tokens to every session and 3,519 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-29.

Related

agdoc compared with skills from other repositories

agdoc next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agdocumputun/agtermSkill780todayMITA227Claude Code
kami-landingwolfenazz/YzPzCodeSkill20yesterdayApache-2.0A81Claude Code, Codex
html-ppt-weekly-reportwolfenazz/YzPzCodeSkill20yesterdayApache-2.0A52Claude Code, Codex
pptx-html-fidelity-auditwolfenazz/YzPzCodeSkill20yesterdayApache-2.0A185Claude Code, Codex
clinical-case-reportwolfenazz/YzPzCodeSkill20yesterdayApache-2.0A73Claude Code, Codex
orbit-notionwolfenazz/YzPzCodeSkill20yesterdayApache-2.0A117Claude Code, Codex
digital-eguidewolfenazz/YzPzCodeSkill20yesterdayApache-2.0A103Claude Code, Codex