Agent skill

Moonbit C Binding

by golemcloud in golemcloud/golem

Guide for writing MoonBit bindings to C libraries using native FFI.

Custom licenceAuto-check passedAgent Workflows

Install Moonbit C Binding

skills CLI
$ npx skills add golemcloud/golem --skill moonbit-c-binding -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install golemcloud/golem moonbit-c-binding --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/golemcloud/golem.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/moonbit-c-binding .claude/skills/moonbit-c-binding && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
moonbit-c-binding
GitHub stars
1.5k
Token cost
~3k tokens
SKILL.md length
1,091 words
Files
7 (incl. scripts, references)
Skills in repo
289
Repo updated
First seen
Licence
Custom licence

At a glance

Guide for writing MoonBit bindings to C libraries using native FFI.

  • Works in 4 steps: Project Setup → FFI Layer → MoonBit API → …
  • Adding extern c declarations
  • SKILL.md covers When To Use, Plan Mode Instructions, Type Mapping and Workflow, plus 3 more sections
  • Runs Python scripts from its folder; calls python3

What it does

Moonbit C Binding is an agent skill from golemcloud/golem. Guide for writing MoonBit bindings to C libraries using native FFI. Use when adding extern "c" declarations, writing C stubs with moonbit.h, configuring native-stub and link.native in moon.pkg, choosing

Its SKILL.md is about 3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including scripts and reference files (for example `references/asan-validation.md`, `references/callbacks.md` and `references/including-c-sources.md`).

It sits in Agent Workflows. The repository describes itself as: Golem Cloud is the agent-native platform for building AI agents and distributed applications that never lose state, never duplicate work, and never require you to build…

When your agent uses it

  • Adding extern c declarations
  • Writing C stubs with moonbit.h
  • Configuring native-stub and link.native in moon.pkg

Example prompts

  • “/moonbit-c-binding”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Project Setup
  2. FFI Layer
  3. MoonBit API
  4. Testing

What it can do on your machine

Read from SKILL.md and the folder at commit c6a3029. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Moonbit C Binding loads about 3k tokens when it runs, and up to ~6.9k if it reads all its reference files. Until then it costs about 55 tokens; SKILL.md has 1,091 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~55
When it runs · the whole SKILL.md, loaded when a task matches
~3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,091 words (~3,036 tokens).

“Step-by-step workflow for binding any C library to MoonBit using native FFI.”

— opening of SKILL.md by golemcloud, Custom licence
name
moonbit-c-binding

Read the full SKILL.md on GitHub

Files

SKILL.md and 6 other files (scripts, references) in .agents/skills/moonbit-c-binding of golemcloud/golem.

  • SKILL.md
  • references/asan-validation.md
  • references/callbacks.md
  • references/including-c-sources.md
  • references/ownership-and-memory.md
  • scripts/.gitignore
  • scripts/run-asan.py

Open the folder on GitHubat commit c6a3029

Compare with similar skills

Moonbit C Binding next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Moonbit C Binding compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Moonbit C Binding this skillgolemcloud/golem1.5k—~3kAutomated safety check: PassCustom licence
MCP Server Builderanthropics/skills180k64 repos~2.3kAutomated safety check: PassApache-2.0
Hook Development for Claude Code Pluginsanthropics/claude-plugins-official38k11 repos~4.1kAutomated safety check: NotesApache-2.0
Using Superpowersfarm-fe/farm5.6k35 repos~1.4kAutomated safety check: PassMIT
Executing Plans Inlineobra/superpowers296k2 repos~5.1kAutomated safety check: PassMIT
Claude Code Agent Developmentanthropics/claude-plugins-official38k8 repos~2.8kAutomated safety check: PassApache-2.0

