harmont-cli: Skill for Claude Code

.claude/skills/writing-interface-docblocks/SKILL.md

writing-interface-docblocks is a skill for Claude Code from harmont-dev/harmont-cli. It costs 45 tokens per session (1,287 once invoked), scanned A, original, Apache-2.0.

A set of rules for writing documentation comments that explain how functions, methods, classes, and APIs are meant to be used.

In plain words
What is it for?
Use it when adding or editing docblocks, doc comments, docstrings, function headers, class documentation, parameters, return values, errors, or usage constraints.
Why use it?
It helps callers understand a code interface without reading its implementation and avoids filling documentation with internal steps or change history.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is harmont-dev/harmont-cli's own configuration. It tells Claude Code how to work on harmont-cli itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything harmont-cli configures →

Reuse

Borrowing it

Nothing to install: this file belongs to harmont-dev/harmont-cli. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/harmont-dev/harmont-cli/main/.claude/skills/writing-interface-docblocks/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/harmont-dev/harmont-cli

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 writing-interface-docblocks

README.md
[![agentmods](https://agentmods.dev/badge/skills/harmont-dev/harmont-cli/writing-interface-docblocks/github.svg)](https://agentmods.dev/skills/harmont-dev/harmont-cli/writing-interface-docblocks)
Your own site
<a href="https://agentmods.dev/skills/harmont-dev/harmont-cli/writing-interface-docblocks"><img src="https://agentmods.dev/badge/skills/harmont-dev/harmont-cli/writing-interface-docblocks/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 writing-interface-docblocks

Your own site · 80×15
<a href="https://agentmods.dev/skills/harmont-dev/harmont-cli/writing-interface-docblocks"><img src="https://agentmods.dev/badge/skills/harmont-dev/harmont-cli/writing-interface-docblocks.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,287 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.00045 $0.01287
Opus 5.5 $0.00018 $0.00515
Sonnet 5.5 $0.00009 $0.00257
Haiku 4.5 $0.00005 $0.00129

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

Security

Grade A, and why

writing-interface-docblocks 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 2mo 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.

.claude/skills/writing-interface-docblocks/SKILL.md · 104 lines

How it starts

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

Writing Interface Docblocks

Overview

A docblock is a contract, not a transcript and not a changelog. It tells a caller — who has never seen the body, and never saw your prompt — what the thing IS and how to use it. Terse. Present tense. Timeless.

If the reader could learn it by reading the body, the docblock does not repeat it. If the reader only knows it because they saw your conversation, the docblock never mentions it.

Violating the letter of these rules is violating the spirit.

The one test

Before writing any line, ask: does a caller need this to use the function correctly, without reading the body?

  • Yes → it belongs (purpose, params, return, errors, invariants, caller constraints).
  • No → delete it.

Belongs vs excluded

Belongs (the interface) Excluded (the implementation / the transcript)
What it does, in one line Step-by-step of how it does it ("proceeds as follows: 1, 2, 3")
What params/return mean Restating the signature or types already visible
When it errors/panics (the when) Why you chose errors over panics; internal mechanism
Caller-visible invariants & constraints Private fields, helpers, backing arrays, Big-O of the body
Non-obvious usage caveats Analogies to what the code "is like"

Never leak the prompt

The doc describes current behavior as if it always existed. It has no memory of your task.

Ban these — they mean you are documenting the conversation, not the contract:

  • as requested, as required, to satisfy, per the requirement
  • rather than X, instead of X, now returns, changed to — no comparison to old/alternative behavior
  • Parroting a constraint you were given: asked "must never panic" → do not write "this never panics." State the contract (# Errors: returns ... when ...); absence of panic is implied by the return type.

Terse by default

Most functions need 1–3 lines. Reach for more only when a caller-facing caveat genuinely requires it. A docblock longer than the body of a simple function is a smell.

Read the full file on GitHub · 104 lines

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. 2mo ago First seen · 104 lines · 45 tokens per session scan A 2d6a144afa9e

Subscribe to this mod's changes

writing-interface-docblocks is a skill published in the GitHub repository harmont-dev/harmont-cli (21 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 45 tokens to every session and 1,287 once invoked, about $0.0002 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-08-30.

Related

writing-interface-docblocks compared with skills from other repositories

writing-interface-docblocks next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
writing-interface-docblocksharmont-dev/harmont-cliSkill213mo agoApache-2.0A45Claude Code
dd-code-generationDataDog/pupSkill1.0kyesterdayApache-2.0A16Claude Code
igniteui-wc-choose-componentsIgniteUI/igniteui-cliSkill137yesterdayMITA34Claude Code
igniteui-blazor-generate-from-image-designIgniteUI/igniteui-cliSkill137yesterdayMITA127Claude Code
igniteui-wc-customize-component-themeIgniteUI/igniteui-cliSkill137yesterdayMITA37Claude Code
igniteui-react-generate-from-image-designIgniteUI/igniteui-cliSkill137yesterdayMITA137Claude Code
igniteui-wc-generate-from-image-designIgniteUI/igniteui-cliSkill137yesterdayMITA121Claude Code