cpp

Official

Modern C++ best practices for V8 FFI wrappers.

Authorzig-whatwg
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a disciplined approach to writing high-quality, modern, and safe C++ code for V8 FFI wrappers and native integrations, reducing bugs and improving reliability.

Core Features & Use Cases

  • Modern C++ Practices: RAII, const-correctness, smart pointers, and explicit ownership to prevent leaks.
  • V8 FFI Patterns: Safe HandleScope usage, Local/Global handles, and proper context management for wrappers.
  • Safe Interoperability: Type-safe APIs, clear lifetime semantics, and ergonomic boundaries between C++ and Zig.

Quick Start

Create a minimal V8 wrapper skeleton in your project that demonstrates a simple FFI function using a v8::HandleScope, a Localv8::String return value, and a straightforward ownership model. Use this as a baseline to apply the patterns described in this skill.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: cpp
Download link: https://github.com/zig-whatwg/crane/archive/main.zip#cpp

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.