@dev-kosaly/kagents 0.1.0 → 0.2.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/README.md +99 -20
- package/agents/architect.md +84 -116
- package/bin/kagents.js +178 -15
- package/bin/postinstall.js +26 -0
- package/commands/architect-audit.md +17 -0
- package/commands/architect-compare.md +13 -0
- package/commands/architect-decision.md +20 -0
- package/commands/architect-design.md +18 -0
- package/commands/architect-impact.md +16 -0
- package/commands/architect-spec.md +18 -0
- package/commands/architect-status.md +26 -0
- package/commands/architect.md +20 -0
- package/docs/architect-commands.md +52 -0
- package/package.json +5 -2
- package/rules/domains/architect-chat.md +61 -0
- package/rules/domains/architect-invariants.md +22 -0
- package/skills/README.md +17 -20
- package/skills/architect-audit/SKILL.md +31 -0
- package/skills/architect-decision/SKILL.md +40 -0
- package/skills/architect-discovery/SKILL.md +43 -0
- package/skills/architect-impact/SKILL.md +32 -0
- package/skills/architect-index/SKILL.md +31 -0
- package/skills/architect-status/SKILL.md +41 -0
- package/skills/architect-write-output/SKILL.md +49 -0
- package/templates/architect-decision/template.md +47 -0
- package/templates/architect-design/template.md +31 -0
- package/templates/architect-index/INDEX.template.md +47 -0
- package/templates/architect-output/template.md +95 -0
- package/templates/architect-spec/template.md +39 -0
- package/workflows/architect-architecture.md +19 -0
- package/workflows/architect-audit-run.md +14 -0
- package/workflows/architect-decision.md +20 -0
- package/workflows/architect-design.md +15 -0
- package/workflows/architect-impact-levels.yaml +28 -0
- package/workflows/architect-impact.md +20 -0
- package/workflows/architect-spec.md +19 -0
- package/workflows/architect-status.md +21 -0
- package/commands/arch-audit.md +0 -10
- package/commands/arch-design.md +0 -10
- package/commands/arch-feature.md +0 -10
- package/skills/architecture-impact/SKILL.md +0 -68
- package/skills/audit-repository/SKILL.md +0 -53
- package/skills/feature-analysis/SKILL.md +0 -52
- package/skills/write-change-brief/SKILL.md +0 -63
package/skills/README.md
CHANGED
|
@@ -1,31 +1,28 @@
|
|
|
1
1
|
# Skills
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Architect / Spec (internes — pas des commandes publiques)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
| Skill | Commande publique typique |
|
|
6
|
+
|-------|---------------------------|
|
|
7
|
+
| `architect-discovery/` | `kagents architect` |
|
|
8
|
+
| `architect-audit/` | `kagents architect:audit`, `:impact`, `:spec` |
|
|
9
|
+
| `architect-impact/` | `kagents architect:impact`, partie `:spec` |
|
|
10
|
+
| `architect-write-output/` | toutes commandes avec livrable |
|
|
11
|
+
| `architect-index/` | livrables + registre decisions |
|
|
12
|
+
| `architect-status/` | `kagents architect:status` (read-only) |
|
|
13
|
+
| `architect-decision/` | `kagents architect:decision` |
|
|
6
14
|
|
|
7
|
-
|
|
8
|
-
|-------|------|
|
|
9
|
-
| `feature-analysis/` | Demande feature ou modification fonctionnelle |
|
|
10
|
-
| `audit-repository/` | Cartographie projet existant |
|
|
11
|
-
| `architecture-impact/` | Impacts et niveau L0–L3 |
|
|
12
|
-
| `write-change-brief/` | Change Brief dans le repo projet |
|
|
15
|
+
Contrat commandes : `docs/architect-commands.md` — fichiers `commands/architect*.md`.
|
|
13
16
|
|
|
14
|
-
Role
|
|
17
|
+
Role : `agents/architect.md`.
|
|
15
18
|
|
|
16
|
-
## Base
|
|
19
|
+
## Base (base de données)
|
|
17
20
|
|
|
18
|
-
| Skill |
|
|
21
|
+
| Skill | Rôle |
|
|
19
22
|
|-------|------|
|
|
20
|
-
| `schema-exploration/` | Explorer le repo et reconstruire le
|
|
23
|
+
| `schema-exploration/` | Explorer le repo et reconstruire le modèle |
|
|
21
24
|
| `catalyst-export/` | Exploiter l'export JSON Catalyst |
|
|
22
|
-
| `db-analysis/` | Grille d'analyse et
|
|
23
|
-
| `db-docs/` |
|
|
25
|
+
| `db-analysis/` | Grille d'analyse et sévérités |
|
|
26
|
+
| `db-docs/` | Modèles des fichiers de `base-docs/db/` |
|
|
24
27
|
|
|
25
28
|
Agent : `agents/database_expert.md`.
|
|
26
|
-
|
|
27
|
-
## A venir (hors perimetre actuel)
|
|
28
|
-
|
|
29
|
-
- `write-adr/`
|
|
30
|
-
- `catalyst-impact/` (analyse detaillee)
|
|
31
|
-
- `init-project-artifacts/`
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: architect-audit
|
|
3
|
+
description: >-
|
|
4
|
+
Audit cible du repository avant analyse d'impact : stack, composants, ADR,
|
|
5
|
+
zones sensibles. Alimente Constats et Elements etablis du livrable.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Architect audit
|
|
9
|
+
|
|
10
|
+
## Quand utiliser
|
|
11
|
+
|
|
12
|
+
- Mode Impact sur repo ou domaine peu connu.
|
|
13
|
+
- Etape 3–4 de `architect-impact` si les constats sont insuffisants.
|
|
14
|
+
|
|
15
|
+
## Lecture
|
|
16
|
+
|
|
17
|
+
Ordre (aligne `agents/architect.md`) : decisions validees ; docs metier projet si presentes ; livrables Architect + `INDEX.md` ; `base-docs/` lecture seule ; `knowledge/context.md` ; code cible ; config non sensible ; standards harness si besoin.
|
|
18
|
+
|
|
19
|
+
Signaler absences (STATE, schema, etc.) — ne pas creer.
|
|
20
|
+
|
|
21
|
+
## Etapes
|
|
22
|
+
|
|
23
|
+
1. Stack et decoupage (synthese actionnable).
|
|
24
|
+
2. Composants et fichiers **directement** lies a la demande.
|
|
25
|
+
3. Dependances et flux pertinents.
|
|
26
|
+
4. Documentation architecturale existante : coherence avec code.
|
|
27
|
+
5. Renseigner sections Constats / Architecture actuelle du template.
|
|
28
|
+
|
|
29
|
+
## Limites
|
|
30
|
+
|
|
31
|
+
Pas de refactoring propose. Pas d'ecriture base-docs.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: architect-decision
|
|
3
|
+
description: >-
|
|
4
|
+
Interne — kagents architect:decision. Enregistre decision humaine dans
|
|
5
|
+
decisions/DEC-XXX-slug.md, met a jour INDEX, lie propositions/livrables.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Architect decision
|
|
9
|
+
|
|
10
|
+
## Quand utiliser
|
|
11
|
+
|
|
12
|
+
- **`kagents architect:decision "<texte>"`** — le texte est la decision a enregistrer (VALIDEE par acte humain de commande).
|
|
13
|
+
|
|
14
|
+
## Interdictions
|
|
15
|
+
|
|
16
|
+
- Ne pas marquer VALIDEE une simple recommandation agent non confirmee par cette commande.
|
|
17
|
+
- Ne pas ecraser un fichier DEC existant ; ne pas reutiliser un ID.
|
|
18
|
+
- Ne pas supprimer propositions ni outputs ; ne pas ecrire base-docs ; pas de SQL/migrations.
|
|
19
|
+
|
|
20
|
+
## Etapes
|
|
21
|
+
|
|
22
|
+
1. Interpreter `$ARGUMENTS` comme **Decision** (pas une question).
|
|
23
|
+
2. Detecter intent special dans le texte :
|
|
24
|
+
- « remplace DEC-00N » / « remplacement DEC-00N » → creer nouvelle DEC VALIDEE, mettre DEC-00N en **REMPLACEE** + lien.
|
|
25
|
+
- « rejet » / « REJETEE » → statut **REJETEE** si l'utilisateur enregistre un rejet explicite.
|
|
26
|
+
3. **Prochain ID** : lister `decisions/DEC-*.md`, prendre max(N)+1 → `DEC-001`, etc.
|
|
27
|
+
4. **Slug** : kebab-case court depuis le sujet (ex. `finance-marge-source`).
|
|
28
|
+
5. Creer `decisions/DEC-XXX-<slug>.md` depuis `templates/architect-decision/template.md`.
|
|
29
|
+
6. Renseigner metadonnees ; **Decideur : Humain** ; Statut **VALIDEE** par defaut.
|
|
30
|
+
7. Lier **proposition d'origine** : chercher dans INDEX / dernier livrable pertinent (ex. finance marge v3) — ne pas modifier le livrable sauf ajout optionnel en **References** d'une ligne « Decision : DEC-XXX » en fin de fichier si deja ouvert pour edition ; preferer lien depuis decision vers output.
|
|
31
|
+
8. Mettre a jour INDEX section **## Decisions (registre)** (ajouter ligne, ne pas reconstruire tout le fichier).
|
|
32
|
+
9. Chat synthese : ID, statut, domaine, chemin, suite.
|
|
33
|
+
|
|
34
|
+
## Propositions
|
|
35
|
+
|
|
36
|
+
Conserver fichiers dans `proposals/` et contenu PROPOSITION dans outputs — ajouter dans decision le lien PROPOSITION → DECISION.
|
|
37
|
+
|
|
38
|
+
## Remplacement
|
|
39
|
+
|
|
40
|
+
Editer l'ancien fichier : Statut **REMPLACEE**, `Remplace par : DEC-YYY`. Creer DEC-YYY **VALIDEE**.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: architect-discovery
|
|
3
|
+
description: >-
|
|
4
|
+
Interne — commande publique kagents architect. Cartographie l'architecture observee
|
|
5
|
+
du projet : modules, flux, couches, dependances. Livrable dans outputs/architecture/.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Architect discovery
|
|
9
|
+
|
|
10
|
+
## Quand utiliser
|
|
11
|
+
|
|
12
|
+
- Commande **`kagents architect`** ou demande « explique l'architecture », « comment est organise le projet ».
|
|
13
|
+
- Avant une grosse evolution si aucune doc architecture fiable n'existe.
|
|
14
|
+
|
|
15
|
+
## Prerequis
|
|
16
|
+
|
|
17
|
+
- Racine repo projet.
|
|
18
|
+
|
|
19
|
+
## Lecture (ciblee)
|
|
20
|
+
|
|
21
|
+
1. `INDEX.md` et livrables Architect existants
|
|
22
|
+
2. `knowledge/context.md` (sans modifier)
|
|
23
|
+
3. `base-docs/` en lecture si deja present
|
|
24
|
+
4. Manifestes stack, README, arborescence haute
|
|
25
|
+
5. Code : entrees (routes, handlers), modules metier nommes, data layer visible
|
|
26
|
+
|
|
27
|
+
Interdit : secrets, lecture exhaustive du repo.
|
|
28
|
+
|
|
29
|
+
## Etapes
|
|
30
|
+
|
|
31
|
+
1. Decrire structure **observee** (pas ideale).
|
|
32
|
+
2. Modules, responsabilites, flux principaux, entrees/sorties.
|
|
33
|
+
3. Backend, frontend, APIs, stockage **tels qu'observes**.
|
|
34
|
+
4. Conventions reperees ; divergences doc vs code → **ETABLI** (code) + note d'ecart.
|
|
35
|
+
5. Qualifier chaque bloc (ETABLI / DEDUIT / INCONNU).
|
|
36
|
+
6. Niveau L0 sauf demande implicite de changement.
|
|
37
|
+
7. `architect-write-output` → `outputs/architecture/`, type `architecture`.
|
|
38
|
+
8. `architect-index`.
|
|
39
|
+
9. Chat : `rules/domains/architect-chat.md`.
|
|
40
|
+
|
|
41
|
+
## Resultat
|
|
42
|
+
|
|
43
|
+
Livrable architecture + INDEX a jour.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: architect-impact
|
|
3
|
+
description: >-
|
|
4
|
+
Interne — commande publique kagents architect:impact. Procedure complete : perimetre,
|
|
5
|
+
MVC, L0-L3, risques, handoff Base, livrable persistant.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Architect impact
|
|
9
|
+
|
|
10
|
+
## Quand utiliser
|
|
11
|
+
|
|
12
|
+
- **`kagents architect:impact "<demande>"`** ou formulations naturelles d'evolution.
|
|
13
|
+
|
|
14
|
+
## Procedure
|
|
15
|
+
|
|
16
|
+
Suivre `workflows/architect-impact.md`. Etapes cles (detail dans le workflow) :
|
|
17
|
+
|
|
18
|
+
1. Objectif, perimetre, `architect-audit` si besoin.
|
|
19
|
+
2. Qualifier ETABLI / DEDUIT / PROPOSITION / INCONNU / A VALIDER / BLOQUANT.
|
|
20
|
+
3. Niveau L0–L3 via `workflows/architect-impact-levels.yaml` + justification.
|
|
21
|
+
4. MVC ; autres axes si pertinents.
|
|
22
|
+
5. Proposition, risques, decisions humaines, handoff Base (sans DDL).
|
|
23
|
+
6. `architect-write-output` : `features/` si demande fonctionnelle, sinon `impacts/`.
|
|
24
|
+
7. `architect-index` puis chat : `rules/domains/architect-chat.md`.
|
|
25
|
+
|
|
26
|
+
## Questions
|
|
27
|
+
|
|
28
|
+
Maximum 5 bloquantes ; autres → hypotheses qualifiees.
|
|
29
|
+
|
|
30
|
+
## BDD
|
|
31
|
+
|
|
32
|
+
Detecter impact ; preparer handoff ; **ne pas** decider schema, migrations, SQL.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: architect-index
|
|
3
|
+
description: >-
|
|
4
|
+
Met a jour .kagents/docs/architect-docs/INDEX.md apres un livrable Architect
|
|
5
|
+
(registre navigation, pas rapport).
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Architect index
|
|
9
|
+
|
|
10
|
+
## Fichier
|
|
11
|
+
|
|
12
|
+
`.kagents/docs/architect-docs/INDEX.md`
|
|
13
|
+
|
|
14
|
+
Creer depuis `templates/architect-index/INDEX.template.md` si absent.
|
|
15
|
+
|
|
16
|
+
## Apres chaque livrable
|
|
17
|
+
|
|
18
|
+
1. Ajouter une ligne dans le tableau appropriate (Architecture / Impacts / Audits).
|
|
19
|
+
2. Colonnes : Date, Fichier (lien relatif), Sujet, Niveau, Statut si impact.
|
|
20
|
+
3. Mettre a jour **Decisions ouvertes** / **Travaux en cours** si pertinent (listes courtes).
|
|
21
|
+
4. Ne pas dupliquer le contenu du livrable dans INDEX.
|
|
22
|
+
|
|
23
|
+
## Apres chaque decision (`architect-decision`)
|
|
24
|
+
|
|
25
|
+
1. Ajouter une ligne dans **## Decisions (registre)** : ID, Titre, Statut, Date, Domaine, Lien vers `decisions/DEC-XXX-*.md`.
|
|
26
|
+
2. Retirer ou ajuster **Decisions ouvertes** si la decision tranche une question listee.
|
|
27
|
+
3. Ne pas reconstruire tout INDEX.md.
|
|
28
|
+
|
|
29
|
+
## Limites
|
|
30
|
+
|
|
31
|
+
Ne pas modifier INDEX d'autres domaines (base-docs).
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: architect-status
|
|
3
|
+
description: >-
|
|
4
|
+
Interne — kagents architect:status. Lecture INDEX, decisions/, proposals/,
|
|
5
|
+
synthese read-only. Pas d'audit repository complet.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Architect status
|
|
9
|
+
|
|
10
|
+
## Quand utiliser
|
|
11
|
+
|
|
12
|
+
- Commande **`kagents architect:status`**.
|
|
13
|
+
|
|
14
|
+
## Interdictions
|
|
15
|
+
|
|
16
|
+
- Pas de modification de fichiers (read-only).
|
|
17
|
+
- Pas d'audit repo complet ; pas de code metier modifie.
|
|
18
|
+
- Pas de lecture secrets.
|
|
19
|
+
|
|
20
|
+
## Lecture
|
|
21
|
+
|
|
22
|
+
1. `.kagents/docs/architect-docs/INDEX.md`
|
|
23
|
+
2. `.kagents/docs/architect-docs/decisions/DEC-*.md` (metadonnees + statut)
|
|
24
|
+
3. `.kagents/docs/architect-docs/proposals/` si existe
|
|
25
|
+
4. Livrables `outputs/` : uniquement entrees INDEX ou fichiers cites pour travaux ouverts / handoffs / A VALIDER
|
|
26
|
+
|
|
27
|
+
## Aggregation
|
|
28
|
+
|
|
29
|
+
- **Travaux ouverts** : section INDEX + lignes statut A VALIDER / travaux en cours
|
|
30
|
+
- **Decisions** : par statut (A VALIDER, VALIDEE, REJETEE, REMPLACEE, PROPOSEE)
|
|
31
|
+
- **Handoffs** : depuis derniers livrables (sections Handoff / Base) si mentionnes en INDEX ou entete — lecture ciblee max 3 fichiers recents
|
|
32
|
+
- **Derniers livrables** : 3–5 entrees les plus recentes dans INDEX (toutes sections)
|
|
33
|
+
- **Blocages** : questions BLOQUANT / INCONNU dans decisions ouvertes ou livrables
|
|
34
|
+
|
|
35
|
+
Statuts decisions : PROPOSEE, A VALIDER, VALIDEE, REJETEE, REMPLACEE.
|
|
36
|
+
|
|
37
|
+
## Sortie chat
|
|
38
|
+
|
|
39
|
+
Structure adaptative : `# Architect — Etat du projet` — voir `workflows/architect-status.md` et exemples dans `commands/architect-status.md`.
|
|
40
|
+
|
|
41
|
+
Ne pas lister tous les fichiers du repo.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: architect-write-output
|
|
3
|
+
description: >-
|
|
4
|
+
Ecrit le livrable Markdown dans .kagents/docs/architect-docs/outputs/ avec
|
|
5
|
+
nommage deterministe YYYY-MM-DD__type__slug__vN.md sans ecrasement silencieux.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Architect write output
|
|
9
|
+
|
|
10
|
+
## Repertoires
|
|
11
|
+
|
|
12
|
+
| Type | Sous-dossier |
|
|
13
|
+
|------|----------------|
|
|
14
|
+
| architecture | `outputs/architecture/` |
|
|
15
|
+
| impact | `outputs/impacts/` |
|
|
16
|
+
| feature | `outputs/features/` |
|
|
17
|
+
| spec | `outputs/specs/` |
|
|
18
|
+
| design | `outputs/designs/` |
|
|
19
|
+
| audit | `outputs/audits/` |
|
|
20
|
+
|
|
21
|
+
**Choix du sous-dossier**
|
|
22
|
+
|
|
23
|
+
- `architecture/` : `kagents architect`.
|
|
24
|
+
- `features/` : evolution fonctionnelle (`architect:impact` focalise feature).
|
|
25
|
+
- `impacts/` : `architect:impact` transversal sans focalisation feature.
|
|
26
|
+
- `specs/` : `architect:spec`.
|
|
27
|
+
- `designs/` : `architect:design`.
|
|
28
|
+
- `audits/` : `architect:audit`.
|
|
29
|
+
|
|
30
|
+
Creer les dossiers si absents.
|
|
31
|
+
|
|
32
|
+
## Nom de fichier
|
|
33
|
+
|
|
34
|
+
`YYYY-MM-DD__<type>__<slug-kebab>__vN.md`
|
|
35
|
+
|
|
36
|
+
- `slug` : sujet metier court (ex. `finance-marge-facture`)
|
|
37
|
+
- `vN` : incrementer si un fichier meme date+type+slug existe deja
|
|
38
|
+
|
|
39
|
+
## Etapes
|
|
40
|
+
|
|
41
|
+
1. Choisir type et sous-dossier.
|
|
42
|
+
2. Verifier collision ; ajuster `vN`.
|
|
43
|
+
3. Remplir `templates/architect-output/template.md`.
|
|
44
|
+
4. Renseigner Metadonnees.Fichier avec chemin relatif.
|
|
45
|
+
5. Ne pas inclure secrets ni SQL/migrations.
|
|
46
|
+
|
|
47
|
+
## Resultat
|
|
48
|
+
|
|
49
|
+
Chemin communique dans le chat (section Livrable).
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# DEC-XXX — [Titre]
|
|
2
|
+
|
|
3
|
+
## Metadonnees
|
|
4
|
+
|
|
5
|
+
- ID : DEC-XXX
|
|
6
|
+
- Statut : VALIDEE | REJETEE | REMPLACEE | PROPOSEE | A VALIDER
|
|
7
|
+
- Date : YYYY-MM-DD
|
|
8
|
+
- Source : humain (commande `kagents architect:decision`)
|
|
9
|
+
- Domaine :
|
|
10
|
+
- Decideur : Humain
|
|
11
|
+
- Remplace : (optionnel, ex. DEC-001)
|
|
12
|
+
- Remplace par : (optionnel, ex. DEC-012)
|
|
13
|
+
|
|
14
|
+
## Decision
|
|
15
|
+
|
|
16
|
+
(Texte explicitement enregistre — pas une inference agent seule.)
|
|
17
|
+
|
|
18
|
+
## Contexte
|
|
19
|
+
|
|
20
|
+
## Proposition ou question d'origine
|
|
21
|
+
|
|
22
|
+
(Lien vers livrable `outputs/` ou entree `proposals/` si existante.)
|
|
23
|
+
|
|
24
|
+
## Alternatives considerees
|
|
25
|
+
|
|
26
|
+
(Uniquement si documentees.)
|
|
27
|
+
|
|
28
|
+
## Justification
|
|
29
|
+
|
|
30
|
+
(Uniquement si fournie ou ETABLI depuis contexte cite.)
|
|
31
|
+
|
|
32
|
+
## Consequences
|
|
33
|
+
|
|
34
|
+
(DEDUIT marque si deduction.)
|
|
35
|
+
|
|
36
|
+
## Impacts / Handoffs
|
|
37
|
+
|
|
38
|
+
### Database Architect
|
|
39
|
+
|
|
40
|
+
(Si pertinent — informatif, pas prescriptif schema.)
|
|
41
|
+
|
|
42
|
+
### Suite du travail
|
|
43
|
+
|
|
44
|
+
## References
|
|
45
|
+
|
|
46
|
+
- Livrables :
|
|
47
|
+
- Propositions :
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# [Titre — Conception cible]
|
|
2
|
+
|
|
3
|
+
## Metadonnees
|
|
4
|
+
|
|
5
|
+
- Type : design
|
|
6
|
+
- Commande : kagents architect:design
|
|
7
|
+
- Date :
|
|
8
|
+
- Statut : PROPOSITION / A VALIDER
|
|
9
|
+
- Fichier :
|
|
10
|
+
|
|
11
|
+
## Objectif
|
|
12
|
+
|
|
13
|
+
## Architecture actuelle (resume ETABLI)
|
|
14
|
+
|
|
15
|
+
## Options considerees
|
|
16
|
+
|
|
17
|
+
## Architecture cible proposee
|
|
18
|
+
|
|
19
|
+
## Compromis
|
|
20
|
+
|
|
21
|
+
## Avantages
|
|
22
|
+
|
|
23
|
+
## Risques
|
|
24
|
+
|
|
25
|
+
## Dependances
|
|
26
|
+
|
|
27
|
+
## Impacts
|
|
28
|
+
|
|
29
|
+
## Decisions necessaires
|
|
30
|
+
|
|
31
|
+
## Handoff
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Index — Architect / Spec
|
|
2
|
+
|
|
3
|
+
Registre de navigation (pas un rapport). Mettre a jour via skill `architect-index`.
|
|
4
|
+
|
|
5
|
+
## Architecture
|
|
6
|
+
|
|
7
|
+
| Date | Fichier | Sujet | Niveau |
|
|
8
|
+
|------|---------|-------|--------|
|
|
9
|
+
| | | | |
|
|
10
|
+
|
|
11
|
+
## Impacts / features
|
|
12
|
+
|
|
13
|
+
| Date | Fichier | Sujet | Niveau | Statut |
|
|
14
|
+
|------|---------|-------|--------|--------|
|
|
15
|
+
| | | | | |
|
|
16
|
+
|
|
17
|
+
## Specs
|
|
18
|
+
|
|
19
|
+
| Date | Fichier | Sujet | Statut |
|
|
20
|
+
|------|---------|-------|--------|
|
|
21
|
+
| | | | |
|
|
22
|
+
|
|
23
|
+
## Designs
|
|
24
|
+
|
|
25
|
+
| Date | Fichier | Sujet | Statut |
|
|
26
|
+
|------|---------|-------|--------|
|
|
27
|
+
| | | | |
|
|
28
|
+
|
|
29
|
+
## Audits
|
|
30
|
+
|
|
31
|
+
| Date | Fichier | Sujet |
|
|
32
|
+
|------|---------|-------|
|
|
33
|
+
| | | |
|
|
34
|
+
|
|
35
|
+
## Decisions (registre)
|
|
36
|
+
|
|
37
|
+
| ID | Titre | Statut | Date | Domaine | Lien |
|
|
38
|
+
|----|-------|--------|------|---------|------|
|
|
39
|
+
| | | | | | |
|
|
40
|
+
|
|
41
|
+
## Decisions ouvertes (questions / propositions non tranchees)
|
|
42
|
+
|
|
43
|
+
-
|
|
44
|
+
|
|
45
|
+
## Travaux en cours
|
|
46
|
+
|
|
47
|
+
-
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# [Titre]
|
|
2
|
+
|
|
3
|
+
## Metadonnees
|
|
4
|
+
|
|
5
|
+
- Type : architecture | impact | feature | audit
|
|
6
|
+
- Mode : Architecture | Impact
|
|
7
|
+
- Niveau : L0 | L1 | L2 | L3
|
|
8
|
+
- Statut : ETABLI | A VALIDER | BLOQUANT | ...
|
|
9
|
+
- Date : YYYY-MM-DD
|
|
10
|
+
- Domaine concerne :
|
|
11
|
+
- Fichier : (chemin relatif depuis la racine projet)
|
|
12
|
+
|
|
13
|
+
## Objectif
|
|
14
|
+
|
|
15
|
+
## Demande initiale
|
|
16
|
+
|
|
17
|
+
## Contexte
|
|
18
|
+
|
|
19
|
+
## Perimetre
|
|
20
|
+
|
|
21
|
+
## Constats du repository
|
|
22
|
+
|
|
23
|
+
## Elements etablis
|
|
24
|
+
|
|
25
|
+
## Deductions
|
|
26
|
+
|
|
27
|
+
## Inconnues
|
|
28
|
+
|
|
29
|
+
## Exigences
|
|
30
|
+
|
|
31
|
+
## Contraintes
|
|
32
|
+
|
|
33
|
+
## Niveau d'impact
|
|
34
|
+
|
|
35
|
+
Justification :
|
|
36
|
+
|
|
37
|
+
Condition d'escalade : (optionnel)
|
|
38
|
+
|
|
39
|
+
## Analyse MVC
|
|
40
|
+
|
|
41
|
+
### Modele
|
|
42
|
+
|
|
43
|
+
### Controleur
|
|
44
|
+
|
|
45
|
+
### Vue
|
|
46
|
+
|
|
47
|
+
## Dependances
|
|
48
|
+
|
|
49
|
+
## Architecture actuelle
|
|
50
|
+
|
|
51
|
+
## Flux concernes
|
|
52
|
+
|
|
53
|
+
## Proposition architecturale
|
|
54
|
+
|
|
55
|
+
## Alternatives considerees
|
|
56
|
+
|
|
57
|
+
(Uniquement si plusieurs options reelles)
|
|
58
|
+
|
|
59
|
+
## Compromis
|
|
60
|
+
|
|
61
|
+
## Risques
|
|
62
|
+
|
|
63
|
+
## Securite
|
|
64
|
+
|
|
65
|
+
(Si pertinent)
|
|
66
|
+
|
|
67
|
+
## Tests
|
|
68
|
+
|
|
69
|
+
(Si pertinent)
|
|
70
|
+
|
|
71
|
+
## Performance / cout
|
|
72
|
+
|
|
73
|
+
(Si pertinent)
|
|
74
|
+
|
|
75
|
+
## Decisions validees
|
|
76
|
+
|
|
77
|
+
## Decisions a valider
|
|
78
|
+
|
|
79
|
+
## Questions ouvertes
|
|
80
|
+
|
|
81
|
+
## Impact Database Architect (Base)
|
|
82
|
+
|
|
83
|
+
Ce que Base doit analyser — sans decision BDD de la part de l'Architect.
|
|
84
|
+
|
|
85
|
+
## Handoff
|
|
86
|
+
|
|
87
|
+
Informations pour l'etape suivante (Base, validation humaine, implementation future).
|
|
88
|
+
|
|
89
|
+
## Criteres de completude
|
|
90
|
+
|
|
91
|
+
Conditions pour considerer l'analyse prete pour la suite.
|
|
92
|
+
|
|
93
|
+
## References
|
|
94
|
+
|
|
95
|
+
Sources reellement utiles (fichiers, docs, livrables).
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# [Titre — Specification]
|
|
2
|
+
|
|
3
|
+
## Metadonnees
|
|
4
|
+
|
|
5
|
+
- Type : spec
|
|
6
|
+
- Commande : kagents architect:spec
|
|
7
|
+
- Date :
|
|
8
|
+
- Niveau d'impact (si evalue) :
|
|
9
|
+
- Fichier :
|
|
10
|
+
|
|
11
|
+
## Objectif
|
|
12
|
+
|
|
13
|
+
## Contexte
|
|
14
|
+
|
|
15
|
+
## Comportement attendu
|
|
16
|
+
|
|
17
|
+
## Exigences
|
|
18
|
+
|
|
19
|
+
## Contraintes
|
|
20
|
+
|
|
21
|
+
## Regles connues (ETABLI uniquement)
|
|
22
|
+
|
|
23
|
+
## Cas nominaux
|
|
24
|
+
|
|
25
|
+
## Cas limites
|
|
26
|
+
|
|
27
|
+
## Criteres d'acceptation
|
|
28
|
+
|
|
29
|
+
## Impact architectural
|
|
30
|
+
|
|
31
|
+
(Voir distinction Impact vs Spec — synthese ou renvoi livrable impact)
|
|
32
|
+
|
|
33
|
+
## Dependances
|
|
34
|
+
|
|
35
|
+
## Decisions
|
|
36
|
+
|
|
37
|
+
## Questions ouvertes
|
|
38
|
+
|
|
39
|
+
## Handoff
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Workflow — Architect mode Architecture
|
|
2
|
+
|
|
3
|
+
Commande : **`kagents architect`** (voir `commands/architect.md`).
|
|
4
|
+
|
|
5
|
+
## Objectif
|
|
6
|
+
|
|
7
|
+
Comprendre et documenter l'architecture **observee** du projet (pas une architecture ideale inventee).
|
|
8
|
+
|
|
9
|
+
## Enchainement
|
|
10
|
+
|
|
11
|
+
1. `agents/architect.md` + `rules/domains/architect-invariants.md`
|
|
12
|
+
2. Skill `architect-discovery`
|
|
13
|
+
3. Skill `architect-write-output` → `.kagents/docs/architect-docs/outputs/architecture/`
|
|
14
|
+
4. Skill `architect-index` → mettre a jour `INDEX.md`
|
|
15
|
+
5. Chat : contrat `rules/domains/architect-chat.md`
|
|
16
|
+
|
|
17
|
+
## Livrable
|
|
18
|
+
|
|
19
|
+
Type : architecture. Niveau typique : L0 (ajuster si l'audit revele un changement planifie).
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Workflow — kagents architect:audit
|
|
2
|
+
|
|
3
|
+
## Objectif
|
|
4
|
+
|
|
5
|
+
Auditer l'architecture **existante** (derive, ecart doc/code, couplage) — pas modifier le code.
|
|
6
|
+
|
|
7
|
+
## Enchainement
|
|
8
|
+
|
|
9
|
+
1. `agents/architect.md` + invariants
|
|
10
|
+
2. `architect-audit` — scope = argument commande si present
|
|
11
|
+
3. Documenter findings observes uniquement
|
|
12
|
+
4. `architect-write-output` → `outputs/audits/`, type `audit`
|
|
13
|
+
5. `architect-index`
|
|
14
|
+
6. Chat : `architect-chat.md`
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Workflow — kagents architect:decision
|
|
2
|
+
|
|
3
|
+
## Objectif
|
|
4
|
+
|
|
5
|
+
Enregistrer une **decision humaine** (argument utilisateur = texte a enregistrer, pas a debattre).
|
|
6
|
+
|
|
7
|
+
## Gouvernance
|
|
8
|
+
|
|
9
|
+
- L'agent **ne valide pas** seul une recommandation : la commande implique confirmation humaine explicite.
|
|
10
|
+
- Statut par defaut a l'enregistrement : **VALIDEE** (sauf indication contraire dans la commande : « rejet », « remplace DEC-00X »).
|
|
11
|
+
|
|
12
|
+
## Enchainement
|
|
13
|
+
|
|
14
|
+
1. `agents/architect.md` + invariants
|
|
15
|
+
2. Skill `architect-decision`
|
|
16
|
+
3. Chat : synthese (ID, statut, chemin) — pas recopie integrale
|
|
17
|
+
|
|
18
|
+
## Remplacement
|
|
19
|
+
|
|
20
|
+
Nouveau fichier DEC-YYY ; ancien fichier mis a jour statut **REMPLACEE** + lien `Remplace par : DEC-YYY` — jamais supprimer l'ancien.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Workflow — kagents architect:design
|
|
2
|
+
|
|
3
|
+
## Objectif
|
|
4
|
+
|
|
5
|
+
Proposer une **architecture cible** pour un objectif — distincte de l'architecture observee (`kagents architect`).
|
|
6
|
+
|
|
7
|
+
## Enchainement
|
|
8
|
+
|
|
9
|
+
1. `agents/architect.md` + invariants
|
|
10
|
+
2. `architect-discovery` — resumer existant pertinent (reference, pas recopie integrale)
|
|
11
|
+
3. Rediger options / cible / compromis via `templates/architect-design/template.md`
|
|
12
|
+
4. Toute option = **PROPOSITION** ; decisions = **A VALIDER**
|
|
13
|
+
5. `architect-write-output` → `outputs/designs/`, type `design`
|
|
14
|
+
6. `architect-index`
|
|
15
|
+
7. Chat : `architect-chat.md`
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Niveaux d'impact — role Architect / Spec uniquement
|
|
2
|
+
# Reference : agents/architect.md
|
|
3
|
+
#
|
|
4
|
+
# Distinct de workflows/impact-levels.yaml (pipeline global, autre semantique L0,
|
|
5
|
+
# roles Developer/Reviewer). Pour une analyse Architect, utiliser CE fichier.
|
|
6
|
+
|
|
7
|
+
levels:
|
|
8
|
+
L0:
|
|
9
|
+
label: Comprehension / documentation
|
|
10
|
+
description: >
|
|
11
|
+
Aucune modification architecturale significative. Comprendre, documenter
|
|
12
|
+
ou expliquer l'existant.
|
|
13
|
+
|
|
14
|
+
L1:
|
|
15
|
+
label: Impact local
|
|
16
|
+
description: >
|
|
17
|
+
Impact limite a une zone ou un composant clairement delimite.
|
|
18
|
+
|
|
19
|
+
L2:
|
|
20
|
+
label: Impact transversal
|
|
21
|
+
description: >
|
|
22
|
+
Plusieurs couches, modules ou contrats concernes. Coordination multi-domaines.
|
|
23
|
+
|
|
24
|
+
L3:
|
|
25
|
+
label: Impact systemique
|
|
26
|
+
description: >
|
|
27
|
+
Architecture globale, donnees critiques, contrats partages, securite importante,
|
|
28
|
+
performance structurante, infrastructure, integrations externes ou domaines fortement couples.
|