@lenne.tech/cli 1.2.0 → 1.3.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.
Files changed (36) hide show
  1. package/build/commands/claude/install-plugin.js +339 -0
  2. package/package.json +1 -1
  3. package/build/commands/claude/install-commands.js +0 -337
  4. package/build/commands/claude/install-mcps.js +0 -258
  5. package/build/commands/claude/install-skills.js +0 -693
  6. package/build/lib/mcp-registry.js +0 -80
  7. package/build/templates/claude-commands/code-cleanup.md +0 -82
  8. package/build/templates/claude-commands/commit-message.md +0 -21
  9. package/build/templates/claude-commands/create-story.md +0 -435
  10. package/build/templates/claude-commands/mr-description-clipboard.md +0 -48
  11. package/build/templates/claude-commands/mr-description.md +0 -33
  12. package/build/templates/claude-commands/sec-review.md +0 -62
  13. package/build/templates/claude-commands/skill-optimize.md +0 -481
  14. package/build/templates/claude-commands/test-generate.md +0 -45
  15. package/build/templates/claude-skills/building-stories-with-tdd/SKILL.md +0 -265
  16. package/build/templates/claude-skills/building-stories-with-tdd/code-quality.md +0 -276
  17. package/build/templates/claude-skills/building-stories-with-tdd/database-indexes.md +0 -182
  18. package/build/templates/claude-skills/building-stories-with-tdd/examples.md +0 -1383
  19. package/build/templates/claude-skills/building-stories-with-tdd/handling-existing-tests.md +0 -197
  20. package/build/templates/claude-skills/building-stories-with-tdd/reference.md +0 -1427
  21. package/build/templates/claude-skills/building-stories-with-tdd/security-review.md +0 -307
  22. package/build/templates/claude-skills/building-stories-with-tdd/workflow.md +0 -1004
  23. package/build/templates/claude-skills/generating-nest-servers/SKILL.md +0 -303
  24. package/build/templates/claude-skills/generating-nest-servers/configuration.md +0 -285
  25. package/build/templates/claude-skills/generating-nest-servers/declare-keyword-warning.md +0 -133
  26. package/build/templates/claude-skills/generating-nest-servers/description-management.md +0 -226
  27. package/build/templates/claude-skills/generating-nest-servers/examples.md +0 -893
  28. package/build/templates/claude-skills/generating-nest-servers/framework-guide.md +0 -259
  29. package/build/templates/claude-skills/generating-nest-servers/quality-review.md +0 -864
  30. package/build/templates/claude-skills/generating-nest-servers/reference.md +0 -487
  31. package/build/templates/claude-skills/generating-nest-servers/security-rules.md +0 -371
  32. package/build/templates/claude-skills/generating-nest-servers/verification-checklist.md +0 -262
  33. package/build/templates/claude-skills/generating-nest-servers/workflow-process.md +0 -1061
  34. package/build/templates/claude-skills/using-lt-cli/SKILL.md +0 -284
  35. package/build/templates/claude-skills/using-lt-cli/examples.md +0 -546
  36. package/build/templates/claude-skills/using-lt-cli/reference.md +0 -513
