NEW Browse AI tools across categories — updated daily. See what's new →

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/`.

Authorarloliu
Version1.0.0
LicenseMIT
Token count~772
UpdatedJun 5, 2026

Install

Quick install

via npx skills · works with 57+ agents
npx skills add https://github.com/arloliu/go-secs
Or pick agent:
npx skills add arloliu/go-secs --agent claude-code
npx skills add arloliu/go-secs --agent cursor
npx skills add arloliu/go-secs --agent codex
npx skills add arloliu/go-secs --agent opencode
npx skills add arloliu/go-secs --agent github-copilot
npx skills add arloliu/go-secs --agent windsurf
More install options

Shorthand — useful for multi-skill repos:

npx skills add arloliu/go-secs

Manual — clone the repo and drop the folder into your agent's skills directory:

git clone https://github.com/arloliu/go-secs.git
cp -r go-secs ~/.claude/skills/
How to use: Once installed, ask your agent to "use the Go Api Review skill" or describe what you want (e.g. "Reviews the exported Godoc and README of a top-level go-secs package for library"). Requires Node.js 18+.

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 (NewConnectionOpen → session send/handler dispatch → Close).

  • Item lifecycle explicit (construct → ToBytes / ToSMLFree).

  • 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

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

★ Featured

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.

lllllllama 127k
Document Processing

firecrawl

★ Featured

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...

firecrawl 59k
Document Processing

OpenAI / spreadsheet

★ Featured Official

Create, edit, analyze, and visualize spreadsheets with formulas

OpenAI 31
AI & ML

Anthropic / pdf

★ Featured Official

Extract text, create PDFs, and handle forms

Anthropic 30
Document Processing

OpenAI / doc

★ Featured Official

Read, create, and edit .docx documents with formatting and layout fidelity

OpenAI 22
AI & ML

VoltAgent / voltagent-docs-bundle

★ Featured Official

Lookup embedded docs from @voltagent/core for version-matched documentation

VoltAgent 21
Development