Receber por email
← Voltar para o catálogo

doc-sync

Sincroniza README.md, sml/README.md e os comentários doc.go do pacote de nível superior com a API exportada atual. Corrige apenas desvios verificáveis (assinaturas erradas, opções renomeadas, símbolos ausentes/removidos, comportamento obsoleto), sem reescrever a prosa por estilo.

32estrelas
Atualizado há 4 meses

Ver no GitHub ↗ Licença: Apache-2.0

Como adicionar

/plugin marketplace add arloliu/go-secs

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/doc-sync-arloliu/svg)](https://www.skillteca.com.br/skills/doc-sync-arloliu)

Skills relacionadas

Ver todas de Automação →

Alerta por categoria

Receba novas skills de Automação toda segunda

1 email curto, só com as skills novas de Automação. 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

doc-sync

Goal: docs reflect current source. Correct factual drift. Do not restructure or restyle.

Default scope: README.md, sml/README.md, and doc.go of each public package listed in 100-overview.md. Narrow with an argument. docs/secs1/*.md design notes are read-only history — flag only if they misrepresent current behavior.

Procedure

  1. Inventory source. For each package in scope, list exported symbols, functional options, and the package-level comment. Do not derive public-API facts from internal/.
  2. Inventory docs. Extract every code block, signature, option name, shortcut constructor (A, I4, L, …), and SEMI-standard reference in the scoped files.
  3. Diff. For each mismatch, classify:
  4. stale — exists but described differently (wrong signature, option, default, behavior).
  5. missing — source symbol / option / error / behavior not mentioned.
  6. phantom — doc describes something that no longer exists.
  7. Fix. Targeted edits only. Match signatures verbatim (parameter names, types, variadic). Correct option names everywhere. For phantom symbols, delete the section (and add a one-line "renamed to X" where a replacement exists). For missing symbols, add a stub entry per 400-documentation.md.
  8. Don't fix when it requires author intent (ambiguous grammar, design-note decisions, multiple plausible rewordings) — flag as "needs attention."

Rules

  • Read the source file before editing a doc claim.
  • Verify SML snippets parse under the current parser mode (strict / non-strict).
  • Don't touch prose tone, section order, or design notes.
  • Don't fabricate API behavior. If source is ambiguous, quote both the claim and the source.

Report

## doc-sync report

### Applied
- README.md: corrected SendDataMessage signature; added WithValidateDataMessage to the secs1 example.
- hsmsss/doc.go: documented exponential-backoff reconnect; added WithLinktestFailureThreshold.

### Needs attention
- README.md L300: SML round-trip example ambiguous between strict / non-strict — author input needed.

### No changes
- gem/doc.go, logger/doc.go
Compartilhar X LinkedIn