@daniel-da-silva-alves/sddk 2.0.0 → 2.1.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/CHANGELOG.md +23 -0
- package/README.md +21 -4
- package/bin/cli.js +4 -4
- package/package.json +7 -2
- package/sddk/plugin.json +1 -1
- package/sddk/skills/code-review/SKILL.md +142 -141
- package/sddk/skills/code-review/references/anti-ai-design-patterns.md +90 -90
- package/sddk/skills/code-review/references/refactoring-severity-guide.md +60 -60
- package/sddk/skills/code-review/references/security-checklist.md +59 -59
- package/sddk/skills/fullstack-development/SKILL.md +79 -78
- package/sddk/skills/fullstack-development/references/clean-code-rules.md +65 -65
- package/sddk/skills/fullstack-development/references/self-review-checklist.md +42 -42
- package/sddk/skills/implementation-planning/SKILL.md +65 -64
- package/sddk/skills/implementation-planning/references/manual-tests-template.md +53 -53
- package/sddk/skills/implementation-planning/references/microtask-template.md +47 -47
- package/sddk/skills/software-requirements-specification/SKILL.md +46 -45
- package/sddk/skills/software-requirements-specification/references/checklist-template.md +48 -48
- package/sddk/skills/software-requirements-specification/references/ieee-830-template.md +94 -94
- package/sddk/skills/software-requirements-specification/references/socratic-interview-guide.md +65 -65
- package/sddk/skills/system-design-document/SKILL.md +108 -107
- package/sddk/skills/system-design-document/references/architecture-patterns.md +59 -59
- package/sddk/skills/system-design-document/references/documentation-sources-guide.md +69 -69
- package/sddk/skills/system-design-document/references/sdd-template.md +117 -117
- package/sddk/skills/system-design-document/references/standards-api-template.md +47 -47
- package/sddk/skills/system-design-document/references/standards-architecture-template.md +42 -42
- package/sddk/skills/system-design-document/references/standards-coding-template.md +64 -64
- package/sddk/skills/system-design-document/references/standards-design-system-template.md +81 -81
- package/sddk/skills/system-design-document/references/standards-naming-template.md +59 -59
- package/sddk/skills/system-design-document/references/standards-onboarding-guide.md +80 -80
- package/sddk/skills/system-design-document/references/tech-stack-analysis.md +37 -37
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Technology Stack Analysis and Suggestion Guide
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## How to Detect the Existing Stack
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Before suggesting any technology, analyze the user's existing project:
|
|
6
6
|
|
|
7
|
-
###
|
|
7
|
+
### Indicator Files
|
|
8
8
|
|
|
9
|
-
|
|
|
9
|
+
| File | Indicates |
|
|
10
10
|
|:---|:---|
|
|
11
11
|
| `package.json` | Node.js / JavaScript / TypeScript |
|
|
12
12
|
| `tsconfig.json` | TypeScript |
|
|
@@ -17,22 +17,22 @@ Antes de sugerir qualquer tecnologia, analise o projeto existente do usuário:
|
|
|
17
17
|
| `Gemfile` | Ruby |
|
|
18
18
|
| `composer.json` | PHP |
|
|
19
19
|
|
|
20
|
-
###
|
|
20
|
+
### Inside `package.json` — Detect Framework
|
|
21
21
|
|
|
22
|
-
|
|
|
22
|
+
| Dependency | Framework |
|
|
23
23
|
|:---|:---|
|
|
24
24
|
| `next` | Next.js |
|
|
25
25
|
| `nuxt` | Nuxt.js |
|
|
26
|
-
| `react` (
|
|
27
|
-
| `vue` (
|
|
26
|
+
| `react` (without next) | React SPA (probably Vite) |
|
|
27
|
+
| `vue` (without nuxt) | Vue.js SPA |
|
|
28
28
|
| `@angular/core` | Angular |
|
|
29
29
|
| `express` | Express.js |
|
|
30
30
|
| `@nestjs/core` | NestJS |
|
|
31
31
|
| `fastify` | Fastify |
|
|
32
32
|
|
|
33
|
-
###
|
|
33
|
+
### Inside `requirements.txt` / `pyproject.toml` — Detect Python Framework
|
|
34
34
|
|
|
35
|
-
|
|
|
35
|
+
| Dependency | Framework |
|
|
36
36
|
|:---|:---|
|
|
37
37
|
| `django` | Django |
|
|
38
38
|
| `fastapi` | FastAPI |
|
|
@@ -41,44 +41,44 @@ Antes de sugerir qualquer tecnologia, analise o projeto existente do usuário:
|
|
|
41
41
|
|
|
42
42
|
---
|
|
43
43
|
|
|
44
|
-
##
|
|
44
|
+
## How to Suggest a Stack (When There's No Project)
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
If the user is starting from scratch, use these questions to guide the suggestion:
|
|
47
47
|
|
|
48
|
-
###
|
|
48
|
+
### Question 1: Application Type
|
|
49
49
|
|
|
50
|
-
|
|
|
50
|
+
| Type | Suggested Stack |
|
|
51
51
|
|:---|:---|
|
|
52
52
|
| **Web fullstack (SSR)** | Next.js + TypeScript + Prisma + PostgreSQL |
|
|
53
|
-
| **Web SPA + API
|
|
54
|
-
| **API/Backend only** | NestJS (TS)
|
|
55
|
-
| **Mobile** | React Native + Expo
|
|
56
|
-
| **CLI tool** | Node.js + Commander
|
|
53
|
+
| **Web SPA + separate API** | Vite + React + TypeScript (front) + NestJS or FastAPI (back) |
|
|
54
|
+
| **API/Backend only** | NestJS (TS) or FastAPI (Python) |
|
|
55
|
+
| **Mobile** | React Native + Expo or Flutter |
|
|
56
|
+
| **CLI tool** | Node.js + Commander or Python + Click |
|
|
57
57
|
|
|
58
|
-
###
|
|
58
|
+
### Question 2: Project Priorities
|
|
59
59
|
|
|
60
|
-
|
|
|
60
|
+
| Priority | Stack Influence |
|
|
61
61
|
|:---|:---|
|
|
62
|
-
| **Performance** |
|
|
63
|
-
| **
|
|
64
|
-
| **
|
|
65
|
-
| **
|
|
62
|
+
| **Performance** | Consider Rust, Go, or specific optimizations |
|
|
63
|
+
| **Development speed** | Frameworks with more abstractions (Next.js, Django) |
|
|
64
|
+
| **Scalability** | Microservices, queues, distributed cache |
|
|
65
|
+
| **Simplicity** | Monolith, ORM, full-featured framework |
|
|
66
66
|
|
|
67
|
-
###
|
|
67
|
+
### Question 3: Team
|
|
68
68
|
|
|
69
|
-
|
|
|
69
|
+
| Context | Influence |
|
|
70
70
|
|:---|:---|
|
|
71
|
-
|
|
|
72
|
-
|
|
|
73
|
-
|
|
|
71
|
+
| Solo dev | Fewer abstractions, full-stack frameworks |
|
|
72
|
+
| Small team (2-5) | Monorepo, end-to-end TypeScript |
|
|
73
|
+
| Large team (5+) | Well-defined modules, robust CI/CD |
|
|
74
74
|
|
|
75
75
|
---
|
|
76
76
|
|
|
77
|
-
##
|
|
77
|
+
## Suggestion Rules
|
|
78
78
|
|
|
79
|
-
1. **
|
|
80
|
-
2. **
|
|
81
|
-
3. **
|
|
82
|
-
4. **
|
|
83
|
-
5. **Use `ask_question`**
|
|
84
|
-
6. **
|
|
79
|
+
1. **NEVER suggest a stack without justification** — always explain the "why"
|
|
80
|
+
2. **Consider the user's experience** — don't suggest Rust if the user is a beginner
|
|
81
|
+
3. **Present at most 3 options** — excess choice paralyzes
|
|
82
|
+
4. **Include pros and cons** of each option
|
|
83
|
+
5. **Use `ask_question`** so the user can formally choose
|
|
84
|
+
6. **Record the decision** with justification in the SDD
|