@3lineas/grooveskills

中文文档
1.9.0发布于 2026/11/04MITTypeScriptES Module近 30 天下载 2357

Multi-agent CLI to install opinionated AI coding skills and architectural standards (Hono, React, Next.js, and more)

原始使用文档
文档目录14 节
  1. ✨ Overview
  2. 🎯 How It Works
  3. 1. Automatic Project Onboarding & Persistent Memory ( .groo…
  4. 2. Smart Stack Detection & Lightweight Agent References
  5. 3. Organic & Outcome-Driven Development (ODD) & 3-Lane Work…
  6. 4. Multilingual, Empathetic UX Communication
  7. 🚀 Quick Start
  8. Interactive Wizard (Install or Update Skills)
  9. Force Full Project Re-Onboarding ( init )
  10. Non-Interactive Mode (CI & Scripting)
  11. CLI Options Reference
  12. 📂 Project Structure
  13. 📦 Skills Catalog
  14. 📄 License

GrooveSkills

Architectural Standards & Persistent Project Memory for AI Coding Assistants

npm version TypeScript License: MIT

Empower Antigravity, Claude Code, Cursor, and Gemini to collaborate like seasoned members of your engineering team—aligned with your clean code standards, aware of your architectural decisions, and ready to deliver verified code from the very first prompt.

Overview • How It Works • Quick Start • Project Structure • Skills Catalog


✨ Overview

AI coding assistants perform at their highest potential when they share your team's context, architectural habits, and empirical quality standards across every session.

GrooveSkills (@3lineas/grooveskills) equips any repository with a unified AI engineering control plane through two complementary layers:

LayerPurposeKey Benefit
1. Core Project Harness (.grooveskills/)Built-in project onboarding, persistent memory, and an Organic & Outcome-Driven (ODD) 3-lane workflow installed automatically.Every session starts oriented on your stack, real scripts, ADR records, outcome hypotheses, and verified checklists.
2. Curated Architectural SkillsBattle-tested engineering standards covering Clean Code, TypeScript 5.5+, Rust, Python, Valibot, Hono RPC, React 19, Vitest, and UX Writing.Your AI assistant writes clean, modular, strictly typed code matching your team's conventions.

🎯 How It Works

1. Automatic Project Onboarding & Persistent Memory (.grooveskills/memory/)

The GrooveSkills Harness is installed automatically as the foundation of your project—never an optional checkbox:

  • First-Time Setup (Automatic Onboarding): Scans your repository (package manager, real package.json scripts, tsconfig.json path aliases, and src/ modules), asks for your preferred communication language, and populates .grooveskills/memory/context.md, decisions.md, tasks/00-onboarding.md, AGENTS.md, and CLAUDE.md.
  • Subsequent Runs (Smart Skill Updates): Detects your existing harness, preserves your memory and language settings untouched, and only updates the skills you select.
  • Re-Onboarding on Demand (init): Run npx @3lineas/grooveskills init anytime to re-scan your project stack and refresh the onboarding context.

2. Smart Stack Detection & Lightweight Agent References

GrooveSkills inspects your project manifests (package.json, Cargo.toml, pyproject.toml) to pre-select recommended skills. All canonical skill files live in .grooveskills/skills/<skill>/, while agent folders receive lightweight reference files (~13 lines) that preserve trigger metadata without duplicating trees in your IDE:

  • Antigravity: .agents/skills/<skill>/SKILL.md
  • Claude Code: .claude/skills/<skill>/SKILL.md
  • Gemini Code Assist: .gemini/skills/<skill>/SKILL.md
  • Cursor IDE: .cursor/rules/<skill>.mdc

3. Organic & Outcome-Driven Development (ODD) & 3-Lane Workflow

Through the built-in odd-ai and groove-harness skills, GrooveSkills guides your AI assistant with a hybrid Organic & Outcome-Driven Development (ODD) methodology:

  • Organic Adaptability: Exploration, documentation, and planning scale proportionally to the complexity of each request—keeping minor tweaks nimble while giving major features solid structure.
  • Outcome Accountability: Instead of stopping as soon as code is generated (Output-Driven), the assistant defines a testable Outcome Hypothesis and verifies it with empirical proof (Outcome-Driven).

The 7-Step ODD Lifecycle

  1. Authorize (Permission Gate): Evaluates whether your prompt authorizes code modifications. Questions, audits, and reviews remain strictly read-only.
  2. Explore Proportionately: Consults .grooveskills/memory/context.md and inspects only the files relevant to the active domain, preserving your token budget and context window.
  3. Resolve Uncertainty Early: Answers technical unknowns by reading the codebase and asks concise, thoughtful questions only when product or design decisions are open.
  4. Classify Semantic Scope: Routes the request into one of three execution lanes based on architectural impact and reversibility rather than line counts.
  5. Track Before First Write & Outcome Hypothesis: Before editing source files on non-trivial tasks, records the plan and a formal hypothesis in .grooveskills/memory/tasks/<slug>.md:

    "By delivering [Output / Technical Change], [Outcome / Verifiable Behavior] will occur, proven by [Evidence / Test / Build Command]."

  6. Execute Proportionate Clean Code: Writes clean, modular code following strict typing (zero any), guard clauses (zero nested ifs), direct imports, and <200 lines per file.
  7. Verify Against Outcomes (Empirical Receipt): Runs deterministic checks (typecheck, test suite, linter, or build), logs the real output under ## Evidence, and updates ## Next for effortless session continuity.
Execution LaneWhen It ActivatesAgent Behavior
Lane 1 — AnswerQuestions, code reviews, audits, or architectural inquiries.Read-only exploration. Inspects context and answers clearly with zero files modified.
Lane 2 — TaskWell-defined features, refactors, or bugfixes.Outcome-driven implementation. Declares an Outcome Hypothesis in memory/tasks/<slug>.md and checks off items only after verifying empirical proof under ## Evidence.
Lane 3 — SpecHigh-impact or multi-domain architectural changes.Collaborative design. Drafts a specification and Outcome Hypothesis in memory/tasks/<slug>.md and aligns with you before writing implementation code.

4. Multilingual, Empathetic UX Communication

Select your preferred language (Español, English, Português, Italiano, or Français) during onboarding so every validation message, toast, and agent interaction remains warm, persuasive, and professional.


🚀 Quick Start

Interactive Wizard (Install or Update Skills)

npx @3lineas/grooveskills

Force Full Project Re-Onboarding (init)

npx @3lineas/grooveskills init

Non-Interactive Mode (CI & Scripting)

# Install skills and initialize harness in Spanish for Claude and Antigravity
npx @3lineas/grooveskills --skills odd-ai best-practices hono --agents antigravity claude -l es -y

# Re-run full project onboarding non-interactively across all AI assistants
npx @3lineas/grooveskills init --agents antigravity claude cursor gemini -l es -y

CLI Options Reference

Command / FlagDescriptionExample
initForce re-run of project onboarding, stack scan & memory contextnpx @3lineas/grooveskills init
-s, --skills <skills...>Space-separated list of skill IDs to install--skills odd-ai best-practices
-a, --agents <agents...>Target AI assistants (antigravity, claude, cursor, gemini)--agents antigravity cursor
-l, --language <lang>Set the language for user-facing copy (es, en, pt, it, fr)-l es
-y, --yesAutomatically confirm updating existing skills-y

📂 Project Structure

my-project/
├── .grooveskills/
│   ├── config.json                  # Manifest of active skills, agents, language & harness state
│   ├── skills/                      # Canonical single source of truth for installed skills
│   └── memory/                      # Persistent project memory (Core Harness control plane)
│       ├── context.md               # Auto-scanned stack, scripts, aliases & architecture map
│       ├── decisions.md             # Architecture Decision Records (ADR)
│       └── tasks/                   # 00-onboarding.md & tasks with Outcome Hypotheses
├── .agents/skills/<skill>/SKILL.md  # Lightweight reference pointer -> .grooveskills/skills/<skill>/SKILL.md
├── .claude/skills/<skill>/SKILL.md  # Lightweight reference pointer -> .grooveskills/skills/<skill>/SKILL.md
├── .gemini/skills/<skill>/SKILL.md  # Lightweight reference pointer -> .grooveskills/skills/<skill>/SKILL.md
├── .cursor/rules/<skill>.mdc        # Lightweight reference rule -> .grooveskills/skills/<skill>/SKILL.md
└── AGENTS.md / CLAUDE.md            # Concise harness pointer <!-- grooveskills:harness -->

📦 Skills Catalog

Skill IDNameArchitectural FocusAuto-Selection Rule
groove-harnessGrooveSkills HarnessODD 3-lane workflow (Answer, Task, Spec), onboarding protocol, ADR logging, and .grooveskills/memory/.Core Harness (Always Installed)
odd-aiOrganic & Outcome-Driven (ODD)7-step ODD protocol for AI agents: authorize, explore, classify, outcome hypotheses, and evidence receipts.Default (Universal)
best-practicesUniversal Best PracticesMulti-language clean code, strict typing (zero any), guard clauses, and <200 lines per file.Default (Universal)
ux-writingUX Writing & MicrocopyWarm, empathetic, conversion-oriented microcopy for validations, CTAs, toasts, and empty states.Default (Universal)
docs-standardsDocumentation & ADR StandardsEnglish documentation rule, relative POSIX links, resilient Mermaid diagrams, ADR lifecycle, and intent docstrings.Default (Universal)
error-handling-loggingError Handling & LoggingPredictable error flows with typed AppError, ActionResponse contracts, and structured logging.Default (Universal)
clean-architecture-dddClean Architecture & DDDDomain-driven module boundaries, single-purpose Actions, pure functions, and immutable data models.Default (Universal)
external-service-adaptersExternal Service Adapters & WrappersDecoupled domain ports, vendor SDK wrappers, and swappable adapters for payment gateways, emails, and APIs.Default (Universal)
storage-file-adaptersStorage & File Adapters (S3, R2, Supabase)Object storage ports, uploads, presigned URLs, and streaming without repository abstractions.Default (Universal)
auth-rbac-policiesAuth Adapters & RBAC/ABAC PoliciesAuthentication adapter ports with AuthenticatedActor and side-effect-free pure authorization policies.Default (Universal)
controller-orchestration-queuesController Orchestration & QueuesAtomic Actions, Controller sequence/transactions, and swappable background Queue adapters.Default (Universal)
webhook-idempotencyWebhook Verifiers & IdempotencyCryptographic HMAC webhook verifiers (Stripe, Svix, MercadoPago) and atomic idempotency guards.Default (Universal)
caching-rate-limitingCache-Aside & Rate LimitingDeclarative cache.remember wrappers and sliding-window rate limiting adapters (Redis, KV, Memory).Default (Universal)
env-feature-flagsFail-Fast Env & Feature FlagsBoot-time fail-fast Valibot environment validation and decoupled feature flag adapters (PostHog, LD).Default (Universal)
typescript-cleanTypeScript Clean Code (5.5+)Modern TypeScript (satisfies, discriminated unions, const generics, unknown narrowing).typescript in package.json
rust-cleanRust Clean Code (Rust 2024)Idiomatic Rust: let-else guard clauses, zero .unwrap(), thiserror typed errors, and Newtypes.Cargo.toml in project root
python-cleanPython Clean Code (Python 3.12+)Modern Python: guard clauses (no nested ifs), strict typing (zero Any), uv, Ruff, and Pyright.pyproject.toml / requirements.txt
valibot-validationValibot Schema ValidationBoundary validation with modular Valibot schemas (* as v from "valibot") and courteous errors.valibot in package.json
testing-vitestVitest Testing StandardsFast, deterministic test suites using Arrange-Act-Assert (AAA) and in-memory fakes.vitest in package.json
honoHono Architecture (Valibot)Scalable Hono APIs with thin route handlers (createRouteHandler), Valibot validation, and isolated Actions.hono in package.json
workers-rpc-precisionWorkers RPC & Precision CalculationsCloudflare Workers native RPC (WorkerEntrypoint / Service<T>) and decimal arithmetic (Decimal + ROUND_HALF_UP).wrangler / @cloudflare/workers-types
frontend-designFrontend Visual Design & IdentityDistinctive, opinionated visual UI design avoiding AI clichés: bespoke tokens, intentional typography, and layout wireframing.react, next, vue, svelte, tailwindcss
react-coreReact Core FundamentalsModern React fundamentals: strictly no React.FC, pure components, immutable state, core hooks, and form domain hooks.react in package.json
react-advancedReact 19 Advanced & CompilerReact Compiler auto-memoization, concurrent rendering, use(), Actions, and RSC boundaries.react in package.json
react-create-pageReact Page & View ArchitectureDeclarative page coordinators (<50 lines), custom domain hooks, and Valibot + Formisch forms.react in package.json

📄 License

Released under the MIT License © 3-Lineas

版本与发布记录

@3lineas/grooveskills 共发布 15 个版本,首次发布于 2026/10/26;过去 12 个月发布了 15 个版本。

版本发布日期距今
1.9.0latest2026/11/043 天前
1.8.02026/11/043 天前
1.7.22026/11/034 天前
1.7.12026/11/034 天前
1.7.02026/11/034 天前
1.6.02026/11/034 天前

关于 @3lineas/grooveskills 的常见问题

@3lineas/grooveskills 是什么?

Multi-agent CLI to install opinionated AI coding skills and architectural standards (Hono, React, Next.js, and more)

如何安装 @3lineas/grooveskills?

在项目目录运行 npm install @3lineas/grooveskills,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 grooveskills,可以用 npx grooveskills 直接运行。

@3lineas/grooveskills 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@3lineas/grooveskills 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@3lineas/grooveskills 可以商用吗?

@3lineas/grooveskills 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@3lineas/grooveskills 的下载量有多少?

根据 npm 官方下载统计,@3lineas/grooveskills 在 2026/10/05 – 2026/11/03 这 30 天内被下载 2,357 次,日均约 79 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@3lineas/grooveskills 还在维护吗?

最新版本 1.9.0 发布于 2026/11/04(3 天前);至今共发布 15 个版本,其中过去 12 个月发布了 15 个;首次发布于 2026/10/26。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。