farm-fe/farm/farmfe-guide
Claude Code and agent skill by farm-fe/farm
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Comprehensive Farm build-tool reference for AI agents. Use when writing or reviewing farm.config.ts, adding/configuring plugins, troubleshooting builds, implementing SSR or library mode, using the JavaScript API, writing Farm JS/Rust plugins, or authoring custom plugins from scratch. Covers all config options, official plugins, CLI commands, key features, and plugin authoring sourced from website/docs.
Install
npx vskill@latest install farm-fe/farm/farmfe-guideSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as farm-fe/farm/farmfe-guide.
Farm Build Tool — Agent Guide
Farm is an extremely fast Vite-compatible web build tool written in Rust. Official site: https://farmfe.org | Package: @farmfe/core | Repo: farm-fe/farm
Reference Index
Detailed documentation is split into focused reference files under references/:
| File | Contents | |
|---|---|---|
| `references/config.md` | Config file setup, shared options, all compilation.* options, all server.* options | |
| `references/cli.md` | CLI commands (start, build, watch, preview, clean) and all flags | |
| `references/plugins.md` | Using plugins (Rust, JS, Vite/Rollup, SWC, Runtime) + official plugins table | |
| `references/features.md` | Quick start, CSS, TypeScript/JSX, env vars, assets, library mode, SSR, HMR, lazy compilation, persistent cache | |
| `references/javascript-api.md` | @farmfe/core JS API — start/build/watch/preview/clean, Compiler, Server, loadEnv | |
| `references/js-plugin-api.md` | Writing JS plugins — all hooks, filters structure, code examples | |
| `references/writing-plugins.md` | Authoring custom plugins — scaffolding, JS plugin structure, Rust plugin structure, hooks, publishing | |
| `references/recipes.md` | Common patterns, framework quick-configs (React/Vue/Svelte/Electron), troubleshooting |
Quick Orientation
Create a Project
Templates: vanilla, react, vue3, vue2, svelte, solid, preact, lit, nestjs, tauri, electron.
Minimal Config
Key Rules
- Config file:
farm.config.ts|js|mjs— do not use__dirname/__filename; useimport.meta.url. - Rust plugins →
plugins: ['package-name']or['package-name', optionsObject]. - Vite/Rollup plugins →
vitePlugins: [plugin()], notplugins. - JS plugin hooks must declare
filters(regex arrays) for performance. resolve.symlinks: trueis required when using pnpm.targetEnv: 'library'enables library mode withformat: ['esm', 'cjs']array support.
Dev/Prod Defaults
| Option | Development | Production | |
|---|---|---|---|
lazyCompilation | ✅ enabled | ❌ disabled | |
persistentCache | ✅ enabled | ✅ enabled | |
minify | ❌ disabled | ✅ enabled | |
treeShaking | ❌ disabled | ✅ enabled | |
presetEnv | ❌ disabled | ✅ enabled | |
css.transformToScript | ✅ enabled | ❌ disabled |
Security
- Security scanPassed, 91 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/farmfe-guide/SKILL.md
Popularity
- Repository stars
- 5,594
- Repository forks
- 191
- 7-day trend score
- 43
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 1 Aug 2026, 3 months ago.
Extension points
pluginCustom plugin integration
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/farm-fe/farm/farmfe-guide)