@superclaude-org/superflag 3.1.2 → 3.1.5
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/LICENSE +20 -20
- package/README.md +399 -467
- package/SUPERFLAG.md +80 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/install.d.ts +1 -0
- package/dist/install.d.ts.map +1 -1
- package/dist/install.js +88 -94
- package/dist/install.js.map +1 -1
- package/dist/server.js +3 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/flags.yaml +1509 -270
- package/hooks/superflag.py +192 -192
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -1,467 +1,399 @@
|
|
|
1
|
-
# SuperFlag
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
![
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
| Flag | Purpose |
|
|
51
|
-
|------|---------|
|
|
52
|
-
| `--
|
|
53
|
-
| `--
|
|
54
|
-
| `--
|
|
55
|
-
| `--
|
|
56
|
-
| `--
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
|
60
|
-
|
|
61
|
-
| `--
|
|
62
|
-
| `--
|
|
63
|
-
| `--readonly` | Analysis
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
|
67
|
-
|
|
68
|
-
| `--
|
|
69
|
-
| `--
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
claude
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
#
|
|
203
|
-
"
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
├──
|
|
260
|
-
|
|
261
|
-
└──
|
|
262
|
-
```
|
|
263
|
-
|
|
264
|
-
###
|
|
265
|
-
```
|
|
266
|
-
~/.
|
|
267
|
-
├──
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
```
|
|
271
|
-
|
|
272
|
-
###
|
|
273
|
-
```
|
|
274
|
-
~/.
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
###
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
```
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
```
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
superflag
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
-
|
|
389
|
-
-
|
|
390
|
-
-
|
|
391
|
-
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
### Migration Steps
|
|
401
|
-
1. **Backup**: Export any custom configurations
|
|
402
|
-
2. **Uninstall**: Remove Python version completely
|
|
403
|
-
3. **Install**: Set up TypeScript version
|
|
404
|
-
4. **Verify**: Test flag functionality
|
|
405
|
-
5. **Cleanup**: Remove Python environments if no longer needed
|
|
406
|
-
|
|
407
|
-
## Troubleshooting
|
|
408
|
-
|
|
409
|
-
### Common Issues
|
|
410
|
-
|
|
411
|
-
**Auto-Registration Failed**
|
|
412
|
-
If MCP server wasn't automatically registered during installation:
|
|
413
|
-
|
|
414
|
-
```bash
|
|
415
|
-
# For Claude Code
|
|
416
|
-
claude mcp add superflag npx @superclaude-org/superflag@latest -s user
|
|
417
|
-
|
|
418
|
-
# For Gemini CLI - manually edit ~/.gemini/settings.json
|
|
419
|
-
{
|
|
420
|
-
"mcpServers": {
|
|
421
|
-
"superflag": {
|
|
422
|
-
"type": "stdio",
|
|
423
|
-
"command": "npx",
|
|
424
|
-
"args": ["@superclaude-org/superflag@latest"],
|
|
425
|
-
"env": {}
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
# For Continue - create ~/.continue/mcpServers/superflag.yaml
|
|
431
|
-
name: SuperFlag
|
|
432
|
-
command: npx
|
|
433
|
-
args:
|
|
434
|
-
- '@superclaude-org/superflag@latest'
|
|
435
|
-
env: {}
|
|
436
|
-
```
|
|
437
|
-
|
|
438
|
-
**MCP Connection Issues**
|
|
439
|
-
```bash
|
|
440
|
-
# Check server status (Claude Code)
|
|
441
|
-
claude mcp list
|
|
442
|
-
|
|
443
|
-
# Re-register if needed
|
|
444
|
-
claude mcp remove superflag
|
|
445
|
-
superflag install cc # Auto-register again
|
|
446
|
-
```
|
|
447
|
-
|
|
448
|
-
**Flags Not Working**
|
|
449
|
-
- Restart your AI platform after installation
|
|
450
|
-
- Verify configuration files exist:
|
|
451
|
-
- Claude Code: `~/.claude/SUPERFLAG.md`
|
|
452
|
-
- Gemini CLI: `~/.gemini/SUPERFLAG.md`
|
|
453
|
-
- Continue: `~/.continue/config.yaml`
|
|
454
|
-
- Check MCP server connection (platform-specific)
|
|
455
|
-
|
|
456
|
-
**Version Conflicts**
|
|
457
|
-
- Ensure Python version is completely removed
|
|
458
|
-
- Use `npm list -g @superclaude-org/superflag` to verify installation
|
|
459
|
-
- Clear platform caches if switching from manual to auto-registration
|
|
460
|
-
|
|
461
|
-
## License
|
|
462
|
-
|
|
463
|
-
MIT
|
|
464
|
-
|
|
465
|
-
---
|
|
466
|
-
|
|
467
|
-
**Need Help?** File issues at: [GitHub Repository](https://github.com/superclaude-org/superflag)
|
|
1
|
+
# SuperFlag
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+

|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
> **Note**: This project was inspired by the pioneering work in [SuperClaude Framework](https://github.com/SuperClaude-Org/SuperClaude_Framework) and [SuperGemini Framework](https://github.com/SuperClaude-Org/SuperGemini_Framework). Special thanks to [SuperClaude-Org](https://github.com/SuperClaude-Org) team members [@NomenAK](https://github.com/NomenAK) and [@mithun50](https://github.com/mithun50) whose work made this possible.
|
|
8
|
+
|
|
9
|
+
SuperFlag provides 21 contextual flags that guide AI assistant behavior through precise directives. It exposes an MCP stdio server for seamless integration with modern AI development tools.
|
|
10
|
+
|
|
11
|
+
## Quick Start
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
# Install globally
|
|
15
|
+
npm install -g @superclaude-org/superflag
|
|
16
|
+
|
|
17
|
+
# Interactive installation (choose platforms)
|
|
18
|
+
superflag install
|
|
19
|
+
|
|
20
|
+
# Direct installation for Claude Code
|
|
21
|
+
superflag install cc
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Then use flags in your AI assistant:
|
|
25
|
+
- "Fix this bug --analyze --strict"
|
|
26
|
+
- "Refactor --auto" (auto-select optimal flags)
|
|
27
|
+
- "--save" (create handoff documentation)
|
|
28
|
+
- "Run with 3 agents --team-3"
|
|
29
|
+
|
|
30
|
+
## 21 Available Flags
|
|
31
|
+
|
|
32
|
+
### Analysis & Optimization
|
|
33
|
+
| Flag | Purpose |
|
|
34
|
+
|------|---------|
|
|
35
|
+
| `--analyze` | Multi-perspective evidence-based analysis with 3+ independent perspectives |
|
|
36
|
+
| `--performance` | Measure-first optimization with baseline metrics and ROI calculation |
|
|
37
|
+
| `--refactor` | Safe atomic refactoring with continuous test verification |
|
|
38
|
+
| `--strict` | Zero-error transparent execution with verify-before-claim |
|
|
39
|
+
| `--lean` | Minimal resource-efficient implementation eliminating waste |
|
|
40
|
+
|
|
41
|
+
### Discovery & Documentation
|
|
42
|
+
| Flag | Purpose |
|
|
43
|
+
|------|---------|
|
|
44
|
+
| `--discover` | Research-first solution selection with 3+ alternatives comparison |
|
|
45
|
+
| `--explain` | Progressive domain-expert disclosure from overview to details |
|
|
46
|
+
| `--save` | Document development context for seamless continuation |
|
|
47
|
+
| `--load` | Load and verify handoff context against git reality |
|
|
48
|
+
|
|
49
|
+
### Workflow Management
|
|
50
|
+
| Flag | Purpose |
|
|
51
|
+
|------|---------|
|
|
52
|
+
| `--team` | Multi-agent coordination with optional count (`--team-N`) |
|
|
53
|
+
| `--skill` | Context-aware skill invocation — auto-selects appropriate skill |
|
|
54
|
+
| `--todo` | Scope-locked task tracking with real-time progress |
|
|
55
|
+
| `--seq` | Dependency-ordered sequential execution with checkpoints |
|
|
56
|
+
| `--collab` | Evidence-anchored peer collaboration with quantitative validation |
|
|
57
|
+
|
|
58
|
+
### Output Control
|
|
59
|
+
| Flag | Purpose |
|
|
60
|
+
|------|---------|
|
|
61
|
+
| `--concise` | Precise professional content prioritizing accuracy over brevity |
|
|
62
|
+
| `--git` | Anonymous atomic commits with ASCII-only WHY-focused messages |
|
|
63
|
+
| `--readonly` | Analysis-only mode with absolute no-modification guarantee |
|
|
64
|
+
|
|
65
|
+
### Execution Discipline
|
|
66
|
+
| Flag | Purpose |
|
|
67
|
+
|------|---------|
|
|
68
|
+
| `--integrity` | Verification-before-claim with evidence for every assertion |
|
|
69
|
+
| `--evolve` | Monotonic forward improvement with regression prevention |
|
|
70
|
+
|
|
71
|
+
### Meta Control
|
|
72
|
+
| Flag | Purpose |
|
|
73
|
+
|------|---------|
|
|
74
|
+
| `--reset` | Clear session and force fresh directives |
|
|
75
|
+
| `--auto` | Grant autonomous flag selection authority |
|
|
76
|
+
|
|
77
|
+
## Installation
|
|
78
|
+
|
|
79
|
+
### Prerequisites
|
|
80
|
+
- Node.js 16+
|
|
81
|
+
- Target platform installed (Claude Code, Gemini CLI, or Continue)
|
|
82
|
+
|
|
83
|
+
### Quick Setup (All Platforms)
|
|
84
|
+
```bash
|
|
85
|
+
# Install package globally
|
|
86
|
+
npm install -g @superclaude-org/superflag
|
|
87
|
+
|
|
88
|
+
# Interactive installation - choose your platforms
|
|
89
|
+
superflag install
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
The interactive installer will:
|
|
93
|
+
- Detect installed platforms
|
|
94
|
+
- Let you select which ones to configure
|
|
95
|
+
- **Automatically register MCP servers** for all platforms
|
|
96
|
+
- Set up configuration files and flag detection
|
|
97
|
+
|
|
98
|
+
### Platform-Specific Installation
|
|
99
|
+
|
|
100
|
+
#### Claude Code
|
|
101
|
+
```bash
|
|
102
|
+
# Direct installation (MCP server auto-registered)
|
|
103
|
+
superflag install cc
|
|
104
|
+
|
|
105
|
+
# Verify connection
|
|
106
|
+
claude mcp list
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Creates:
|
|
110
|
+
- `~/.claude/CLAUDE.md` - References @SUPERFLAG.md
|
|
111
|
+
- `~/.claude/SUPERFLAG.md` - Flag instructions
|
|
112
|
+
- `~/.claude/hooks/superflag.py` - Flag detection hook
|
|
113
|
+
|
|
114
|
+
**Manual MCP Registration (if auto-registration fails):**
|
|
115
|
+
```bash
|
|
116
|
+
# Add MCP server manually
|
|
117
|
+
claude mcp add superflag npx @superclaude-org/superflag@latest -s user
|
|
118
|
+
|
|
119
|
+
# Or add to ~/.claude.json
|
|
120
|
+
{
|
|
121
|
+
"mcpServers": {
|
|
122
|
+
"superflag": {
|
|
123
|
+
"command": "npx",
|
|
124
|
+
"args": ["@superclaude-org/superflag@latest"],
|
|
125
|
+
"env": {}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
#### Gemini CLI
|
|
132
|
+
```bash
|
|
133
|
+
# Direct installation (MCP server auto-registered)
|
|
134
|
+
superflag install gemini
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
Creates:
|
|
138
|
+
- `~/.gemini/GEMINI.md` - References @SUPERFLAG.md
|
|
139
|
+
- `~/.gemini/SUPERFLAG.md` - Flag instructions
|
|
140
|
+
|
|
141
|
+
**Manual MCP Registration (if auto-registration fails):**
|
|
142
|
+
```json
|
|
143
|
+
// Edit ~/.gemini/settings.json
|
|
144
|
+
{
|
|
145
|
+
"mcpServers": {
|
|
146
|
+
"superflag": {
|
|
147
|
+
"type": "stdio",
|
|
148
|
+
"command": "npx",
|
|
149
|
+
"args": ["@superclaude-org/superflag@latest"],
|
|
150
|
+
"env": {}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
#### Continue (VS Code Extension)
|
|
157
|
+
```bash
|
|
158
|
+
# Direct installation (MCP server auto-registered)
|
|
159
|
+
superflag install cn
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
Creates:
|
|
163
|
+
- `~/.continue/config.yaml` - SuperFlag rules
|
|
164
|
+
- `~/.continue/mcpServers/superflag.yaml` - MCP server configuration
|
|
165
|
+
|
|
166
|
+
**Manual MCP Registration (if auto-registration fails):**
|
|
167
|
+
```yaml
|
|
168
|
+
# Create ~/.continue/mcpServers/superflag.yaml
|
|
169
|
+
name: SuperFlag
|
|
170
|
+
command: npx
|
|
171
|
+
args:
|
|
172
|
+
- '@superclaude-org/superflag@latest'
|
|
173
|
+
env: {}
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
### Batch Installation
|
|
177
|
+
```bash
|
|
178
|
+
# Install for all supported platforms
|
|
179
|
+
superflag install all
|
|
180
|
+
|
|
181
|
+
# Install for specific combinations
|
|
182
|
+
superflag install cc gemini # Claude Code + Gemini CLI
|
|
183
|
+
superflag install cn # Continue only
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
## Usage
|
|
187
|
+
|
|
188
|
+
### Natural Language with Flags
|
|
189
|
+
All platforms support using flags in natural conversation:
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
# Auto mode - AI selects appropriate flags
|
|
193
|
+
"Optimize this code --auto"
|
|
194
|
+
|
|
195
|
+
# Specific flag combinations
|
|
196
|
+
"--analyze --strict" # Thorough analysis with zero-error enforcement
|
|
197
|
+
"--save --explain" # Create documentation with detailed explanations
|
|
198
|
+
"--reset --todo" # Reset session and start task tracking
|
|
199
|
+
"--team-3 --todo" # Multi-agent work with 3 agents + task tracking
|
|
200
|
+
|
|
201
|
+
# Parametric flags
|
|
202
|
+
"--team-5" # Spawn 5 role-specialized agents
|
|
203
|
+
"--team" # Auto-determine team size from task complexity
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
### Platform-Specific Usage
|
|
207
|
+
|
|
208
|
+
#### Claude Code
|
|
209
|
+
```bash
|
|
210
|
+
# Direct chat with flags
|
|
211
|
+
"Fix this bug --analyze --strict"
|
|
212
|
+
"Create documentation --save --explain"
|
|
213
|
+
|
|
214
|
+
# MCP tool access (advanced)
|
|
215
|
+
get_directives(['--flag1', '--flag2'])
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
#### Gemini CLI
|
|
219
|
+
```bash
|
|
220
|
+
# Chat with flags
|
|
221
|
+
"Refactor this code --auto --performance"
|
|
222
|
+
|
|
223
|
+
# MCP server commands
|
|
224
|
+
@superflag --analyze --todo
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
#### Continue (VS Code)
|
|
228
|
+
```bash
|
|
229
|
+
# In Continue chat
|
|
230
|
+
"Optimize this function --performance --lean"
|
|
231
|
+
|
|
232
|
+
# Use @ to access MCP tools
|
|
233
|
+
@get_directives(['--strict', '--analyze'])
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
### Session Management
|
|
237
|
+
- **Duplicate Detection**: Repeated flags show brief reminders instead of full directives
|
|
238
|
+
- **Session Reset**: Use `--reset` when switching tasks or contexts
|
|
239
|
+
- **Persistence**: Flag states persist through `/clear` or `/compact` - use `--reset` to reinitialize
|
|
240
|
+
|
|
241
|
+
## The `--auto` Flag
|
|
242
|
+
|
|
243
|
+
`--auto` enables intelligent flag selection:
|
|
244
|
+
|
|
245
|
+
| Usage | Behavior |
|
|
246
|
+
|-------|----------|
|
|
247
|
+
| `--auto` only | AI selects complete flag set automatically |
|
|
248
|
+
| `--auto --strict --analyze` | AI applies specified flags + may add others |
|
|
249
|
+
| `--strict --analyze` | Only specified flags, no auto-selection |
|
|
250
|
+
|
|
251
|
+
**Note**: Do not include `--auto` in direct `get_directives()` calls - it's for natural language use only.
|
|
252
|
+
|
|
253
|
+
## Configuration Files
|
|
254
|
+
|
|
255
|
+
### Claude Code
|
|
256
|
+
```
|
|
257
|
+
~/.claude/
|
|
258
|
+
├── CLAUDE.md # References @SUPERFLAG.md
|
|
259
|
+
├── SUPERFLAG.md # Flag instructions
|
|
260
|
+
└── hooks/
|
|
261
|
+
└── superflag.py # Flag detection hook
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
### Gemini CLI
|
|
265
|
+
```
|
|
266
|
+
~/.gemini/
|
|
267
|
+
├── GEMINI.md # References @SUPERFLAG.md
|
|
268
|
+
├── SUPERFLAG.md # Flag instructions
|
|
269
|
+
└── settings.json # MCP server configuration (auto-registered)
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
### Continue
|
|
273
|
+
```
|
|
274
|
+
~/.continue/
|
|
275
|
+
├── config.yaml # SuperFlag rules and configuration
|
|
276
|
+
└── mcpServers/
|
|
277
|
+
└── superflag.yaml # MCP server settings (auto-registered)
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
### Shared Configuration
|
|
281
|
+
```
|
|
282
|
+
~/.superflag/
|
|
283
|
+
└── flags.yaml # Flag definitions and directives (all platforms)
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
## Development
|
|
287
|
+
|
|
288
|
+
### Local Development
|
|
289
|
+
```bash
|
|
290
|
+
# Clone repository
|
|
291
|
+
git clone https://github.com/SuperClaude-Org/SuperFlag_Framework.git
|
|
292
|
+
cd SuperFlag_Framework
|
|
293
|
+
|
|
294
|
+
# Install dependencies
|
|
295
|
+
npm install
|
|
296
|
+
|
|
297
|
+
# Build TypeScript
|
|
298
|
+
npm run build
|
|
299
|
+
|
|
300
|
+
# Test locally
|
|
301
|
+
npm link
|
|
302
|
+
superflag --version
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
### Version Management
|
|
306
|
+
Update version in `src/version.ts` - all other files sync automatically during build.
|
|
307
|
+
|
|
308
|
+
### Project Structure
|
|
309
|
+
- `flags.yaml` - All 21 flag definitions and directives (3-Layer architecture)
|
|
310
|
+
- `SUPERFLAG.md` - Flag instructions installed to user config directories
|
|
311
|
+
- `src/server.ts` - MCP stdio server
|
|
312
|
+
- `src/install.ts` - Interactive installer/uninstaller
|
|
313
|
+
- `src/directives.ts` - Flag parsing from flags.yaml
|
|
314
|
+
|
|
315
|
+
## Uninstallation
|
|
316
|
+
|
|
317
|
+
### Interactive Uninstallation
|
|
318
|
+
```bash
|
|
319
|
+
# Interactive removal - choose platforms to remove
|
|
320
|
+
superflag uninstall
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
### Platform-Specific Removal
|
|
324
|
+
```bash
|
|
325
|
+
# Remove from specific platforms
|
|
326
|
+
superflag uninstall cc # Claude Code only
|
|
327
|
+
superflag uninstall gemini # Gemini CLI only
|
|
328
|
+
superflag uninstall cn # Continue only
|
|
329
|
+
superflag uninstall all # All platforms
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
### Complete Removal
|
|
333
|
+
```bash
|
|
334
|
+
# Remove all configurations and package
|
|
335
|
+
superflag uninstall all
|
|
336
|
+
npm uninstall -g @superclaude-org/superflag
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
**Safety Features:**
|
|
340
|
+
- Configuration files are backed up before removal
|
|
341
|
+
- Interactive confirmation for each platform
|
|
342
|
+
- Selective removal - keep other platforms intact
|
|
343
|
+
|
|
344
|
+
## Troubleshooting
|
|
345
|
+
|
|
346
|
+
### Common Issues
|
|
347
|
+
|
|
348
|
+
**Auto-Registration Failed**
|
|
349
|
+
If MCP server wasn't automatically registered during installation:
|
|
350
|
+
|
|
351
|
+
```bash
|
|
352
|
+
# For Claude Code
|
|
353
|
+
claude mcp add superflag npx @superclaude-org/superflag@latest -s user
|
|
354
|
+
|
|
355
|
+
# For Gemini CLI - manually edit ~/.gemini/settings.json
|
|
356
|
+
{
|
|
357
|
+
"mcpServers": {
|
|
358
|
+
"superflag": {
|
|
359
|
+
"type": "stdio",
|
|
360
|
+
"command": "npx",
|
|
361
|
+
"args": ["@superclaude-org/superflag@latest"],
|
|
362
|
+
"env": {}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
# For Continue - create ~/.continue/mcpServers/superflag.yaml
|
|
368
|
+
name: SuperFlag
|
|
369
|
+
command: npx
|
|
370
|
+
args:
|
|
371
|
+
- '@superclaude-org/superflag@latest'
|
|
372
|
+
env: {}
|
|
373
|
+
```
|
|
374
|
+
|
|
375
|
+
**MCP Connection Issues**
|
|
376
|
+
```bash
|
|
377
|
+
# Check server status (Claude Code)
|
|
378
|
+
claude mcp list
|
|
379
|
+
|
|
380
|
+
# Re-register if needed
|
|
381
|
+
claude mcp remove superflag
|
|
382
|
+
superflag install cc # Auto-register again
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
**Flags Not Working**
|
|
386
|
+
- Restart your AI platform after installation
|
|
387
|
+
- Verify configuration files exist:
|
|
388
|
+
- Claude Code: `~/.claude/SUPERFLAG.md`
|
|
389
|
+
- Gemini CLI: `~/.gemini/SUPERFLAG.md`
|
|
390
|
+
- Continue: `~/.continue/config.yaml`
|
|
391
|
+
- Check MCP server connection (platform-specific)
|
|
392
|
+
|
|
393
|
+
## License
|
|
394
|
+
|
|
395
|
+
MIT
|
|
396
|
+
|
|
397
|
+
---
|
|
398
|
+
|
|
399
|
+
**Need Help?** File issues at: [GitHub Repository](https://github.com/SuperClaude-Org/SuperFlag_Framework)
|