‹ 首页

lang-zig

@dragoscirjan · 收录于 1 周前 · 上游提交 1 个月前

Zig development standards and tooling.

适合你,如果正在用 Zig 开发并需要标准化工具链

/ 通过 npx 安装 校验哈希
npx oh-my-skill add dragoscirjan/opencode-config/lang-zig
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- dragoscirjan/opencode-config/lang-zig
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify dragoscirjan/opencode-config/lang-zig
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
0GitHub stars
~115上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 f561928 · 表述以原文为准
它做什么

Claude 会按照 Zig 官方风格指南编写代码,使用 zig fmt 格式化,zig test 测试,并采用显式分配器、defer/errdefer 资源清理、错误联合类型和 comptime 元编程。

什么时候触发

当你要求编写或分析 Zig 代码时触发。

装好后可以这样说
Claude 会生成符合 Zig 标准的代码。
Claude 会指出风格问题并建议修正。
技能原文 SKILL.md作者撰写 · MIT · f561928

ZIG Standards

  • Style: Zig Style Guide.
  • Tooling: zig fmt, zig test.
  • Memory: Explicit allocators passed as the first parameter. GeneralPurposeAllocator in debug.
  • Safety: Use defer and errdefer for resource cleanup.
  • Errors: Utilize Error Unions (!T).
  • Meta: Use comptime for compile-time execution and generic programming.

Always load clean-code alongside this skill.

按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。