본문으로 건너뛰기

supabase/supabase-go

A Go client SDK for Supabase. Incubating.

https://skillcdn.ai/gh/supabase/supabase-go

내 AI에 이 주소를 연결하면 이 스킬을 쓸 수 있어요. 연결 방법 보기

  • 미확인
  • 기본 브랜치main
  • 커밋31441cd
  • 라이선스MIT
  • 검색단어와 의미
GitHub에서 보기

writing-examples

Guides the creation, update, merging and deletion of examples - the runnable Example functions that render on pkg.go.dev, the code snippets inside doc comments and the example programs under examples/. Use when adding an example, reworking one or deciding whether an existing example is replaced, upgraded, folded into a sibling or removed outright. Covers the removal test and when an example earns its place.

경로
.agents/skills/writing-examples/SKILL.md
라이선스
MIT

The following documents will be helpful:

DocumentFor
standard.mdThe coverage requirement: runnable Example functions accompany doc comments where apt, compiled and verified by go test. Frozen: consult it, never edit it (see DEVELOPMENT.md).
DEVELOPMENT.mdThe Commentary section's exception letting a runnable example frame a convention that signatures cannot show.
decisions.mdThe records "Placeholder credentials in rendered examples name the real key type" and "Example programs are non-published modules run by the integration tier".

The doc comment on an example is a comment like any other, owned by the writing-commentary skill.

The Removal Test

An example is removed, as the codebase evolves and other examples come in, when it does one of these:

  • Scaffolding: It shows only that construction succeeds, which every other example in its package does as its first line.
  • Test-shaped: It asserts behavior that the doc comment already states and a unit test already covers, and nothing in it shows a caller what to do.
  • Superseded: A later, more mature example shows the same thing better.
  • Near-duplicate: Its code matches a neighbor's except for one call.

An example stays when it shows a distinct decision, a convention that signatures cannot show or the basic read on one of the two entry routes.

Replacing and Upgrading

  • Fold a near-duplicate into the sibling a reader reaches first, which keeps that sibling's name.
  • When a removal leaves one suffixed example standing alone, the suffix distinguishes nothing and the survivor takes the plain name.
  • go vet requires an example's name to map to a declared identifier, and an example's explanation sits in its doc comment rather than its body, because pkg.go.dev renders the doc comment as prose above the code.

이 스킬의 파일

이 스킬에는 보조 파일이 없습니다.

지원 파일 전체 둘러보기