@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.
- package/build/commands/claude/install-plugin.js +339 -0
- package/package.json +1 -1
- package/build/commands/claude/install-commands.js +0 -337
- package/build/commands/claude/install-mcps.js +0 -258
- package/build/commands/claude/install-skills.js +0 -693
- package/build/lib/mcp-registry.js +0 -80
- package/build/templates/claude-commands/code-cleanup.md +0 -82
- package/build/templates/claude-commands/commit-message.md +0 -21
- package/build/templates/claude-commands/create-story.md +0 -435
- package/build/templates/claude-commands/mr-description-clipboard.md +0 -48
- package/build/templates/claude-commands/mr-description.md +0 -33
- package/build/templates/claude-commands/sec-review.md +0 -62
- package/build/templates/claude-commands/skill-optimize.md +0 -481
- package/build/templates/claude-commands/test-generate.md +0 -45
- package/build/templates/claude-skills/building-stories-with-tdd/SKILL.md +0 -265
- package/build/templates/claude-skills/building-stories-with-tdd/code-quality.md +0 -276
- package/build/templates/claude-skills/building-stories-with-tdd/database-indexes.md +0 -182
- package/build/templates/claude-skills/building-stories-with-tdd/examples.md +0 -1383
- package/build/templates/claude-skills/building-stories-with-tdd/handling-existing-tests.md +0 -197
- package/build/templates/claude-skills/building-stories-with-tdd/reference.md +0 -1427
- package/build/templates/claude-skills/building-stories-with-tdd/security-review.md +0 -307
- package/build/templates/claude-skills/building-stories-with-tdd/workflow.md +0 -1004
- package/build/templates/claude-skills/generating-nest-servers/SKILL.md +0 -303
- package/build/templates/claude-skills/generating-nest-servers/configuration.md +0 -285
- package/build/templates/claude-skills/generating-nest-servers/declare-keyword-warning.md +0 -133
- package/build/templates/claude-skills/generating-nest-servers/description-management.md +0 -226
- package/build/templates/claude-skills/generating-nest-servers/examples.md +0 -893
- package/build/templates/claude-skills/generating-nest-servers/framework-guide.md +0 -259
- package/build/templates/claude-skills/generating-nest-servers/quality-review.md +0 -864
- package/build/templates/claude-skills/generating-nest-servers/reference.md +0 -487
- package/build/templates/claude-skills/generating-nest-servers/security-rules.md +0 -371
- package/build/templates/claude-skills/generating-nest-servers/verification-checklist.md +0 -262
- package/build/templates/claude-skills/generating-nest-servers/workflow-process.md +0 -1061
- package/build/templates/claude-skills/using-lt-cli/SKILL.md +0 -284
- package/build/templates/claude-skills/using-lt-cli/examples.md +0 -546
- package/build/templates/claude-skills/using-lt-cli/reference.md +0 -513
|
@@ -1,284 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: using-lt-cli
|
|
3
|
-
version: 1.0.0
|
|
4
|
-
description: Expert assistance with lenne.tech CLI for Git operations and Fullstack initialization. IMPORTANT - For ALL NestJS server development (modules, objects, properties), use the generating-nest-servers skill instead, even for simple tasks. This skill handles only lt git commands and lt fullstack init.
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# LT CLI Expert - Git & Fullstack
|
|
8
|
-
|
|
9
|
-
You are an expert in the lenne.tech CLI tool. This skill handles **Git operations and Fullstack initialization ONLY**.
|
|
10
|
-
|
|
11
|
-
**⚠️ CRITICAL:** For NestJS server development (modules, objects, properties), ALWAYS use the `generating-nest-servers` skill instead.
|
|
12
|
-
|
|
13
|
-
## ⚠️ When to Use Which Skill
|
|
14
|
-
|
|
15
|
-
### Use the `generating-nest-servers` skill for:
|
|
16
|
-
- ✅ Creating server modules (`lt server module`)
|
|
17
|
-
- ✅ Creating server objects (`lt server object`)
|
|
18
|
-
- ✅ Adding properties (`lt server addProp`)
|
|
19
|
-
- ✅ Creating a new server (`lt server create`)
|
|
20
|
-
- ✅ ANY NestJS/nest-server development task
|
|
21
|
-
- ✅ Even simple tasks like adding a single property
|
|
22
|
-
- ✅ Even simple tasks like creating a single module
|
|
23
|
-
|
|
24
|
-
### Use this `using-lt-cli` skill ONLY for:
|
|
25
|
-
- ✅ Git commands (`lt git get`, `lt git reset`, etc.)
|
|
26
|
-
- ✅ Fullstack commands (`lt fullstack init`)
|
|
27
|
-
- ✅ General CLI questions (not about server development)
|
|
28
|
-
|
|
29
|
-
### Example scenarios:
|
|
30
|
-
- "Create a User module with email and username" → Use **generating-nest-servers** skill ✅
|
|
31
|
-
- "Add a new property to the User module" → Use **generating-nest-servers** skill ✅
|
|
32
|
-
- "Checkout branch DEV-123" → Use this skill (using-lt-cli) ✅
|
|
33
|
-
- "Initialize a fullstack project" → Use this skill (using-lt-cli) ✅
|
|
34
|
-
|
|
35
|
-
**If the user mentions ANYTHING about NestJS server, modules, objects, properties, or models:**
|
|
36
|
-
→ **IMMEDIATELY recommend or use the generating-nest-servers skill instead**
|
|
37
|
-
|
|
38
|
-
## Related Skills
|
|
39
|
-
|
|
40
|
-
**🔄 Works closely with:**
|
|
41
|
-
- `nest-server-generator` skill - For ALL NestJS server development
|
|
42
|
-
- `story-tdd` skill - For Test-Driven Development with NestJS
|
|
43
|
-
|
|
44
|
-
**When to use which:**
|
|
45
|
-
- Git operations (`lt git`)? → Use this skill (lt-cli)
|
|
46
|
-
- Fullstack init? → Use this skill (lt-cli)
|
|
47
|
-
- NestJS development? → Use `nest-server-generator` skill
|
|
48
|
-
- TDD approach? → Use `story-tdd` skill
|
|
49
|
-
|
|
50
|
-
---
|
|
51
|
-
|
|
52
|
-
## Available Commands
|
|
53
|
-
|
|
54
|
-
### 1. Git Operations
|
|
55
|
-
|
|
56
|
-
#### Get Branch
|
|
57
|
-
**Command**: `lt git get <branch-name>` (alias: `lt git g`)
|
|
58
|
-
|
|
59
|
-
Checks out a branch, creating it if it doesn't exist.
|
|
60
|
-
|
|
61
|
-
**Non-interactive syntax**:
|
|
62
|
-
```bash
|
|
63
|
-
lt git get <branch-name>
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
**Examples**:
|
|
67
|
-
```bash
|
|
68
|
-
# Checkout existing or create new branch
|
|
69
|
-
lt git get DEV-123
|
|
70
|
-
|
|
71
|
-
# Using alias
|
|
72
|
-
lt git g feature/new-feature
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
**What it does**:
|
|
76
|
-
1. Checks if branch exists locally
|
|
77
|
-
2. If not, checks if it exists on remote
|
|
78
|
-
3. If remote exists, checks out and tracks remote branch
|
|
79
|
-
4. If neither exists, creates new branch from current branch
|
|
80
|
-
5. Switches to the branch
|
|
81
|
-
|
|
82
|
-
#### Reset to Remote
|
|
83
|
-
**Command**: `lt git reset`
|
|
84
|
-
|
|
85
|
-
Resets current branch to match remote (discards local changes).
|
|
86
|
-
|
|
87
|
-
**Interactive**: Prompts for confirmation before resetting.
|
|
88
|
-
|
|
89
|
-
**What it does**:
|
|
90
|
-
1. Fetches latest from remote
|
|
91
|
-
2. Resets current branch to origin/<branch>
|
|
92
|
-
3. Discards all local changes and commits
|
|
93
|
-
|
|
94
|
-
**⚠️ WARNING**: This is destructive! All local changes will be lost.
|
|
95
|
-
|
|
96
|
-
### 2. Fullstack Initialization
|
|
97
|
-
|
|
98
|
-
#### Initialize Fullstack Workspace
|
|
99
|
-
**Command**: `lt fullstack init` (alias: `lt full init`)
|
|
100
|
-
|
|
101
|
-
Creates complete fullstack workspace with frontend and backend.
|
|
102
|
-
|
|
103
|
-
**Interactive mode**:
|
|
104
|
-
- Prompts for workspace name
|
|
105
|
-
- Prompts for frontend framework (Angular or Nuxt)
|
|
106
|
-
- Prompts for git initialization
|
|
107
|
-
- Prompts for git repository URL (if git enabled)
|
|
108
|
-
|
|
109
|
-
**Non-interactive syntax**:
|
|
110
|
-
```bash
|
|
111
|
-
lt fullstack init --name <WorkspaceName> --frontend <angular|nuxt> --git <true|false> [--git-link <GitURL>]
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
**Parameters**:
|
|
115
|
-
- `--name` - Workspace/project name (PascalCase recommended)
|
|
116
|
-
- `--frontend` - Frontend framework: `angular` or `nuxt`
|
|
117
|
-
- `--git` - Initialize git repository: `true` or `false`
|
|
118
|
-
- `--git-link` - Git repository URL (optional, only if `--git true`)
|
|
119
|
-
|
|
120
|
-
**Examples**:
|
|
121
|
-
```bash
|
|
122
|
-
# With git and repository
|
|
123
|
-
lt fullstack init --name MyApp --frontend angular --git true --git-link https://github.com/user/myapp.git
|
|
124
|
-
|
|
125
|
-
# Without git
|
|
126
|
-
lt fullstack init --name MyApp --frontend nuxt --git false
|
|
127
|
-
|
|
128
|
-
# Using alias
|
|
129
|
-
lt full init --name MyProject --frontend angular --git true
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
**What gets created**:
|
|
133
|
-
```
|
|
134
|
-
<workspace-name>/
|
|
135
|
-
frontend/ # Angular or Nuxt application
|
|
136
|
-
projects/
|
|
137
|
-
api/ # NestJS backend (@lenne.tech/nest-server)
|
|
138
|
-
package.json # Root workspace configuration
|
|
139
|
-
.gitignore # (if git enabled)
|
|
140
|
-
.git/ # (if git enabled)
|
|
141
|
-
```
|
|
142
|
-
|
|
143
|
-
**Post-creation steps**:
|
|
144
|
-
1. `cd <workspace-name>`
|
|
145
|
-
2. Install dependencies: `npm install`
|
|
146
|
-
3. Start backend: `cd projects/api && npm start`
|
|
147
|
-
4. Start frontend: `cd frontend && npm start`
|
|
148
|
-
|
|
149
|
-
---
|
|
150
|
-
|
|
151
|
-
## ⚠️ How to Redirect to nest-server-generator
|
|
152
|
-
|
|
153
|
-
When you detect ANY NestJS server task, immediately inform the user:
|
|
154
|
-
|
|
155
|
-
**Template response**:
|
|
156
|
-
```
|
|
157
|
-
For NestJS server development tasks, please use the **nest-server-generator skill** instead.
|
|
158
|
-
|
|
159
|
-
This skill is specifically designed for all NestJS/nest-server work, including:
|
|
160
|
-
- Creating modules, objects, or properties
|
|
161
|
-
- Modifying existing server code
|
|
162
|
-
- Generating complete server structures
|
|
163
|
-
|
|
164
|
-
You can install it with:
|
|
165
|
-
```bash
|
|
166
|
-
lt claude install-skills nest-server-generator
|
|
167
|
-
```
|
|
168
|
-
|
|
169
|
-
Or install all skills:
|
|
170
|
-
```bash
|
|
171
|
-
lt claude install-skills
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
Then I can help you with your NestJS server task using the nest-server-generator skill.
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
---
|
|
178
|
-
|
|
179
|
-
## Best Practices
|
|
180
|
-
|
|
181
|
-
### Git Operations
|
|
182
|
-
1. **Always commit changes before `lt git reset`** - It's destructive!
|
|
183
|
-
2. **Use meaningful branch names** - Follow your team's conventions (e.g., `DEV-123`, `feature/xyz`)
|
|
184
|
-
3. **Check status first** - Run `git status` before reset operations
|
|
185
|
-
|
|
186
|
-
### Fullstack Init
|
|
187
|
-
1. **Plan your architecture** - Know which frontend framework you need
|
|
188
|
-
2. **Set up git early** - Use `--git true` from the start
|
|
189
|
-
3. **Follow naming conventions** - Use PascalCase for workspace names
|
|
190
|
-
4. **Read the generated README** - Each project has specific setup instructions
|
|
191
|
-
|
|
192
|
-
---
|
|
193
|
-
|
|
194
|
-
## Troubleshooting
|
|
195
|
-
|
|
196
|
-
### Git Reset Not Working
|
|
197
|
-
**Symptom**: Reset command fails or doesn't reset properly
|
|
198
|
-
**Cause**: Remote branch doesn't exist or network issues
|
|
199
|
-
**Solution**:
|
|
200
|
-
- Check if remote branch exists: `git branch -r`
|
|
201
|
-
- Ensure you're connected to remote: `git remote -v`
|
|
202
|
-
- Fetch first: `git fetch origin`
|
|
203
|
-
|
|
204
|
-
### Fullstack Init Fails
|
|
205
|
-
**Symptom**: Installation errors during `lt fullstack init`
|
|
206
|
-
**Cause**: Network issues, missing dependencies, or permissions
|
|
207
|
-
**Solution**:
|
|
208
|
-
- Check internet connection
|
|
209
|
-
- Ensure Node.js is installed: `node --version`
|
|
210
|
-
- Check npm permissions
|
|
211
|
-
- Try with sudo if permission errors persist
|
|
212
|
-
|
|
213
|
-
### Branch Already Exists
|
|
214
|
-
**Symptom**: `lt git get` says branch exists but can't switch
|
|
215
|
-
**Cause**: Uncommitted changes in working directory
|
|
216
|
-
**Solution**: Commit, stash, or discard changes first:
|
|
217
|
-
```bash
|
|
218
|
-
git stash # Save changes temporarily
|
|
219
|
-
lt git get <branch>
|
|
220
|
-
git stash pop # Restore changes
|
|
221
|
-
```
|
|
222
|
-
|
|
223
|
-
---
|
|
224
|
-
|
|
225
|
-
## Working with This Skill
|
|
226
|
-
|
|
227
|
-
When helping users:
|
|
228
|
-
|
|
229
|
-
1. **Clarify intent**: Is this a git operation or fullstack setup?
|
|
230
|
-
2. **Redirect server tasks**: Immediately suggest nest-server-generator for any NestJS work
|
|
231
|
-
3. **Provide complete commands**: Include all necessary flags
|
|
232
|
-
4. **Warn about destructive operations**: Always warn before `lt git reset`
|
|
233
|
-
5. **Explain side effects**: Describe what will happen
|
|
234
|
-
|
|
235
|
-
### Example Response Pattern
|
|
236
|
-
|
|
237
|
-
**User**: "Switch to branch DEV-456"
|
|
238
|
-
|
|
239
|
-
**Your response**:
|
|
240
|
-
```bash
|
|
241
|
-
# Switch to branch DEV-456 (creates if it doesn't exist)
|
|
242
|
-
lt git get DEV-456
|
|
243
|
-
|
|
244
|
-
# This will:
|
|
245
|
-
# ✓ Check if DEV-456 exists locally
|
|
246
|
-
# ✓ If not, check remote
|
|
247
|
-
# ✓ If remote exists, checkout and track
|
|
248
|
-
# ✓ If neither exists, create new branch
|
|
249
|
-
# ✓ Switch to the branch
|
|
250
|
-
```
|
|
251
|
-
|
|
252
|
-
**User**: "Create a User module"
|
|
253
|
-
|
|
254
|
-
**Your response**:
|
|
255
|
-
```
|
|
256
|
-
For creating NestJS modules, please use the **nest-server-generator skill** instead.
|
|
257
|
-
|
|
258
|
-
That skill is specifically designed for all NestJS/nest-server development tasks.
|
|
259
|
-
|
|
260
|
-
Install it with:
|
|
261
|
-
```bash
|
|
262
|
-
lt claude install-skills nest-server-generator
|
|
263
|
-
```
|
|
264
|
-
|
|
265
|
-
Then I can help you create the User module with all necessary files and configurations.
|
|
266
|
-
```
|
|
267
|
-
|
|
268
|
-
---
|
|
269
|
-
|
|
270
|
-
## Important Notes
|
|
271
|
-
|
|
272
|
-
- **CLI works from anywhere** in your project directory
|
|
273
|
-
- **Automatically finds** the nearest git repository for git commands
|
|
274
|
-
- **Creates missing directories** for fullstack init
|
|
275
|
-
- **Validates inputs** before executing destructive operations
|
|
276
|
-
- **Always use nest-server-generator** for NestJS server development
|
|
277
|
-
|
|
278
|
-
---
|
|
279
|
-
|
|
280
|
-
## Command Reference
|
|
281
|
-
|
|
282
|
-
For detailed command syntax and all available options, see [reference.md](reference.md).
|
|
283
|
-
|
|
284
|
-
For NestJS server commands (`lt server module`, `lt server object`, etc.), use the **nest-server-generator skill**.
|