Similar skills

  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 64 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • Hook Development for Claude Code Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.

    38k GitHub starsUsed in 11 repos~4.1k tokens
    Agent WorkflowsAuto-check: notes
  • Using Superpowers

    farm-fe/farm

    A skill your agent uses when starting any conversation - establishes how to find and use skills, requiring Skill tool invocation before ANY response including clarifying questions

    5.6k GitHub starsUsed in 35 repos~1.4k tokens
    Agent WorkflowsAuto-check passed
  • Executing Plans Inline

    obra/superpowers

    Has the agent carry out an implementation plan itself, task by task in the current session, keeping a ledger, proving each step with a test and ending with one whole-branch review.

    296k GitHub starsUsed in 2 repos~5.1k tokens
    Agent WorkflowsAuto-check passed
  • Claude Code Agent Development

    anthropics/claude-plugins-official

    Official

    Explains how to write agents for Claude Code plugins: the markdown file with YAML frontmatter, trigger descriptions, model and color settings, and system prompt design.

    38k GitHub starsUsed in 8 repos~2.8k tokens
    Agent WorkflowsAuto-check passed
  • Skill Creator

    Azure/azqr

    Official

    Create new skills, modify and improve existing skills, and measure skill performance.

    795 GitHub starsUsed in 89 repos~8.2k tokens
    Agent WorkflowsAuto-check passed

More from golemcloud/golem

All 289 skills in this repo
  • Adding Dependencies

    golemcloud/golem

    Adding or updating crate dependencies in the Golem workspace.

    1.5k GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Analysing CI Failures

    golemcloud/golem

    Analysing GitHub Actions CI failures from a run URL. An agent skill from golemcloud/golem.

    1.5k GitHub stars~862 tokensUpdated today
    Auto-check passed
  • Adds a built-in WASM plugin that is externally released and provisioned by the registry service.

    1.5k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • DB Migration Scripts

    golemcloud/golem

    Writing database migration SQL scripts. An agent skill from golemcloud/golem.

    1.5k GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Debugging Hanging Tests

    golemcloud/golem

    Diagnosing and fixing hanging worker executor or integration tests.

    1.5k GitHub stars~879 tokensUpdated today
    Auto-check passed
  • Golem Add Agent Effect

    golemcloud/golem

    Adding an Effect-based agent to a Golem component. An agent skill from golemcloud/golem.

    1.5k GitHub stars~1.3k tokensUpdated today
    Auto-check passed

Categories

Questions about Moonbit C Binding

What does Moonbit C Binding do?

Guide for writing MoonBit bindings to C libraries using native FFI. Moonbit C Binding is an agent skill from golemcloud/golem. Guide for writing MoonBit bindings to C libraries using native FFI.

When should I use Moonbit C Binding?

Moonbit C Binding fits situations like: adding extern c declarations; writing C stubs with moonbit.h; configuring native-stub and link.native in moon.pkg.

How do I install Moonbit C Binding in Claude Code?

Run `npx skills add golemcloud/golem --skill moonbit-c-binding -a claude-code`. Or copy the skill folder (.agents/skills/moonbit-c-binding in golemcloud/golem) into .claude/skills/moonbit-c-binding in your project. Claude Code loads it when a task matches its description.

How do I install Moonbit C Binding in Codex?

Run `npx skills add golemcloud/golem --skill moonbit-c-binding -a codex`. Or copy the skill folder (.agents/skills/moonbit-c-binding in golemcloud/golem) into .agents/skills/moonbit-c-binding in your project. Codex loads it when a task matches its description.

Can I use Moonbit C Binding in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add golemcloud/golem --skill moonbit-c-binding -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/moonbit-c-binding, .gemini/skills/moonbit-c-binding, .github/skills/moonbit-c-binding and .opencode/skills/moonbit-c-binding in your project.

What does Moonbit C Binding need to run?

Going by SKILL.md and its folder, Moonbit C Binding needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Moonbit C Binding access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Moonbit C Binding safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Moonbit C Binding use?

Moonbit C Binding has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Moonbit C Binding use?

About 3k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.8k tokens, read only when the agent opens those files.

What are the alternatives to Moonbit C Binding?

Skills that share tags, products or a category with Moonbit C Binding: MCP Server Builder (anthropics/skills, 180k stars), Hook Development for Claude Code Plugins (anthropics/claude-plugins-official, 38k stars), Using Superpowers (farm-fe/farm, 5.6k stars) and Executing Plans Inline (obra/superpowers, 296k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Moonbit C Binding?

golemcloud (a GitHub organization) maintains it in golemcloud/golem, which has 1,507 GitHub stars. The repository holds 289 skills in this directory. The repository was last updated on October 8, 2026.

Source: golemcloud/golem on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.