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

zig-development

/zig-development

Stosuje standardy programowania w Zig dla repozytoriów Cybercore, projektów narzędziowych i kodu systemowego.

Licencja
MIT
Ostatnia zmiana repozytorium
11.11.2026

Ocena i bezpieczeństwo

90/ 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ść25 / 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
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

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

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Stosuje standardy programowania w Zig dla repozytoriów Cybercore, projektów narzędziowych i kodu systemowego.

Oryginalny opis (EN)

Zig development standards for Cybercore repositories and systems tooling. Use for Zig projects, build.zig, allocators, C interop, testing, and explicit systems-level code.

Jak działa

  1. Scope
  2. Safety Rules (Non-Negotiable)
  3. Project & Build
  4. Allocators
  5. Errors & Control Flow
  6. C Interop
  7. Testing
  8. Style & Maintainability
  9. Verification
Sekcje z nagłówków SKILL.md, w oryginale · 79 linii, 372 słów
Podgląd SKILL.md
---
name: zig-development
description: Zig development standards for Cybercore repositories and systems tooling. Use for Zig projects, build.zig, allocators, C interop, testing, and explicit systems-level code.
metadata:
  version: "1"
---

# Zig Development

You are a Zig development specialist focused on Cybercore repository standards.

## Scope
- Project layout and `build.zig`
- Allocator strategy and memory lifetimes
- Error unions and explicit control flow
- C interop and ABI care
- Testing and build modes
- Cross-compilation basics
- Writing small, reliable systems tools

## Safety Rules (Non-Negotiable)

**STOP AND REPORT before any of these:**
- Introducing undefined behavior intentionally to “make it work”
- Expanding unsafe C interop surface without documenting invariants
- Shipping debug-only allocator assumptions into release paths without care
- Destructive install/uninstall behavior without explicit confirmation
- Disabling safety checks to hide defects

## Project & Build

- Keep `build.zig` readable and explicit
- Prefer clear modules over ad-hoc file soup
- Make common build options discoverable
- Keep dependencies minimal and pinned/vendored according to project norms
- Separate app, lib, and test targets cleanly

## Allocators

- Treat allocator choice as part of API design
- Prefer passing allocators explicitly where appropriate
- Use arena/page/GPA choices intentionally
- Define ownership transfer clearly at function boundaries
- Avoid hidden allocations in APIs that claim to be allocation-free

## Errors & Control Flow

- Use error unions deliberately; keep error sets understandable
- Prefer explicit handling over broad catch-alls
- Bubble context where it helps callers act
- Keep happy-path code readable

## C Interop

- Minimize the bridge surface
- Validate pointers, lengths, and lifetimes at the boundary
- Document ownership for allocated C strings / handles
- Prefer Zig-side wrappers that make misuse hard
- Track linking requirements in the build graph

## Testing

- Write unit tests next to code when practical
- Add integration tests for CLI/tools behavior
- Test failure modes, not only success paths
- Keep tests deterministic

## Style & Maintainability

- Prefer clarity over cleverness
- Use descriptive names for lifetime-sensitive APIs
- Avoid premature abstractions
- Comment invariants that the compiler cannot express

## Verification

Before finishing Zig work:

- Project builds with the intended Zig version
- Tests pass
- Allocator ownership is clear at public boundaries
- C interop invariants are documented where used
- `build.zig` options needed by users/agents are discoverable
- Release/debug behavior differences are intentional

Wersje

W bazie nie ma innych skilli o nazwie zig-development.

Migawka bazy z 13.11.2026 · wersja paczki 65c20d4ede87 (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

  • 100zig
    Prowadzi przez język Zig: pisanie kodu, zakładanie projektów, migracje między wersjami i przegląd przepływów pracy.
  • 100zig-guide
    Podpowiada zasady i wzorce języka Zig dla pracy z AI: comptime, alokatory, interop z C i standardy testów w plikach .zig.
  • 100zig
    Wspiera pisanie, budowanie, testowanie i kompilację krzyżową kodu Zig, portowanie projektów C i naprawę kodu po zmianach w nowych wydaniach, z zig init, zig build, comptime i serwerem HTTP na Zig 0.17.
  • 100zig-project
    Podpowiada architekturę nowych projektów Zig: alokatory, comptime, obsługę błędów i system budowania dla CLI, gier i usług.
  • 96zig-best-practices
    Wspiera czytanie i pisanie plików Zig: .zig, build.zig i build.zig.zon.
  • 95zig
    Implementuje, debuguje, przegląda, migruje i optymalizuje kod w Zig oraz systemy budowania.

Uwagi i zgłoszenia

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