@3lineas/grooveskills 1.1.0 β†’ 1.3.1

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,81 +1,147 @@
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 non-negotiables.
3
+ # GrooveSkills
5
4
 
6
- ---
5
+ **Architectural Standards & Persistent Project Memory for AI Coding Assistants**
6
+
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)
8
+
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.
7
10
 
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
- - **πŸ€– Multi-Agent Compatibility**:
13
- - **Antigravity**: `.agents/skills/<skill-name>/`
14
- - **Claude Code**: `.claude/skills/<skill-name>/`
15
- - **Cursor IDE**: `.cursor/rules/<skill-name>.mdc` (auto-adapted to Cursor rules format)
16
- - **Gemini Code Assist**: `.gemini/skills/<skill-name>/`
17
- - **✨ Interactive & Friendly CLI**: Clean terminal experience built with `@clack/prompts` and courteous, persuasive feedback.
18
- - **πŸ”— Centralized Global Store & Symlinks**: Skills are synced globally to `~/.grooveskills/` and linked into local projects via symlinks. Updates to global skills instantly reflect across all your projects with zero file duplication.
19
- - **πŸ›‘οΈ Battle-tested Architectural Standards**:
20
- - **Universal Best Practices**: Multi-language clean code (TypeScript, PHP, Dart, Rust, etc.), early returns, zero barrel files, strict typing, <200 lines per file.
21
- - **Hono API Architecture**: Independent routes by domain, isolated Actions layer, database queries exclusively inside Actions, strict Valibot validation, and Cloudflare/Hono RPC.
11
+ [Overview](#-overview) β€’ [How It Works](#-how-it-works) β€’ [Quick Start](#-quick-start) β€’ [Project Structure](#-project-structure) β€’ [Skills Catalog](#-skills-catalog)
12
+
13
+ </div>
22
14
 
23
15
  ---
24
16
 
25
- ## πŸš€ Usage
17
+ ## ✨ Overview
26
18
 
27
- ### 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.
28
20
 
29
- 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:
30
22
 
31
- ```bash
32
- npx @3lineas/grooveskills
33
- ```
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. |
27
+
28
+ ---
34
29
 
35
- GrooveSkills will automatically:
36
- 1. Detect any active AI agent folders (`.agents`, `.claude`, `.cursor`, `.gemini`).
37
- 2. Scan your project dependencies (`package.json`) and pre-select the recommended skills.
38
- 3. Guide you through an interactive multi-select menu.
39
- 4. Install and configure the skills for all chosen AI agents.
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.
68
+
69
+ ### 5. Clean & 100% Portable Repository Layout
70
+ All assets reside in `.grooveskills/` and connect to agent directories via **relative symlinks** (`../../.grooveskills/...`), making the environment instantly portable upon `git clone`.
40
71
 
41
72
  ---
42
73
 
43
- ### 2. Direct / Automated Mode (CI / Scripting)
74
+ ## πŸš€ Quick Start
44
75
 
45
- Install specific skills for targeted agents without interactive prompts:
76
+ ### Interactive Wizard (Recommended)
77
+ ```bash
78
+ npx @3lineas/grooveskills
79
+ ```
46
80
 
81
+ ### Non-Interactive Mode (CI & Scripting)
47
82
  ```bash
48
- # Install specific skills for selected agents
49
- npx @3lineas/grooveskills --skills best-practices hono --agents antigravity claude
83
+ # Install skills and initialize harness in Spanish for Claude and Antigravity
84
+ npx @3lineas/grooveskills --skills odd-ai best-practices hono --agents antigravity claude --harness -l es -y
50
85
 
51
- # Automatically confirm overwrite of existing skills
52
- npx @3lineas/grooveskills --skills best-practices hono --agents antigravity claude cursor gemini --yes
86
+ # Initialize harness across all supported AI assistants
87
+ npx @3lineas/grooveskills --harness --agents antigravity claude cursor gemini -l es -y
53
88
  ```
54
89
 
55
- #### CLI Options
90
+ ### CLI Options Reference
56
91
 
57
92
  | Flag | Description | Example |
58
93
  | :--- | :--- | :--- |
59
- | `-s, --skills` | Space-separated list of skill IDs to install | `--skills best-practices hono` |
60
- | `-a, --agents` | Target AI agents (`antigravity`, `claude`, `cursor`, `gemini`) | `--agents antigravity cursor` |
61
- | `-y, --yes` | Automatically overwrite existing skills | `--yes` |
62
- | `-h, --help` | Display command help and options | `--help` |
63
- | `-V, --version` | Display the installed version of GrooveSkills | `--version` |
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
+ | `--harness` | Initialize or update the GrooveSkills Harness in `.grooveskills/` | `--harness` |
97
+ | `--no-harness` | Install selected skills without initializing the project harness | `--no-harness` |
98
+ | `-l, --language <lang>` | Set the language for user-facing copy (`es`, `en`, `pt`, `it`, `fr`) | `-l es` |
99
+ | `-y, --yes` | Automatically confirm updating existing skill links | `-y` |
100
+
101
+ ---
102
+
103
+ ## πŸ“‚ Project Structure
104
+
105
+ ```text
106
+ my-project/
107
+ β”œβ”€β”€ .grooveskills/
108
+ β”‚ β”œβ”€β”€ config.json # Manifest of active skills, agents, language & harness state
109
+ β”‚ β”œβ”€β”€ skills/ # Self-contained copy of installed skills
110
+ β”‚ β”œβ”€β”€ cursor-rules/ # Generated .mdc rules (when Cursor IDE is selected)
111
+ β”‚ └── memory/ # Persistent project memory (when Harness is enabled)
112
+ β”‚ β”œβ”€β”€ context.md # Stack overview, conventions & essential commands
113
+ β”‚ β”œβ”€β”€ decisions.md # Architecture Decision Records (ADR)
114
+ β”‚ └── tasks/ # Tasks with Outcome Hypotheses & Evidence receipts
115
+ β”œβ”€β”€ .agents/skills/* # Relative symlinks -> ../../.grooveskills/skills/*
116
+ β”œβ”€β”€ .claude/skills/* # Relative symlinks -> ../../.grooveskills/skills/*
117
+ β”œβ”€β”€ .cursor/rules/*.mdc # Relative symlinks -> ../../.grooveskills/cursor-rules/*.mdc
118
+ └── AGENTS.md / CLAUDE.md # Concise harness pointer <!-- grooveskills:harness -->
119
+ ```
64
120
 
65
121
  ---
66
122
 
67
- ## πŸ“¦ Available Skills
123
+ ## πŸ“¦ Skills Catalog
68
124
 
69
- | Skill ID | Name | Description | Suggested When |
125
+ | Skill ID | Name | Architectural Focus | Auto-Selection Rule |
70
126
  | :--- | :--- | :--- | :--- |
71
- | `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) |
72
- | `hono` | **Hono Architecture (Valibot)** | Enterprise Hono standard: Valibot validation, Actions layer, RPC bindings, AppError. | Detected `hono`, `@hono/valibot-validator`, etc. |
73
- | `react-core` | **React Core Fundamentals** | Opinionated React fundamentals: function components, JSX, immutable state, core hooks, lists, and controlled inputs. | Detected `react`, `react-dom` |
74
- | `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` |
75
- | `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` |
127
+ | `groove-harness` | **GrooveSkills Harness** | ODD 3-lane workflow (Answer, Task, Spec), ADR logging, and task checklists in `.grooveskills/memory/`. | Included with `--harness` |
128
+ | `odd-ai` | **Organic & Outcome-Driven (ODD)** | 7-step ODD protocol for AI agents: authorize, explore, classify, outcome hypotheses, and evidence receipts. | Included with `--harness` |
129
+ | `best-practices` | **Universal Best Practices** | Multi-language clean code, strict typing (zero `any`), guard clauses, and `<200` lines per file. | **Default (Universal)** |
130
+ | `ux-writing` | **UX Writing & Microcopy** | Warm, empathetic, conversion-oriented microcopy for validations, CTAs, toasts, and empty states. | **Default (Universal)** |
131
+ | `error-handling-logging` | **Error Handling & Logging** | Predictable error flows with typed `AppError`, `ActionResponse` contracts, and structured logging. | **Default (Universal)** |
132
+ | `clean-architecture-ddd` | **Clean Architecture & DDD** | Domain-driven module boundaries, single-purpose Actions, pure functions, and immutable data models. | **Default (Universal)** |
133
+ | `typescript-clean` | **TypeScript Clean Code (5.5+)** | Modern TypeScript (`satisfies`, discriminated unions, `const` generics, `unknown` narrowing). | `typescript` in `package.json` |
134
+ | `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 |
135
+ | `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` |
136
+ | `valibot-validation` | **Valibot Schema Validation** | Boundary validation with modular Valibot schemas (`* as v from "valibot"`) and courteous errors. | `valibot` in `package.json` |
137
+ | `testing-vitest` | **Vitest Testing Standards** | Fast, deterministic test suites using Arrange-Act-Assert (AAA) and in-memory fakes. | `vitest` in `package.json` |
138
+ | `hono` | **Hono Architecture (Valibot)** | Scalable Hono APIs with domain-split routes, isolated Actions, and end-to-end Hono RPC types. | `hono` in `package.json` |
139
+ | `react-core` | **React Core Fundamentals** | Pure components, immutable state, clean hook composition, and controlled inputs. | `react` in `package.json` |
140
+ | `react-advanced` | **React 19 Advanced & Compiler** | React Compiler auto-memoization, concurrent rendering, `use()`, Actions, and RSC boundaries. | `react` in `package.json` |
141
+ | `react-create-page` | **React Page & View Architecture** | Declarative page coordinators (`<50` lines), custom domain hooks, and Valibot + Formisch forms. | `react` in `package.json` |
76
142
 
77
143
  ---
78
144
 
79
145
  ## πŸ“„ License
80
146
 
81
- MIT Β© [3-Lineas](https://github.com/3-Lineas)
147
+ Released under the [MIT License](https://opensource.org/licenses/MIT) Β© [3-Lineas](https://3lineas.com/)