sourcebuild

Build the F*, Pulse, and KaRaMeL toolchain from source.

8|4|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/FStarLang/proof-copilot --skill sourcebuild
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sourcebuild
Source: https://github.com/FStarLang/proof-copilot/tree/main/plugins/proof-copilot/skills/sourcebuild
Command: npx skills add https://github.com/FStarLang/proof-copilot --skill sourcebuild

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you set up a working F*, Pulse, and KaRaMeL toolchain from source when you need a reproducible verification environment, a fresh build, or help diagnosing build issues.

Core Features & Use Cases

  • Source Toolchain Setup: Clones the unified fstar2 repository, installs OCaml dependencies, and builds the verified F* compiler plus Pulse.
  • KaRaMeL Build Support: Produces the KaRaMeL C extraction binary needed for verified code generation workflows.
  • Troubleshooting Guidance: Covers common failures such as opam conflicts, missing Z3 versions, stale build stages, and incorrect compiler selection.
  • Project Bootstrap Help: Provides a ready-to-adapt setup script template for automated environment provisioning.

Quick Start

Ask for a step-by-step source build plan for F*, Pulse, and KaRaMeL on a new machine.

Frequently Asked Questions about sourcebuild

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build the F*, Pulse, and KaRaMeL toolchain from source?

To build the F*, Pulse, and KaRaMeL toolchain from source, you need to clone the unified fstar2 repository, install OCaml dependencies via opam, and execute the build scripts to produce the verified F* compiler and related binaries.

What OCaml and Z3 versions are required for an F* source build?

An F* source build requires opam with OCaml 4.14 or newer and proper Z3 version management. You also need git for cloning the repository and optionally cargo if you plan to build the F* MCP server.

Why does my F* source build fail with opam conflicts or missing Z3?

F* source build failures often stem from opam conflicts, missing Z3 versions, stale build stages, or incorrect compiler selection. Troubleshooting guidance covers resolving these dependency and environment issues to complete the build.

Can I automate the F*, Pulse, and KaRaMeL setup for a new verification environment?

Yes, you can automate the F*, Pulse, and KaRaMeL setup by adapting the provided setup script template, which provisions a reproducible verification environment and bootstraps the full toolchain on a new machine.

Does building KaRaMeL from source produce the C extraction binary for verified code generation?

Yes, building KaRaMeL from source produces the KaRaMeL C extraction binary, which is required for executing verified code generation workflows within the F* and Pulse environment.