WC

whit3rabbit/claude-zig-skill

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

23 stars 质量 53 趋势 10MIT

Claude Code 的 Zig 技能

概览

Claude Code 的两项全面 Zig 编程技能: Zig-async 技能适用于 Zig 0.16+ 夜间构建,重新引入异步输入输出。它与稳定版 Zig 0.15.2 不兼容。 从仓库根目录下载并提取: 异步技能(仅限每晚Zig 0.16+——不适用于稳定版0.15.2) 对于团队分布,请在 .claude/settings.json 中添加: 这是所有 Zig 编程需求的主要技能。 - 基础(19)- 哲学、基础、入门 - 数据结构(20)- 数组、哈希映射、集合、排序 - 字符串与文本(14)- 解析、操作、Unicode - 内存与分配器(6)- 竞技场、GPA、自定义分配器 - 计算时间(24)- 元编程、通用、类型反射 - 网络(18)- HTTP、套接字、REST API - 并发(8)- 线程、原子学、同步 - 以及另外8个主题...... - 该技能仅适用于Zig 0.16+的夜间构建。如果你使用稳定版Zig 0.15.2或更早版本,请勿安装。异步I/O模型在0。

概述(AI 翻译)

Claude Code 的两项全面 Zig 编程技能:

技能 描述 尺寸 Zig版本
zig编程 完整的Zig专业知识,包含223个配方、多版本文档、模板 ~1.8MB 0.11 - 0.15.2(稳定版)
之字形异步 带io_uring积分的异步I/O模式 ~24KB 0.16+(仅限夜间)

大多数用户只应该安装zig-programming。[T1]]技能适用于Zig 0.16+夜间构建,重新引入异步I/O。它与稳定版Zig 0.15.2不兼容。

快速安装

选项1:压缩文件(最简单)

从仓库根目录下载并提取:

异步技能(仅限每晚Zig 0.16+——不适用于稳定版0.15.2)

安装后重启 Claude Code。

选项2:插件安装(Claude代码)

关于团队分布,加入.claude/settings.json:

验证安装


之字编程技能

这是所有 Zig 编程需求的主要技能。

包含内容

组件 计数 描述
食谱 223 来自BBQ Cookbook的测试代码食谱
参考文档 13个版本 Zig 0.2.0至母带

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Zig Skills for Claude Code

Two comprehensive Zig programming skills for Claude Code:

Skill Description Size Zig Version
zig-programming Complete Zig expertise with 223 recipes, multi-version docs, templates ~1.8MB 0.11 - 0.15.2 (stable)
zig-async Async I/O patterns with io_uring integration ~24KB 0.16+ (nightly only)

Most users should only install zig-programming. The zig-async skill is for Zig 0.16+ nightly builds which reintroduce async I/O. It is not compatible with stable Zig 0.15.2.

Quick Installation

Option 1: Zip File (Easiest)

Download from repository root and extract:

# Main Zig skill (recommended for all users)
curl -LO https://github.com/whit3rabbit/claude-zig-skill/raw/main/zig-programming.zip
unzip zig-programming.zip -d ~/.claude/skills/zig-programming/

Restart Claude Code after installation.

Option 2: Plugin Installation (Claude Code)

# Add this repo as a marketplace
/plugin marketplace add whit3rabbit/claude-zig-skill

# Install main skill (recommended for all users)
/plugin install zig-programming@whit3rabbit-claude-zig-skill

# Optional: Install async skill (only for Zig 0.16+ nightly)
# /plugin install zig-async@whit3rabbit-claude-zig-skill

For team distribution, add to .claude/settings.json:

{
  "permissions": {
    "additionalPluginMarketplaces": ["whit3rabbit/claude-zig-skill"]
  }
}

Verify Installation

ls ~/.claude/skills/zig-programming/SKILL.md

zig-programming Skill

The main skill for all Zig programming needs.

What’s Included

Component Count Description
Recipes 223 Tested code recipes from BBQ Cookbook
Reference Docs 13 versions Zig 0.2.0 through master
Templates 6 CLI app, library, build.zig, tests, C interop
Examples 6 Complete working programs

Recipe Topics

  • Fundamentals (19) - Philosophy, basics, getting started
  • Data Structures (20) - Arrays, hashmaps, sets, sorting
  • Strings & Text (14) - Parsing, manipulation, Unicode
  • Memory & Allocators (6) - Arena, GPA, custom allocators
  • Comptime (24) - Metaprogramming, generics, type reflection
  • Networking (18) - HTTP, sockets, REST APIs
  • Concurrency (8) - Threading, atomics, synchronization
  • And 8 more topics…

Supported Zig Versions

Version Status
0.15.2 Current stable (default)
0.14.1, 0.13.0, 0.12.1, 0.11.0 Fully supported
0.10.1, 0.9.1, 0.8.1, 0.7.1 Legacy support
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add whit3rabbit/claude-zig-skill
新手?先看 mcpskill.org 教程 →