kingwill101/native_prebuilt/native-prebuilt
Claude Code and agent skill by kingwill101/native_prebuilt
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install kingwill101/native_prebuilt/native-prebuiltSKILL.md
The same SKILL.md was published earlier as kingwill101/native_prebuilt/native-prebuilt.
native_prebuilt
Use this skill when you need to work with native libraries in Dart packages - whether generating manifests, building from source, or setting up prebuilt resolution.
Three API Paths
1. Hooks Builder integration (simple packages)
For packages with single-stage builds using existing hooks builders like CBuilder:
2. Managed build recipes (complex packages)
For multi-stage builds with caching and cross-compilation, you can write the NativeProject in Dart by hand:
3. Declarative manifest (recommended for release builds)
You can define the complete project in native_prebuilt.yaml instead of writing NativeProject code manually. The CLI loads that manifest, validates it, and generates the build graph from it. native_prebuilt build runs declarative recipes and falls back to hook/build.dart when no recipe is declared; when the manifest has a matching target artifact, its payload definition standardizes the staged output.
CLI Commands
Manifest Management
dart run native_prebuilt init- Scaffold an initialnative_prebuilt.yamlfrom the package'spubspec.yamldart run native_prebuilt manifest update [--strict]- Generate/refresh manifest or lock file;--strictrejects flatbuilt-library/<name>dart run native_prebuilt manifest verify- Verify manifest hashes match built artifactsdart run native_prebuilt manifest verify-release [--manifest] [--built-library-dir] [--release-assets-dir] [--strict]- Hash + triple check vs lock/g.dartdart run native_prebuilt doctor [--manifest] [--built-library-dir] [--release-assets-dir] [--target] [--strict]- Drift/hash/triple check, exit 2 on driftdart run native_prebuilt schema export- Writeschema/native_prebuilt.schema.jsonfor editor validation
Build Pipeline
dart run native_prebuilt plan --target <platform>- Show build plan for a targetdart run native_prebuilt build --target <platform> --output <dir>- Build native librarydart run native_prebuilt cache-key --target <platform>- Show cache key for a builddart run native_prebuilt explain-cache --target <platform>- Explain cache statedart run native_prebuilt verify --target <platform>- Verify built artifact (legacy); alsoverify --ref <tag> [--release-assets-dir] [--ephemeral] [--target]for isolated download + triple check
Workflow Generation
dart run native_prebuilt workflow init- Generate GitHub workflow files (nowmerge+doctor+verify-consumer→update-manifest→release, Node24)dart run native_prebuilt workflow init --gitlab- Generate GitLab CI filesdart run native_prebuilt workflow init --gitlab --platform linux,windows- Filter GitLab outputs by platform
Build Steps
Common YAML keys:
type(required)id(required)needs(optional)execution(host|target, defaulttarget)
| type | Purpose | |
|---|---|---|
cmake_configure | Run CMake configure/generate | |
cmake_build | Run CMake build with targets | |
command | Run arbitrary commands | |
download_archive | Download and extract archives | |
git_checkout | Clone or update git repositories | |
git_apply_patch | Apply patch files | |
copy | Copy files or directories | |
strip | Strip debug symbols | |
export_artifact | Export the final artifact |
Recipe values use Liquid templates with source.*, work, output, cache, directories.*, env.*, target.*, library.*, hook.*, project.*, and custom build.options.* values. Common target helpers include target.rust_target, target.zig_target, target.sdk, and OS booleans. Manifest-level variables.* values can refer to these values and to other shared variables. YAML anchors can share complete step lists. Dynamic artifact payloads are the default; declare static_library only for static targets.
Use schema/native_prebuilt.schema.json for editor validation.
Platform Toolchains
Auto-detected from environment:
- Android NDK —
ANDROID_NDK_HOMEor SDK - Apple SDK — Xcode paths
- MSVC — Visual Studio installation
- vcpkg —
VCPKG_ROOT
Caching
Build steps are cached using content-based fingerprints:
- Same inputs → cache hit (skip build)
- Changed source/toolchain → cache miss (rebuild)
- Cache stored in
.dart_tool/native_prebuilt/build-cache/
Test Fixtures
Located in test/fixtures/native_projects/:
simple_shared/- Basic shared librarystatic_library/- Static librarygenerated_source/- Multi-stage with code generationdependency_graph/- Library with dependenciespatchable_source/- Patchable sourcefailing_build/- Intentionally broken
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/native_prebuilt/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kingwill101/native_prebuilt/native-prebuilt)