@atlashub/smartstack-cli 1.37.0 → 2.0.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/config/mcp-defaults.json +62 -0
- package/dist/index.js +57 -4
- package/dist/index.js.map +1 -1
- package/dist/mcp-entry.mjs +16984 -0
- package/dist/mcp-entry.mjs.map +1 -0
- package/package.json +14 -5
- package/templates/agents/gitflow/start.md +5 -4
- package/templates/agents/mcp-healthcheck.md +15 -13
- package/templates/mcp-scaffolding/component.tsx.hbs +298 -0
- package/templates/mcp-scaffolding/controller.cs.hbs +184 -0
- package/templates/mcp-scaffolding/entity-extension.cs.hbs +231 -0
- package/templates/mcp-scaffolding/frontend/api-client.ts.hbs +116 -0
- package/templates/mcp-scaffolding/frontend/nav-routes.ts.hbs +133 -0
- package/templates/mcp-scaffolding/frontend/routes.tsx.hbs +134 -0
- package/templates/mcp-scaffolding/migrations/seed-roles.cs.hbs +261 -0
- package/templates/mcp-scaffolding/service-extension.cs.hbs +53 -0
- package/templates/mcp-scaffolding/tests/controller.test.cs.hbs +413 -0
- package/templates/mcp-scaffolding/tests/entity.test.cs.hbs +239 -0
- package/templates/mcp-scaffolding/tests/repository.test.cs.hbs +441 -0
- package/templates/mcp-scaffolding/tests/security.test.cs.hbs +442 -0
- package/templates/mcp-scaffolding/tests/service.test.cs.hbs +390 -0
- package/templates/mcp-scaffolding/tests/validator.test.cs.hbs +428 -0
- package/templates/ralph/README.md +3 -3
- package/templates/ralph/ralph.config.yaml +2 -2
- package/templates/skills/admin/SKILL.md +42 -0
- package/templates/skills/business-analyse/_shared.md +24 -1
- package/templates/skills/business-analyse/questionnaire/01-context.md +4 -4
- package/templates/skills/business-analyse/questionnaire/02-stakeholders.md +3 -3
- package/templates/skills/business-analyse/questionnaire/03-scope.md +4 -4
- package/templates/skills/business-analyse/questionnaire/04-data.md +7 -7
- package/templates/skills/business-analyse/questionnaire/05-integrations.md +1 -1
- package/templates/skills/business-analyse/questionnaire/06-security.md +3 -3
- package/templates/skills/business-analyse/questionnaire/07-ui.md +1 -1
- package/templates/skills/business-analyse/questionnaire/08-performance.md +3 -3
- package/templates/skills/business-analyse/questionnaire/09-constraints.md +4 -4
- package/templates/skills/business-analyse/questionnaire/10-documentation.md +2 -2
- package/templates/skills/business-analyse/questionnaire/11-data-lifecycle.md +2 -2
- package/templates/skills/business-analyse/questionnaire/12-migration.md +1 -1
- package/templates/skills/business-analyse/questionnaire/13-cross-module.md +2 -2
- package/templates/skills/business-analyse/steps/step-01-discover.md +50 -25
- package/templates/skills/business-analyse/steps/step-05-handoff.md +133 -34
- package/templates/skills/cc-agent/SKILL.md +129 -0
- package/templates/skills/cc-agent/references/agent-frontmatter.md +213 -0
- package/templates/skills/cc-agent/references/permission-modes.md +102 -0
- package/templates/skills/cc-agent/references/tools-reference.md +144 -0
- package/templates/skills/cc-agent/steps/step-00-init.md +134 -0
- package/templates/skills/cc-agent/steps/step-01-design.md +186 -0
- package/templates/skills/cc-agent/steps/step-02-generate.md +204 -0
- package/templates/skills/cc-agent/steps/step-03-validate.md +130 -0
- package/templates/skills/cc-agent/templates/agent-categorized.md +67 -0
- package/templates/skills/cc-agent/templates/agent-standalone.md +56 -0
- package/templates/skills/cc-agent/templates/agent-with-skills.md +94 -0
- package/templates/skills/cc-audit/SKILL.md +108 -0
- package/templates/skills/cc-audit/references/agent-checklist.md +91 -0
- package/templates/skills/cc-audit/references/hook-checklist.md +110 -0
- package/templates/skills/cc-audit/references/skill-checklist.md +70 -0
- package/templates/skills/cc-audit/steps/step-00-init.md +98 -0
- package/templates/skills/cc-audit/steps/step-01-scan.md +142 -0
- package/templates/skills/cc-audit/steps/step-02-analyze.md +158 -0
- package/templates/skills/cc-audit/steps/step-03-report.md +142 -0
- package/templates/skills/cc-skill/SKILL.md +134 -0
- package/templates/skills/cc-skill/references/best-practices.md +167 -0
- package/templates/skills/cc-skill/references/frontmatter-reference.md +182 -0
- package/templates/skills/cc-skill/references/skill-patterns.md +199 -0
- package/templates/skills/cc-skill/steps/step-00-init.md +119 -0
- package/templates/skills/cc-skill/steps/step-01-design.md +199 -0
- package/templates/skills/cc-skill/steps/step-02-generate.md +145 -0
- package/templates/skills/cc-skill/steps/step-03-steps.md +151 -0
- package/templates/skills/cc-skill/steps/step-04-validate.md +124 -0
- package/templates/skills/cc-skill/templates/skill-forked.md +85 -0
- package/templates/skills/cc-skill/templates/skill-progressive.md +102 -0
- package/templates/skills/cc-skill/templates/skill-simple.md +75 -0
- package/templates/skills/cc-skill/templates/step-template.md +82 -0
- package/templates/skills/check-version/SKILL.md +6 -0
- package/templates/skills/debug/SKILL.md +4 -0
- package/templates/skills/documentation/SKILL.md +1 -0
- package/templates/skills/efcore/SKILL.md +5 -0
- package/templates/skills/efcore/steps/db/step-deploy.md +26 -5
- package/templates/skills/efcore/steps/shared/step-00-init.md +21 -7
- package/templates/skills/explore/SKILL.md +28 -32
- package/templates/skills/feature-full/SKILL.md +1 -0
- package/templates/skills/gitflow/SKILL.md +8 -0
- package/templates/skills/gitflow/steps/step-start.md +45 -10
- package/templates/skills/mcp/SKILL.md +38 -18
- package/templates/skills/quick-search/SKILL.md +8 -1
- package/templates/skills/ralph-loop/SKILL.md +1 -1
- package/templates/skills/ralph-loop/steps/step-00-init.md +8 -68
- package/templates/skills/ralph-loop/steps/step-04-check.md +1 -1
- package/templates/skills/refactor/SKILL.md +1 -0
- package/templates/skills/review-code/SKILL.md +7 -1
- package/templates/skills/ui-components/SKILL.md +31 -438
- package/templates/skills/ui-components/accessibility.md +170 -0
- package/templates/skills/ui-components/patterns/data-table.md +39 -0
- package/templates/skills/ui-components/patterns/entity-card.md +77 -0
- package/templates/skills/ui-components/patterns/grid-layout.md +91 -0
- package/templates/skills/ui-components/patterns/kanban.md +43 -0
- package/templates/skills/ui-components/style-guide.md +86 -0
- package/templates/skills/utils/SKILL.md +1 -0
- package/templates/skills/validate/SKILL.md +1 -0
|
@@ -8,12 +8,19 @@ description: |
|
|
|
8
8
|
- Before any MCP-dependent operation fails
|
|
9
9
|
- After MCP configuration changes
|
|
10
10
|
Subcommands: healthcheck, tools
|
|
11
|
+
model: haiku
|
|
12
|
+
allowed-tools: Read, Bash, Glob
|
|
11
13
|
---
|
|
12
14
|
|
|
15
|
+
## Current state (auto-injected)
|
|
16
|
+
- MCP cache: !`cat .claude/mcp-status.json 2>/dev/null || echo "no cache"`
|
|
17
|
+
|
|
13
18
|
# Skill MCP SmartStack
|
|
14
19
|
|
|
15
20
|
Manages MCP server connectivity and health verification.
|
|
16
21
|
|
|
22
|
+
> **Note:** The MCP server is now bundled inside `@atlashub/smartstack-cli`. There is no separate `@atlashub/smartstack-mcp` package.
|
|
23
|
+
|
|
17
24
|
## SUBCOMMANDS
|
|
18
25
|
|
|
19
26
|
| Command | Description |
|
|
@@ -37,7 +44,7 @@ Performs a complete MCP health check and updates the cache.
|
|
|
37
44
|
│ └─▶ Call mcp__smartstack__validate_conventions │
|
|
38
45
|
│ │
|
|
39
46
|
│ 2. Get MCP Version │
|
|
40
|
-
│ └─▶
|
|
47
|
+
│ └─▶ smartstack --version (bundled in CLI) │
|
|
41
48
|
│ │
|
|
42
49
|
│ 3. List Available Tools │
|
|
43
50
|
│ └─▶ Enumerate mcp__smartstack__* tools │
|
|
@@ -65,16 +72,16 @@ mcp__smartstack__validate_conventions({
|
|
|
65
72
|
Error: <error_message>
|
|
66
73
|
|
|
67
74
|
Actions:
|
|
68
|
-
1. Verify MCP is configured
|
|
69
|
-
2.
|
|
75
|
+
1. Verify MCP is configured: claude mcp list
|
|
76
|
+
2. Re-register: claude mcp add smartstack -- npx -p @atlashub/smartstack-cli smartstack-mcp
|
|
70
77
|
3. Restart Claude Code
|
|
71
78
|
```
|
|
72
79
|
|
|
73
80
|
### Step 2: Get Version
|
|
74
81
|
|
|
75
82
|
```bash
|
|
76
|
-
# Read MCP
|
|
77
|
-
|
|
83
|
+
# Read CLI package version (MCP is bundled inside)
|
|
84
|
+
npx smartstack --version 2>/dev/null || smartstack --version
|
|
78
85
|
```
|
|
79
86
|
|
|
80
87
|
### Step 3: List Tools
|
|
@@ -97,7 +104,7 @@ Write to `.claude/mcp-status.json`:
|
|
|
97
104
|
{
|
|
98
105
|
"lastCheck": "<ISO_DATE>",
|
|
99
106
|
"mcpVersion": "<VERSION>",
|
|
100
|
-
"
|
|
107
|
+
"bundled": true,
|
|
101
108
|
"status": "ok",
|
|
102
109
|
"toolsAvailable": [
|
|
103
110
|
"validate_conventions",
|
|
@@ -116,9 +123,8 @@ Write to `.claude/mcp-status.json`:
|
|
|
116
123
|
MCP HEALTH CHECK ✓
|
|
117
124
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
118
125
|
Status : OK
|
|
119
|
-
Version :
|
|
120
|
-
|
|
121
|
-
Tools : 12 available
|
|
126
|
+
Version : 2.0.0 (bundled)
|
|
127
|
+
Tools : 19 available
|
|
122
128
|
Cache : Updated (.claude/mcp-status.json)
|
|
123
129
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
124
130
|
Next check : in 7 days (auto)
|
|
@@ -129,9 +135,9 @@ MCP HEALTH CHECK ✓
|
|
|
129
135
|
MCP HEALTH CHECK ⚠️
|
|
130
136
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
131
137
|
Status : UPDATE AVAILABLE
|
|
132
|
-
Current : 1.
|
|
133
|
-
Latest :
|
|
134
|
-
Action :
|
|
138
|
+
Current : 1.38.0
|
|
139
|
+
Latest : 2.0.0
|
|
140
|
+
Action : npm update -g @atlashub/smartstack-cli
|
|
135
141
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
136
142
|
```
|
|
137
143
|
|
|
@@ -143,9 +149,9 @@ MCP HEALTH CHECK ❌
|
|
|
143
149
|
Issue : MCP server not responding
|
|
144
150
|
|
|
145
151
|
Troubleshooting:
|
|
146
|
-
1. Check
|
|
147
|
-
2.
|
|
148
|
-
3.
|
|
152
|
+
1. Check registration: claude mcp list
|
|
153
|
+
2. Re-register: claude mcp add smartstack -- npx -p @atlashub/smartstack-cli smartstack-mcp
|
|
154
|
+
3. Update CLI: npm update -g @atlashub/smartstack-cli
|
|
149
155
|
4. Restart Claude Code
|
|
150
156
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
151
157
|
```
|
|
@@ -160,8 +166,8 @@ MCP HEALTH CHECK ❌
|
|
|
160
166
|
```json
|
|
161
167
|
{
|
|
162
168
|
"lastCheck": "2024-01-15T10:30:00.000Z",
|
|
163
|
-
"mcpVersion": "
|
|
164
|
-
"
|
|
169
|
+
"mcpVersion": "2.0.0",
|
|
170
|
+
"bundled": true,
|
|
165
171
|
"status": "ok" | "error",
|
|
166
172
|
"toolsAvailable": ["tool1", "tool2", ...],
|
|
167
173
|
"errors": ["error1", ...] // only if status = error
|
|
@@ -214,6 +220,14 @@ Lists all available MCP tools with their descriptions.
|
|
|
214
220
|
| `scaffold_frontend_extension` | Generate frontend extension infrastructure (types, slots, contexts) |
|
|
215
221
|
| `analyze_extension_points` | Analyze React components for extension points |
|
|
216
222
|
|
|
223
|
+
### Security & Quality Tools (4)
|
|
224
|
+
| Tool | Description |
|
|
225
|
+
|------|-------------|
|
|
226
|
+
| `validate_security` | Validate OWASP security patterns |
|
|
227
|
+
| `analyze_code_quality` | Analyze code quality metrics |
|
|
228
|
+
| `analyze_hierarchy_patterns` | Analyze entity hierarchy patterns |
|
|
229
|
+
| `review_code` | Comprehensive code review with security, performance, a11y checks |
|
|
230
|
+
|
|
217
231
|
### Output Format
|
|
218
232
|
|
|
219
233
|
```
|
|
@@ -241,6 +255,12 @@ FRONTEND TOOLS (5)
|
|
|
241
255
|
scaffold_frontend_extension Generate extension infrastructure
|
|
242
256
|
analyze_extension_points Analyze React extension points
|
|
243
257
|
|
|
258
|
+
SECURITY & QUALITY TOOLS (4)
|
|
259
|
+
validate_security Validate OWASP patterns
|
|
260
|
+
analyze_code_quality Analyze code quality
|
|
261
|
+
analyze_hierarchy_patterns Analyze hierarchy patterns
|
|
262
|
+
review_code Comprehensive code review
|
|
263
|
+
|
|
244
264
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
245
|
-
Total:
|
|
265
|
+
Total: 19 tools available
|
|
246
266
|
```
|
|
@@ -2,12 +2,19 @@
|
|
|
2
2
|
name: quick-search
|
|
3
3
|
description: Lightning-fast search to answer specific questions - optimized for speed
|
|
4
4
|
argument-hint: <question>
|
|
5
|
-
|
|
5
|
+
context: fork
|
|
6
|
+
agent: Explore
|
|
6
7
|
model: haiku
|
|
8
|
+
allowed-tools: Grep, Glob, Read
|
|
7
9
|
---
|
|
8
10
|
|
|
11
|
+
## Question
|
|
12
|
+
$ARGUMENTS
|
|
13
|
+
|
|
9
14
|
<objective>
|
|
10
15
|
Answer questions at maximum speed using direct search tools. No agents, no deep analysis - just fast answers with citations.
|
|
16
|
+
|
|
17
|
+
**Note:** This skill runs in an isolated context. Use Grep, Glob, and Read directly.
|
|
11
18
|
</objective>
|
|
12
19
|
|
|
13
20
|
<quick_start>
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
name: ralph-loop
|
|
3
3
|
description: Iterative AI development loop with MCP validation, progress tracking, and completion promises.
|
|
4
4
|
argument-hint: "[-m N] [-c TEXT] [-v] <task description>"
|
|
5
|
+
disable-model-invocation: true
|
|
5
6
|
---
|
|
6
7
|
|
|
7
8
|
<objective>
|
|
@@ -245,7 +246,6 @@ Before ANY work, verify MCP servers:
|
|
|
245
246
|
> - `task.category`: `domain` | `application` | `infrastructure` | `api` | `frontend` | `i18n` | `test` | `validation` | `other`
|
|
246
247
|
> - `task.dependencies`: Array of task IDs that must be `completed` before this task can start
|
|
247
248
|
> - `history`: Structured iteration journal (replaces unstructured progress.txt for traceability)
|
|
248
|
-
> - **Backward compatibility**: step-00 auto-migrates v1 prd.json (with `passes` boolean) to v2 format
|
|
249
249
|
</file_structure>
|
|
250
250
|
|
|
251
251
|
<execution_rules>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: step-00-init
|
|
3
|
-
description: Initialize Ralph loop - parse args, verify MCP, setup state
|
|
3
|
+
description: Initialize Ralph loop - parse args, verify MCP, setup state
|
|
4
4
|
next_step: steps/step-01-task.md
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -13,7 +13,7 @@ next_step: steps/step-01-task.md
|
|
|
13
13
|
- ONLY check for resume if -r flag is set
|
|
14
14
|
- YOU ARE AN INITIALIZER, not an executor
|
|
15
15
|
- FORBIDDEN to load step-01 until init is complete
|
|
16
|
-
- ALWAYS check prd.json version
|
|
16
|
+
- ALWAYS check prd.json version is v2
|
|
17
17
|
|
|
18
18
|
## YOUR TASK:
|
|
19
19
|
|
|
@@ -120,71 +120,11 @@ STOP - Do not proceed.
|
|
|
120
120
|
```javascript
|
|
121
121
|
const prd = readJSON('.ralph/prd.json');
|
|
122
122
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
migrateV1toV2(prd);
|
|
129
|
-
}
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
**v1 → v2 Migration logic:**
|
|
133
|
-
|
|
134
|
-
```javascript
|
|
135
|
-
function migrateV1toV2(prd) {
|
|
136
|
-
prd.$version = "2.0.0";
|
|
137
|
-
prd.status = prd.tasks.every(t => t.passes) ? "completed" : "in_progress";
|
|
138
|
-
prd.updated_at = new Date().toISOString();
|
|
139
|
-
|
|
140
|
-
// Migrate source field
|
|
141
|
-
if (typeof prd.source === 'string') {
|
|
142
|
-
prd.source = { type: "ba-handoff", handoff_path: prd.source, frd_path: null, brd_path: null };
|
|
143
|
-
} else if (prd.source === null || prd.source === undefined) {
|
|
144
|
-
prd.source = null;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
// Group flat config fields
|
|
148
|
-
prd.config = {
|
|
149
|
-
max_iterations: prd.max_iterations || 50,
|
|
150
|
-
completion_promise: prd.completion_promise || "COMPLETE",
|
|
151
|
-
current_iteration: prd.current_iteration || 1
|
|
152
|
-
};
|
|
153
|
-
delete prd.max_iterations;
|
|
154
|
-
delete prd.completion_promise;
|
|
155
|
-
delete prd.current_iteration;
|
|
156
|
-
|
|
157
|
-
// Add metadata
|
|
158
|
-
prd.metadata = {
|
|
159
|
-
cli_version: "unknown (migrated)",
|
|
160
|
-
branch: getCurrentBranch(),
|
|
161
|
-
project_path: process.cwd(),
|
|
162
|
-
mcp_servers: { smartstack: {mcp_smartstack}, context7: {mcp_context7} }
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
// Migrate tasks
|
|
166
|
-
prd.tasks = prd.tasks.map(t => ({
|
|
167
|
-
id: t.id,
|
|
168
|
-
description: t.description,
|
|
169
|
-
status: t.passes ? "completed" : "pending",
|
|
170
|
-
category: "other",
|
|
171
|
-
dependencies: [],
|
|
172
|
-
acceptance_criteria: null,
|
|
173
|
-
started_at: null,
|
|
174
|
-
completed_at: t.passes ? prd.updated_at : null,
|
|
175
|
-
iteration: null,
|
|
176
|
-
commit_hash: null,
|
|
177
|
-
files_changed: { created: [], modified: [] },
|
|
178
|
-
validation: null,
|
|
179
|
-
error: null
|
|
180
|
-
}));
|
|
181
|
-
|
|
182
|
-
// Initialize history
|
|
183
|
-
prd.history = [];
|
|
184
|
-
|
|
185
|
-
// Write migrated file
|
|
186
|
-
writeJSON('.ralph/prd.json', prd);
|
|
187
|
-
echo "✅ Migrated prd.json from v1 to v2";
|
|
123
|
+
if (prd.$version !== "2.0.0") {
|
|
124
|
+
echo "❌ prd.json schema version unsupported: ${prd.$version || 'missing'}";
|
|
125
|
+
echo " Expected: 2.0.0";
|
|
126
|
+
echo " Re-run /business-analyse to generate a fresh prd.json";
|
|
127
|
+
STOP;
|
|
188
128
|
}
|
|
189
129
|
```
|
|
190
130
|
|
|
@@ -331,7 +271,7 @@ Branch: {CURRENT_BRANCH}
|
|
|
331
271
|
- .ralph/ directory structure created
|
|
332
272
|
- Completion promise defined
|
|
333
273
|
- Metadata collected (branch, version, MCP status)
|
|
334
|
-
-
|
|
274
|
+
- prd.json v2 schema validated (if resume)
|
|
335
275
|
- Branch integrity validated (if resume)
|
|
336
276
|
- Output is COMPACT
|
|
337
277
|
- Proceeded to step-01 immediately after summary
|
|
@@ -8,7 +8,7 @@ next_step: steps/step-05-report.md OR steps/step-01-task.md
|
|
|
8
8
|
|
|
9
9
|
## YOUR TASK:
|
|
10
10
|
|
|
11
|
-
Check if all tasks are complete and decide whether to output completion promise or continue to next task.
|
|
11
|
+
Check if all tasks are complete and decide whether to output completion promise or continue to next task.
|
|
12
12
|
|
|
13
13
|
---
|
|
14
14
|
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: review-code
|
|
3
|
-
description:
|
|
3
|
+
description: Expert code review covering security (OWASP), architecture, clean code (SOLID), performance, and SmartStack conventions via MCP. Use for PR reviews, security audits, and code quality checks.
|
|
4
|
+
model: sonnet
|
|
4
5
|
---
|
|
5
6
|
|
|
7
|
+
## Files to review (auto-injected)
|
|
8
|
+
- Changed files: !`git diff --name-only HEAD~1 2>/dev/null || git diff --name-only --staged 2>/dev/null || echo "no changes detected"`
|
|
9
|
+
- Diff stats: !`git diff --stat HEAD~1 2>/dev/null || git diff --stat --staged 2>/dev/null || echo "no stats"`
|
|
10
|
+
- SmartStack detected: !`test -f "*.sln" && grep -l "SmartStack" *.sln 2>/dev/null && echo "YES" || echo "NO"`
|
|
11
|
+
|
|
6
12
|
<objective>
|
|
7
13
|
Provide expert-level code review guidance that focuses on high-impact issues: security vulnerabilities, logic errors, maintainability problems, and architectural concerns. Skip nitpicks and style issues that should be automated.
|
|
8
14
|
|