Go Api Review
Reviews the exported Godoc and README of a top-level go-secs package for library-consumer DX (discoverability, clarity, ease of use). Source of truth is exported API only — do not read `internal/`.
Install
Quick install
npx skills add https://github.com/arloliu/go-secsnpx skills add arloliu/go-secs --agent claude-codenpx skills add arloliu/go-secs --agent cursornpx skills add arloliu/go-secs --agent codexnpx skills add arloliu/go-secs --agent opencodenpx skills add arloliu/go-secs --agent github-copilotnpx skills add arloliu/go-secs --agent windsurfMore install options
Shorthand — useful for multi-skill repos:
npx skills add arloliu/go-secsManual — clone the repo and drop the folder into your agent's skills directory:
git clone https://github.com/arloliu/go-secs.gitcp -r go-secs ~/.claude/skills/Go Api Review
Reviews the exported Godoc and README of a top-level go-secs package for library-consumer DX (discoverability, clarity, ease of use). Source of truth is exported API only — do not read internal/.
---
name: go-api-review
description: Reviews the exported Godoc and README of a top-level go-secs package for library-consumer DX (discoverability, clarity, ease of use). Source of truth is exported API only — do not read internal/.
---
go-api-review
Default scope: the top-level public packages listed in 100-overview.md. Narrow with an argument (e.g., hsmsss, secs1, sml). Read only that package's .go files (not _test.go), its doc.go, README.md, and sml/README.md if applicable.
Checklist
Interfaces & types
- Exported interfaces are small, behavior-named (
Connection,Session,HSMSMessage,SECS2Message,Item). - "Accept interfaces, return structs" where applicable.
hsmsssandsecs1are visibly substitutable behindhsms.Connection/hsms.Session.- No
internal/types in exported signatures.
Methods & options
- Single responsibility per exported function / method.
- Value vs. pointer receivers consistent with mutation / size.
- Functional options (
WithActive,WithPassive,WithHostRole,WithEquipRole,WithT3Timeout,WithDeviceID,WithASCIIStrictMode, etc.) discoverable from Godoc; groups and mutually-exclusive pairs documented. - Connection lifecycle explicit (
NewConnection→Open→ session send/handler dispatch →Close). - Item lifecycle explicit (construct →
ToBytes/ToSML→Free). - When to use
New*Itemvs. shortcut constructors is obvious.
Errors & context
context.Contextthreaded idiomatically.errors.Is/errors.Asusable for sentinel and typed errors.- Decode / parse errors distinct from transport / I/O errors.
- Timeout errors (T1–T8) distinguishable from generic I/O errors.
Docs & examples
doc.gostates purpose, relevant SEMI standard, and relation to other packages.- Every exported symbol has Godoc.
- README shows the common wiring (active and passive, HSMS-SS and SECS-I) and compiles.
- A new user can ship a round-trip S1F1 using only the docs.
Misuse & concurrency
- Documented consequences of misuse:
Send*beforeOpen, use afterClose, reference held pastFree, double-free onDataMessage, global-mode switch mid-flight. - Thread-safety guarantees stated for
Connection,Session,ConnStateMgr,DataMessage. Closeis idempotent and safe during in-flight traffic.- State transitions (NOT-CONNECTED → CONNECTED → NOT-SELECTED → SELECTED) documented with the subscribe mechanism.
- Active-mode reconnect / backoff behavior documented (trigger, interaction with
Close).
Output
Report findings as a bullet list, grouped by package. For each: what's missing / wrong, and (optionally) a one-line suggested Godoc edit. Do not propose broad rewrites.
---
Source: https://github.com/arloliu/go-secs
Author: arloliu
Discovered via: skillsdirectory.com
Genre: documentation
SKILL.md source
--- name: Go Api Review description: Reviews the exported Godoc and README of a top-level go-secs package for library-consumer DX (discoverability, clarity, ease of use). Source of truth is exported API only — do not read `internal/`. --- # Go Api Review Reviews the exported Godoc and README of a top-level go-secs package for library-consumer DX (discoverability, clarity, ease of use). Source of truth is exported API only — do not read `internal/`. --- name: go-api-review description: Reviews the exported Godoc and README of a top-level go-secs package for library-consumer DX (discoverability, clarity, ease of use). Source of truth is exported API only — do not read `internal/`. --- # go-api-review Default scope: the top-level public packages listed in `100-overview.md`. Narrow with an argument (e.g., `hsmsss`, `secs1`, `sml`). Read only that package's `.go` files (not `_test.go`), its `doc.go`, `README.md`, and `sml/README.md` if applicable. ## Checklist **Interfaces & types** - Exported interfaces are small, behavior-named (`Connection`, `Session`, `HSMSMessage`, `SECS2Message`, `Item`). - "Accept interfaces, return structs" where applicable. - `hsmsss` and `secs1` are visibly substitutable behind `hsms.Connection` / `hsms.Session`. - No `internal/` types in exported signatures. **Methods & options** - Single responsibility per exported function / method. - Value vs. pointer receivers consistent with mutation / size. - Functional options (`WithActive`, `WithPassive`, `WithHostRole`, `WithEquipRole`, `WithT3Timeout`, `WithDeviceID`, `WithASCIIStrictMode`, etc.) discoverable from Godoc; groups and mutually-exclusive pairs documented. - Connection lifecycle explicit (`NewConnection` → `Open` → session send/handler dispatch → `Close`). - Item lifecycle explicit (construct → `ToBytes` / `ToSML` → `Free`). - When to use `New*Item` vs. shortcut constructors is obvious. **Errors & context** - `context.Context` threaded idiomatically. - `errors.Is` / `errors.As` usable for sentinel and typed errors. - Decode / parse errors distinct from transport / I/O errors. - Timeout errors (T1–T8) distinguishable from generic I/O errors. **Docs & examples** - `doc.go` states purpose, relevant SEMI standard, and relation to other packages. - Every exported symbol has Godoc. - README shows the common wiring (active and passive, HSMS-SS and SECS-I) and compiles. - A new user can ship a round-trip S1F1 using only the docs. **Misuse & concurrency** - Documented consequences of misuse: `Send*` before `Open`, use after `Close`, reference held past `Free`, double-free on `DataMessage`, global-mode switch mid-flight. - Thread-safety guarantees stated for `Connection`, `Session`, `ConnStateMgr`, `DataMessage`. - `Close` is idempotent and safe during in-flight traffic. - State transitions (NOT-CONNECTED → CONNECTED → NOT-SELECTED → SELECTED) documented with the subscribe mechanism. - Active-mode reconnect / backoff behavior documented (trigger, interaction with `Close`). ## Output Report findings as a bullet list, grouped by package. For each: what's missing / wrong, and (optionally) a one-line suggested Godoc edit. Do not propose broad rewrites. --- **Source**: https://github.com/arloliu/go-secs **Author**: arloliu **Discovered via**: skillsdirectory.com **Genre**: documentation
Related skills 6
env-and-assets-bootstrap
RigorPilot setup skill for README-first deep learning repo reproduction. Use when the task is specifically to prepare a conservative conda-first environment, checkpoint and dataset path assumptions, cache location hints, and setup notes before any run on a README-documented repository. Do not use for repo scanning, full orchestration, paper interpretation, final run reporting, or generic environment setup that is not tied to a specific reproduction target.
firecrawl
Search, scrape, and interact with the web via the Firecrawl CLI. Use this skill whenever the user wants to search the web, find articles, research a topic, look something up online, scrape a webpage, grab content from a URL, get data from a website, crawl documentation, download a site, or interact with pages that need clicks or logins. Also use when they say "fetch this page", "pull the content from", "get the page at https://", or reference external websites. This provides real-time web sea...
OpenAI / spreadsheet
Create, edit, analyze, and visualize spreadsheets with formulas
Anthropic / pdf
Extract text, create PDFs, and handle forms
OpenAI / doc
Read, create, and edit .docx documents with formatting and layout fidelity
VoltAgent / voltagent-docs-bundle
Lookup embedded docs from @voltagent/core for version-matched documentation