update-docs
O que ela faz
Esta skill compara seu branch com a main, descobre quais páginas de documentação se relacionam com o código alterado e as atualiza. É para equipes que mantêm a documentação alinhada com o software.
Quando usar
- ✓Quando você mudou o código-fonte e as páginas de documentação correspondentes agora parecem desatualizadas.
- ✓Quando você quer uma atualização pontual da documentação, em vez de uma reescrita completa.
- ✓Quando você quer uma segunda revisão das mudanças na documentação antes de publicá-las.
Link da skill
https://github.com/pipecat-ai/pipecat/blob/main/.claude/skills/update-docs/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Por favor, atualize as páginas da nossa documentação para combinar com as mudanças de código que fiz neste branch.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente lê as diferenças entre seu branch e a main, associa cada arquivo alterado à página de documentação que ele afeta e edita somente essas páginas. Ele segue as regras do próprio projeto sobre o que deve ser documentado.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Update documentation pages to reflect source code changes on the current branch. Analyzes the diff against main, maps changed source files to their corresponding doc pages, and makes targeted edits.
This skill is repo-agnostic and shared. It is published by the
pipecat-dev-skills marketplace and used by every repository whose changes feed
pipecat-ai/docs, so it must stay free of anything specific to one of them.
Everything repo-specific — what is in scope, how files map to pages, what a new
page looks like, where it gets registered — comes from that repo's profile,
.claude/skills/update-docs/SOURCE_DOC_MAPPING.md, which lives in the repo
being documented. The skill never hardcodes a source path, a page template, or a
navigation group. See PROFILE_CONTRACT.md for what a profile must provide.
How pages read — what to document, what to leave out, page templates, prose —
comes from the docs repo's style guide, DOCS_PATH/STYLE.md. This skill covers
the process: finding what changed, deciding what the docs need, and checking
the result.
REVIEW.md is a second pass over a finished update, run in a fresh session
that did not write it. The automation runs it after this skill; run it by hand
the same way after a local update.
Arguments
/update-docs [DOCS_PATH]
DOCS_PATH(optional): Path to the docs repository root. If not provided, ask the user.
Examples:
/update-docs /Users/me/src/docs/update-docs
Instructions
Step 1: Resolve docs path, profile, and style guide
If DOCS_PATH was provided as an argument, use it. Otherwise, ask the user for the path to their docs repository.
Verify the path exists and contains docs.json.
Read the profile at .claude/skills/update-docs/SOURCE_DOC_MAPPING.md in the
source repository. It defines this repo's scope, mapping tables, page
template, and registration steps. If it is missing, stop and say so — without it
there is no way to resolve a file to a page, and guessing produces edits to
pages that don't exist.
Read DOCS_PATH/STYLE.md in full. Every edit follows it. Where it and this
skill disagree about how a page reads, the style guide wins. If it is missing,
follow the Guidelines at the end of this skill.
Step 2: Create docs branch
Get the current source branch name:
git rev-parse --abbrev-ref HEAD
In the docs repo, create a new branch off main with a matching name:
cd DOCS_PATH && git checkout main && git pull && git checkout -b {branch-name}-docs
For example, if the source branch is feat/new-service, the docs branch becomes feat/new-service-docs.
All doc edits in subsequent steps are made on this branch.
Step 3: Detect changed source files
Run:
git diff main..HEAD --name-only
Every source file under the roots the profile's Scope section names is in scope. Repos ship public API well beyond their most obvious entry points, so scope is defined as exclusions rather than an allowlist: a new directory is covered the day it appears rather than when someone remembers to list it.
Exclude what the profile's Scope section excludes, plus build and cache
artifacts (__pycache__/, *.pyc, node_modules/, dist/) and re-export-only
index files that define nothing themselves.
Changes outside those roots — examples, CI config, the docs directory — don't trigger doc updates on their own.
Then apply the profile's Skip list (Step 4), which names the small set of genuinely internal files. Don't invent further reasons to drop a file here: being a base class, a shared module, or "core architecture" is not one. Public constructor parameters and observable behavior get documented wherever they live, and a file whose page isn't obvious should reach Step 8 as a reported gap rather than disappear.
Step 4: Map source files to doc pages
For each changed source file, resolve the doc page to edit using the profile's
tables, in this order. Confirm every candidate path exists in DOCS_PATH
before using it.
- Skip list — if the file matches the skip list, stop. It triggers no doc update.
- Base classes — if the file is in the base-classes table, use every page it lists. A change here affects everything that inherits it, so check each page rather than stopping at the first.
- Non-standard locations — if the file is in the non-standard table, use that entry as the candidate path and confirm it exists.
- Pattern match — apply the pattern table to get a candid
Perguntas frequentes
Quais documentos ele atualiza?
Somente as páginas ligadas ao código que você mudou no seu branch. Ele não reescreve páginas sem relação.
Precisa de alguma configuração especial?
Sim. O projeto deve fornecer o próprio arquivo de mapeamento, e o caminho do repositório de documentação precisa ser informado.
Posso conferir o trabalho dele?
Sim. A skill inclui uma etapa de revisão que pode ser executada em uma sessão nova para checar a atualização final.
Detalhes
Descrição original do autor
Update documentation pages to match source code changes on the current branch
repo: pipecat-ai/pipecat
Popularidade
- Estrelas no GitHub
- 17 mil
- Posição no ranking
- #10794
- Licença
- BSD-2-Clause
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
Skills parecidas
technical-documentation
394 milAjuda seu agente a escrever e revisar documentação técnica clara e arquivos de instruções, para que pessoas e ferramentas de IA sigam tudo com facilidade.
architecture-decision-records
280 milFaz seu agente registrar decisões importantes sobre a estrutura do projeto. Ajuda a entender o porquê das escolhas feitas e a manter um histórico claro das mudanças.
code-tour
280 milFaz seu agente criar guias passo a passo no código, com arquivos e linhas exatos. Útil para apresentar projetos, explicar código ou revisar mudanças.