docs

📁 seabbs/claude-code-config 📅 3 days ago
1
总安装量
1
周安装量
#52300
全站排名
安装命令
npx skills add https://github.com/seabbs/claude-code-config --skill docs

Agent 安装分布

amp 1
opencode 1
kimi-cli 1
codex 1
gemini-cli 1

Skill 文档

Check that all code has appropriate documentation.

Arguments: $ARGUMENTS (optional scope)

  • commit: Check only staged files
  • pr: Check all files changed in the current PR
  • all: Check the entire codebase
  • If no argument provided:
    • If in a PR branch: defaults to ‘pr’
    • Otherwise: defaults to ‘commit’

Phase 1: Scope Determination

  1. Determine scope based on $ARGUMENTS

Phase 2: Documentation Analysis

  1. Identify functions/classes lacking documentation
  2. Check quality of existing documentation
  3. Extract project documentation standards from CLAUDE.md

Phase 3: Documentation Updates

  1. For identified gaps:

    • Generate documentation following project conventions
    • Apply language-specific formats (roxygen2, docstrings, JSDoc)
    • Use @inheritParams in R to avoid duplication
  2. For R projects: Run devtools::document() to update man/ files

Phase 4: Quality Verification

  1. Verify documentation format compliance and no broken references

Phase 5: Report Results

  1. Summary of files checked, documentation added/updated, and remaining issues

Auto-Exit When Standalone

IMPORTANT: If this command is being run as a standalone request, automatically exit after completing all phases successfully.