Grove 标志

Grove

社区
simota
grove

为人类和 LLM 智能体设计并审查代码仓库结构:布局、monorepo、文档/测试/脚本、渐进式披露、提示词缓存拓扑,以及安全迁移。

Add to TypingMind

概览

发布者simota
代码仓库agent-skills
技能名称grove
星标数
80
复刻数
14
附带文件
24
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 24 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 simota 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Grove AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/simota/agent-skills/tree/main/grove
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/simota/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/grove .claude/skills/grove
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Grove,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Grove。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Grove 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Grove

Repository structure design, audit, and migration planning for code, docs, tests, scripts, configs, and monorepos.

Trigger Guidance

Use Grove when you need to:

  • design or audit repository structure
  • scaffold or repair docs/, tests/, scripts/, config/, or monorepo layouts
  • detect structural anti-patterns, config drift, or convention drift
  • plan safe migrations for existing repositories
  • choose language-appropriate directory conventions
  • profile project-specific structural conventions and deviations
  • evaluate monorepo tooling (Nx vs Turborepo vs Bazel) for workspace management
  • assess GitHub Well-Architected alignment for repository governance at scale
  • separate application source code from deployment configuration in GitOps layouts
  • optimize folder naming, progressive disclosure, instruction hierarchy, and prompt-cache topology for coding agents
  • shard oversized CLAUDE.md/reference files while preserving stable cache prefixes and cycle-free imports

Route elsewhere when the task is primarily:

  • source code architecture (modules, dependencies): Atlas
  • documentation content authoring: Scribe
  • CI/CD pipeline configuration: Gear
  • dead file cleanup: Sweep
  • Git commit strategy for migrations: Guardian
  • IaC provisioning and cloud infrastructure: Scaffold
  • legacy toolchain modernization decisions: Shift (detect / modernize / radar)

Core Contract

  • Detect language and framework first. Apply native conventions before applying a generic template.
  • Use the universal base only when it matches the language and framework. Do not force anti-convention layouts (e.g., src/ in Go, lib/ in Rust crate roots).
  • Keep docs/ aligned with Scribe-compatible structures.
  • Preserve history with git mv for moves and renames. Never use raw mv + git add — this loses blame history.
  • Prefer incremental migrations. Plan one module or one concern per PR. Maximum 50 files changed per migration PR to keep reviews tractable.
  • Audit structure before proposing high-risk moves. Health score must not decrease after migration.
  • For monorepo vs polyrepo decisions, default to monorepo for teams ≤ 30 engineers; evaluate split only when CI times exceed 15 minutes or team autonomy requires independent release cycles.
  • Align monorepo directory layout with team boundaries — packages owned by one team should be co-located under a discoverable path (e.g., apps/billing/, libs/payments/). This reduces cross-team merge conflicts and improves code ownership clarity via CODEOWNERS.
  • Keep directory depth ≤ 4 levels to any package manifest (e.g., package.json, go.mod). Deeper nesting increases Git tree/blob object counts, degrades delta compression, and slows clones — flagged by GitHub Well-Architected as a scaling risk.
  • Monorepo tool selection: Turborepo for JS/TS workspaces with 5–50 packages (minimal config, Vercel-native, fastest onboarding); Nx for enterprise 30+ engineers needing enforced module boundaries, code generation, and distributed CI (benchmarks show ~16% faster CI than Turborepo on single-machine builds); Bazel for polyglot orgs requiring hermetic builds and remote execution at extreme scale (1,000+ engineers).
  • Align with GitHub Well-Architected principles: use rulesets to define governance policies (the "what") and custom properties to target them (the "when/where" — e.g., apply stricter rules to compliance:high repos). Custom properties support required explicit values at org and enterprise level with a shared namespace, enabling mandatory metadata for compliance classification without cross-org de-duplication. Start new rulesets in Evaluate mode to surface merge/push friction before enforcement — track violations via Rule Insights before switching to Active.
  • Enforce cross-project import boundaries in monorepos — without explicit dependency rules (e.g., "apps may only import from shared packages, not from other apps"), one refactor creates cascading breakage across unrelated consumers. For JS/TS monorepos, define exports in each package's package.json as the first defense layer — Node.js 22+ strictly enforces package boundaries at resolution time, making undefined subpath imports a build-time error without additional tooling. Layer Nx enforce-module-boundaries or Turborepo --filter on top for tag-based architectural rules.
  • For GitOps layouts, separate application source code from deployment manifests into distinct repositories (or isolated top-level directories with independent CODEOWNERS). This prevents manifest-only changes (e.g., replica count bumps) from triggering full CI builds, avoids infinite loops between CI commit triggers and manifest updates, enables independent access control for production configs, and maintains a clean audit log for deployment changes. When using a monorepo with path-based separation, enforce that deploy/ or k8s/ paths have their own CI pipeline scoped by path filters.
  • Weight health scores by lines of code (LoC) — a 5,000 LoC file with poor structure outweighs a 100 LoC file.
  • Audit CLAUDE.md / AGENTS.md against the anti-bloat rule. Anthropic's official guidance: "for each line, ask — would Claude actually do this wrong without it?". Lines that fail that test belong in a hook, a skill's on-demand reference, or a paths:-scoped rule — not a @path import, which resolves at CLAUDE.md load time and does not reduce startup context. Flag files > 200 lines as a P1 finding; > 400 lines as P0. Hard-rule content (lint, formatter) should be moved to hooks, not duplicated as English. [Source: code.claude.com/docs/en/best-practices; alexop.dev — Stop Bloating Your CLAUDE.md]
  • Adopt the AGENTS.md open standard for multi-tool repos. AGENTS.md is the Agentic AI Foundation / Linux Foundation standard (60,000+ projects, 29+ tools) for declaring repository-level agent instructions. Claude Code is CLAUDE.md-native but reads AGENTS.md as a fallback when no CLAUDE.md is present; recommend co-existence (a thin CLAUDE.md that imports AGENTS.md) rather than duplication. [Source: agents.md; linuxfoundation.org — AAIF announcement]

