본문으로 건너뛰기
cccskills
무료GitHub에 공개

update-docs

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md2.7 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

/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

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Review code changes for bugs and alignment with OpenEnv principles and RFCs. Use when reviewing PRs, checking code before commit, or when asked to review changes. Implements two-tier review model.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

huggingface/OpenEnv2.7천2026년 10월 19일 업데이트

deploy-hf

무료

Deploy an OpenEnv environment to Hugging Face Spaces. Use when asked to deploy, push to Hugging Face, or update a space.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

huggingface/OpenEnv2.7천2026년 10월 19일 업데이트

Generate OpenEnv environments from a concrete use case (for example, "generate an env for the library textarena"). Use when asked to design or implement a new environment under envs/ by researching a target library/API, selecting matching OpenEnv examples, asking key implementation questions, and building models/client/server/openenv.yaml. Do not use for model training or evaluation tasks.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

huggingface/OpenEnv2.7천2026년 10월 19일 업데이트

hf-cli

무료

Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing repositories, models, datasets, and Spaces on the Hugging Face Hub. Replaces now deprecated `huggingface-cli` command.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

huggingface/OpenEnv2.7천2026년 10월 19일 업데이트

Diagnose and recover failing or stuck Hugging Face Space deployments for OpenEnv environments. Use when deploying envs from `envs/` to the Hub (`openenv` namespace with version suffixes), when Spaces are in `BUILDING`/`APP_STARTING`/`RUNTIME_ERROR`, or when release collections need to be reconciled after targeted redeploys.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

huggingface/OpenEnv2.7천2026년 10월 19일 업데이트

implement

무료

Make tests pass. Invoke after /write-tests produces failing tests.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

huggingface/OpenEnv2.7천2026년 10월 19일 업데이트

huggingface의 스킬 모두 보기

이 스킬의 문제 신고