@antoneeo/agentic-sdlc-skill 1.4.0 → 1.6.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 +47 -12
- package/README.md +80 -85
- package/gemini-extension.json +2 -2
- package/package.json +6 -3
- package/references/analysis_template.md +39 -20
- package/references/architecture_template.md +11 -7
- package/references/existing_features_template.md +4 -0
- package/references/feature_vision_template.md +2 -0
- package/references/features_history_template.md +5 -6
- package/references/principles_template.md +3 -2
- package/references/project_vision_template.md +4 -3
- package/references/roadmap_template.md +3 -2
- package/scripts/init.js +63 -45
- package/scripts/postinstall.js +38 -12
- package/scripts/preuninstall.js +7 -4
- package/skills/agentic-sdlc-skill/ENFORCEMENT.md +55 -0
- package/skills/agentic-sdlc-skill/SKILL.md +170 -99
- package/skills/agentic-sdlc-skill/scripts/sdlc_check.py +621 -0
- package/skills/agentic-sdlc-skill/templates.md +192 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,52 @@
|
|
|
1
1
|
# Changelog - Agentic SDLC Skill
|
|
2
2
|
|
|
3
|
-
Tutte le modifiche significative a questa skill saranno documentate in questo file.
|
|
4
|
-
|
|
5
|
-
## [1.
|
|
6
|
-
### Added
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
-
|
|
3
|
+
Tutte le modifiche significative a questa skill saranno documentate in questo file.
|
|
4
|
+
|
|
5
|
+
## [1.6.0] - 2026-06-15
|
|
6
|
+
### Added
|
|
7
|
+
- **Manifest generato dei documenti canonici** (`ai_docs/INDEX.md`): `sdlc_check.py index` ora produce, oltre a `features_history.md`, un indice completo di tutti i doc in `vision/`, `reference/`, `architecture/`, `functional/`, `strategic/`, con descrizione e stato letti dall'header. Si rigenera, quindi non drifta.
|
|
8
|
+
- **Lifecycle dei documenti canonici**: convenzione header `status: CURRENT|SUPERSEDED|DRAFT|DEPRECATED` + `supersedes:`. `validate` avvisa se `status` manca/è invalido o se un doc superseduto è ancora `CURRENT`. Stop ai grep che riportano a guide obsolete.
|
|
9
|
+
- **Modello a due indici** documentato nella sezione "Documenti ai_docs" di `SKILL.md`: `README.md` curato (must-read, a mano) vs `INDEX.md` generato (completo, meccanico) — ruoli separati, prima confusi in un unico README che driftava.
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
- §1 Audit: leggere `README.md` + `INDEX.md` all'avvio per sapere cosa esiste prima di esplorare il codice.
|
|
13
|
+
- §3 Analisi: cercare con glob/grep un'ANALYSIS esistente prima di crearne una nuova (anti-duplicazione).
|
|
14
|
+
- §5 Chiusura: gate "Indici allineati" — rigenerare `INDEX.md`, aggiornare il `README.md` curato per i must-read, marcare lo `status`; doc canonico non indicizzato o senza `status` = chiusura sporca.
|
|
15
|
+
- `templates.md`: aggiunto il template dell'header dei documenti canonici.
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
- `sdlc_check.py` legge ora i file con `utf-8-sig`: un BOM iniziale (file autorati su Windows) non impedisce più il riconoscimento del frontmatter `---`.
|
|
19
|
+
- L'estrattore dell'header riconosce sia il frontmatter `status:` sia la riga in corpo `**Status:**`/`Stato:`, e gli stati di tutte le convenzioni in uso (canonici `CURRENT/SUPERSEDED/DRAFT/DEPRECATED`, vision `DRAFT/APPROVED`, ADR `Accepted/Proposed/Rejected`) — niente più falsi avvisi "status non riconosciuto" su `APPROVED`/`Accepted`.
|
|
20
|
+
- La descrizione del manifest salta righe di metadati (`Date`, `Created`, `Task ref`, ...) e i commenti HTML, così non finiscono come descrizione del documento.
|
|
21
|
+
- `index` non genera più un `INDEX.md` vuoto su progetti senza documenti canonici (solo `solutions/`+`audit/`).
|
|
22
|
+
|
|
23
|
+
### Migrazione (da 1.5.x)
|
|
24
|
+
- Al primo `sdlc_check.py check`/`validate` dopo l'upgrade, un progetto con documenti canonici darà **un errore** `ai_docs/INDEX.md mancante`: è atteso — esegui **una volta** `sdlc_check.py index` per generarlo. Da lì in poi resta allineato.
|
|
25
|
+
- I documenti canonici preesistenti senza `status:` produrranno **avvisi** (non errori): aggiungi l'header `description:`/`status:` per silenziarli. I nuovi progetti nascono già compatibili (template aggiornati).
|
|
26
|
+
|
|
27
|
+
## [1.5.0] - 2026-06-13
|
|
28
|
+
### Added
|
|
29
|
+
- Introdotta la Regola Zero di triage (`L1`, `L2`, `L3`, `Spike`) per rendere il processo proporzionale al rischio.
|
|
30
|
+
- Aggiunta simbiosi esplicita con devPNT: in Hybrid la `M-VISION` guida la milestone, il Master Plan resta roadmap strategica e l'Action Plan governa l'esecuzione tattica.
|
|
31
|
+
- Aggiunti support file dentro la skill runtime: `templates.md`, `ENFORCEMENT.md`, `scripts/sdlc_check.py`.
|
|
32
|
+
- `agentic-sdlc-install-skill` ora installa la skill nativa anche in `~/.gemini/skills/agentic-sdlc/`.
|
|
33
|
+
- Aggiunto validatore meccanico opzionale per frontmatter ANALYSIS, Vision state, indice feature e audit stale.
|
|
34
|
+
|
|
35
|
+
### Changed
|
|
36
|
+
- Il nome pubblico resta `agentic-sdlc`; la proposta v2 e' stata integrata come evoluzione, non come skill parallela.
|
|
37
|
+
- Aggiornati `agentic-sdlc-init`, template, protocolli generati, README e metadata.
|
|
38
|
+
- La modalita Standalone resta completa; devPNT e' un livello di governance superiore, non un prerequisito.
|
|
39
|
+
|
|
40
|
+
## [1.4.0] - 2026-06-07
|
|
41
|
+
### Added
|
|
42
|
+
- Introdotta la governance della **Vision** con nuova struttura `ai_docs/vision/` (`project_vision.md`, `roadmap.md`, `principles.md`, `features/`).
|
|
43
|
+
- Aggiunto il **Vision Gate** nel workflow operativo: ogni feature significativa deve essere verificata rispetto a obiettivi, non-obiettivi, benefici attesi e segnali di successo prima dell'analisi tecnica.
|
|
44
|
+
- Aggiunti template Vision in `references/` e sezione `Allineamento alla Vision` nel template di analisi.
|
|
45
|
+
- `agentic-sdlc-init` ora crea i documenti Vision boilerplate nei nuovi progetti.
|
|
46
|
+
|
|
47
|
+
## [1.3.1] - 2026-05-14
|
|
48
|
+
### Fixed
|
|
49
|
+
- Correzione documentazione (README + CHANGELOG) della sintassi per invocare il bin `agentic-sdlc-install-skill`. La forma `npx @antoneeo/agentic-sdlc-skill agentic-sdlc-install-skill` documentata in 1.3.0 **non funziona** perché npx non riesce a disambiguare il bin quando il pacchetto ne espone più di uno (errore: `could not determine executable to run`). Sintassi corretta: lanciare `agentic-sdlc-install-skill` direttamente dopo `npm install -g`, oppure usare `npx -p @antoneeo/agentic-sdlc-skill agentic-sdlc-install-skill` con `-p` esplicito.
|
|
15
50
|
- Nessuna modifica al codice della skill: il bin di 1.3.0 funziona correttamente, era solo la doc a indicare la sintassi sbagliata.
|
|
16
51
|
|
|
17
52
|
## [1.3.0] - 2026-05-14
|
package/README.md
CHANGED
|
@@ -1,86 +1,81 @@
|
|
|
1
|
-
# Agentic SDLC Skill for Claude Code, Gemini CLI & Codex
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
# Agentic SDLC Skill for Claude Code, Gemini CLI & Codex
|
|
2
|
+
|
|
3
|
+
`agentic-sdlc` is a Documentation-First SDLC protocol for AI coding agents. It supports Claude Code, Codex, Gemini CLI, Cursor/Windsurf-style project instructions, and optional devPNT governance.
|
|
4
|
+
|
|
5
5
|
## Key Features
|
|
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
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
- `gemini-extension.json`: Extension manifest.
|
|
83
|
-
|
|
84
|
-
---
|
|
85
|
-
Created by **Antonio Pinto** ([GitHub](https://github.com/Antoneeo))
|
|
86
|
-
(c) 2026 Antonio Pinto. All rights reserved.
|
|
6
|
+
|
|
7
|
+
- **Risk-proportional workflow**: L1/L2/L3/Spike triage avoids heavyweight process for trivial work.
|
|
8
|
+
- **Vision-guided governance**: Standalone projects use `ai_docs/vision/`; Hybrid projects use devPNT `M-VISION` as the milestone north star.
|
|
9
|
+
- **Standalone complete**: works fully with local `ai_docs/` without requiring devPNT.
|
|
10
|
+
- **devPNT symbiosis**: when devPNT is available, Master Plan, Action Plan, M-VISION, and governed artifacts become the authoritative planning layer.
|
|
11
|
+
- **Installed support files**: Claude, Codex, and Gemini receive the full skill folder, including `templates.md`, `ENFORCEMENT.md`, and `scripts/sdlc_check.py`.
|
|
12
|
+
- **Mechanical checks**: optional validator for document structure, generated feature history, stale audit areas, and protected-path gates.
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
### Via npm
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npm install -g @antoneeo/agentic-sdlc-skill@latest
|
|
20
|
+
agentic-sdlc-install-skill
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
The installer copies `skills/agentic-sdlc-skill/` recursively into native skill locations:
|
|
24
|
+
|
|
25
|
+
- Claude Code: `~/.claude/skills/agentic-sdlc/`
|
|
26
|
+
- Codex: `~/.codex/skills/agentic-sdlc/`
|
|
27
|
+
- Gemini CLI: `~/.gemini/skills/agentic-sdlc/`
|
|
28
|
+
|
|
29
|
+
Restart the relevant agent, or reload skills where the CLI supports it.
|
|
30
|
+
|
|
31
|
+
The global package also exposes:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
agentic-sdlc-init
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Run it inside a project to create `ai_docs/`, Vision documents, strategic docs, audit plan, and agent protocol files (`AGENTS.md`, `CLAUDE.md`, `GEMINI.md`, `.cursorrules`).
|
|
38
|
+
|
|
39
|
+
## Runtime Shape
|
|
40
|
+
|
|
41
|
+
The actual runtime skill is the folder:
|
|
42
|
+
|
|
43
|
+
```text
|
|
44
|
+
skills/agentic-sdlc-skill/
|
|
45
|
+
├── SKILL.md
|
|
46
|
+
├── templates.md
|
|
47
|
+
├── ENFORCEMENT.md
|
|
48
|
+
└── scripts/
|
|
49
|
+
└── sdlc_check.py
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
`SKILL.md` is the entrypoint. Supporting files are loaded or executed only when the agent needs them.
|
|
53
|
+
|
|
54
|
+
## Standalone vs Hybrid
|
|
55
|
+
|
|
56
|
+
Standalone:
|
|
57
|
+
|
|
58
|
+
- `ai_docs/` is the source of truth.
|
|
59
|
+
- Vision, analysis, audit, handoff, test strategy, and feature history are maintained locally.
|
|
60
|
+
|
|
61
|
+
Hybrid/devPNT:
|
|
62
|
+
|
|
63
|
+
- devPNT governs `M-VISION`, Master Plan, Action Plan, and versioned artifacts.
|
|
64
|
+
- `ai_docs/` remains useful as readable context, fallback, handoff, or shadow copy.
|
|
65
|
+
- Divergence between user request, local Vision, and devPNT `M-VISION` must be surfaced before implementation.
|
|
66
|
+
|
|
67
|
+
## Gemini Extension Alternative
|
|
68
|
+
|
|
69
|
+
You can still install this folder as a Gemini extension:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
gemini extensions install .
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
For native Gemini Agent Skills, the npm installer now copies the skill folder into `~/.gemini/skills/agentic-sdlc/`.
|
|
76
|
+
|
|
77
|
+
## Created By
|
|
78
|
+
|
|
79
|
+
Created by **Antonio Pinto** ([GitHub](https://github.com/Antoneeo)).
|
|
80
|
+
|
|
81
|
+
(c) 2026 Antonio Pinto. All rights reserved.
|
package/gemini-extension.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentic-sdlc-skill",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Protocollo SDLC Documentation-First
|
|
3
|
+
"version": "1.6.0",
|
|
4
|
+
"description": "Protocollo SDLC Documentation-First con triage, Vision governance e integrazione opzionale devPNT.",
|
|
5
5
|
"author": "Antonio Pinto (https://github.com/Antoneeo)"
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antoneeo/agentic-sdlc-skill",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Protocollo SDLC Documentation-First per Claude Code, Gemini CLI e Codex
|
|
3
|
+
"version": "1.6.0",
|
|
4
|
+
"description": "Protocollo SDLC Documentation-First per Claude Code, Gemini CLI e Codex con triage, Vision governance, support file installati e integrazione opzionale devPNT.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|
|
7
7
|
"claude-skill",
|
|
@@ -25,7 +25,10 @@
|
|
|
25
25
|
"preuninstall": "node scripts/preuninstall.js"
|
|
26
26
|
},
|
|
27
27
|
"files": [
|
|
28
|
-
"skills",
|
|
28
|
+
"skills/agentic-sdlc-skill/SKILL.md",
|
|
29
|
+
"skills/agentic-sdlc-skill/templates.md",
|
|
30
|
+
"skills/agentic-sdlc-skill/ENFORCEMENT.md",
|
|
31
|
+
"skills/agentic-sdlc-skill/scripts/sdlc_check.py",
|
|
29
32
|
"gemini-extension.json",
|
|
30
33
|
"references",
|
|
31
34
|
"README.md",
|
|
@@ -1,25 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
---
|
|
2
|
+
id: F-XXX
|
|
3
|
+
feature: [Nome Feature]
|
|
4
|
+
stato: PLANNED
|
|
5
|
+
livello: L3
|
|
6
|
+
data_inizio: YYYY-MM-DD
|
|
7
|
+
data_fine:
|
|
8
|
+
---
|
|
9
|
+
# Analisi della Feature: [Nome Feature]
|
|
10
|
+
|
|
3
11
|
## Obiettivo
|
|
4
12
|
- Cosa si vuole ottenere?
|
|
5
|
-
-
|
|
13
|
+
- Quale problema risolve?
|
|
6
14
|
|
|
7
|
-
##
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
15
|
+
## Vision della Feature
|
|
16
|
+
- Documento guida: `ai_docs/vision/project_vision.md` o `ai_docs/vision/features/VISION_[nome_feature].md`.
|
|
17
|
+
- Stato della Vision guida: DRAFT oppure APPROVED.
|
|
18
|
+
- Beneficio atteso.
|
|
19
|
+
- Non-obiettivi / fuori scope.
|
|
20
|
+
- Segnali di successo.
|
|
12
21
|
|
|
13
22
|
## Impatto
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
|
|
18
|
-
##
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
-
|
|
23
|
+
- File o moduli coinvolti.
|
|
24
|
+
- API, contratti o formati dati impattati.
|
|
25
|
+
- Performance, migrazioni o nuove dipendenze.
|
|
26
|
+
|
|
27
|
+
## Sicurezza e Threat Model
|
|
28
|
+
- Superfici toccate: input esterni, authN/authZ, crittografia, rete, dati personali, filesystem.
|
|
29
|
+
- Minacce principali.
|
|
30
|
+
- Mitigazioni.
|
|
31
|
+
- Se non c'e' impatto di sicurezza, motivare perche.
|
|
32
|
+
|
|
33
|
+
## Piano d'Azione
|
|
34
|
+
- [ ] Sviluppo
|
|
35
|
+
- [ ] Test
|
|
36
|
+
- [ ] Chiusura documentale
|
|
37
|
+
|
|
38
|
+
## Strategia di Test
|
|
39
|
+
- Unit test AAA.
|
|
40
|
+
- Test di integrazione o smoke check.
|
|
41
|
+
- Verifica alternativa se i test automatici non sono eseguibili.
|
|
42
|
+
|
|
43
|
+
## Diario / Stato Corrente
|
|
44
|
+
- YYYY-MM-DD: Stato iniziale e prossimo passo.
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Stack, struttura directory e pattern architetturali del progetto.
|
|
3
|
+
status: CURRENT
|
|
4
|
+
---
|
|
1
5
|
# Architettura del Progetto
|
|
2
6
|
|
|
3
7
|
## Stack Tecnologico
|
|
@@ -6,13 +10,13 @@
|
|
|
6
10
|
- **Database:** [es. PostgreSQL]
|
|
7
11
|
- **Strumenti di Test:** [es. Jest, Vitest]
|
|
8
12
|
|
|
9
|
-
## Struttura delle Directory
|
|
10
|
-
- `src/`: Codice sorgente.
|
|
11
|
-
- `ai_docs/vision/`: Vision di progetto, roadmap, principi e mini-vision delle feature.
|
|
12
|
-
- `ai_docs/strategic/`: Architettura, feature esistenti e storico feature.
|
|
13
|
-
- `ai_docs/solutions/`: Analisi e piani delle singole feature.
|
|
14
|
-
- `ai_docs/audit/`: Piano di audit e handoff di sessione.
|
|
15
|
-
- `tests/`: Test automatici.
|
|
13
|
+
## Struttura delle Directory
|
|
14
|
+
- `src/`: Codice sorgente.
|
|
15
|
+
- `ai_docs/vision/`: Vision di progetto, roadmap, principi e mini-vision delle feature.
|
|
16
|
+
- `ai_docs/strategic/`: Architettura, feature esistenti e storico feature.
|
|
17
|
+
- `ai_docs/solutions/`: Analisi e piani delle singole feature.
|
|
18
|
+
- `ai_docs/audit/`: Piano di audit e handoff di sessione.
|
|
19
|
+
- `tests/`: Test automatici.
|
|
16
20
|
|
|
17
21
|
## Pattern Architetturali
|
|
18
22
|
- [es. MVC, Clean Architecture, Layered Architecture]
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Vision della Feature: [Nome Feature]
|
|
2
2
|
|
|
3
|
+
Usare un file separato solo quando la feature attraversa piu ANALYSIS o piu milestone. Altrimenti tenere la Vision della Feature dentro `ANALYSIS_[feature].md`.
|
|
4
|
+
|
|
3
5
|
## Problema
|
|
4
6
|
- Quale problema specifico risolve questa feature?
|
|
5
7
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
| [ID] | Altra | [COMPLETED] | YYYY-MM-DD | YYYY-MM-DD | [ANALYSIS_altra.md] | Conclusa |
|
|
1
|
+
<!-- GENERATED by agentic-sdlc - update manually only if the project does not use sdlc_check.py index. -->
|
|
2
|
+
# Feature History
|
|
3
|
+
|
|
4
|
+
| ID | Feature Name | Level | Status | Start Date | End Date | Analysis Doc |
|
|
5
|
+
|:---|:---|:---|:---|:---|:---|:---|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# Principi di Vision
|
|
2
|
+
Stato: DRAFT
|
|
2
3
|
|
|
3
|
-
I principi in questo file guidano trade-off, scope e decisioni tecniche quando
|
|
4
|
+
I principi in questo file guidano trade-off, scope e decisioni tecniche quando piu soluzioni sono possibili.
|
|
4
5
|
|
|
5
6
|
## Principi
|
|
6
7
|
- **[Principio]**: [Descrizione pratica del criterio decisionale].
|
|
@@ -9,4 +10,4 @@ I principi in questo file guidano trade-off, scope e decisioni tecniche quando p
|
|
|
9
10
|
- Preferire [A] rispetto a [B] quando [condizione].
|
|
10
11
|
|
|
11
12
|
## Anti-Pattern Strategici
|
|
12
|
-
- [Comportamento o direzione da evitare
|
|
13
|
+
- [Comportamento o direzione da evitare perche devia dalla Vision].
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
# Vision del Progetto
|
|
2
|
+
Stato: DRAFT
|
|
2
3
|
|
|
3
4
|
## North Star
|
|
4
|
-
- Qual
|
|
5
|
+
- Qual e' l'obiettivo finale che il progetto deve preservare nel tempo?
|
|
5
6
|
|
|
6
7
|
## Problema Centrale
|
|
7
8
|
- Quale problema reale risolve il progetto?
|
|
8
9
|
|
|
9
10
|
## Utenti Target
|
|
10
|
-
- Chi sono
|
|
11
|
+
- Chi sono utenti o stakeholder principali?
|
|
11
12
|
|
|
12
13
|
## Valore Atteso
|
|
13
14
|
- Quale beneficio misurabile o osservabile deve produrre il progetto?
|
|
@@ -18,7 +19,7 @@
|
|
|
18
19
|
|
|
19
20
|
## Non-Obiettivi
|
|
20
21
|
- [Cosa il progetto non vuole diventare]
|
|
21
|
-
- [Cosa
|
|
22
|
+
- [Cosa e' esplicitamente fuori scope]
|
|
22
23
|
|
|
23
24
|
## Segnali di Successo
|
|
24
25
|
- [Indicatore qualitativo o quantitativo]
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
# Roadmap della Vision
|
|
2
|
+
Stato: DRAFT
|
|
2
3
|
|
|
3
|
-
| Milestone | Beneficio Atteso |
|
|
4
|
+
| Milestone | Beneficio Atteso | Priorita | Segnali di Successo | Stato |
|
|
4
5
|
|:---|:---|:---|:---|:---|
|
|
5
6
|
| M1 | [Beneficio] | Alta | [Segnale] | [PLANNED] |
|
|
6
7
|
|
|
7
8
|
## Note di Direzione
|
|
8
|
-
- Decisioni strategiche o cambi di
|
|
9
|
+
- Decisioni strategiche o cambi di priorita rilevanti.
|
package/scripts/init.js
CHANGED
|
@@ -44,49 +44,65 @@ const files = {
|
|
|
44
44
|
// 2. Operational Protocol (System Prompt)
|
|
45
45
|
const protocolContent = `# "Agentic SDLC" Operational Protocol
|
|
46
46
|
|
|
47
|
-
You are a senior software engineer
|
|
48
|
-
|
|
49
|
-
##
|
|
50
|
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
47
|
+
You are a senior software engineer following a Documentation-First and Vision-Guided process. The process is proportional to risk: do not apply heavyweight governance to trivial work, but never bypass Vision, security, or design gates for significant changes.
|
|
48
|
+
|
|
49
|
+
## 0. Triage First
|
|
50
|
+
Classify every operational request:
|
|
51
|
+
- L1 Trivial: small local fix, no API/dependency/behavior expansion. Implement with relevant tests; no new docs.
|
|
52
|
+
- L2 Small: clear root cause, up to 3 files, low risk. Provide mini-analysis in the response; test.
|
|
53
|
+
- L3 Significant: public contract, user-visible behavior, security-sensitive area, new dependency, architectural impact, or more than 3 files. Use the full workflow below.
|
|
54
|
+
- Spike: time-boxed exploration; document result in \`ai_docs/solutions/SPIKE_[topic].md\`; production work must be reclassified.
|
|
55
|
+
|
|
56
|
+
Security-sensitive areas are never L1.
|
|
57
|
+
|
|
58
|
+
## 1. Mode Selection
|
|
59
|
+
- Standalone: if devPNT is unavailable, use \`ai_docs/\` as the complete source of truth.
|
|
60
|
+
- Hybrid/devPNT: if devPNT is available and configured for this project, use it for governed state. The devPNT M-VISION is the milestone north star, Master Plan is strategic roadmap, Action Plan is tactical execution, and governed artifacts live in devPNT.
|
|
61
|
+
- Do not create silent double truth. In Hybrid, \`ai_docs/\` is human-readable context, fallback, handoff, or shadow; devPNT governs plans and versioned artifacts.
|
|
62
|
+
|
|
63
|
+
## 2. Audit and Alignment
|
|
64
|
+
For L3 or explicit audit requests:
|
|
65
|
+
- Check \`ai_docs/\`, \`ai_docs/vision/\`, \`ai_docs/strategic/\`, \`ai_docs/audit/\`, and \`ai_docs/solutions/\`.
|
|
66
|
+
- If missing, create them by analyzing the codebase in batches.
|
|
60
67
|
- Never treat architecture or feature history as a substitute for Vision.
|
|
61
68
|
|
|
62
|
-
##
|
|
63
|
-
|
|
64
|
-
- Read \`ai_docs/vision/project_vision.md\`, \`
|
|
65
|
-
-
|
|
66
|
-
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
69
|
+
## 3. Vision Gate
|
|
70
|
+
Standalone:
|
|
71
|
+
- Read \`ai_docs/vision/project_vision.md\`, \`roadmap.md\`, and \`principles.md\`.
|
|
72
|
+
- Vision documents start as \`Stato: DRAFT\`; DRAFT informs but does not block an explicit user request.
|
|
73
|
+
- \`Stato: APPROVED\` is binding: surface conflicts before implementation.
|
|
74
|
+
|
|
75
|
+
Hybrid/devPNT:
|
|
76
|
+
- Read the active M-VISION before design or code.
|
|
77
|
+
- Verify the request advances a stated benefit or success signal.
|
|
78
|
+
- If request, local Vision, and M-VISION diverge, stop and surface the conflict.
|
|
79
|
+
|
|
80
|
+
## 4. Request Analysis
|
|
81
|
+
For L3 in Standalone:
|
|
82
|
+
- Create or update \`ai_docs/solutions/ANALYSIS_[feature].md\`.
|
|
83
|
+
- Include Objective, Feature Vision, Impact, Security and Threat Model, Action Plan, Test Strategy, and Diary/Current State.
|
|
84
|
+
|
|
85
|
+
For L3 in Hybrid:
|
|
86
|
+
- Restore Master Plan, Action Plan, and related devPNT artifacts.
|
|
87
|
+
- Use devPNT for D-UC, P-TM, E-ISP, E-TDD, E-TP, ADR, and plan updates.
|
|
88
|
+
- Use Markdown shadows only as readable mirrors, never as the authoritative source over devPNT.
|
|
89
|
+
|
|
90
|
+
## 5. Development and Testing
|
|
91
|
+
Only after the required gate for the triage level:
|
|
92
|
+
1. Implement surgically following the plan.
|
|
93
|
+
2. Write or update automated tests where possible, using AAA for unit tests.
|
|
94
|
+
3. Run tests/lint/smoke checks. If the environment cannot run them, document the alternative verification.
|
|
95
|
+
4. After 3 consecutive test runs without progress, stop and ask for guidance.
|
|
96
|
+
|
|
97
|
+
## 6. Closing
|
|
98
|
+
- Verify the result against local Vision or devPNT M-VISION.
|
|
99
|
+
- Update only documents actually impacted.
|
|
100
|
+
- In Hybrid, propose ADR/KL updates when architectural facts changed.
|
|
101
|
+
- Keep docs and code in the same commit/PR.
|
|
87
102
|
`;
|
|
88
103
|
|
|
89
104
|
const projectVisionBoilerplate = `# Project Vision
|
|
105
|
+
Stato: DRAFT
|
|
90
106
|
|
|
91
107
|
## North Star
|
|
92
108
|
- TBD
|
|
@@ -105,6 +121,7 @@ const projectVisionBoilerplate = `# Project Vision
|
|
|
105
121
|
`;
|
|
106
122
|
|
|
107
123
|
const roadmapBoilerplate = `# Vision Roadmap
|
|
124
|
+
Stato: DRAFT
|
|
108
125
|
|
|
109
126
|
| Milestone | Expected Benefit | Priority | Success Signal | Status |
|
|
110
127
|
|:---|:---|:---|:---|:---|
|
|
@@ -112,6 +129,7 @@ const roadmapBoilerplate = `# Vision Roadmap
|
|
|
112
129
|
`;
|
|
113
130
|
|
|
114
131
|
const principlesBoilerplate = `# Vision Principles
|
|
132
|
+
Stato: DRAFT
|
|
115
133
|
|
|
116
134
|
## Principles
|
|
117
135
|
- TBD
|
|
@@ -120,12 +138,12 @@ const principlesBoilerplate = `# Vision Principles
|
|
|
120
138
|
- TBD
|
|
121
139
|
`;
|
|
122
140
|
|
|
123
|
-
const historyBoilerplate =
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
`;
|
|
141
|
+
const historyBoilerplate = `<!-- GENERATED by agentic-sdlc - update manually only if the project does not use sdlc_check.py index. -->
|
|
142
|
+
# Feature History
|
|
143
|
+
|
|
144
|
+
| ID | Feature Name | Level | Status | Start Date | End Date | Analysis Doc |
|
|
145
|
+
|:---|:---|:---|:---|:---|:---|:---|
|
|
146
|
+
`;
|
|
129
147
|
|
|
130
148
|
console.log('🚀 Initializing Agentic SDLC workflow (Discovery Mode)...');
|
|
131
149
|
|
|
@@ -155,7 +173,7 @@ writeIfNotExists(files.principles, principlesBoilerplate, 'Vision Principles Boi
|
|
|
155
173
|
writeIfNotExists(files.architecture, '# Project Architecture\n\n- Stack:\n- Patterns:\n', 'Architecture Boilerplate');
|
|
156
174
|
writeIfNotExists(files.existingFeatures, '# Existing Features\n\n- \n', 'Features Boilerplate');
|
|
157
175
|
writeIfNotExists(files.featuresHistory, historyBoilerplate, 'History Table');
|
|
158
|
-
writeIfNotExists(files.auditPlan, '# Audit Plan\n\n|
|
|
176
|
+
writeIfNotExists(files.auditPlan, '# Audit Plan\n\nStates: PENDING | ANALYZED | SKIPPED.\n\n| Percorso | Stato | Riferimento | Note |\n|---|---|---|---|\n| / | PENDING | - | Initial analysis |\n', 'Audit Plan');
|
|
159
177
|
|
|
160
178
|
// 5. Client Discovery and Configuration
|
|
161
179
|
console.log('\n--- Environment Analysis ---');
|