java-docs

java-docs is a skill for Codex from PracticalSwan/agent-skills. It costs 28 tokens per session (1,119 once invoked), scanned A, original, MIT.

A guide to writing Javadoc, Java's standard format for documenting classes, methods, parameters, return values, and exceptions.

In plain words
What is it for?
Use it when adding or reviewing documentation for Java types, methods, packages, and public APIs.
Why use it?
It makes Java APIs easier to understand and helps documentation tools detect incomplete or malformed comments.

Skill for Codex

Written for Codex: reads $CODEX_HOME. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it when adding or reviewing documentation for Java types, methods, packages, and public APIs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/practicalswan/agent-skills/java-docs
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 PracticalSwan/agent-skills --skill java-docs
Clone the repo
git clone --depth 1 https://github.com/PracticalSwan/agent-skills

Made for: Codex.

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 java-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/practicalswan/agent-skills/java-docs/github.svg)](https://agentmods.dev/skills/practicalswan/agent-skills/java-docs)
Your own site
<a href="https://agentmods.dev/skills/practicalswan/agent-skills/java-docs"><img src="https://agentmods.dev/badge/skills/practicalswan/agent-skills/java-docs/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 java-docs

Your own site · 80×15
<a href="https://agentmods.dev/skills/practicalswan/agent-skills/java-docs"><img src="https://agentmods.dev/badge/skills/practicalswan/agent-skills/java-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,119 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Prompt Injection · line 78
    Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
    Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
How audits are shown
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.00028 $0.01119
Opus 5.5 $0.00011 $0.00448
Sonnet 5.5 $0.00006 $0.00224
Haiku 4.5 $0.00003 $0.00112

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

Security

Grade A, and why

java-docs 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 18d 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.

java-docs/SKILL.md · 79 lines

How it starts

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

Java Documentation (Javadoc) Best Practices

Principles

  • Document only what the code actually does: read the implementation, callers and tests first. Never invent behaviour, thresholds, thread-safety, nullability or exceptions you have not verified; if unsure, leave it out or ask.
  • Keep the existing documentation style of the project (language, tag order, comment form /** */ vs ///). Do not rewrite existing comments, or mass-document a codebase, unless the user asks; limit changes to the requested scope.
  • Check the JDK level (maven.compiler.release, toolchain, java -version) before using newer features, and stay within it.

Conventions

  • @since only with the real version in which the API was introduced; @deprecated with a reason and replacement, together with @Deprecated.
  • @author and @version only if the project already uses them.
  • Code blocks, by JDK level:
    • Any JDK: <pre>{@code ... }</pre> (escape @ at line start, balance braces).
    • JDK 18+: {@snippet : ... } for inline code, or {@snippet file="Example.java" region="demo"} with files in snippet-files/ (preferred for examples; javadoc does not compile or validate the snippet source, so compile and test the files in a separate build/test source set if you need that guarantee). Use // @highlight substring="x" and // @replace markup as needed.
    • JDK 23+ only (JEP 467): Markdown doc comments with ///, using [Type#member] for links and fenced code blocks. Use them only if the project already does or the user asks, and the build runs a JDK 23+ javadoc.

Verify

  • Run mvn -q javadoc:javadoc (or ./gradlew javadoc) and for single files javadoc -Xdoclint:all -d target/javadoc-check <files>; fix every warning/error you introduced (missing @param, bad HTML, unresolved {@link}, unknown tags).
  • Report what was documented and the commands run; state any claims you could not verify from the code.

Cross-Client Portability

Read the full file on GitHub · 79 lines

Files

What ships with it

1 file 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. 18d ago Changed · +3 lines dd27fefdc9fd
  2. 2mo ago Changed · -33 lines 70c82cb2ea6e
  3. 2mo ago Changed 4b6d14fd9dea
  4. 3mo ago First seen · 109 lines · 28 tokens per session scan A 0f0ec55cc321

Subscribe to this mod's changes

java-docs is a skill published in the GitHub repository PracticalSwan/agent-skills (25 stars, last pushed 18d ago), licensed MIT. It adds 28 tokens to every session and 1,119 once invoked, about $0.0001 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-03.

Related

java-docs compared with skills from other repositories

java-docs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
java-docsPracticalSwan/agent-skillsSkill2518d agoMITA28Codex
java-codeDongDuong2001/pudo-code-systemSkill517d agoMITA12Claude Code, Codex
java-best-practicesLeavesfly/JimiSkill23727d agononeA14Claude Code, Codex
java-affected-testsopen-metadata/OpenMetadataSkill16ktodayApache-2.0A120Claude Code
azure-security-keyvault-secrets-javamicrosoft/skillsSkill3.3ktodayMITA40Claude Code
azure-ai-anomalydetector-javamicrosoft/skillsSkill3.3ktodayMITA43Claude Code
azure-communication-chat-javamicrosoft/skillsSkill3.3ktodayMITA41Claude Code