Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

go

/go

Podaje dobre praktyki pracy z kodem w Go: pisanie, debugowanie i przeglądanie kodu, w tym czytanie źródeł i dokumentacji zależności.

Repozytorium
Agent-Skills ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
10.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
5
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 10.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Podaje dobre praktyki pracy z kodem w Go: pisanie, debugowanie i przeglądanie kodu, w tym czytanie źródeł i dokumentacji zależności.

Oryginalny opis (EN)

Best practices for working with Go codebases. Use when writing, debugging, or exploring Go code, including reading dependency sources and documentation.

Jak działa

  1. Table of Contents
  2. When to use
  3. Required inputs
  4. Deliverables
  5. Style
  6. Error Flow
  7. Examples
  8. Failure mode
  9. Gotchas
  10. See Also
Sekcje z nagłówków SKILL.md, w oryginale · 105 linii, 400 słów
Podgląd SKILL.md
---
name: go
description: Best practices for working with Go codebases. Use when writing, debugging, or exploring Go code, including reading dependency sources and documentation.
metadata:
  skill-type: code_quality_review
  triggers: golang, go programming, go code, go module
---

## Table of Contents

- [When to use](#when-to-use)
- [Required inputs](#required-inputs)
- [Deliverables](#deliverables)
- [Style](#style)
- [Error Flow](#error-flow)
- [Examples](#examples)
- [Failure mode](#failure-mode)
- [Gotchas](#gotchas)

## When to use

- Use for Go code authoring and review tasks.
- Use when package boundaries and error handling need tightening.

## Required inputs

- Package and file scope.
- Expected API behavior.
- Runtime/performance constraints.

## Deliverables

- Idiomatic Go changes.
- Wrapped, actionable errors.
- Minimal API churn outside requested scope.

## Style

- Keep functions small and package-focused.
- Return concrete structs from constructors when interfaces are unnecessary.
- Prefer composition over deep embedding chains.

## Error Flow

- Return wrapped errors with `%w` for traceability.
- Avoid panic in library code.
- Check and handle every returned error.

## Examples

```go
func ParsePort(value string) (int, error) {
	port, err := strconv.Atoi(value)
	if err != nil {
		return 0, fmt.Errorf("parse port %q: %w", value, err)
	}
	return port, nil
}
```

## Failure mode

- If API compatibility risk is high, keep signatures stable and narrow the patch.

## Gotchas

- Silent ignored errors usually become runtime bugs.

## See Also

| Skill | When to use |
|---|---|
| [[rust-pro]] | Systems programming with similar error-propagation and ownership concerns |
| [[he-fix-bugs]] | Triage Go runtime errors with evidence-first diagnosis |

**Topic map:** [[agent-ops]]


## Philosophy

- Optimize for clear, verifiable outcomes with the minimum necessary changes.
- Keep guidance deterministic so repeated runs produce consistent decisions.

## Procedure

1. Confirm scope, constraints, and required inputs before edits.
2. Apply focused changes tied directly to the requested outcome.
3. Re-run the highest-signal validations and capture concrete evidence.

## Validation

- Run the relevant local checks for touched files and workflow contracts.
- Fail fast: stop at the first blocking validation failure and report exact evidence.
- Re-run checks after fixes and record residual risk if any remains.

## Constraints

- Redact secrets, tokens, credentials, and sensitive data by default.
- Do not expand scope beyond the request unless explicitly asked.
- Prefer safe, reversible edits over broad refactors.

## Anti-patterns

- Skipping validation after making changes.
- Applying broad refactors to solve narrow issues.
- Assuming behavior without evidence from current checks.

## References and assets

- Open deep guidance: `Infrastructure/references/deep-guidance.md`
- Read when: the task needs advanced edge cases, migration-safe patterns, or runtime-specific nuance beyond the core checklist.
Pliki w paczce (5)
  • SKILL.md 3 KB
  • references/contract.yaml 1 KB
  • references/deep-guidance.md 1 KB
  • references/evals.yaml 2 KB
  • references/task-profile.json 1 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · jscraik/Agent-Skills100Apache-2.0
ericrisco/rsc-harness100MIT
terrylica/cc-skills100MIT
maragudk/fabrik100MIT
znlgis/opengis-skills100MIT
dilhanz/ship100MIT
chrs-myrs/livespec100MIT
nimadorostkar/Claude-Skills-collection100MIT
appwrite/claude-plugin100BSD-3-Clause

Migawka bazy z 13.11.2026 · wersja paczki 08cdef3d6468 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 96components-best-practices
    Podaje dobre praktyki pracy z komponentami React w CDS, w dowolnym pakiecie projektu.
  • 100python-best-practices
    Podaje dobre praktyki przy czytaniu i pisaniu plików Python, w tym pyproject.toml i requirements.txt.
  • 91typescript-best-practices
    Pomaga przy plikach .ts i .tsx, stosując dobre praktyki TypeScript.
  • 100code-reading
    Prowadzi strategiczne czytanie nieznanej bazy kodu przed zmianą: zrozumienie działania, praca ze starym kodem, złożone debugowanie i code review.
  • 87typescript-best-practices
    Podpowiada dobre praktyki TypeScript przy czytaniu i edycji plików .ts i .tsx.
  • 87typescript-best-practices
    Podpowiada dobre praktyki TypeScript przy czytaniu i edycji plików .ts i .tsx.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.