Receber por email
← Voltar para o catálogo

update-docs

Research current code state then update corresponding docs, ensuring docs stay in sync with code.

172estrelas
Atualizado há 5 meses

Ver no GitHub ↗ Licença: MIT

Como adicionar

/plugin marketplace add sd0xdev/sd0x-dev-flow

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/update-docs-sd0xdev/svg)](https://www.skillteca.com.br/skills/update-docs-sd0xdev)
#ai

Skills relacionadas

Ver todas de Pesquisa e Web →

Alerta por categoria

Receba novas skills de Pesquisa e Web toda segunda

1 email curto, só com as skills novas de Pesquisa e Web. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

Update Docs

Trigger

  • Keywords: update docs, sync docs, docs out of date, update-docs

When NOT to Use

  • Document review (use /codex-review-doc)
  • Creating new docs (use /tech-spec or /create-request)
  • Document refactoring (use /doc-refactor)

Auto-Trigger

Auto-triggered after precommit Pass, only when the change maps to a feature under docs/features/ (see @rules/auto-loop.md Doc Sync Note). Can also be invoked manually.

Task

Step 1: Locate Docs and Related Code (5-Level Cascade)

Key principle: can't find target → ## Gate: ⚠️ Need Human — don't guess or create new docs.

Use the shared feature context resolution algorithm (see @skills/tech-spec/references/feature-context-resolution.md):

| Confidence | Action | |------------|--------| | high/medium | Proceed with detected feature | | low | Proceed with warning | | null (not found) | Output ## Gate: ⚠️ Need Human — do not guess |

Step 2: Research Current Code State

Key research items:

  • Any new scripts / skills / commands added?
  • Any modified logic in existing files?
  • Any new configuration or rules added?
  • Any API or interface changes?

Step 3: Compare Docs vs Code Differences

| Item | Doc Description | Current Code | Status | |------|----------------|-------------|--------|

Step 4: Update Docs

Update document content based on differences:

  1. Architecture diagrams (Mermaid sequenceDiagram / flowchart)
  2. Core service table
  3. API description
  4. Data model

Step 5: Verification

After update:

  1. Re-read updated document sections
  2. Verify all new modules are documented
  3. Verify all removed modules are cleaned up

Safety Valve

After doc sync, compare code diff against pre-sync baseline. If new code changes exist (e.g., lint:fix modified code), return to review loop.

Output

## Doc Update Report

| Document | Sections Updated | Status |
|----------|-----------------|--------|

## Changes Made
- <summary of each update>

## Verification
- [ ] New modules documented
- [ ] Removed modules cleaned
- [ ] Diagrams updated
Compartilhar X LinkedIn