@3lineas/grooveskills 1.1.2 β 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 +112 -84
- package/dist/{chunk-5Q6O3BRA.js β chunk-M7ZPBGQE.js} +279 -90
- package/dist/chunk-M7ZPBGQE.js.map +1 -0
- package/dist/cli.js +4 -3
- package/dist/cli.js.map +1 -1
- package/dist/main.d.ts +3 -0
- package/dist/main.js +1 -1
- package/package.json +1 -1
- package/skills/clean-architecture-ddd/SKILL.md +103 -0
- package/skills/error-handling-logging/SKILL.md +105 -0
- package/skills/error-handling-logging/templates/app-error.template.md +44 -0
- package/skills/error-handling-logging/templates/logger.template.md +41 -0
- package/skills/groove-harness/SKILL.md +14 -14
- package/skills/odd-ai/SKILL.md +64 -0
- package/skills/odd-ai/references/odd-protocol-examples.md +57 -0
- package/skills/python-clean/SKILL.md +113 -0
- package/skills/python-clean/references/python-tooling-and-types.md +78 -0
- package/skills/rust-clean/SKILL.md +119 -0
- package/skills/rust-clean/references/rust-error-and-clippy.md +92 -0
- package/skills/testing-vitest/SKILL.md +109 -0
- package/skills/typescript-clean/SKILL.md +111 -0
- package/skills/typescript-clean/references/js-ts-antipatterns.md +91 -0
- package/skills/ux-writing/SKILL.md +103 -0
- package/skills/ux-writing/references/copy-patterns-es-en.md +54 -0
- package/skills/valibot-validation/SKILL.md +102 -0
- package/dist/chunk-5Q6O3BRA.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,119 +1,147 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
2
|
|
|
3
|
-
|
|
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
|
+
[](https://www.npmjs.com/package/@3lineas/grooveskills) [](https://www.typescriptlang.org/) [](https://opensource.org/licenses/MIT)
|
|
28
8
|
|
|
29
|
-
|
|
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
|
-
|
|
11
|
+
[Overview](#-overview) β’ [How It Works](#-how-it-works) β’ [Quick Start](#-quick-start) β’ [Project Structure](#-project-structure) β’ [Skills Catalog](#-skills-catalog)
|
|
32
12
|
|
|
33
|
-
|
|
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
|
-
##
|
|
17
|
+
## β¨ Overview
|
|
58
18
|
|
|
59
|
-
|
|
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
|
-
|
|
21
|
+
**GrooveSkills** (`@3lineas/grooveskills`) equips any repository with a unified AI engineering control plane through two complementary layers:
|
|
62
22
|
|
|
63
|
-
|
|
64
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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`.
|
|
78
71
|
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## π Quick Start
|
|
75
|
+
|
|
76
|
+
### Interactive Wizard (Recommended)
|
|
79
77
|
```bash
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
npx @3lineas/grooveskills
|
|
79
|
+
```
|
|
82
80
|
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
### Non-Interactive Mode (CI & Scripting)
|
|
82
|
+
```bash
|
|
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
|
|
85
85
|
|
|
86
|
-
#
|
|
87
|
-
npx @3lineas/grooveskills --
|
|
86
|
+
# Initialize harness across all supported AI assistants
|
|
87
|
+
npx @3lineas/grooveskills --harness --agents antigravity claude cursor gemini -l es -y
|
|
88
88
|
```
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
### CLI Options Reference
|
|
91
91
|
|
|
92
92
|
| Flag | Description | Example |
|
|
93
93
|
| :--- | :--- | :--- |
|
|
94
|
-
| `-s, --skills <skills...>` |
|
|
95
|
-
| `-a, --agents <agents...>` | Target AI
|
|
96
|
-
| `--harness` | Initialize or update GrooveSkills
|
|
97
|
-
| `--no-harness` |
|
|
98
|
-
| `-
|
|
99
|
-
| `-
|
|
100
|
-
|
|
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
|
+
```
|
|
101
120
|
|
|
102
121
|
---
|
|
103
122
|
|
|
104
|
-
## π¦
|
|
123
|
+
## π¦ Skills Catalog
|
|
105
124
|
|
|
106
|
-
| Skill ID | Name |
|
|
125
|
+
| Skill ID | Name | Architectural Focus | Auto-Selection Rule |
|
|
107
126
|
| :--- | :--- | :--- | :--- |
|
|
108
|
-
| `groove-harness` | **GrooveSkills Harness** |
|
|
109
|
-
| `
|
|
110
|
-
| `
|
|
111
|
-
| `
|
|
112
|
-
| `
|
|
113
|
-
| `
|
|
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` |
|
|
114
142
|
|
|
115
143
|
---
|
|
116
144
|
|
|
117
145
|
## π License
|
|
118
146
|
|
|
119
|
-
MIT Β© [3-Lineas](https://
|
|
147
|
+
Released under the [MIT License](https://opensource.org/licenses/MIT) Β© [3-Lineas](https://3lineas.com/)
|