@3lineas/grooveskills 1.1.2 β†’ 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,119 +1,146 @@
1
- # GrooveSkills πŸš€
1
+ <div align="center">
2
2
 
3
- > **Multi-Agent AI Skills & Architectural Standards Installer**
4
- > Empower your AI coding pairs (Antigravity, Claude Code, Cursor, Gemini) with your team's real-world architectural habits, clean code patterns, and an encapsulated project control plane.
3
+ # GrooveSkills
5
4
 
6
- ---
7
-
8
- ## 🌟 Features
9
-
10
- - **⚑ Zero Configuration (`npx @3lineas/grooveskills`)**: Run inside any project root to inspect the environment and synchronize AI skills instantly.
11
- - **🎯 Smart Stack Detection**: Automatically inspects `package.json` dependencies and pre-selects matching skills (e.g. Hono, Valibot, React, Next.js).
12
- - **πŸ›‘οΈ Encapsulated Project Harness (`.grooveskills/`)**:
13
- - **Context & Architecture (`memory/context.md`)**: Instant architectural orientation for your AI agent.
14
- - **Architecture Decision Records (`memory/decisions.md`)**: Clean, append-only log of technical choices and rationale.
15
- - **Task & Evidence Tracking (`memory/tasks/`)**: Feature tasks tracked with real observed proof (tests, typecheck, builds) before completion.
16
- - **3-Lane Execution Discipline**: Guides agents through *Answer* (read-only), *Task* (direct implementation), and *Spec* (complex architecture review).
17
- - **πŸ”— Local Project Store & Relative Symlinks**:
18
- - All installed skills and generated Cursor `.mdc` rules are stored directly inside `<project>/.grooveskills/`.
19
- - Agent directories (`.agents`, `.claude`, `.cursor`, `.gemini`) use **relative symlinks** (`../../.grooveskills/...`), making the repository **100% portable across teams and git checkouts**.
20
- - **πŸ€– Multi-Agent Compatibility**:
21
- - **Antigravity**: `.agents/skills/<skill-name>/`
22
- - **Claude Code**: `.claude/skills/<skill-name>/`
23
- - **Cursor IDE**: `.cursor/rules/<skill-name>.mdc` (auto-adapted from markdown to Cursor `.mdc`)
24
- - **Gemini Code Assist**: `.gemini/skills/<skill-name>/`
25
- - **✨ Interactive & Friendly CLI**: Clean terminal wizard built with `@clack/prompts` offering interactive skill selection, agent targeting, and harness initialization.
5
+ **Architectural Standards & Persistent Project Memory for AI Coding Assistants**
26
6
 
