opensifli/sifli-sdk/sifli-build-win
Claude Code and agent skill by opensifli/sifli-sdk
- community
Checking that the SKILL.md file is still in the repository.
Build SiFli SDK projects on Windows using PowerShell. Use this skill when the user wants to compile/build SiFli SDK firmware, specify a board+example combo, or asks "编译", "build", "编译xxx例程", "用板子xxx编译". Handles environment setup via export.ps1, SCons build with --board option, and locating build artifacts.
Install
npx vskill@latest install opensifli/sifli-sdk/sifli-build-winSKILL.md
The same SKILL.md was published earlier as neversight/learn-skills.dev/sifli-build-win.
SiFli SDK Windows Build
Builds SiFli SDK example/project firmware on Windows using PowerShell (powershell.exe).
⚠️ Platform restriction: This skill is for Windows only. Before proceeding, check the platform:- Rununame -sto determine the OS- If the result containsMINGW/MSYS/CYGWIN(Git Bash on Windows), proceed with the build.- If the result isLinuxorDarwin(macOS), do not proceed. Instead, tell the user: "This build skill requires Windows (PowerShell). On Linux/macOS, please usesource ./export.shin bash, thenscons --board=<board> -j8. See the CLAUDE.md for Linux/macOS build instructions."
Environment
- Build tool: SCons (invoked via the SDK's environment setup)
- Environment setup:
export.ps1(PowerShell) in SDK root directory - Shell:
powershell.exe— available via PATH on all Windows systems
Build Command Template
Since we're in a bash shell context, use powershell.exe -NoProfile -Command to invoke the build:
Parameters
| Parameter | Description | Example | |
|---|---|---|---|
<sdk_root> | Absolute path to SDK root directory | E:\\code2\\SiFli-SDK-52S | |
<project_dir> | Relative path (from SDK root) to the project containing SConstruct | example\\get-started\\hello_world\\rtt\\project | |
<board_name> | Board target name (with or without _hcpu suffix) | sf32lb52-lcd_n16r8_hcpu |
The <sdk_root> should be determined from the current working directory or the user's setup. If the user doesn't specify, use the working directory of the session.
Finding Valid Board Names
List available boards in customer/boards/:
Boards often have _hcpu or _lcpu subdirectories. The build target name includes the chip family prefix (e.g. sf32lb52-, sf32lb56-, sf32lb58-, eh-lb5xx, ec-lb5xx).
Finding Example Projects
Examples are in example/. Each project directory should contain SConstruct (or SConstruct inside a project/ subdirectory).
Common patterns:
example/get-started/hello_world/rtt/project/— RT-Thread hello worldexample/ble/<name>/project/hcpu/— BLE examples (dual-core, HCPU side)example/multimedia/lvgl/<name>/project/— LVGL graphics examples
Build Output
After a successful build, artifacts are in the project's build_<board_name>/ directory:
main.elf— ELF executablemain.asm— Disassembly listingoutput/— Flashable binary/hex filesftab.bin— Flash partition tabledownload.bat— Download script
A memory usage summary is printed at the end showing ROM/RAM utilization.
Common Issues
- `scons: command not found` — The SDK environment wasn't sourced properly. Make sure to run
export.ps1first in the same PowerShell session. - Board not found — Verify the board name exists in
customer/boards/. Try with and without_hcpu/_lcpusuffix. - Permission denied — If a build already exists, clean with
scons --board=<board> -cfirst. - Worktree dirty warning — Non-blocking; the build will proceed.
Example Usage
User: "编译 helloworld/rtt,板子 sf32lb52-lcd_n16r8"
→ <sdk_root> = session's working directory → Set <project_dir> = example\\get-started\\hello_world\\rtt\\project → Set <board_name> = sf32lb52-lcd_n16r8_hcpu → Run the build command template above.
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/sifli-build-win/SKILL.md
Popularity
- Repository stars
- 185
- Repository forks
- 83
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. 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/opensifli/sifli-sdk/sifli-build-win)