update-docs

द्वारा huggingface

Update documentation across the repo after API changes. Finds stale references in docs, examples, docstrings, and fixes them.

npx skills add https://github.com/huggingface/openenv --skill update-docs

/update-docs

Find and fix stale documentation after API changes.

EXECUTE THESE STEPS NOW

When this skill is invoked, you MUST execute these steps immediately.

Step 1: Identify Changed Files

Run:

git diff --name-only main...HEAD -- '*.py'

If no changes are found relative to main (e.g., on main or no upstream), fall back to:

git diff --name-only HEAD~1 -- '*.py'

If that also fails, ask the user which files changed.

Collect the list of changed Python files.

Step 2: Extract API Changes

For each changed .py file, compare old vs new signatures using the same ref that worked in Step 1:

# If Step 1 used main...HEAD:
git diff main...HEAD -- <file>

# If Step 1 fell back to HEAD~1:
git diff HEAD~1 -- <file>

Look for changes to:

  • Function/method signatures (def lines)
  • Class names and init signatures
  • Module-level constants and type aliases
  • Removed or renamed public symbols

Build a list of (old_signature, new_signature) pairs.

If no API changes are found (only internal logic changes), report "No API changes detected — no docs update needed" and stop.

Step 3: Spawn Docs Updater Agent

Use the Task tool to spawn the docs-updater agent. IMPORTANT: the description field MUST contain "docs-updater" so the SubagentStop hook fires correctly.

Task tool:
  subagent_type: general-purpose
  description: "docs-updater propagation"
  prompt: |
    You are a docs-updater agent. Read .claude/agents/docs-updater.md
    for your full instructions.

    Here are the API changes to propagate:

    Changed files: <list>
    API changes:
    - `old` → `new`
    ...

    Search the entire repo for references to the old APIs and update
    them to match the new signatures. Follow the process in
    .claude/agents/docs-updater.md exactly.

Step 4: Review Results

After the agent returns:

  • Review the update report
  • Verify no test files were touched
  • Verify changes are minimal and correct

Report the summary to the user.


When to Use

  • After /implement when API signatures changed
  • Before /pre-submit-pr to ensure docs are fresh
  • When refactoring public APIs

When NOT to Use

  • Internal-only changes (no public API affected)
  • Test-only changes
  • Documentation-only changes (no code changed)

Workflow Integration

/write-tests    →  Red (failing tests)
/implement      →  Green (passing tests)
/update-docs    →  Fix stale docs across repo  ← THIS SKILL
/simplify       →  Refactor (optional)
/pre-submit-pr  →  Validate before PR

huggingface की और Skills

cpu-kernels
huggingface
C++ CPU कर्नेल लिखने, अनुकूलित करने और बेंचमार्क करने के लिए मार्गदर्शन प्रदान करता है, जिसमें Hugging Face कर्नेल इकोसिस्टम के लिए SIMD इंट्रिन्सिक्स (AVX2/AVX512) शामिल हैं। इसमें…
official
generate-openenv-env
huggingface
एक ठोस उपयोग मामले से OpenEnv वातावरण उत्पन्न करें (उदाहरण के लिए, "लाइब्रेरी textarena के लिए एक env उत्पन्न करें")। जब किसी नए को डिज़ाइन या कार्यान्वित करने के लिए कहा जाए तो इसका उपयोग करें…
official
hf-mcp
huggingface
Hugging Face Hub का उपयोग MCP सर्वर टूल्स के माध्यम से करें। मॉडल, डेटासेट, Spaces, पेपर्स खोजें। रिपॉजिटरी विवरण प्राप्त करें, दस्तावेज़ीकरण लाएं, कंप्यूट जॉब चलाएं, और Gradio का उपयोग करें…
official
trl-training
huggingface
ट्रांसफॉर्मर भाषा मॉडल को TRL (ट्रांसफॉर्मर्स रीइन्फोर्समेंट लर्निंग) का उपयोग करके प्रशिक्षित और फाइन-ट्यून करें। SFT, DPO, GRPO, KTO, RLOO और रिवॉर्ड मॉडल प्रशिक्षण का समर्थन करता है…
official
deploy-hf
huggingface
OpenEnv वातावरण को Hugging Face Spaces पर तैनात करें। जब तैनात करने, Hugging Face पर पुश करने, या स्पेस अपडेट करने के लिए कहा जाए तो इसका उपयोग करें।
official
hf-space-recovery
huggingface
Diagnose and recover failing or stuck Hugging Face Space deployments for OpenEnv environments. Use when deploying envs from `envs/` to the Hub (`openenv`…
official
pre-submit-pr
huggingface
पुल रिक्वेस्ट सबमिट करने से पहले बदलावों को मान्य करें। लिंट, टेस्ट, संरेखण समीक्षा और आरएफसी विश्लेषण सहित व्यापक जांच चलाएं। इसका उपयोग बनाने से पहले करें...
official
example-skill
huggingface
एक्शन स्मोक टेस्ट के लिए उदाहरण फिक्स्चर स्किल
official