Agent skill

Farmfe Guide

by farm-fe in farm-fe/farm

Comprehensive Farm build-tool reference for AI agents. An agent skill from farm-fe/farm.

MITAuto-check passed

Install Farmfe Guide

skills CLI
$ npx skills add farm-fe/farm --skill farmfe-guide -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install farm-fe/farm farmfe-guide --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/farm-fe/farm.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/farmfe-guide .claude/skills/farmfe-guide && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
farmfe-guide
GitHub stars
5.6k
Token cost
~991 tokens
SKILL.md length
220 words
Files
9 (incl. references)
Skills in repo
20
Repo updated
First seen
Licence
MIT

At a glance

Comprehensive Farm build-tool reference for AI agents. An agent skill from farm-fe/farm.

  • Reviewing farm.config.ts
  • SKILL.md covers Reference Index and Quick Orientation
  • Calls pnpm
  • Adding/configuring plugins

What it does

Farmfe Guide is an agent skill from farm-fe/farm. 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.

Its SKILL.md is about 990 tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including reference files (for example `references/cli.md`, `references/config.md` and `references/features.md`). Compatibility notes: Farm ≥ 1.x. Node 16.18.0+. Uses pnpm as package manager.

It works with Rust, JavaScript and Vite. The repository describes itself as: Extremely fast Vite-compatible web build tool written in Rust. The licence is MIT.

When your agent uses it

  • Reviewing farm.config.ts
  • Adding/configuring plugins
  • Troubleshooting builds
  • Implementing SSR

Example prompts

  • “/farmfe-guide”

Requirements

  • Compatibility (from SKILL.md): Farm ≥ 1.x. Node 16.18.0+. Uses pnpm as package manager.

What it can do on your machine

Read from SKILL.md and the folder at commit 2000ef8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pnpm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • farmfe.org

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Farm ≥ 1.x. Node 16.18.0+. Uses pnpm as package manager.

    From compatibility in the SKILL.md frontmatter.

Context cost

Farmfe Guide loads about 991 tokens when it runs, and up to ~13k if it reads all its reference files. Until then it costs about 105 tokens; SKILL.md has 220 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~105
When it runs · the whole SKILL.md, loaded when a task matches
~991
With references · SKILL.md plus every file in references/, read only if the agent opens them
~13k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from farm-fe/farm at commit 2000ef8, republished under its MIT licence (© farm-fe). 220 words, ~991 tokens.

Download SKILL.mdSave it as .claude/skills/farmfe-guide/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.
name
farmfe-guide
description
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.
compatibility
Farm ≥ 1.x. Node 16.18.0+. Uses pnpm as package manager.
license
MIT
metadata.author
farm
metadata.version
1.2
references
skills/farmfe-guide/references/config.md, skills/farmfe-guide/references/cli.md, skills/farmfe-guide/references/plugins.md…

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/:

FileContents
references/config.mdConfig file setup, shared options, all compilation.* options, all server.* options
references/cli.mdCLI commands (start, build, watch, preview, clean) and all flags
references/plugins.mdUsing plugins (Rust, JS, Vite/Rollup, SWC, Runtime) + official plugins table
references/features.mdQuick 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.mdWriting JS plugins — all hooks, filters structure, code examples
references/writing-plugins.mdAuthoring custom plugins — scaffolding, JS plugin structure, Rust plugin structure, hooks, publishing
references/recipes.mdCommon patterns, framework quick-configs (React/Vue/Svelte/Electron), troubleshooting

Quick Orientation

Create a Project
bash
pnpm create farm@latest
# or with a template:
pnpm create farm my-app --template react

Templates: vanilla, react, vue3, vue2, svelte, solid, preact, lit, nestjs, tauri, electron.

Minimal Config
ts
import { defineConfig } from '@farmfe/core';

export default defineConfig({
  plugins: ['@farmfe/plugin-react'],  // Rust plugin by package name
  compilation: {
    input:  { index: './index.html' },
    output: { targetEnv: 'browser-es2017' },
  },
  server: { port: 9000 },
});
Key Rules
  • Config file: farm.config.ts|js|mjs — do not use __dirname/__filename; use import.meta.url.
  • Rust plugins → plugins: ['package-name'] or ['package-name', optionsObject].
  • Vite/Rollup plugins → vitePlugins: [plugin()], not plugins.
  • JS plugin hooks must declare filters (regex arrays) for performance.
  • resolve.symlinks: true is required when using pnpm.
  • targetEnv: 'library' enables library mode with format: ['esm', 'cjs'] array support.
Dev/Prod Defaults
OptionDevelopmentProduction
lazyCompilation✅ enabled❌ disabled
persistentCache✅ enabled✅ enabled
minify❌ disabled✅ enabled
treeShaking❌ disabled✅ enabled
presetEnv❌ disabled✅ enabled
css.transformToScript✅ enabled❌ disabled

© farm-fe, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 8 other files (references) in skills/farmfe-guide of farm-fe/farm.

  • SKILL.md
  • references/cli.md
  • references/config.md
  • references/features.md
  • references/javascript-api.md
  • references/js-plugin-api.md
  • references/plugins.md
  • references/recipes.md
  • references/writing-plugins.md

Open the folder on GitHubat commit 2000ef8

Compare with similar skills

