Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .claude/skills/dojo-c-development/SKILL.md
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 4 additions & 0 deletions .claude/skills/dojo-c-development/agents/openai.yaml
Original file line number Diff line number Diff line change
@@ -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."