Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

farming-labs-docs农业实验室文档

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

832

周安装

34

GitHub Stars

36

下载量

267
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:farming-labs-docs(农业实验室文档)
来源仓库:https://github.com/farming-labs/docs
仓库路径:skills/farming-labs-docs
安装命令:
npx skills add https://github.com/farming-labs/docs --skill farming-labs-docs
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/farming-labs/docs --skill farming-labs-docs

简介

用于辅助文档、README 和 Markdown 内容的整理与改写。

  • 支持 Next.js、SvelteKit、Astro 和 Nuxt 框架的 MDX 文档站点构建。
  • 可提炼结构、补齐章节、统一术语,避免未确认信息写成确定结论。
  • 涉及对外文案时应控制语气,避免过度营销或夸大能力。
  • farming-labs-docs 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

@farming-labs/docs — Getting Started

Always consult the project docs (and /docs routes when available) for the latest API and examples.

@farming-labs/docs is a modern, flexible MDX-based documentation framework. Write markdown, get a polished docs site. Supported frameworks: Next.js, SvelteKit, Astro, Nuxt.


Quick reference

CLI

ScenarioCommand
Add docs to existing appnpx @farming-labs/docs@latest init
Start from scratch (bootstrap project)`npx @farming-labs/docs@latest init --template <next \nuxt \sveltekit \astro> --name <project-name>`

CLI flags

FlagDescription
--template <name>Bootstrap a project: next, nuxt, sveltekit, astro. Use with --name.
--name <project>Project folder name when using --template; prompt if omitted (e.g. my-docs).
--theme <name>Skip theme prompt (e.g. --theme fumadocs, --theme greentree).
--entry <path>Skip entry path prompt (default docs).

Packages by framework

FrameworkCore + adapterTheme package
Next.js@farming-labs/docs, @farming-labs/next@farming-labs/theme
SvelteKit@farming-labs/docs, @farming-labs/svelte@farming-labs/svelte-theme
Astro@farming-labs/docs, @farming-labs/astro@farming-labs/astro-theme
Nuxt@farming-labs/docs, @farming-labs/nuxt@farming-labs/nuxt-theme

Themes (all frameworks)

Seven built-in themes: fumadocs, darksharp, pixel-border, colorful, greentree, darkbold, shiny. Theme name in config must match the theme’s CSS import path (e.g. greentree@farming-labs/theme/greentree/css for Next).


Critical: theme CSS

Every setup must import the theme’s CSS in the global stylesheet. Without it, docs pages will not be styled.

  • Next.js: app/global.css@import "@farming-labs/theme/<theme>/css"; (e.g. default, greentree).
  • SvelteKit: src/app.css@import "@farming-labs/svelte-theme/<theme>/css";
  • Astro: Import in the docs layout or page file: import "@farming-labs/astro-theme/<theme>/css";
  • Nuxt: nuxt.config.tscss: ["@farming-labs/nuxt-theme/<theme>/css"]

Use the same theme name in docs.config and in the CSS import.


Core config: defineDocs

All frameworks use a single config file (docs.config.ts or docs.config.ts):

import { defineDocs } from "@farming-labs/docs";
import { fumadocs } from "@farming-labs/theme"; // or svelte-theme, astro-theme, nuxt-theme

export default defineDocs({
  entry: "docs",
  contentDir: "docs", // SvelteKit/Astro/Nuxt
  // staticExport: true, // optional: for full static builds (Cloudflare Pages); hides search & AI
  theme: fumadocs(),
  metadata: {
    titleTemplate: "%s – Docs",
    description: "My documentation site",
  },
});
  • Next.js: docs.config.ts at project root; wrap Next config with withDocs() from @farming-labs/next/config.
  • SvelteKit: src/lib/docs.config.ts; routes under src/routes/docs/.
  • Astro: src/lib/docs.config.ts; pages under src/pages/<entry>/.
  • Nuxt: docs.config.ts at project root; server/api/docs.ts and pages/docs/[...slug].vue.

Doc content and frontmatter

Docs live under the entry directory (e.g. docs/ or app/docs/). Each page is MDX (or Markdown) with frontmatter:

---
title: "Installation"
description: "Get up and running"
icon: "rocket"
---

# Installation

Content here.

Routing is file-based: docs/getting-started/page.mdx/docs/getting-started.


Path aliases (CLI)

When running init, the CLI may ask about path aliases:

  • Next.js: @/ (e.g. @/docs.config) vs relative paths.
  • SvelteKit: $lib/ vs relative.
  • Nuxt: ~/ vs relative.

If the user chooses “no alias”, generated code uses relative paths to docs.config (e.g. ../../docs.config), and tsconfig may omit the paths block.


Common gotchas

  1. Theme CSS missing — Docs look unstyled until the theme CSS is imported in the global stylesheet (or Nuxt css).
  2. Wrong theme package — Use the theme package for the same framework (e.g. @farming-labs/svelte-theme for SvelteKit, not @farming-labs/theme).
  3. From scratch — Use --template with --name <project>; the CLI bootstraps a project with that name and runs install.
  4. Existing project — Run init in the project root; the CLI detects the framework and scaffolds files.
  5. Static hosting — For full static builds (e.g. Cloudflare Pages), set staticExport: true in defineDocs(); search and AI are then hidden and no server is required.

Resources

  • Repo: farming-labs/docs
  • Docs site: Check the project’s /docs (e.g. installation, CLI, configuration).
  • Examples: examples/next, examples/nuxt, examples/sveltekit, examples/astro in the repo.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.23%
按下载量换算91

Claude

30.94%
按下载量换算83

Cursor

21.83%
按下载量换算58

Gemini CLI

10.22%
按下载量换算27

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills