@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 +115 -49
- 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,81 +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 non-negotiables.
|
|
3
|
+
# GrooveSkills
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
**Architectural Standards & Persistent Project Memory for AI Coding Assistants**
|
|
6
|
+
|
|
7
|
+
[](https://www.npmjs.com/package/@3lineas/grooveskills) [](https://www.typescriptlang.org/) [](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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
##
|
|
17
|
+
## β¨ Overview
|
|
26
18
|
|
|
27
|
-
|
|
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
|
-
|
|
21
|
+
**GrooveSkills** (`@3lineas/grooveskills`) equips any repository with a unified AI engineering control plane through two complementary layers:
|
|
30
22
|
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
74
|
+
## π Quick Start
|
|
44
75
|
|
|
45
|
-
|
|
76
|
+
### Interactive Wizard (Recommended)
|
|
77
|
+
```bash
|
|
78
|
+
npx @3lineas/grooveskills
|
|
79
|
+
```
|
|
46
80
|
|
|
81
|
+
### Non-Interactive Mode (CI & Scripting)
|
|
47
82
|
```bash
|
|
48
|
-
# Install
|
|
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
|
-
#
|
|
52
|
-
npx @3lineas/grooveskills --
|
|
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
|
-
|
|
90
|
+
### CLI Options Reference
|
|
56
91
|
|
|
57
92
|
| Flag | Description | Example |
|
|
58
93
|
| :--- | :--- | :--- |
|
|
59
|
-
| `-s, --skills
|
|
60
|
-
| `-a, --agents
|
|
61
|
-
|
|
|
62
|
-
|
|
|
63
|
-
| `-
|
|
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
|
-
## π¦
|
|
123
|
+
## π¦ Skills Catalog
|
|
68
124
|
|
|
69
|
-
| Skill ID | Name |
|
|
125
|
+
| Skill ID | Name | Architectural Focus | Auto-Selection Rule |
|
|
70
126
|
| :--- | :--- | :--- | :--- |
|
|
71
|
-
| `
|
|
72
|
-
| `
|
|
73
|
-
| `
|
|
74
|
-
| `
|
|
75
|
-
| `
|
|
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://
|
|
147
|
+
Released under the [MIT License](https://opensource.org/licenses/MIT) Β© [3-Lineas](https://3lineas.com/)
|