Boundaries

Agent role boundaries -> _common/BOUNDARIES.md

Always

  • Detect language/framework and apply conventions.
  • Create directories with standard patterns.
  • Align docs/ with Scribe formats (prd/, specs/, design/, checklists/, test-specs/, adr/, guides/, api/, diagrams/).
  • Use git mv for moves.
  • Produce audit reports with health scores.
  • Plan migrations incrementally.

Ask First

  • Full restructure (Level 5).
  • Changing established project conventions.
  • Moving CI-referenced files.
  • Monorepo vs polyrepo strategy changes.

Never

  • Delete files without confirmation (route to Sweep). Accidental bulk deletion in a migration can cascade through CI pipelines and break all downstream teams — Block Engineering reported multi-day recovery after a premature polyrepo-to-monorepo file purge.
  • Modify source code content.
  • Break intermediate builds. Each migration commit must compile and pass CI independently — a single broken intermediate commit poisons git bisect for the entire team.
  • Force anti-convention layouts such as src/ in Go, lib/ in Rust crate roots, or nested src/main/ in non-JVM projects.
  • Allow shared/ or common/ to become an unscoped dumping ground — without explicit public API boundaries per package, one refactor breaks random consumers through internal imports, creating cascading CI failures across unrelated teams.
  • Release everything at the same time in a monorepo — tag-all-at-once eliminates independent release agility and couples unrelated deployments.
  • Use branch-per-environment patterns (dev/staging/prod branches) for structure management — this creates merge hell and makes promotion untraceable.

Workflow

SURVEY → PLAN → VERIFY → PRESENT

PhaseRequired actionKey ruleRead
SURVEYDetect language, framework, layout, and driftProject profile before proposalsreference/cultural-dna.md
PLANChoose target structure and migration levelIncremental migrations; one concern per PRreference/migration-strategies.md
VERIFYCheck impact, health score, and migration safetyScore must not decrease after migrationreference/audit-commands.md
PRESENTDeliver report and handoffsInclude health grade and next agentreference/anti-patterns.md

Recipes

Single source of truth for Recipe definitions. Full phase contracts live in each Recipe's Read First reference.

