@draig/lexis-two 1.0.8 → 1.0.9

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.
Files changed (2) hide show
  1. package/README.md +79 -26
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  <p align="center">
2
2
  <picture>
3
- <!-- <source media="(prefers-color-scheme: dark)" srcset="assets/logo-dark.png"> -->
4
- <img src="https://github.com/nitdraig/lexis-two/assets/logo.png" width="220" alt="Lexis-two">
3
+ <img src="https://github.com/nitdraig/lexis-two/blob/main/assets/logo.png" width="220" alt="Lexis-two">
5
4
  </picture>
6
5
  </p>
7
6
 
@@ -29,6 +28,12 @@ Forked and extended from [ponytail](https://github.com/DietrichGebert/ponytail)
29
28
 
30
29
  ---
31
30
 
31
+ ## Excelso Open
32
+
33
+ This project is proud to be part of **Excelso Open**, our open-source and community-focused branch, championing collaborative technology and social impact projects. Learn more about our mission and other projects at [excelso.xyz](https://excelso.xyz).
34
+
35
+ ---
36
+
32
37
  ## What is Lexis?
33
38
 
34
39
  Lexis is a multi-agent ecosystem designed for building premium web apps products efficiently. It enforces a simple philosophy: **the best code is the code never written**.
@@ -130,36 +135,84 @@ More hosts (Windsurf, Gemini CLI, pi, Copilot): see [docs/portability.md](./docs
130
135
 
131
136
  ## Commands
132
137
 
133
- Once installed, these unifed slash commands are available in OpenCode, Gemini CLI, and pi:
138
+ Once installed, these unified slash commands are available in OpenCode, Gemini CLI, and pi. They are designed to streamline your development process, enforce the minimalist Lexis philosophy, and manage technical debt.
134
139
 
135
140
  ### 1. `/lexis` — Core Lexis Commands
136
- Manage Lexis senior dev mode, intensity levels, and quality/security tools under a single unifed command.
141
+ Manage Lexis senior dev mode, intensity levels, and quality/security tools under a single unified command.
142
+
143
+ #### Subcommands in Detail:
144
+
145
+ * **`/lexis status` (Shortcut: `/lexis`)**
146
+ * **What it does:** Reports the current active mode of the plugin (lite/full/ultra/off) and your configured default mode.
147
+ * **When to use:** Use this to verify which intensity level is currently guiding your AI agent.
148
+
149
+ * **`/lexis <lite | full | ultra | off>`**
150
+ * **What it does:** Dynamically switches the intensity level of the smart-lazy ruleset.
151
+ * `lite`: Builds what's asked but suggests a lazier alternative in one line.
152
+ * `full` (Default): Enforces the strict minimalist ladder (YAGNI, stdlib, native, one line, minimum build).
153
+ * `ultra`: YAGNI extremist mode. Challenges requirements, deletes code first, and prefers one-liners.
154
+ * `off`: Fully deactivates Lexis rules for the current session.
155
+ * **When to use:** Use `ultra` when starting a refactoring or cleanup sprint; use `lite` when you have strict, non-negotiable specifications.
156
+
157
+ * **`/lexis plan` (Shortcut: `/lexis p`)**
158
+ * **What it does:** Produces a step-by-step technical plan for a requested feature *before* writing any code. It strictly applies the lazy decision hierarchy to ensure no over-engineering is designed.
159
+ * **When to use:** Run this before starting any new feature to align with the agent on the simplest possible implementation path.
160
+
161
+ * **`/lexis review` (Shortcut: `/lexis r`)**
162
+ * **What it does:** Analyzes your recent git changes (`git diff HEAD`) specifically for over-engineering, dead code, speculative features, reinvented standard libraries, or unnecessary abstractions.
163
+ * **When to use:** Run this before committing or opening a Pull Request to ensure your code is as lean and maintainable as possible.
164
+
165
+ * **`/lexis audit` (Shortcut: `/lexis a`)**
166
+ * **What it does:** Performs a comprehensive, read-only audit of your entire repository (not just a diff) to identify over-engineering, unused dependencies, and redundant boilerplate.
167
+ * **When to use:** Excellent for onboarding onto a new codebase or doing a monthly code cleanup.
168
+
169
+ * **`/lexis debt` (Shortcut: `/lexis d`)**
170
+ * **What it does:** Recursively scans the codebase for `// lexis:` comment tags and compiles them into a prioritized technical debt ledger, categorizing them into *Immediate*, *Next Sprint*, *Backlog*, and *Permanent*.
171
+ * **When to use:** Run this to check what shortcuts were taken and when they need to be upgraded.
137
172
 
138
- | Subcommand | Shortcut | What it does |
139
- | ---------- | -------- | ------------ |
140
- | `/lexis status` | `/lexis` | Shows current mode (lite/full/ultra/off) and default configuration. |
141
- | `/lexis lite` / `full` / `ultra` / `off` | - | Switches the intensity level of the ruleset. |
142
- | `/lexis plan` | `/lexis p` | Plans a feature using the minimalist decision hierarchy before coding. |
143
- | `/lexis review` | `/lexis r` | Reviews recent changes against `AGENTS.md` rules for over-engineering. |
144
- | `/lexis audit` | `/lexis a` | Full codebase audit — over-engineering, deps, structure. |
145
- | `/lexis debt` | `/lexis d` | Surfaces all `// lexis:` comments as a prioritized debt list. |
146
- | `/lexis security` | `/lexis s` | Security audit focused on your stack (Node.js, MongoDB, Next.js). |
147
- | `/lexis help` | `/lexis h` | Shows the quick reference card. |
173
+ * **`/lexis security` (Shortcut: `/lexis s`)**
174
+ * **What it does:** Runs a focused security audit on your stack (optimized for Node.js, Next.js, and MongoDB), checking for NoSQL injection, command injection, XSS, missing route middleware, hardcoded secrets, and unvalidated inputs.
175
+ * **When to use:** Run this before any production deployment or security review.
148
176
 
149
- *(Note: The old individual commands like `/lexis-two-review` are fully supported for backward compatibility but will display a deprecation warning guiding you to use `/lexis` instead.)*
177
+ * **`/lexis help` (Shortcut: `/lexis h`)**
178
+ * **What it does:** Displays a quick reference card with all commands, levels, and configuration options.
179
+
180
+ _(Note: The old individual commands like `/lexis-two-review` are fully supported for backward compatibility but will display a deprecation warning guiding you to use `/lexis` instead.)_
181
+
182
+ ---
150
183
 
151
184
  ### 2. `/specxis` — Spec-Driven Development (v0.5)
152
- Manage the complete Specxis SDD lifecycle for complex features.
153
-
154
- | Subcommand | What it does |
155
- | ---------- | ------------ |
156
- | `/specxis` or `/specxis status` | Shows active specs, tasks progress, and debt. |
157
- | `/specxis new <slug>` | Creates a new spec folder and `proposal.md` applying the lazy check. |
158
- | `/specxis plan <slug>` | Generates `spec.md` and `tasks.md` from `proposal.md`. |
159
- | `/specxis implement <slug>` | Implements the next unchecked task in the active spec. |
160
- | `/specxis review <slug>` | Reviews the implementation against `spec.md` and `AGENTS.md`. |
161
- | `/specxis close <slug>` | Archives the completed spec and syncs its debt to `.specxis/debt.md`. |
162
- | `/specxis debt` | Sincroniza todos los comentarios `// lexis:` del código de forma portable. |
185
+ Manage the complete Specxis SDD lifecycle for complex features. Specxis ensures that developer-agent agreements are persisted as lightweight Markdown files in your repository, keeping requirements lean and focused.
186
+
187
+ #### Subcommands in Detail:
188
+
189
+ * **`/specxis status` (Shortcut: `/specxis`)**
190
+ * **What it does:** Lists all active specifications in `.specxis/active/`, displaying their current status (draft/agreed/implementing/done), task completion progress (e.g., `3/5 tasks checked`), and whether a review has been completed. It also shows a summary of archived specs and open debt.
191
+ * **When to use:** Use this as your central dashboard to see what features are currently in development and their progress.
192
+
193
+ * **`/specxis new <slug>`**
194
+ * **What it does:** Creates a new spec folder at `.specxis/active/[slug]/` and initializes a `proposal.md` file from the Specxis template. It prompts you with the *lazy check* ("Does this feature need to exist? What is the absolute minimum?") to challenge the requirement before planning.
195
+ * **When to use:** Run this when starting a complex feature that touches 3+ files or requires UX/backend coordination.
196
+
197
+ * **`/specxis plan <slug>`**
198
+ * **What it does:** Reads your `proposal.md`, applies the lazy decision hierarchy, and generates `spec.md` (MUST/SHOULD/MAY) and `tasks.md` (a technical task list, max 10 tasks, with each task mapping to exactly one file or function).
199
+ * **When to use:** Run this once the initial proposal is aligned to generate a structured, actionable implementation plan.
200
+
201
+ * **`/specxis implement <slug>`**
202
+ * **What it does:** Finds the first unchecked task in your `tasks.md`, implements it following the `spec.md` MUST requirements and `AGENTS.md` rules, and marks the task as completed (`- [x]`). It implements exactly one task per run to ensure maximum control and quality.
203
+ * **When to use:** Use this to guide the AI agent step-by-step through the implementation of your feature.
204
+
205
+ * **`/specxis review <slug>`**
206
+ * **What it does:** Runs a read-only evaluation of the current implementation against the requirements in `spec.md` and the rules of `AGENTS.md`. It writes its findings (Severity, Location, Issue, Fix) to `review.md`.
207
+ * **When to use:** Run this after implementing your tasks to verify that the feature is fully compliant and clean before closing.
208
+
209
+ * **`/specxis close <slug>`**
210
+ * **What it does:** Verifies that all tasks are completed and no Critical/High findings are open. It then moves the spec folder to `.specxis/archive/[slug]/`, harvests any `// lexis:` comments added during development, and appends them to your global `.specxis/debt.md` ledger.
211
+ * **When to use:** Run this when your feature is fully implemented, tested, and ready to be archived.
212
+
213
+ * **`/specxis debt`**
214
+ * **What it does:** Recursively scans the codebase for `// lexis:` comments and synchronizes them with `.specxis/debt.md` using a highly portable Node.js script.
215
+ * **When to use:** Run this to keep your technical debt ledger perfectly in sync with your codebase.
163
216
 
164
217
  ---
165
218
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@draig/lexis-two",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "The simple way to obtain the best code. Portable rules, skills, and slash commands for AI agents with lowest tokens usage.",
5
5
  "main": "./.opencode/plugins/lexis-two.mjs",
6
6
  "exports": {