mcpbeat Sign in

Writing Javadoc Agent Skill

Use when writing or editing Javadoc for Lettuce public API — new methods, classes, deprecations, or when a reviewer asks to fix or improve doc comments. Points to the full house ruleset in .agents/docs/javadoc.md (imperative method summaries, fixed tag order, @param/@return/@throws/@since/@deprecated house forms) and the rule that command-interface Javadoc is edited in the template, not the generated files. Trigger on "write javadoc for", "document this method", "add a deprecation notice", "fix the doc comment".

698 tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
5775
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/redis/lettuce --skill writing-javadoc

The instruction itself

4 sections, as written by the author

Writing Javadoc for Lettuce

The complete, authoritative ruleset is .agents/docs/javadoc.md

read it before writing. This skill is the operating checklist; the doc wins on any

detail.

Before you write

  • Is it a command interface? The interfaces under

src/main/java/io/lettuce/core/api/{sync,async,reactive}/ are generated

(@generated marker). Edit the Javadoc in the template at

src/main/templates/io/lettuce/core/api/<Group>Commands.java, not the generated

file — the template comment feeds every flavor. See architecture.md.

The rules most often gotten wrong

  • Golden rule: document the caller-facing contract (inputs, outputs, effects,

errors, nullability) — never implementation details or refactor rationale.

  • First sentence: imperative verb for methods ("Append…", "Get…", "Remove…"),

noun phrase for types. Not "This method…". Ends in a clean period.

  • Tag order: @param@return@throws@author@since@see

@deprecated.

  • @param for every parameter (type params <K>/<V> first); state

nullability with the house phrases must not be {@code null}. / can be {@code null}.

  • @return for non-void; describe the value and its meaningful states, not the

type.

  • @since is a bare version — @since 7.7 (see .agents/docs/javadoc.md for deriving

the version from the build).

  • @deprecated — keep the @Deprecated annotation and the tag in sync; house

form: `@deprecated since <version>, use {@link Replacement} instead; scheduled for

removal in a future major release.`

  • @author on types only — the *maintainer's* name (an agent must not invent

one); don't reorder existing authors.

  • Use {@code null} for literals; {@link} only to types resolvable on the

compile classpath (else {@code TypeName}).

Verify, don't guess

Match the surrounding file, and consult .agents/docs/javadoc.md for any subtle case

rather than inventing a rule. Javadoc lint is off in the build (<doclint>none</doclint>),

so review is the only check — get it right by hand.

Other skills for the same job

different authors, same section of the catalogue
Doc Coauthoring
by anthropics
vendor ×10

Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.

4k tokens
Changelog Generator
by frostant
×9

Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.

774 tokens
Test Driven Development
by w95
×7

Use when implementing any feature or bugfix, before writing implementation code

2k tokens
Writing Plans
by ZhanlinCui
×4

Use when you have a spec or requirements for a multi-step task, before touching code

816 tokens
Writing Skills
by ZhanlinCui
×4

Use when creating new skills, editing existing skills, or verifying skills work before deployment

26k tokens scripts
Crafting Effective Readmes
by softaworks
×3

Use when writing or improving README files. Not all READMEs are the same — provides templates and guidance matched to your audience and project type.

15k tokens
Humanizer
by softaworks
×3

| Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.

6k tokens
Opentrons Integration
by christophacham
×3

Official Opentrons Protocol API for OT-2 and Flex robots. Use when writing protocols specifically for Opentrons hardware with full access to Protocol API v2 features. Best for production Opentrons protocols, official API compatibility. For multi-vendor automation or broader equipment control use pylabrobot.

9k tokens scripts

How to use it

Copy the folder

Take redis/writing-javadoc from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.