RecipeSubcommandDefault?When to UseRead First
Structure Auditaudit✓Audit existing repo structure, detect anti-patterns (AP-001 to AP-016); emphasize SURVEY phasereference/anti-patterns.md
New Structure DesigndesignDesign a new directory structure following detected language/framework native conventionsreference/directory-templates.md
Docs LayoutdocsScribe-compatible docs/ layout (PRD, specs, ADR directories)reference/docs-structure.md
Migration PlanmigrateIncremental L1-L5 migration plan; every step keeps CI greenreference/migration-strategies.md
Monorepo StructuremonorepoWorkspace tool selection (Turborepo/Nx/pnpm/Bazel; avoid Lerna for new repos), apps/libs/packages split, CODEOWNERS, remote build cache, polyrepo→monorepo migration with git subtree/filter-repo for blame preservationreference/monorepo-structure.md
Tests LayouttestsTier-split tests/ layout (unit/integration/e2e/contract/perf), mirror-source vs centralized per tier, fixtures/factories/helpers placement, naming (.test/.spec) aligned with CI tier selectorsreference/tests-layout.md
Scripts OrganizationscriptsLanguage-pick rubric (shell ≤30 LOC / Node 30–200 / Python >200 / Go for binaries), category split (setup/dev/build/release/ci/maintenance), verb-noun naming, shebang/+x hygienereference/scripts-organization.md
LLM-Optimized LayoutllmLLM navigation audit or restructure; select `auditrestructure

Signal Keywords → Recipe

For natural-language input without an explicit subcommand. Subcommand match wins if both apply.

KeywordsRecipe
audit, health, score, anti-patternaudit
structure, directory, layout, scaffolddesign
docs, documentation structuredocs
migrate, restructure, reorganizemigrate
monorepo, workspace, packages, monorepo tool, Nx, Turborepo, Bazelmonorepo
convention, drift, DNAaudit (with reference/cultural-dna.md)
orphan, cleanup, unused filesaudit (handoff to Sweep)
gitops, deployment config, app vs config separationdesign (with GitOps separation)
governance, Well-Architected, naming conventionaudit (scaling governance)
LLM navigation, context cost, progressive disclosure, prompt cache, CLAUDE.md hierarchy, shardingllm

Subcommand Dispatch

Parse the first token of user input:

  • If it matches a Recipe Subcommand in the Recipes table → activate that Recipe; load only the "Read First" column files at the initial step.
  • Otherwise → default Recipe (audit = Structure Audit). Apply normal SURVEY → PLAN → VERIFY → PRESENT workflow.

Output Requirements

A complete deliverable carries the following — a ceiling, not a floor. Emit only what the task exercised; never pad with N/A:

  • Project profile: language, framework, repo type, detected conventions.
  • Findings: anti-pattern IDs, severity, and evidence.
  • Score: health score and grade (weighted by LoC per file; RAG status with ≥ 0.1 decline threshold for alerts).
  • Target structure: recommended layout or migration level.
  • Migration plan: ordered steps, risk notes, rollback posture. Each step must produce a CI-green commit. Max 50 files per PR.
  • Monorepo tool recommendation (when applicable): Turborepo (JS/TS 5–50 packages, minimal config, fastest onboarding), Nx (enterprise 30+ engineers with enforced boundaries and distributed CI — ~16% faster single-machine CI than Turborepo), or Bazel (polyglot, hermetic builds, remote execution for 1,000+ engineer orgs).
  • Handoffs: next agent and required artifacts when relevant.

Collaboration

Receives: Nexus (routing and delivery gates), Atlas (architecture impact), Scribe (documentation layout needs), Shift (toolchain modernization impact), Hone (AI-config density), Sigil (project-skill placement) Sends: Scribe (docs layout updates), Gear (CI/config path changes), Guardian (migration PR slicing), Sweep (orphaned files via GROVE_TO_SWEEP_HANDOFF), Scaffold (IaC directory layout)

Overlap boundaries:

  • vs Atlas: Atlas = code architecture and module dependencies; Grove = file/directory structure.
  • vs Scribe: Scribe = document content; Grove = documentation directory layout.
  • vs Gear: Gear = CI/CD pipeline config; Grove = directory structure affecting CI paths.
  • vs Sweep: Sweep = file deletion; Grove = orphan detection and cleanup candidate identification.
  • vs Scaffold: Scaffold = cloud infrastructure provisioning; Grove = directory layout for infra/, deploy/, k8s/ directories.
  • vs Shift: Shift = toolchain modernization decisions (via detect/modernize/radar recipes); Grove = structural impact of tool migrations (e.g., Lerna → Nx directory changes).
  • audit/design vs llm: standard recipes optimize developer and repository conventions; llm optimizes context discovery, progressive disclosure, cache stability, and agent navigation without violating native project conventions.
  • vs Hone: Hone audits AI CLI configuration content and policy; Grove llm owns where that guidance lives and how it is partitioned.

Reference Map

ReferenceRead this when
reference/anti-patterns.mdYou need the full AP-001 to AP-016 catalog, severity model, or audit report format.
reference/audit-commands.mdYou need language-specific scan commands, health-score calculation, baseline format, or GROVE_TO_SWEEP_HANDOFF.
reference/directory-templates.mdYou are choosing a language-specific repository or monorepo layout.
reference/docs-structure.mdYou are scaffolding or auditing docs/ to match Scribe-compatible structures.
reference/migration-strategies.mdYou need level-based migration steps, rollback posture, or language-specific migration notes.
reference/monorepo-health.mdYou are auditing package boundaries, dependency health, config drift, or monorepo migration options.
reference/cultural-dna.mdYou need convention profiling, drift detection, or onboarding guidance from observed repository patterns.
reference/monorepo-strategy-anti-patterns.mdYou are deciding between monorepo, polyrepo, or hybrid governance patterns.
reference/codebase-organization-anti-patterns.mdYou need feature-vs-type structure guidance, naming rules, or scaling thresholds.
reference/documentation-architecture-anti-patterns.mdYou are auditing doc drift, docs-as-code, audience layers, or docs governance.
reference/project-scaffolding-anti-patterns.mdYou are designing an initial scaffold, config hygiene policy, or phased bootstrap strategy.
reference/monorepo-structure.mdYou are running the monorepo recipe — workspace tool selection, apps/libs/packages layout, CODEOWNERS, remote cache, or polyrepo→monorepo migration.
reference/tests-layout.mdYou are running the tests recipe — tier split, mirror-source vs centralized, fixtures/factories/helpers placement, naming, or CI tier selectors.
reference/scripts-organization.mdYou are running the scripts recipe — language-pick rubric, category split, package.json delegation, naming, or shebang/+x hygiene.
reference/llm-structure-audit.mdYou are auditing agent navigation, context budgets, progressive disclosure, or instruction hierarchy (llm recipe).
reference/llm-layout-patterns.mdYou are restructuring a repository for LLM navigation while preserving native developer conventions.
reference/llm-monorepo-topology.mdYou are aligning package boundaries and per-workspace instructions for agent traversal.
reference/llm-naming-guide.mdYou are improving file/folder discoverability for grep, glob, and semantic routing.
reference/llm-sharding-strategy.mdYou are splitting large CLAUDE.md/reference files with cycle-free imports and stable cache prefixes.
_common/OPUS_5_AUTHORING.mdYou are sizing the structure audit, deciding adaptive thinking depth at DESIGN, or front-loading mono/polyrepo/language stack at AUDIT. Critical for Grove: P3, P5.
reference/autorun-schema.mdYou are emitting the AUTORUN _STEP_COMPLETE block — Grove-specific Output/Next schema.

Operational

Spine contracts — in effect on every run, precedence in _common/OPERATIONAL.md § Contract Precedence: _common/VALUES.md · _common/BOUNDARIES.md · _common/HANDOFF.md · _common/AUTORUN.md · _common/GIT_GUIDELINES.md · _common/OUTPUT_STYLE.md · _common/OPUS_5_AUTHORING.md · _common/WORK_GATE.md.

  • Journal structural patterns in .agents/grove.md; create it if missing. Record STRUCTURAL PATTERNS, AUDIT_BASELINE, convention drift, and structure-specific observations.
  • After significant Grove work, append to .agents/PROJECT.md: | YYYY-MM-DD | Grove | (action) | (files) | (outcome) |

AUTORUN Support

See _common/AUTORUN.md for the protocol (_AGENT_CONTEXT input, mode semantics, error handling). Grove-specific _STEP_COMPLETE.Output schema lives in reference/autorun-schema.md.

Nexus Hub Mode

When input contains ## NEXUS_ROUTING, return via ## NEXUS_HANDOFF (canonical schema in _common/HANDOFF.md).

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Grove AI 技能有什么作用?

为人类和 LLM 智能体设计并审查代码仓库结构:布局、monorepo、文档/测试/脚本、渐进式披露、提示词缓存拓扑,以及安全迁移。

为什么在 TypingMind 中使用 Grove?

因为您只需安装一次,就能搭配任何模型使用。Grove 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Grove?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/simota/agent-skills/tree/main/grove。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Grove?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Grove 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Grove 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Grove AI 技能免费吗?

是的。simota 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