doc-sync-automation

doc-sync-automation is a skill for Claude Code from latestaiagents/agent-skills. It costs 51 tokens per session (1,665 once invoked), scanned A, original, MIT.

A guide for keeping technical documentation aligned with source-code changes. It covers inline comments, API references, READMEs, changelogs, and architecture documents.

In plain words
What is it for?
Use it to update documentation, generate API references and JSDoc or TSDoc comments, revise READMEs, and set up documentation workflows.
Why use it?
It addresses documentation becoming outdated after features, endpoints, or code structure change.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the developer-toolkit plugin — 19 skills shipped together

Good fit Use it to update documentation, generate API references and JSDoc or TSDoc comments, revise READMEs, and set up documentation workflows.

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

Made for: Claude Code.

Or install developer-toolkit, the plugin that ships this one along with the rest of its 19 skills.

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 doc-sync-automation

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/latestaiagents/agent-skills/doc-sync-automation"><img src="https://agentmods.dev/badge/skills/latestaiagents/agent-skills/doc-sync-automation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,665 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.00051 $0.01665
Opus 5 $0.00026 $0.00833
Sonnet 5 $0.00010 $0.00333
Haiku 4.5 $0.00005 $0.00167

Measured 9d ago against content hash fb530c0e3028, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

doc-sync-automation 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 9d 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.

plugins/developer-toolkit/skills/code-intelligence/doc-sync-automation/SKILL.md · 321 lines

How it starts

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

Doc Sync Automation

Keep documentation synchronized with code changes automatically.

When to Use

  • Code changed and docs need updating
  • Generating API documentation from code
  • Creating or updating README files
  • Keeping inline comments/JSDoc current
  • Setting up documentation automation

Documentation Types

Type Location Sync Trigger
Inline (JSDoc/TSDoc) In code files Code changes
API Reference /docs/api/ Endpoint changes
README Root or feature folders Feature changes
Changelog CHANGELOG.md Any release
Architecture /docs/architecture/ Structure changes

Inline Documentation (JSDoc/TSDoc)

AI Prompt for JSDoc Generation

Generate JSDoc comments for this function:

```typescript
async function createUser(
  email: string,
  password: string,
  options?: { role?: string; sendWelcome?: boolean }
): Promise<User> {
  // implementation
}

Include:

  • Description
  • @param for each parameter
  • @returns description
  • @throws if applicable
  • @example usage

### Generated Output
```typescript
/**
 * Creates a new user account with the specified credentials.
 *
 * @param email - The user's email address (must be unique)
 * @param password - The user's password (min 8 characters)
 * @param options - Optional configuration
 * @param options.role - User role, defaults to 'user'
 * @param options.sendWelcome - Send welcome email, defaults to true
 * @returns The newly created user object
 * @throws {ValidationError} If email is invalid or password too short
 * @throws {DuplicateError} If email already exists
 *
 * @example
 * const user = await createUser('[email protected]', 'securepass123');
 *
 * @example
 * const admin = await createUser('[email protected]', 'adminpass', {
 *   role: 'admin',
 *   sendWelcome: false
 * });
 */

Batch Update JSDoc

Update JSDoc for all exported functions in this file.
Keep existing descriptions if accurate, update if code changed.

```[paste file content]```

Read the full file on GitHub · 321 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. 9d ago First seen · 321 lines · 51 tokens per session scan A fb530c0e3028

Subscribe to this mod's changes

doc-sync-automation is a skill published in the GitHub repository latestaiagents/agent-skills (5 stars, last pushed 4mo ago), licensed MIT. It adds 51 tokens to every session and 1,665 once invoked, about $0.0003 per session on Opus 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-31.