From 42904c1e527cfddb2b19e8bec103fdf28fd49e66 Mon Sep 17 00:00:00 2001 From: Nasr Date: Thu, 12 Feb 2026 11:31:05 -0600 Subject: [PATCH] chore(skills): add repository development skill --- .claude/skills/dojo-c-development/SKILL.md | 33 +++++++++++++++++++ .../dojo-c-development/agents/openai.yaml | 4 +++ 2 files changed, 37 insertions(+) create mode 100644 .claude/skills/dojo-c-development/SKILL.md create mode 100644 .claude/skills/dojo-c-development/agents/openai.yaml diff --git a/.claude/skills/dojo-c-development/SKILL.md b/.claude/skills/dojo-c-development/SKILL.md new file mode 100644 index 0000000..062a37a --- /dev/null +++ b/.claude/skills/dojo-c-development/SKILL.md @@ -0,0 +1,33 @@ +--- +name: dojo-c-development +description: Contributor workflow for dojoengine/dojo.c. Use when implementing or reviewing changes to C bindings, UniFFI outputs, and multi-language binding build scripts in this repository. +--- + +# Dojo C Development + +Use this skill to update `dojoengine/dojo.c` bindings and validate generated outputs consistently. + +## Core Workflow + +1. Confirm which target bindings are affected (C, C#, Go, Swift, Kotlin, C++, WASM). +2. Build the core library first: + - `cargo build --release` +3. Run binding generation scripts relevant to the change: + - `./scripts/build_c.sh` + - `./scripts/build_csharp.sh` + - `./scripts/build_go.sh` + - `./scripts/build_swift.sh` + - `./scripts/build_kotlin.sh` + - `./scripts/build_cpp.sh` + - `./scripts/build_wasm.sh` +4. For broad changes, use aggregate script: + - `./scripts/build_all_bindings.sh` +5. Run quality checks: + - `./scripts/rust_fmt.sh` + - `./scripts/clippy.sh` + +## PR Checklist + +- Regenerate only bindings affected by the change (or explain full regen). +- Verify generated headers/artifacts are in sync with Rust API updates. +- Include exact build/check commands in PR notes. diff --git a/.claude/skills/dojo-c-development/agents/openai.yaml b/.claude/skills/dojo-c-development/agents/openai.yaml new file mode 100644 index 0000000..4bd37f3 --- /dev/null +++ b/.claude/skills/dojo-c-development/agents/openai.yaml @@ -0,0 +1,4 @@ +interface: + display_name: "Dojo C Development" + short_description: "Contributor workflow for dojoengine/dojo.c" + default_prompt: "Use $dojo-c-development to implement and validate changes in dojo.c."