Toolverse
All skills

sexp

by atopile

How the Zig S-expression engine and typed KiCad models work, how they are exposed to Python (pyzig_sexp), and the invariants around parsing, formatting, and freeing.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
atopile
Category
Mobile
Views
30

About this skill

How the Zig S-expression engine and typed KiCad models work, how they are exposed to Python (pyzig_sexp), and the invariants around parsing, formatting, and freeing.

How to use

  1. Zainstaluj moduł pyzig_sexp jako część pakietu faebryk zawierającego rozszerzenie Pythona. Moduł jest dostępny w src/faebryk/core/zig/gen/sexp/ jako wygenerowane stub-y typów.

  2. Zaimportuj wygodny wrapper z biblioteki faebryk: from faebryk.libs.kicad.fileformats import kicad. Ten moduł obsługuje cache'owanie i udostępnia interfejs loads oraz dumps.

  3. Wczytaj plik KiCad za pomocą kicad.loads(), przekazując typ pliku (np. kicad.pcb.PcbFile) i ścieżkę do pliku: pcb = kicad.loads(kicad.pcb.PcbFile, Path("board.kicad_pcb")).

  4. Pracuj z wczytanym obiektem — możesz go modyfikować, analizować lub przetwarzać za pomocą typizowanych modeli KiCad dostępnych w module.

  5. Zapisz zmiany z powrotem do formatu S-expression za pomocą kicad.dumps(pcb), która zwraca sformatowany tekst zgodny ze standardem KiCad.

  6. W przypadku zaawansowanego użytku (parsowanie niestandardowych struktur, obsługa błędów tokenizacji) odwołaj się do dokumentacji w src/faebryk/core/zig/README.md oraz kodu źródłowego tokenizera i parsera AST w katalogu src/faebryk/core/zig/src/sexp/.

Related skills

build-macos-apps

by glittercowboy

Build professional native macOS apps in Swift with SwiftUI and AppKit. Full lifecycle - build, debug, test, optimize, ship. CLI-only, no Xcode.

Mobile
31136

slidev

by XIYO

Comprehensive guide for Slidev - a web-based presentation framework for developers. Covers Markdown syntax, layouts, components, animations, theming, and exporting. Use this skill when creating or working with developer presentations using Slidev.

Mobile
223353

ios-simulator-skill

by conorluddy

21 production-ready scripts for iOS app testing, building, and automation. Provides semantic UI navigation, build automation, accessibility testing, and simulator lifecycle management. Optimized for AI agents with minimal token output.

Mobile
19154

mobile-design

by sickn33

Mobile-first design and engineering doctrine for iOS and Android apps. Covers touch interaction, performance, platform conventions, offline behavior, and mobile-specific decision-making. Teaches principles and constraints, not fixed layouts. Use for React Native, Flutter, or

Mobile
6091

android-kotlin-development

by aj-geddes

Develop native Android apps with Kotlin. Covers MVVM with Jetpack, Compose for modern UI, Retrofit for API calls, Room for local storage, and navigation architecture.

Mobile
152396

csharp-developer

by zenobi-us

Expert C# developer specializing in modern .NET development, ASP.NET Core, and cloud-native applications. Masters C# 12 features, Blazor, and cross-platform development with emphasis on performance and clean architecture.

Mobile
37126