zig-docs
The zig-docs skill retrieves Zig language and standard library documentation through command-line interfaces, fetching source files with embedded documentation comments from GitHub, language reference content via pandoc conversion from ziglang.org, and directory listings through the GitHub API. Use this skill when developers need specific Zig API signatures, standard library function details, module documentation, or language reference information not covered by other resources.
git clone --depth 1 https://github.com/aiskillstore/marketplace /tmp/zig-docs && cp -r /tmp/zig-docs/skills/0xbigboss/zig-docs ~/.claude/skills/zig-docsSKILL.md
# Zig Documentation Fetching ## Instructions - Use raw GitHub sources for std lib documentation (most reliable) - Use pandoc for language reference from ziglang.org (works for prose content) - The std lib HTML docs at ziglang.org are JavaScript-rendered and return empty content; avoid them - Zig source files contain doc comments (`//!` for module docs, `///` for item docs) that serve as authoritative documentation ## Quick Reference ### Fetch Standard Library Source (Recommended) Standard library modules are self-documenting. Fetch source directly: ```bash # Module source with doc comments curl -sL "https://raw.githubusercontent.com/ziglang/zig/master/lib/std/<module>.zig" # Common modules: curl -sL "https://raw.githubusercontent.com/ziglang/zig/master/lib/std/log.zig" curl -sL "https://raw.githubusercontent.com/ziglang/zig/master/lib/std/mem.zig" curl -sL "https://raw.githubusercontent.com/ziglang/zig/master/lib/std/fs.zig" curl -sL "https://raw.githubusercontent.com/ziglang/zig/master/lib/std/heap.zig" curl -sL "https://raw.githubusercontent.com/ziglang/zig/master/lib/std/debug.zig" curl -sL "https://raw.githubusercontent.com/ziglang/zig/master/lib/std/testing.zig" ``` ### Fetch Allocator Interface ```bash curl -sL "https://raw.githubusercontent.com/ziglang/zig/master/lib/std/mem/Allocator.zig" ``` ### Fetch Language Reference (Prose) ```bash # Full language reference (large, ~500KB of text) pandoc -f html -t plain "https://ziglang.org/documentation/master/" # Pipe to head for specific sections pandoc -f html -t plain "https://ziglang.org/documentation/master/" | head -200 ``` ### List Standard Library Contents ```bash # List all std lib modules via GitHub API curl -sL "https://api.github.com/repos/ziglang/zig/contents/lib/std" | jq -r '.[].name' # List subdirectory contents curl -sL "https://api.github.com/repos/ziglang/zig/contents/lib/std/mem" | jq -r '.[].name' ``` ### Fetch zig.guide Content ```bash # Landing page and navigation pandoc -f html -t plain "https://zig.guide/" ``` ## Documentation Sources | Source | URL Pattern | Notes | |--------|-------------|-------| | Std lib source | `raw.githubusercontent.com/ziglang/zig/master/lib/std/<path>` | Most reliable; includes doc comments | | Language reference | `ziglang.org/documentation/master/` | Use pandoc; prose content | | zig.guide | `zig.guide/` | Beginner-friendly; use pandoc | | GitHub API | `api.github.com/repos/ziglang/zig/contents/lib/std` | List directory contents | ## Common Module Paths | Module | Path | |--------|------| | Allocator | `lib/std/mem/Allocator.zig` | | ArrayList | `lib/std/array_list.zig` | | HashMap | `lib/std/hash_map.zig` | | StringHashMap | `lib/std/hash/map.zig` | | File System | `lib/std/fs.zig` | | File | `lib/std/fs/File.zig` | | IO | `lib/std/Io.zig` | | Logging | `lib/std/log.zig` | | Testing | `lib/std/testing.zig` | | Debug | `lib/std/debug.zig` | | Heap | `lib/std/heap.zig` | | Build System | `lib/std/Build.zig` | | JSON | `lib/std/json.zig` | | HTTP | `lib/std/http.zig` | | Thread | `lib/std/Thread.zig` | | Process | `lib/std/process.zig` | ## Version-Specific Documentation Replace `master` with version tag for stable releases: ```bash # 0.14.0 release curl -sL "https://raw.githubusercontent.com/ziglang/zig/0.14.0/lib/std/log.zig" # Language reference for specific version pandoc -f html -t plain "https://ziglang.org/documentation/0.14.0/" ``` ## Searching Documentation ### Search for specific function/type in std lib ```bash # Search for function name across std lib curl -sL "https://raw.githubusercontent.com/ziglang/zig/master/lib/std/<module>.zig" | grep -A5 "pub fn <name>" # Example: find allocator.create curl -sL "https://raw.githubusercontent.com/ziglang/zig/master/lib/std/mem/Allocator.zig" | grep -A10 "pub fn create" ``` ### Extract doc comments ```bash # Module-level docs (//!) curl -sL "https://raw.githubusercontent.com/ziglang/zig/master/lib/std/log.zig" | grep "^//!" # Function/type docs (///) curl -sL "https://raw.githubusercontent.com/ziglang/zig/master/lib/std/mem/Allocator.zig" | grep -B1 "pub fn" | grep "///" ``` ## Troubleshooting **Empty content from ziglang.org/documentation/master/std/:** - The std lib HTML docs are JavaScript-rendered; use raw GitHub instead **pandoc fails:** - Some pages require JavaScript; fall back to curl + raw GitHub - Check URL is correct (no trailing slash issues) **Rate limiting on GitHub API:** - Use raw.githubusercontent.com URLs directly instead of API - Cache frequently accessed content locally ## References - Language Reference: https://ziglang.org/documentation/master/ - Standard Library Source: https://github.com/ziglang/zig/tree/master/lib/std - Zig Guide: https://zig.guide/ - Release Tags: https://github.com/ziglang/zig/tags
Implement SAFe methodology in Jira. Use when creating Epics, Features, Stories with proper hierarchy, acceptance criteria, and parent-child linking.
Orchestrate Jira workflows end-to-end. Use when building stories with approvals, transitioning items through lifecycle states, or syncing task completion with Jira.
HSK4級レベルから流暢さを目指す学習者向け。中国語表現の使用場面・自然さを分析し、作文を「ネイティブらしい流暢な表現」に改善。bilibili等のコンテンツ理解とネイティブとの会話をサポート。実際の用例をWeb検索で提示
Next.js 15 애플리케이션을 위한 프론트엔드 개발 가이드라인. React 19, TypeScript, Shadcn/ui, Tailwind CSS를 사용한 모던 패턴. Server Components, Client Components, App Router, 파일 구조, Shadcn/ui 컴포넌트, 성능 최적화, TypeScript 모범 사례 포함. 컴포넌트, 페이지, 기능 생성, 데이터 페칭, 스타일링, 라우팅, 프론트엔드 코드 작업 시 사용.
Claude Code 스킬, 훅, 에이전트, 명령어를 생성하고 관리하기 위한 메타 스킬. 새 스킬 생성, 스킬 트리거 설정, 훅 설정, Claude Code 인프라 관리 시 사용.
Discover and extract sitemaps from any website using SitemapKit. Use this skill whenever the user wants to find pages on a website, get a list of URLs from a domain, audit a site's structure, crawl a sitemap, check what pages exist on a site, or do anything involving sitemaps or site URL discovery — even if they don't explicitly say "sitemap". Requires the sitemapkit MCP server configured with a valid SITEMAPKIT_API_KEY.
GitHubのプルリクエスト(PR)を作成する際に使用します。変更のコミット、プッシュ、PR作成を含む完全なワークフローを日本語で実行します。「PRを作って」「プルリクエストを作成」「pull requestを作成」などのリクエストで自動的に起動します。
Generate an SVG of a user-requested image or scene