@@ -1,513 +0,0 @@
1
- ---
2
- name: lt-cli-reference
3
- version: 1.0.0
4
- description: Quick reference for Git operations and Fullstack initialization commands
5
- ---
6
-
7
- # LT CLI Quick Reference
8
-
9
- ⚠️ **Note**: For NestJS server command reference (modules, objects, properties), see the **nest-server-generator skill** instead.
10
-
11
- ## Table of Contents
12
- - [Command Cheat Sheet](#command-cheat-sheet)
13
- - [Git Commands Reference](#git-commands-reference)
14
- - [Fullstack Commands Reference](#fullstack-commands-reference)
15
- - [Common Patterns](#common-patterns)
16
- - [Troubleshooting](#troubleshooting)
17
- - [Best Practices](#best-practices)
18
- - [Quick Tips](#quick-tips)
19
- - [Related Commands](#related-commands)
20
- - [References](#references)
21
-
22
- ---
23
-
24
- ## Command Cheat Sheet
25
-
26
- ### Git Commands
27
-
28
- #### Get Branch (Checkout/Create)
29
- ```bash
30
- # Interactive (prompts for branch name)
31
- lt git get
32
- lt git g
33
-
34
- # Non-interactive
35
- lt git get <branch-name>
36
- lt git g <branch-name>
37
- ```
38
-
39
- **Parameters:**
40
- - `<branch-name>`: Branch name to checkout/create
41
-
42
- **What it does:**
43
- 1. Checks if branch exists locally → switches to it
44
- 2. If not local, checks remote → checks out and tracks
45
- 3. If neither exists → creates new branch from current
46
-
47
- **Examples:**
48
- ```bash
49
- lt git get DEV-123
50
- lt git get feature/new-auth
51
- lt git g main
52
- ```
53
-
54
- #### Reset to Remote
55
- ```bash
56
- # Interactive (prompts for confirmation)
57
- lt git reset
58
-
59
- # Prompts: "Reset current branch to origin/<branch>? (y/N)"
60
- ```
61
-
62
- **What it does:**
63
- 1. Fetches latest from remote
64
- 2. Resets current branch to `origin/<current-branch>`
65
- 3. Discards ALL local changes and commits
66
-
67
- **⚠️ WARNING**: Destructive operation - cannot be undone!
68
-
69
- ---
70
-
71
- ### Fullstack Commands
72
-
73
- #### Initialize Fullstack Workspace
74
- ```bash
75
- # Interactive (prompts for all options)
76
- lt fullstack init
77
- lt full init
78
-
79
- # Non-interactive
80
- lt fullstack init \
81
- --name <WorkspaceName> \
82
- --frontend <angular|nuxt> \
83
- --git <true|false> \
84
- [--git-link <GitURL>]
85
- ```
86
-
87
- **Required Parameters:**
88
- - `--name`: Workspace/project name (PascalCase recommended)
89
- - `--frontend`: Frontend framework (`angular` or `nuxt`)
90
- - `--git`: Initialize git repository (`true` or `false`)
91
-
92
- **Optional Parameters:**
93
- - `--git-link`: Git repository URL (only when `--git true`)
94
-
95
- **Examples:**
96
- ```bash
97
- # With git and remote
98
- lt fullstack init \
99
- --name MyApp \
100
- --frontend angular \
101
- --git true \
102
- --git-link https://github.com/user/myapp.git
103
-
104
- # Without git
105
- lt fullstack init \
106
- --name TestProject \
107
- --frontend nuxt \
108
- --git false
109
-
110
- # With git but no remote (add later)
111
- lt fullstack init \
112
- --name LocalProject \
113
- --frontend angular \
114
- --git true
115
- ```
116
-
117
- ---
118
-
119
- ## Git Commands Reference
120
-
121
- ### lt git get
122
-
123
- **Syntax:**
124
- ```bash
125
- lt git get [branch-name]
126
- ```
127
-
128
- **Aliases:**
129
- - `lt git g`
130
-
131
- **Behavior:**
132
-
133
- | Scenario | Action |
134
- |----------|--------|
135
- | Branch exists locally | Switches to branch |
136
- | Branch exists on remote only | Checks out and tracks remote branch |
137
- | Branch doesn't exist anywhere | Creates new branch from current |
138
-
139
- **Common Usage:**
140
- ```bash
141
- # Start new feature
142
- lt git get DEV-456 # Creates if doesn't exist
143
-
144
- # Switch to existing branch
145
- lt git get main # Switches to main
146
-
147
- # Checkout teammate's branch
148
- lt git get feature/auth # Checks out from remote if exists
149
-
150
- # Short alias
151
- lt git g DEV-789 # Same as "lt git get DEV-789"
152
- ```
153
-
154
- **Equivalent Standard Git:**
155
- ```bash
156
- # lt git get DEV-123 does:
157
- git checkout DEV-123 2>/dev/null || \
158
- git checkout -b DEV-123 --track origin/DEV-123 2>/dev/null || \
159
- git checkout -b DEV-123
160
- ```
161
-
162
- ---
163
-
164
- ### lt git reset
165
-
166
- **Syntax:**
167
- ```bash
168
- lt git reset
169
- ```
170
-
171
- **No parameters accepted** - always operates on current branch.
172
-
173
- **Interactive Prompt:**
174
- ```
175
- Reset current branch to origin/<branch>?
176
- This will discard all local changes. (y/N)
177
- ```
178
-
179
- **What Gets Discarded:**
180
- - All uncommitted changes (staged and unstaged)
181
- - All local commits not pushed to remote
182
- - All untracked files (if any were added)
183
-
184
- **When to Use:**
185
- - Experimental work failed, want clean slate
186
- - Merge conflicts too complex
187
- - Accidentally committed to wrong branch
188
- - Local branch corrupted
189
-
190
- **When NOT to Use:**
191
- - You want to keep any local changes
192
- - You haven't pushed but commits are valuable
193
- - Branch has no remote tracking
194
-
195
- **Equivalent Standard Git:**
196
- ```bash
197
- # lt git reset does:
198
- git fetch origin
199
- git reset --hard origin/<current-branch>
200
- ```
201
-
202
- **Recovery (if you made a mistake):**
203
- ```bash
204
- # IMMEDIATELY after reset, if you change your mind:
205
- git reflog # Find commit before reset
206
- git reset --hard HEAD@{1} # Restore to that commit
207
- ```
208
-
209
- ---
210
-
211
- ## Fullstack Commands Reference
212
-
213
- ### lt fullstack init
214
-
215
- **Syntax:**
216
- ```bash
217
- lt fullstack init \
218
- --name <WorkspaceName> \
219
- --frontend <angular|nuxt> \
220
- --git <true|false> \
221
- [--git-link <GitURL>]
222
- ```
223
-
224
- **Aliases:**
225
- - `lt full init`
226
-
227
- **Parameters:**
228
-
229
- | Parameter | Type | Required | Options | Description |
230
- |-----------|------|----------|---------|-------------|
231
- | `--name` | string | Yes | - | Project name (PascalCase) |
232
- | `--frontend` | string | Yes | `angular`, `nuxt` | Frontend framework |
233
- | `--git` | boolean | Yes | `true`, `false` | Initialize git |
234
- | `--git-link` | string | No | URL | Git repository URL |
235
-
236
- **Created Structure:**
237
- ```
238
- <workspace-name>/
239
- ├── frontend/ # Angular or Nuxt app
240
- │ ├── src/ # (Angular) or pages/ (Nuxt)
241
- │ ├── package.json
242
- │ └── ...
243
- ├── projects/
244
- │ └── api/ # NestJS backend (@lenne.tech/nest-server)
245
- │ ├── src/
246
- │ │ └── server/
247
- │ │ ├── modules/
248
- │ │ └── common/
249
- │ ├── package.json
250
- │ └── ...
251
- ├── package.json # Root workspace config
252
- ├── .gitignore # (if --git true)
253
- └── .git/ # (if --git true)
254
- ```
255
-
256
- **Post-Creation Setup:**
257
- ```bash
258
- cd <workspace-name>
259
- npm install # Install dependencies
260
-
261
- # Terminal 1: Start backend
262
- cd projects/api && npm start # Runs on port 3000
263
-
264
- # Terminal 2: Start frontend
265
- cd frontend && npm start # Angular: 4200, Nuxt: 3000/3001
266
- ```
267
-
268
- **Git Remote Configuration:**
269
-
270
- With `--git-link`:
271
- ```bash
272
- # Remote automatically configured
273
- git remote -v
274
- # origin https://github.com/user/repo.git (fetch)
275
- # origin https://github.com/user/repo.git (push)
276
- ```
277
-
278
- Without `--git-link` (add later):
279
- ```bash
280
- cd <workspace-name>
281
- git remote add origin https://github.com/user/repo.git
282
- git push -u origin main
283
- ```
284
-
285
- ---
286
-
287
- ## Common Patterns
288
-
289
- ### Git Workflows
290
-
291
- #### Feature Development
292
- ```bash
293
- # Start new feature
294
- git checkout main
295
- git pull
296
- lt git get DEV-123
297
-
298
- # Work...
299
- git add .
300
- git commit -m "Implement feature"
301
- git push -u origin DEV-123
302
- ```
303
-
304
- #### Switch Between Branches
305
- ```bash
306
- # Save current work
307
- git stash
308
-
309
- # Switch branch
310
- lt git get DEV-456
311
-
312
- # Do urgent work...
313
-
314
- # Return to original work
315
- lt git get DEV-123
316
- git stash pop
317
- ```
318
-
319
- #### Discard Failed Work
320
- ```bash
321
- # Work didn't go well
322
- git status # See mess
323
-
324
- # Start over from remote
325
- lt git reset # Clean slate
326
- ```
327
-
328
- ### Fullstack Initialization
329
-
330
- #### Production Project
331
- ```bash
332
- lt fullstack init \
333
- --name ProductionApp \
334
- --frontend angular \
335
- --git true \
336
- --git-link https://github.com/company/production-app.git
337
-
338
- cd ProductionApp
339
- npm install
340
- # ... setup, create modules, commit, push
341
- ```
342
-
343
- #### Local Development
344
- ```bash
345
- lt fullstack init \
346
- --name LocalTest \
347
- --frontend nuxt \
348
- --git false
349
-
350
- cd LocalTest
351
- npm install
352
- # ... quick testing without git overhead
353
- ```
354
-
355
- ---
356
-
357
- ## Troubleshooting
358
-
359
- ### Git Commands
360
-
361
- #### "Branch not found" Error
362
- ```bash
363
- # Problem: Typo in branch name
364
- lt git get DEV-12345
365
- # Error: Branch not found
366
-
367
- # Solution: Check available branches
368
- git branch -a # List all branches
369
- lt git get DEV-123 # Correct name
370
- ```
371
-
372
- #### "Cannot reset" Error
373
- ```bash
374
- # Problem: No remote tracking
375
- lt git reset
376
- # Error: No remote tracking branch
377
-
378
- # Solution: Set up tracking
379
- git branch -u origin/main # Or appropriate branch
380
- git fetch origin
381
- lt git reset
382
- ```
383
-
384
- #### Uncommitted Changes Block Switch
385
- ```bash
386
- # Problem: Changes prevent switching
387
- lt git get DEV-456
388
- # Error: Your local changes... would be overwritten
389
-
390
- # Solution 1: Stash
391
- git stash
392
- lt git get DEV-456
393
- git stash pop
394
-
395
- # Solution 2: Commit
396
- git add .
397
- git commit -m "WIP"
398
- lt git get DEV-456
399
- ```
400
-
401
- ### Fullstack Init
402
-
403
- #### Permission Denied
404
- ```bash
405
- # Problem: No write permissions
406
- lt fullstack init --name MyApp --frontend angular --git false
407
- # Error: Permission denied
408
-
409
- # Solution: Use writable directory
410
- cd ~/projects
411
- lt fullstack init --name MyApp --frontend angular --git false
412
- ```
413
-
414
- #### Directory Already Exists
415
- ```bash
416
- # Problem: Project name already used
417
- lt fullstack init --name MyApp --frontend angular --git false
418
- # Error: Directory already exists
419
-
420
- # Solution: Use different name or remove directory
421
- rm -rf MyApp
422
- lt fullstack init --name MyApp --frontend angular --git false
423
- ```
424
-
425
- #### Git Link Invalid
426
- ```bash
427
- # Problem: Invalid git URL
428
- lt fullstack init \
429
- --name MyApp \
430
- --frontend angular \
431
- --git true \
432
- --git-link invalid-url
433
-
434
- # Solution: Use valid HTTPS or SSH URL
435
- lt fullstack init \
436
- --name MyApp \
437
- --frontend angular \
438
- --git true \
439
- --git-link https://github.com/user/repo.git
440
- ```
441
-
442
- ---
443
-
444
- ## Best Practices
445
-
446
- ### Git Operations
447
-
448
- **Branch Management:**
449
- - ✅ Always run `git status` before switching branches
450
- - ✅ Commit or stash changes before switching
451
- - ✅ Use meaningful branch names (DEV-123, feature/xyz)
452
- - ✅ Pull latest before creating feature branches
453
- - ❌ Don't leave uncommitted changes when switching
454
-
455
- **Reset Operations:**
456
- - ✅ Verify what will be discarded with `git status` first
457
- - ✅ Only reset when you're certain you want to discard everything
458
- - ✅ Know that reset is irreversible (unless using reflog immediately)
459
- - ❌ Don't reset if you have valuable local commits
460
- - ❌ Don't reset without checking remote exists
461
-
462
- ### Fullstack Initialization
463
-
464
- **Project Setup:**
465
- - ✅ Use PascalCase for project names (MyProject, not my-project)
466
- - ✅ Enable git for all real projects (`--git true`)
467
- - ✅ Add git remote URL immediately with `--git-link`
468
- - ✅ Run `npm install` right after creation
469
- - ✅ Choose Angular for enterprise, Nuxt for flexibility
470
- - ❌ Don't use git for quick throwaway tests
471
- - ❌ Don't use spaces in project names
472
-
473
- **Post-Creation:**
474
- - ✅ Read generated README.md files
475
- - ✅ Commit initial setup before making changes
476
- - ✅ Set up CI/CD early
477
- - ✅ Configure environment variables
478
- - ❌ Don't commit .env files
479
- - ❌ Don't modify generated structure without understanding it
480
-
481
- ---
482
-
483
- ## Quick Tips
484
-
485
- 1. **Use aliases**: `lt git g` instead of `lt git get`
486
- 2. **Stash is your friend**: `git stash` before branch switches
487
- 3. **Check status often**: `git status` before any git operation
488
- 4. **Reset is destructive**: Only use when certain
489
- 5. **PascalCase names**: `MyProject`, not `my_project` or `myproject`
490
- 6. **Git from start**: Use `--git true` for all real projects
491
- 7. **Track branches**: Let `lt git get` handle remote tracking
492
- 8. **Install immediately**: Run `npm install` after init
493
- 9. **Commit often**: Save work after each logical step
494
- 10. **Read READMEs**: Each generated project has setup instructions
495
-
496
- ---
497
-
498
- ## Related Commands
499
-
500
- For NestJS server development commands, use the **nest-server-generator skill**:
501
- - `lt server module` - Create modules
502
- - `lt server object` - Create objects
503
- - `lt server addProp` - Add properties
504
-
505
- ---
506
-
507
- ## References
508
-
509
- - [lenne.tech CLI Documentation](https://github.com/lenneTech/cli)
510
- - [Git Documentation](https://git-scm.com/doc)
511
- - [NestJS Documentation](https://docs.nestjs.com)
512
- - [Angular Documentation](https://angular.io/docs)
513
- - [Nuxt Documentation](https://nuxt.com/docs)