27
- ---
7
+ [![npm version](https://img.shields.io/npm/v/@3lineas/grooveskills.svg?style=flat-square&color=cb3837)](https://www.npmjs.com/package/@3lineas/grooveskills) [![TypeScript](https://img.shields.io/badge/TypeScript-5.9-3178c6?style=flat-square&logo=typescript&logoColor=white)](https://www.typescriptlang.org/) [![License: MIT](https://img.shields.io/badge/License-MIT-10b981?style=flat-square)](https://opensource.org/licenses/MIT)
28
8
 
29
- ## πŸ“‚ Project Architecture
9
+ 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.
30
10
 
31
- When GrooveSkills is initialized in a repository, it keeps all state cleanly encapsulated inside `.grooveskills/` without cluttering the project root:
11
+ [Overview](#-overview) β€’ [How It Works](#-how-it-works) β€’ [Quick Start](#-quick-start) β€’ [Project Structure](#-project-structure) β€’ [Skills Catalog](#-skills-catalog)
32
12
 
33
- ```text
34
- my-project/
35
- β”œβ”€β”€ .grooveskills/
36
- β”‚ β”œβ”€β”€ config.json # Project skills & agents manifest
37
- β”‚ β”œβ”€β”€ skills/ # Local copy of selected skills
38
- β”‚ β”‚ β”œβ”€β”€ best-practices/
39
- β”‚ β”‚ └── groove-harness/
40
- β”‚ β”œβ”€β”€ cursor-rules/ # Local .mdc rules for Cursor IDE
41
- β”‚ β”‚ β”œβ”€β”€ best-practices.mdc
42
- β”‚ β”‚ └── groove-harness.mdc
43
- β”‚ └── memory/ # Active project memory
44
- β”‚ β”œβ”€β”€ context.md # Stack, conventions & key commands
45
- β”‚ β”œβ”€β”€ decisions.md # Architecture Decision Records (ADR)
46
- β”‚ └── tasks/
47
- β”‚ └── _template.md # Template for feature intent & evidence
48
- β”œβ”€β”€ .agents/skills/* # Relative symlinks -> ../../.grooveskills/skills/*
49
- β”œβ”€β”€ .claude/skills/* # Relative symlinks -> ../../.grooveskills/skills/*
50
- β”œβ”€β”€ .gemini/skills/* # Relative symlinks -> ../../.grooveskills/skills/*
51
- β”œβ”€β”€ .cursor/rules/*.mdc # Relative symlinks -> ../../.grooveskills/cursor-rules/*.mdc
52
- └── AGENTS.md / CLAUDE.md # Minimal harness pointer block <!-- grooveskills:harness -->
53
- ```
13
+ </div>
54
14
 
55
15
  ---
56
16
 
57
- ## πŸš€ Usage
17
+ ## ✨ Overview
58
18
 
59
- ### 1. Interactive Mode (Recommended)
19
+ AI coding assistants perform at their highest potential when they share your team's context, architectural habits, and empirical quality standards across every session.
60
20
 
61
- Run directly in the root of any project:
21
+ **GrooveSkills** (`@3lineas/grooveskills`) equips any repository with a unified AI engineering control plane through two complementary layers:
62
22
 
63
- ```bash
64
- npx @3lineas/grooveskills
65
- ```
66
-
67
- GrooveSkills will automatically:
68
- 1. Detect any active AI agent folders (`.agents`, `.claude`, `.cursor`, `.gemini`).
69
- 2. Scan your project dependencies (`package.json`) and pre-select recommended skills.
70
- 3. Prompt whether you want to initialize the **GrooveSkills Harness** in `.grooveskills/`.
71
- 4. Install skills, generate agent configurations, and link everything via portable relative symlinks.
23
+ | Layer | Purpose | Key Benefit |
24
+ | :--- | :--- | :--- |
25
+ | **1. Curated Architectural Skills** | Battle-tested engineering standards covering Clean Code, TypeScript 5.5+, Valibot, Hono RPC, React 19, Vitest, and UX Writing. | Your AI assistant writes clean, modular, strictly typed code matching your conventions. |
26
+ | **2. Encapsulated Project Harness (`.grooveskills/`)** | Lightweight memory and an Organic & Outcome-Driven (ODD) 3-lane workflow stored inside your repository. | Every session starts oriented on your stack, ADR records, outcome hypotheses, and verified checklists. |
72
27
 
73
28
  ---
74
29
 
75
- ### 2. Direct / Automated Mode (CI / Scripting)
30
+ ## 🎯 How It Works
31
+
32
+ ### 1. Smart Stack Detection & Multi-Agent Adaptation
33
+ GrooveSkills inspects dependencies (`hono`, `react`, `valibot`, `typescript`, `vitest`, `rust`, `python`) and pre-selects recommended skills, linking them automatically:
34
+ - **Antigravity**: `.agents/skills/<skill>/SKILL.md`
35
+ - **Claude Code**: `.claude/skills/<skill>/SKILL.md`
36
+ - **Gemini Code Assist**: `.gemini/skills/<skill>/SKILL.md`
37
+ - **Cursor IDE**: `.cursor/rules/<skill>.mdc`
38
+
39
+ ### 2. Persistent Project Memory (`.grooveskills/memory/`)
40
+ Enabling the harness creates an encapsulated knowledge plane and configures `AGENTS.md` and `CLAUDE.md`:
41
+ - **`context.md`**: Summarizes your stack, conventions, and essential commands.
42
+ - **`decisions.md`**: An append-only Architecture Decision Record (ADR) log.
43
+ - **`tasks/<slug>.md`**: Feature records tracking outcome hypotheses and verification receipts.
44
+
45
+ ### 3. Organic & Outcome-Driven Development (ODD) & 3-Lane Workflow
46
+ Through the built-in `odd-ai` and `groove-harness` skills, GrooveSkills guides your AI assistant with a hybrid **Organic & Outcome-Driven Development (ODD)** methodology:
47
+ - **Organic Adaptability**: Exploration, documentation, and planning scale proportionally to the complexity of each requestβ€”keeping minor tweaks nimble while giving major features solid structure.
48
+ - **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*).
49
+
50
+ #### The 7-Step ODD Lifecycle
51
+ 1. **Authorize (Permission Gate)**: Evaluates whether your prompt authorizes code modifications. Questions, audits, and reviews remain strictly **read-only**.
52
+ 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.
53
+ 3. **Resolve Uncertainty Early**: Answers technical unknowns by reading the codebase and asks concise, thoughtful questions only when product or design decisions are open.
54
+ 4. **Classify Semantic Scope**: Routes the request into one of three execution lanes based on architectural impact and reversibility rather than line counts.
55
+ 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`:
56
+ > *"By delivering `[Output / Technical Change]`, `[Outcome / Verifiable Behavior]` will occur, proven by `[Evidence / Test / Build Command]`."*
57
+ 6. **Execute Proportionate Clean Code**: Writes clean, modular code following strict typing (zero `any`), guard clauses (zero nested `if`s), direct imports, and `<200` lines per file.
58
+ 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.
59
+
60
+ | Execution Lane | When It Activates | Agent Behavior |
61
+ | :--- | :--- | :--- |
62
+ | **Lane 1 β€” Answer** | Questions, code reviews, audits, or architectural inquiries. | **Read-only exploration.** Inspects context and answers clearly with zero files modified. |
63
+ | **Lane 2 β€” Task** | Well-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`. |
64
+ | **Lane 3 β€” Spec** | High-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. |
65
+
66
+ ### 4. Multilingual, Empathetic UX Communication
67
+ Select your preferred language (**EspaΓ±ol, English, PortuguΓͺs, Italiano, or FranΓ§ais**) during setup so every validation message, toast, and agent interaction remains warm, persuasive, and professional.
76
68
 
77
- Install specific skills or the harness directly without interactive prompts:
69
+ ### 5. Clean & 100% Portable Repository Layout
70
+ All canonical skills and project memory reside in `.grooveskills/`. Agent directories (`.agents/`, `.claude/`, `.gemini/`, `.cursor/`) contain **lightweight reference files** that preserve original trigger metadata and instruct each AI agent to consult the canonical specification in `.grooveskills/skills/<skill>/SKILL.md`.
78
71
 
72
+ ---
73
+
74
+ ## πŸš€ Quick Start
75
+
76
+ ### Interactive Wizard (Recommended)
79
77
  ```bash
80
- # Install skills and initialize the project harness for selected agents
81
- npx @3lineas/grooveskills --skills best-practices hono --agents antigravity claude --harness -y
78
+ npx @3lineas/grooveskills
79
+ ```
82
80
 
83
- # Initialize only the harness across all supported agents
84
- npx @3lineas/grooveskills --harness --agents antigravity claude cursor gemini -y
81
+ ### Non-Interactive Mode (CI & Scripting)
82
+ ```bash
83
+ # Install skills and configure harness in Spanish for Claude and Antigravity
84
+ npx @3lineas/grooveskills --skills odd-ai best-practices hono --agents antigravity claude -l es -y
85
85
 
86
- # Skip harness initialization when installing skills
87
- npx @3lineas/grooveskills --skills react-core --agents cursor --no-harness -y
86
+ # Configure harness and skills across all supported AI assistants
87
+ npx @3lineas/grooveskills --agents antigravity claude cursor gemini -l es -y
88
88
  ```
89
89
 
90
- #### CLI Options
90
+ ### CLI Options Reference
91
91
 
92
92
  | Flag | Description | Example |
93
93
  | :--- | :--- | :--- |
94
- | `-s, --skills <skills...>` | Specific skill IDs to install | `--skills best-practices hono` |
95
- | `-a, --agents <agents...>` | Target AI agents (`antigravity`, `claude`, `cursor`, `gemini`) | `--agents antigravity cursor` |
94
+ | `-s, --skills <skills...>` | Space-separated list of skill IDs to install | `--skills odd-ai best-practices` |
95
+ | `-a, --agents <agents...>` | Target AI assistants (`antigravity`, `claude`, `cursor`, `gemini`) | `--agents antigravity cursor` |
96
96
  | `--harness` | Initialize or update GrooveSkills project harness in `.grooveskills/` | `--harness` |
97
- | `--no-harness` | Explicitly skip harness initialization | `--no-harness` |
98
- | `-y, --yes` | Automatically overwrite existing skills | `-y` |
99
- | `-h, --help` | Display command help and options | `--help` |
100
- | `-V, --version` | Display installed version | `--version` |
97
+ | `-l, --language <lang>` | Set the language for user-facing copy (`es`, `en`, `pt`, `it`, `fr`) | `-l es` |
98
+ | `-y, --yes` | Automatically confirm updating existing skills | `-y` |
99
+
100
+ ---
101
+
102
+ ## πŸ“‚ Project Structure
103
+
104
+ ```text
105
+ my-project/
106
+ β”œβ”€β”€ .grooveskills/
107
+ β”‚ β”œβ”€β”€ config.json # Manifest of active skills, agents, language & harness state
108
+ β”‚ β”œβ”€β”€ skills/ # Canonical single source of truth for installed skills
109
+ β”‚ └── memory/ # Persistent project memory (Harness control plane)
110
+ β”‚ β”œβ”€β”€ context.md # Stack overview, conventions & essential commands
111
+ β”‚ β”œβ”€β”€ decisions.md # Architecture Decision Records (ADR)
112
+ β”‚ └── tasks/ # Tasks with Outcome Hypotheses & Evidence receipts
113
+ β”œβ”€β”€ .agents/skills/<skill>/SKILL.md # Lightweight reference pointer -> .grooveskills/skills/<skill>/SKILL.md
114
+ β”œβ”€β”€ .claude/skills/<skill>/SKILL.md # Lightweight reference pointer -> .grooveskills/skills/<skill>/SKILL.md
115
+ β”œβ”€β”€ .gemini/skills/<skill>/SKILL.md # Lightweight reference pointer -> .grooveskills/skills/<skill>/SKILL.md
116
+ β”œβ”€β”€ .cursor/rules/<skill>.mdc # Lightweight reference rule -> .grooveskills/skills/<skill>/SKILL.md
117
+ └── AGENTS.md / CLAUDE.md # Concise harness pointer <!-- grooveskills:harness -->
118
+ ```
101
119
 
102
120
  ---
103
121
 
104
- ## πŸ“¦ Available Skills
122
+ ## πŸ“¦ Skills Catalog
105
123
 
106
- | Skill ID | Name | Description | Suggested When |
124
+ | Skill ID | Name | Architectural Focus | Auto-Selection Rule |
107
125
  | :--- | :--- | :--- | :--- |
108
- | `groove-harness` | **GrooveSkills Harness** | Lightweight project control plane, context memory, and 3-lane task execution (Answer, Task, Spec). | Installed automatically with `--harness` or manually. |
109
- | `best-practices` | **Universal Best Practices** | Multi-language clean code, early returns, no barrel files, strict typing, <200 lines. | **Always suggested by default** (Any language/file) |
110
- | `hono` | **Hono Architecture (Valibot)** | Enterprise Hono standard: Valibot validation, Actions layer, RPC bindings, AppError. | Detected `hono`, `@hono/valibot-validator`, etc. |
111
- | `react-core` | **React Core Fundamentals** | Opinionated React fundamentals: function components, JSX, immutable state, core hooks, lists, and controlled inputs. | Detected `react`, `react-dom` |
112
- | `react-advanced` | **React 19 Advanced & Compiler Architecture** | React 19 platform features: React Compiler 1.0, concurrent rendering, `use()`, Actions, virtualization, and RSC boundaries. | Detected `react`, `react-dom` |
113
- | `react-create-page` | **React Page & View Architecture** | Declarative page coordinators, domain hooks, isolated API actions, Valibot + Formisch forms, and atomic co-location. | Detected `react`, `react-dom` |
126
+ | `groove-harness` | **GrooveSkills Harness** | ODD 3-lane workflow (Answer, Task, Spec), ADR logging, and task checklists in `.grooveskills/memory/`. | Included with `--harness` |
127
+ | `odd-ai` | **Organic & Outcome-Driven (ODD)** | 7-step ODD protocol for AI agents: authorize, explore, classify, outcome hypotheses, and evidence receipts. | Included with `--harness` |
128
+ | `best-practices` | **Universal Best Practices** | Multi-language clean code, strict typing (zero `any`), guard clauses, and `<200` lines per file. | **Default (Universal)** |
129
+ | `ux-writing` | **UX Writing & Microcopy** | Warm, empathetic, conversion-oriented microcopy for validations, CTAs, toasts, and empty states. | **Default (Universal)** |
130
+ | `error-handling-logging` | **Error Handling & Logging** | Predictable error flows with typed `AppError`, `ActionResponse` contracts, and structured logging. | **Default (Universal)** |
131
+ | `clean-architecture-ddd` | **Clean Architecture & DDD** | Domain-driven module boundaries, single-purpose Actions, pure functions, and immutable data models. | **Default (Universal)** |
132
+ | `typescript-clean` | **TypeScript Clean Code (5.5+)** | Modern TypeScript (`satisfies`, discriminated unions, `const` generics, `unknown` narrowing). | `typescript` in `package.json` |
133
+ | `rust-clean` | **Rust Clean Code (Rust 2024)** | Idiomatic Rust: `let-else` guard clauses, zero `.unwrap()`, `thiserror` typed errors, and Newtypes. | `Cargo.toml` in project root |
134
+ | `python-clean` | **Python Clean Code (Python 3.12+)** | Modern Python: guard clauses (no nested ifs), strict typing (zero `Any`), uv, Ruff, and Pyright. | `pyproject.toml` / `requirements.txt` |
135
+ | `valibot-validation` | **Valibot Schema Validation** | Boundary validation with modular Valibot schemas (`* as v from "valibot"`) and courteous errors. | `valibot` in `package.json` |
136
+ | `testing-vitest` | **Vitest Testing Standards** | Fast, deterministic test suites using Arrange-Act-Assert (AAA) and in-memory fakes. | `vitest` in `package.json` |
137
+ | `hono` | **Hono Architecture (Valibot)** | Scalable Hono APIs with domain-split routes, isolated Actions, and end-to-end Hono RPC types. | `hono` in `package.json` |
138
+ | `react-core` | **React Core Fundamentals** | Pure components, immutable state, clean hook composition, and controlled inputs. | `react` in `package.json` |
139
+ | `react-advanced` | **React 19 Advanced & Compiler** | React Compiler auto-memoization, concurrent rendering, `use()`, Actions, and RSC boundaries. | `react` in `package.json` |
140
+ | `react-create-page` | **React Page & View Architecture** | Declarative page coordinators (`<50` lines), custom domain hooks, and Valibot + Formisch forms. | `react` in `package.json` |
114
141
 
115
142
  ---
116
143
 
117
144
  ## πŸ“„ License
118
145
 
119
- MIT Β© [3-Lineas](https://github.com/3-Lineas)
146
+ Released under the [MIT License](https://opensource.org/licenses/MIT) Β© [3-Lineas](https://3lineas.com/)