Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

configure-docs

БесплатноБез исполняемых скриптовНе проверен

Code docs: TSDoc, JSDoc, pydoc, rustdoc, TypeDoc, MkDocs, Sphinx. Use when setting up docstrings, configuring a docs generator, or enforcing doc coverage in CI.

laurigatesот laurigates★ 61 звезда на GitHub

Об этом скилле

/configure:docs

Check and configure code documentation standards and generators.

When to Use This Skill

Use this skill when... Use another approach when...
Setting up TSDoc, JSDoc, pydoc, or rustdoc standards for a project Writing actual documentation content for functions or modules
Configuring a documentation generator (TypeDoc, MkDocs, Sphinx, rustdoc) Deploying documentation to GitHub Pages (/configure:github-pages instead)
Auditing documentation coverage and lint compliance Reviewing generated documentation for accuracy
Adding documentation enforcement rules to CI/CD Editing ruff or biome configuration for non-doc rules (/configure:linting)
Migrating between documentation conventions (e.g., numpy to google style) Setting up pre-commit hooks only (/configure:pre-commit instead)

Context

  • Project root: !pwd
  • Package files: !find . -maxdepth 1 \( -name 'package.json' -o -name 'pyproject.toml' -o -name 'Cargo.toml' \)
  • Biome config: !find . -maxdepth 1 -name 'biome.json'
  • TSDoc config: !find . -maxdepth 1 \( -name 'tsdoc.json' -o -name 'typedoc.json' \)
  • Python config: !find . -maxdepth 1 \( -name 'pyproject.toml' -o -name 'ruff.toml' -o -name '.ruff.toml' \)
  • Rust config: !find . -maxdepth 1 \( -name 'Cargo.toml' -o -name 'clippy.toml' \)
  • Pre-commit: !find . -maxdepth 1 -name '.pre-commit-config.yaml'
  • Doc generators: !find . -maxdepth 1 \( -name 'mkdocs.yml' -o -name 'docusaurus.config.*' \)
  • Docs directory: !find . -maxdepth 1 -type d -name 'docs'

Parameters

Parse from command arguments:

  • --check-only: Report compliance status without modifications (CI/CD mode)
  • --fix: Apply fixes automatically without prompting
  • --level <minimal|standard|strict>: Documentation enforcement level (default: standard)
  • --type <typescript|javascript|python|rust>: Override language detection
  • --generator <typedoc|sphinx|mkdocs|rustdoc>: Override documentation generator detection

Enforcement Levels:

  • minimal: Syntax validation only (valid doc comments)
  • standard: Public API documentation required (recommended)
  • strict: All items documented, including private

Generator Auto-Detection:

Project Type Default Generator
TypeScript/JavaScript TypeDoc
Python MkDocs (simpler) or Sphinx
Rust rustdoc
Multi-language/Other MkDocs

Execution

Execute this documentation standards configuration check:

Step 1: Detect project language

Identify language(s) from file structure:

Indicator Language
package.json + tsconfig.json TypeScript
package.json (no tsconfig) JavaScript
pyproject.toml or *.py files Python
Cargo.toml Rust

For multi-language projects, configure each detected language. Allow --type override to focus on one.

Step 2: Analyze current documentation state

For each detected language, check existing configuration:

TypeScript/JavaScript:

  • tsdoc.json exists (TypeScript)
  • Biome configured with organize imports
  • TypeDoc or API Extractor configured for documentation generation

Python:

  • pyproject.toml has [tool.ruff.lint.pydocstyle] section
  • Convention specified (google, numpy, pep257)
  • D rules enabled in ruff lint select

Rust:

  • Cargo.toml has [lints.rust] section
  • missing_docs lint configured
  • [lints.rustdoc] section for rustdoc-specific lints

Step 3: Generate compliance report

Print a formatted compliance report:

Documentation Standards Compliance Report
=========================================
Project: [name]
Languages: [detected languages]
Enforcement Level: [minimal|standard|strict]

Linting Standards:
  TypeScript/JavaScript:
    tsdoc.json              [PASS | MISSING | N/A]
    TypeDoc configured      [PASS | MISSING | OUTDATED]
    API docs generated      [PASS | DISABLED]

  Python:
    ruff pydocstyle        [PASS | MISSING]
    convention             [google | not set]
    D rules enabled        [PASS | DISABLED]

  Rust:
    missing_docs lint      [PASS | DISABLED]
    rustdoc lints          [PASS | PARTIAL]

Documentation Generator:
  Generator type         [typedoc|mkdocs|sphinx|rustdoc]  [DETECTED | SUGGESTED]
  Config file            [config path]                     [EXISTS | MISSING]
  Build script           [command]                         [EXISTS | MISSING]
  Output directory       [docs/|site/|target/doc/]         [EXISTS | NOT BUILT]

Overall: [X issues found]

Next Steps:
  - Run `[build command]` to generate documentation locally
  - Run `/configure:github-pages` to set up deployment

If --check-only, stop here.

Step 4: Configure documentation standards (if --fix or user confirms)

Apply configuration based on detected language. Use templates from REFERENCE.md:

TypeScript

Полный SKILL.md на GitHub

Установить configure-docs в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Glob
Grep
Read
Write
Edit
Bash(find *)
Bash(npm install *)
Bash(bun add *)
Bash(uv add *)
Bash(typedoc *)
Bash(ruff check *)
Bash(cargo doc *)
Bash(mkdocs build *)
AskUserQuestion
TodoWrite

Вложенные файлы

REFERENCE.md

FAQ

Что делает скилл configure-docs?

Code docs: TSDoc, JSDoc, pydoc, rustdoc, TypeDoc, MkDocs, Sphinx. Use when setting up docstrings, configuring a docs generator, or enforcing doc coverage in CI.

Как установить скилл configure-docs?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл configure-docs запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить configure-docs с