Farmfe Guide next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Farmfe Guide compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Farmfe Guide this skillfarm-fe/farm5.6k—~991Automated safety check: PassMIT
Fory Releaseapache/fory4.6k—~2.9kAutomated safety check: PassApache-2.0
Pnpm Engineteambit/bit18k—~1.9kAutomated safety check: PassCustom licence
jscpd Code Migration Trackerkucherenko/jscpd6.4k—~5kAutomated safety check: PassMIT
Fory Version Bumpapache/fory4.6k—~1.1kAutomated safety check: PassApache-2.0
Create SkillHyk260/PureChat5461 repos~823Automated safety check: PassMIT

Similar skills

  • Fory Release

    apache/fory

    Prepare an Apache Fory release candidate from a clean release branch, including the version bump, RC tag, JVM staging, ASF source artifacts, SVN upload, and vote email.

    4.6k GitHub stars~2.9k tokensUpdated yesterday
    Auto-check passed
  • Pnpm Engine

    teambit/bit

    Work on the pnpm Rust engine (@pnpm/napi, the pacquet crates) that bit install runs through.

    18k GitHub stars~1.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Measures a code port between languages or frameworks with jscpd's function-level comparison, porting tests before code and tracking what is left unmatched.

    6.4k GitHub stars~5k tokensUpdated today
    DevelopmentAuto-check passed
  • Bump Apache Fory release or post-release development versions across Java, Kotlin, Scala, Python, Rust, Go, C++, C, Dart, JavaScript, Swift, integration tests, examples, and source docs.

    4.6k GitHub stars~1.1k tokensUpdated yesterday
    MobileAuto-check passed
  • Create Skill

    Hyk260/PureChat

    Create a new skill in the current repository. An agent skill from Hyk260/PureChat.

    546 GitHub starsUsed in 1 repo~823 tokens
    DevelopmentAuto-check passed
  • Run profile-driven bottleneck optimization across Apache Fory implementations (Java, C++, Python/Cython, Go, Rust, Swift, C, JavaScript/TypeScript, Dart, Kotlin, Scala).

    4.6k GitHub stars~2.2k tokensUpdated yesterday
    MobileAuto-check passed

More from farm-fe/farm

All 20 skills in this repo
  • Using Superpowers

    farm-fe/farm

    A skill your agent uses when starting any conversation - establishes how to find and use skills, requiring Skill tool invocation before ANY response including clarifying questions

    5.6k GitHub starsUsed in 35 repos~1.4k tokens
    Auto-check passed
  • A skill your agent uses when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for…

    5.6k GitHub starsUsed in 34 repos~1.8k tokens
    Auto-check passed
  • A skill your agent uses when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and…

    5.6k GitHub starsUsed in 45 repos~1.6k tokens
    Auto-check passed
  • Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook.

    5.6k GitHub starsUsed in 3 repos~1.1k tokens
    Auto-check passed
  • A skill your agent uses when completing tasks, implementing major features, or before merging to verify work meets requirements

    5.6k GitHub starsUsed in 38 repos~702 tokens
    Auto-check passed
  • A skill your agent uses when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any…

    5.6k GitHub starsUsed in 46 repos~1k tokens
    Auto-check passed

Questions about Farmfe Guide

What does Farmfe Guide do?

Comprehensive Farm build-tool reference for AI agents. An agent skill from farm-fe/farm. Farmfe Guide is an agent skill from farm-fe/farm. Comprehensive Farm build-tool reference for AI agents.

When should I use Farmfe Guide?

Farmfe Guide fits situations like: reviewing farm.config.ts; adding/configuring plugins; troubleshooting builds; implementing SSR.

How do I install Farmfe Guide in Claude Code?

Run `npx skills add farm-fe/farm --skill farmfe-guide -a claude-code`. Or copy the skill folder (skills/farmfe-guide in farm-fe/farm) into .claude/skills/farmfe-guide in your project. Claude Code loads it when a task matches its description.

How do I install Farmfe Guide in Codex?

Run `npx skills add farm-fe/farm --skill farmfe-guide -a codex`. Or copy the skill folder (skills/farmfe-guide in farm-fe/farm) into .agents/skills/farmfe-guide in your project. Codex loads it when a task matches its description.

Can I use Farmfe Guide in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add farm-fe/farm --skill farmfe-guide -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/farmfe-guide, .gemini/skills/farmfe-guide, .github/skills/farmfe-guide and .opencode/skills/farmfe-guide in your project.

What does Farmfe Guide need to run?

Going by SKILL.md and its folder, Farmfe Guide needs the command-line tools its instructions call (pnpm). Compatibility (from SKILL.md): Farm ≥ 1.x. Node 16.18.0+. Uses pnpm as package manager..

Does Farmfe Guide access the network?

SKILL.md names 1 domain. As links in the text: farmfe.org. This is read from the text; nothing was executed.

Is Farmfe Guide safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Farmfe Guide use?

Farmfe Guide is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Farmfe Guide use?

About 991 tokens (SKILL.md is roughly 4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 12k tokens, read only when the agent opens those files.

What are the alternatives to Farmfe Guide?

Skills that share tags, products or a category with Farmfe Guide: Fory Release (apache/fory, 4.6k stars), Pnpm Engine (teambit/bit, 18k stars), jscpd Code Migration Tracker (kucherenko/jscpd, 6.4k stars) and Fory Version Bump (apache/fory, 4.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Farmfe Guide?

farm-fe (a GitHub organization) maintains it in farm-fe/farm, which has 5,595 GitHub stars. The repository holds 20 skills in this directory. The repository was last updated on September 22, 2026.

Source: farm-fe/farm on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.