@neuravim/aiden 0.12.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.
Files changed (46) hide show
  1. package/LICENSE +661 -0
  2. package/README.fr.md +204 -0
  3. package/README.md +208 -0
  4. package/dist/index.js +7483 -0
  5. package/dist/index.js.map +1 -0
  6. package/package.json +85 -0
  7. package/templates/aiden.config.yaml +46 -0
  8. package/templates/rules/coding-standards.md +29 -0
  9. package/templates/skills/adr-enforcer/instructions.md +66 -0
  10. package/templates/skills/adr-enforcer/skill.yaml +14 -0
  11. package/templates/skills/adversarial-review/instructions.md +33 -0
  12. package/templates/skills/adversarial-review/skill.yaml +11 -0
  13. package/templates/skills/api-design-restful/instructions.md +74 -0
  14. package/templates/skills/api-design-restful/skill.yaml +16 -0
  15. package/templates/skills/changelog-gen/instructions.md +59 -0
  16. package/templates/skills/changelog-gen/skill.yaml +14 -0
  17. package/templates/skills/code-review-strict/instructions.md +13 -0
  18. package/templates/skills/code-review-strict/skill.yaml +8 -0
  19. package/templates/skills/compliance-rgpd/instructions.md +18 -0
  20. package/templates/skills/compliance-rgpd/skill.yaml +12 -0
  21. package/templates/skills/dead-code-detector/instructions.md +38 -0
  22. package/templates/skills/dead-code-detector/skill.yaml +7 -0
  23. package/templates/skills/dependency-audit/instructions.md +43 -0
  24. package/templates/skills/dependency-audit/skill.yaml +17 -0
  25. package/templates/skills/hipaa-guard/instructions.md +62 -0
  26. package/templates/skills/hipaa-guard/skill.yaml +23 -0
  27. package/templates/skills/iso-27001/instructions.md +54 -0
  28. package/templates/skills/iso-27001/skill.yaml +10 -0
  29. package/templates/skills/jira-sync/instructions.md +10 -0
  30. package/templates/skills/jira-sync/skill.yaml +18 -0
  31. package/templates/skills/linear-sync/instructions.md +39 -0
  32. package/templates/skills/linear-sync/skill.yaml +22 -0
  33. package/templates/skills/naming-conventions/instructions.md +45 -0
  34. package/templates/skills/naming-conventions/skill.yaml +16 -0
  35. package/templates/skills/nestjs-patterns/instructions.md +55 -0
  36. package/templates/skills/nestjs-patterns/skill.yaml +12 -0
  37. package/templates/skills/owasp-check/instructions.md +71 -0
  38. package/templates/skills/owasp-check/skill.yaml +20 -0
  39. package/templates/skills/react-best-practices/instructions.md +59 -0
  40. package/templates/skills/react-best-practices/skill.yaml +12 -0
  41. package/templates/skills/secret-scan/instructions.md +44 -0
  42. package/templates/skills/secret-scan/skill.yaml +11 -0
  43. package/templates/skills/slack-notify/instructions.md +45 -0
  44. package/templates/skills/slack-notify/skill.yaml +19 -0
  45. package/templates/skills/test-coverage-enforcer/instructions.md +42 -0
  46. package/templates/skills/test-coverage-enforcer/skill.yaml +18 -0
package/README.fr.md ADDED
@@ -0,0 +1,204 @@
1
+ # AIDEN — AI-Driven Engineering
2
+
3
+ [![npm version](https://img.shields.io/npm/v/@neuravim/aiden)](https://www.npmjs.com/package/@neuravim/aiden)
4
+ [![npm downloads](https://img.shields.io/npm/dm/@neuravim/aiden)](https://www.npmjs.com/package/@neuravim/aiden)
5
+ [![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue)](https://github.com/neuravim/aiden/blob/master/LICENSE)
6
+ [![TypeScript](https://img.shields.io/badge/TypeScript-strict-blue)](https://github.com/neuravim/aiden)
7
+ [![Tests](https://img.shields.io/badge/tests-444%20passing-brightgreen)](https://github.com/neuravim/aiden)
8
+
9
+ 🇬🇧 [English](README.md) | 🇫🇷 [Français](#)
10
+
11
+ **AIDEN orchestre des agents IA spécialisés pour transformer une demande en code livré, testé et tracé.** Vous décrivez ce que vous voulez, AIDEN répartit le travail entre 6 agents (Analyst, Planner, Dev, QA, DocOps) et livre du code avec traçabilité complète des décisions IA.
12
+
13
+ Conçu pour les équipes de développement en entreprise : multi-provider agnostique (Claude Code, Gemini, Copilot, OpenCode, API custom), skills et règles injectables, filtrage sécurité, capitalisation des retex, conformité intégrée, feature-first pour le brownfield.
14
+
15
+ ---
16
+
17
+ ## Démarrage rapide (5 minutes)
18
+
19
+ ### Prérequis
20
+
21
+ - **Node.js 20+** et **bun** (ou npm/yarn)
22
+ - Au moins un provider IA installé : [Claude Code](https://claude.ai/code), [Gemini CLI](https://cloud.google.com/gemini) ou [GitHub Copilot CLI](https://docs.github.com/copilot)
23
+
24
+ ### 1. Installer
25
+
26
+ ```bash
27
+ $ bun add -g @neuravim/aiden
28
+ $ aiden --version # 0.10.0
29
+ ```
30
+
31
+ ### 2. Initialiser dans votre projet
32
+
33
+ ```bash
34
+ $ cd mon-projet
35
+ $ aiden init
36
+ ```
37
+
38
+ AIDEN scanne le projet et détecte automatiquement la stack technique, l'architecture, le CI/CD et le gestionnaire de paquets. Tout est stocké dans `.aiden/` (à commiter avec votre code).
39
+
40
+ ### 3. Premier workflow (flash = bug fix / petite feature)
41
+
42
+ ```bash
43
+ $ aiden flash "Ajouter un endpoint GET /health retournant {status: ok}"
44
+ ```
45
+
46
+ Le mode flash est direct : le Dev implémente, écrit les tests, trace la décision. Pas de cérémonie.
47
+
48
+ ### 4. Workflow complet (standard = feature avec analyse + review)
49
+
50
+ ```bash
51
+ $ aiden standard "Ajouter une API REST de gestion des utilisateurs avec pagination"
52
+ ```
53
+
54
+ Le mode standard enchaîne 4 phases automatiques :
55
+
56
+ | Phase | Agent | Ce qu'il fait |
57
+ |-------|-------|---------------|
58
+ | Découverte | Analyst | Scanne le code, estime la complexité, identifie les risques |
59
+ | Planification | Planner | Crée une spec + stories avec critères d'acceptation |
60
+ | Implémentation | Dev | Implémente chaque story avec tests |
61
+ | Validation | QA | Review le code vs les critères, boucle avec le Dev si échec |
62
+
63
+ Artefacts générés dans `.aiden/features/<slug>/` : brief.md, spec.md, stories/, review.md, change-summary.md.
64
+
65
+ ### 5. Vérifier
66
+
67
+ ```bash
68
+ $ aiden status # Voir toutes les features
69
+ $ aiden metrics # Tokens, coûts, durées
70
+ $ cat .aiden/memory/decisions.jsonl # Historique des décisions IA
71
+ ```
72
+
73
+ ---
74
+
75
+ ## 3 modes adaptatifs
76
+
77
+ | Mode | Usage | Agents | Temps estimé |
78
+ |------|-------|--------|--------------|
79
+ | `aiden flash` | Bug fix, hotfix, petite feature | Lead + Dev | < 30 min |
80
+ | `aiden standard` | Feature moyenne, nouvelle API | + Analyst, Planner, QA | 2h - 1 jour |
81
+ | `aiden enterprise` | Projet critique, conformité requise | + DocOps + approbation humaine | 1 jour+ |
82
+
83
+ AIDEN détecte automatiquement le mode optimal. Vous pouvez changer de mode en cours de route sans perdre le travail déjà fait :
84
+
85
+ ```bash
86
+ $ aiden switch export-csv standard # passer de flash Ă  standard mid-feature
87
+ ```
88
+
89
+ ---
90
+
91
+ ## Multi-provider intelligent
92
+
93
+ Chaque agent reçoit le provider optimal pour sa tâche :
94
+
95
+ | Tâche | Provider par défaut | Raison |
96
+ |-------|---------------------|--------|
97
+ | Analyse & Review | Claude Code | Meilleur raisonnement |
98
+ | Génération code | Gemini | Multi-fichier performant |
99
+ | Quick fix | Copilot | Rapidité + coût fixe |
100
+
101
+ 4 stratégies de routage : `fixed`, `prefer`, `auto`, `cost-optimized`. Fallback automatique si un provider est indisponible.
102
+
103
+ ---
104
+
105
+ ## Pour les équipes
106
+
107
+ ### Règles d'entreprise
108
+
109
+ Définissez vos standards dans `.aiden/rules/` (coding standards, sécurité, architecture). Ils sont automatiquement injectés dans les prompts de chaque agent.
110
+
111
+ ```bash
112
+ $ aiden rules add security-policy.md
113
+ ```
114
+
115
+ ### Skills (extensibilité)
116
+
117
+ Les skills sont des packages déclaratifs (YAML + Markdown) qui regroupent instructions, règles et hooks injectables. Déposez un dossier dans `.aiden/skills/` et AIDEN le découvre automatiquement.
118
+
119
+ ```bash
120
+ $ aiden skills init mon-skill # Créer un skill
121
+ $ aiden skills list # Lister les skills
122
+ $ aiden skills enable/disable <name> # Activer/désactiver
123
+ ```
124
+
125
+ 3 templates inclus : `code-review-strict`, `compliance-rgpd`, `jira-sync`.
126
+
127
+ ### Configuration multi-niveaux
128
+
129
+ 5 niveaux de configuration qui se surchargent :
130
+
131
+ ```
132
+ Défauts AIDEN → Config globale (~/.aiden/) → Config projet (.aiden/) → Config feature → Flags CLI
133
+ ```
134
+
135
+ ### Conformité et audit
136
+
137
+ - **decisions.jsonl** : chaque décision IA est tracée (qui, quoi, pourquoi, combien de tokens)
138
+ - **metrics.jsonl** : coût par agent, par provider, par feature
139
+ - **Approbation humaine** en mode enterprise entre chaque phase
140
+ - **DocOps** génère changelog, documentation, runbooks
141
+
142
+ ---
143
+
144
+ ## Commandes
145
+
146
+ ```
147
+ aiden init # Initialiser AIDEN dans le projet
148
+ aiden flash "description" # Mode rapide (Dev direct)
149
+ aiden standard "description" # Mode standard (Analyst → Planner → Dev → QA)
150
+ aiden enterprise "description" # Mode enterprise (+ DocOps + approbation)
151
+ aiden status [feature] # État des features en cours
152
+ aiden resume <feature> # Reprendre une feature bloquée
153
+ aiden abort <feature> # Abandonner une feature
154
+ aiden switch <feature> <mode> # Changer de mode mid-feature
155
+ aiden agent <nom> "prompt" # Invoquer un agent directement
156
+ aiden provider status|switch|cost # Gérer les providers IA
157
+ aiden metrics [--export csv] # Métriques d'utilisation et coûts
158
+ aiden config show|set # Configuration
159
+ aiden rules add|list|remove # Règles d'entreprise
160
+ aiden skills list|init|add|remove # Skills d'extensibilité
161
+ aiden retex add|list|search|remove # Retours d'expérience
162
+ aiden template customize|list # Templates d'artefacts
163
+ ```
164
+
165
+ ## Mode Claude Code (slash commands)
166
+
167
+ AIDEN fonctionne aussi directement dans Claude Code sans installer le CLI :
168
+
169
+ ```
170
+ /aiden-init /aiden-flash /aiden-standard /aiden-enterprise
171
+ /aiden-status /aiden-resume /aiden-agent /aiden-rules
172
+ ```
173
+
174
+ Les deux modes (CLI et slash) écrivent dans les mêmes fichiers `.aiden/`.
175
+
176
+ ---
177
+
178
+ ## Documentation
179
+
180
+ | Guide | Description |
181
+ |-------|-------------|
182
+ | [Installation](docs-site/src/app/getting-started/installation) | Prérequis, installation, configuration provider |
183
+ | [Quickstart](docs-site/src/app/getting-started/quickstart) | Scénario complet de zéro en 5 minutes |
184
+ | [Première feature](docs-site/src/app/getting-started/first-feature) | Workflow standard détaillé phase par phase |
185
+ | [Guide de déploiement](docs/DEPLOIEMENT.md) | Déployer AIDEN dans une organisation |
186
+ | [Modes](docs-site/src/app/guides/modes) | Flash, standard, enterprise : quand utiliser quoi |
187
+ | [Providers](docs-site/src/app/guides/providers) | Claude Code, Gemini, OpenCode, Copilot, API custom |
188
+ | [Règles et templates](docs-site/src/app/guides/rules-and-templates) | Standards d'entreprise |
189
+ | [Skills](docs-site/src/app/guides/skills) | Extensibilité enterprise |
190
+ | [Brownfield](docs-site/src/app/cookbook/brownfield) | Ajouter AIDEN Ă  un projet existant |
191
+ | [Équipe](docs-site/src/app/cookbook/team) | Workflow Git, onboarding, conventions |
192
+ | [CI/CD](docs-site/src/app/cookbook/ci-cd) | Intégration dans les pipelines |
193
+
194
+ ## Tests
195
+
196
+ ```bash
197
+ $ bun test # 444 tests unitaires
198
+ $ bun run typecheck # Vérification TypeScript strict
199
+ $ bun run lint # ESLint
200
+ ```
201
+
202
+ ## Licence
203
+
204
+ AGPL-3.0 — Voir [LICENSE](LICENSE) pour les détails.
package/README.md ADDED
@@ -0,0 +1,208 @@
1
+ # AIDEN — AI-Driven Engineering
2
+
3
+ [![npm version](https://img.shields.io/npm/v/@neuravim/aiden)](https://www.npmjs.com/package/@neuravim/aiden)
4
+ [![npm downloads](https://img.shields.io/npm/dm/@neuravim/aiden)](https://www.npmjs.com/package/@neuravim/aiden)
5
+ [![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue)](https://github.com/neuravim/aiden/blob/master/LICENSE)
6
+ [![TypeScript](https://img.shields.io/badge/TypeScript-strict-blue)](https://github.com/neuravim/aiden)
7
+ [![Tests](https://img.shields.io/badge/tests-444%20passing-brightgreen)](https://github.com/neuravim/aiden)
8
+
9
+ 🇬🇧 [English](#) | 🇫🇷 [Français](README.fr.md)
10
+
11
+ **AIDEN orchestrates specialized AI agents to turn a request into delivered, tested, and traced code.** You describe what you want, AIDEN distributes the work across 6 agents (Analyst, Planner, Dev, QA, DocOps) and delivers code with full traceability of AI decisions.
12
+
13
+ Built for enterprise development teams: provider-agnostic (Claude Code, Gemini, Copilot, OpenCode, custom API), injectable skills and rules, security filtering, lessons learned (retex), built-in compliance, feature-first for brownfield projects.
14
+
15
+ ---
16
+
17
+ ## Quickstart (5 minutes)
18
+
19
+ ### Prerequisites
20
+
21
+ - **Node.js 20+** and **bun** (or npm/yarn)
22
+ - At least one AI provider installed: [Claude Code](https://claude.ai/code), [Gemini CLI](https://cloud.google.com/gemini) or [GitHub Copilot CLI](https://docs.github.com/copilot)
23
+
24
+ ### 1. Install
25
+
26
+ ```bash
27
+ $ bun add -g @neuravim/aiden
28
+ $ aiden --version # 0.10.0
29
+ ```
30
+
31
+ ### 2. Initialize in your project
32
+
33
+ ```bash
34
+ $ cd my-project
35
+ $ aiden init
36
+ ```
37
+
38
+ AIDEN scans the project and automatically detects the tech stack, architecture, CI/CD and package manager. Everything is stored in `.aiden/` (commit it with your code).
39
+
40
+ ### 3. First workflow (flash = bug fix / small feature)
41
+
42
+ ```bash
43
+ $ aiden flash "Add a GET /health endpoint returning {status: ok}"
44
+ ```
45
+
46
+ Flash mode is direct: Dev implements, writes tests, traces the decision. No ceremony.
47
+
48
+ ### 4. Full workflow (standard = feature with analysis + review)
49
+
50
+ ```bash
51
+ $ aiden standard "Add a user management REST API with pagination"
52
+ ```
53
+
54
+ Standard mode chains 4 automatic phases:
55
+
56
+ | Phase | Agent | What it does |
57
+ |-------|-------|-------------|
58
+ | Discovery | Analyst | Scans code, estimates complexity, identifies risks |
59
+ | Planning | Planner | Creates a spec + stories with acceptance criteria |
60
+ | Implementation | Dev | Implements each story with tests |
61
+ | Validation | QA | Reviews code vs criteria, loops with Dev on failure |
62
+
63
+ Artifacts generated in `.aiden/features/<slug>/`: brief.md, spec.md, stories/, review.md, change-summary.md.
64
+
65
+ ### 5. Verify
66
+
67
+ ```bash
68
+ $ aiden status # View all features
69
+ $ aiden metrics # Tokens, costs, durations
70
+ $ cat .aiden/memory/decisions.jsonl # AI decision history
71
+ ```
72
+
73
+ ---
74
+
75
+ ## 3 adaptive modes
76
+
77
+ | Mode | Usage | Agents | Estimated time |
78
+ |------|-------|--------|---------------|
79
+ | `aiden flash` | Bug fix, hotfix, small feature | Lead + Dev | < 30 min |
80
+ | `aiden standard` | Medium feature, new API | + Analyst, Planner, QA | 2h - 1 day |
81
+ | `aiden enterprise` | Critical project, compliance required | + DocOps + human approval | 1 day+ |
82
+
83
+ AIDEN automatically detects the optimal mode. You can switch modes mid-workflow without losing work:
84
+
85
+ ```bash
86
+ $ aiden switch export-csv standard # switch from flash to standard mid-feature
87
+ ```
88
+
89
+ ---
90
+
91
+ ## Intelligent multi-provider
92
+
93
+ Each agent receives the optimal provider for its task:
94
+
95
+ | Task | Default provider | Reason |
96
+ |------|-----------------|--------|
97
+ | Analysis & Review | Claude Code | Best reasoning |
98
+ | Code generation | Gemini | Performant multi-file |
99
+ | Quick fix | Copilot | Speed + fixed cost |
100
+
101
+ 4 routing strategies: `fixed`, `prefer`, `auto`, `cost-optimized`. Automatic fallback if a provider is unavailable.
102
+
103
+ ---
104
+
105
+ ## For teams
106
+
107
+ ### Enterprise rules
108
+
109
+ Define your standards in `.aiden/rules/` (coding standards, security, architecture). They are automatically injected into every agent's prompts.
110
+
111
+ ```bash
112
+ $ aiden rules add security-policy.md
113
+ ```
114
+
115
+ ### Skills (extensibility)
116
+
117
+ Skills are declarative packages (YAML + Markdown) that bundle instructions, rules and hooks. Drop a folder in `.aiden/skills/` and AIDEN discovers it automatically.
118
+
119
+ ```bash
120
+ $ aiden skills init my-skill # Create a skill
121
+ $ aiden skills list # List skills
122
+ $ aiden skills enable/disable <name> # Enable/disable
123
+ ```
124
+
125
+ 3 built-in templates: `code-review-strict`, `compliance-rgpd`, `jira-sync`.
126
+
127
+ ### Multi-level configuration
128
+
129
+ 5 configuration levels that cascade:
130
+
131
+ ```
132
+ AIDEN defaults → Global config (~/.aiden/) → Project config (.aiden/) → Feature config → CLI flags
133
+ ```
134
+
135
+ Global config is installed once per workstation and applies to all projects.
136
+
137
+ ### Compliance and audit
138
+
139
+ - **decisions.jsonl**: every AI decision is traced (who, what, why, token count)
140
+ - **metrics.jsonl**: cost per agent, per provider, per feature
141
+ - **Human approval** in enterprise mode between each phase
142
+ - **DocOps** generates changelog, documentation, runbooks
143
+
144
+ ---
145
+
146
+ ## Commands
147
+
148
+ ```
149
+ aiden init # Initialize AIDEN in the project
150
+ aiden flash "description" # Fast mode (direct Dev)
151
+ aiden standard "description" # Standard mode (Analyst → Planner → Dev → QA)
152
+ aiden enterprise "description" # Enterprise mode (+ DocOps + approval)
153
+ aiden status [feature] # Feature status
154
+ aiden resume <feature> # Resume a blocked feature
155
+ aiden abort <feature> # Abort a feature
156
+ aiden switch <feature> <mode> # Switch mode mid-feature
157
+ aiden agent <name> "prompt" # Invoke an agent directly
158
+ aiden provider status|switch|cost # Manage AI providers
159
+ aiden metrics [--export csv] # Usage metrics and costs
160
+ aiden config show|set # Configuration
161
+ aiden rules add|list|remove # Enterprise rules
162
+ aiden skills list|init|add|remove # Extensibility skills
163
+ aiden retex add|list|search|remove # Lessons learned
164
+ aiden template customize|list # Artifact templates
165
+ ```
166
+
167
+ ## Claude Code mode (slash commands)
168
+
169
+ AIDEN also works directly inside Claude Code without installing the CLI:
170
+
171
+ ```
172
+ /aiden-init /aiden-flash /aiden-standard /aiden-enterprise
173
+ /aiden-status /aiden-resume /aiden-agent /aiden-rules
174
+ ```
175
+
176
+ Both modes (CLI and slash) write to the same `.aiden/` files.
177
+
178
+ ---
179
+
180
+ ## Documentation
181
+
182
+ | Guide | Description |
183
+ |-------|-------------|
184
+ | [Installation](docs-site/src/app/getting-started/installation) | Prerequisites, installation, provider setup |
185
+ | [Quickstart](docs-site/src/app/getting-started/quickstart) | Complete scenario from zero in 5 minutes |
186
+ | [First feature](docs-site/src/app/getting-started/first-feature) | Detailed standard workflow phase by phase |
187
+ | [Deployment guide](docs/DEPLOIEMENT.md) | Deploy AIDEN in an organization (pilot, rollout, governance) |
188
+ | [Modes](docs-site/src/app/guides/modes) | Flash, standard, enterprise: when to use what |
189
+ | [Rules & templates](docs-site/src/app/guides/rules-and-templates) | Configure enterprise standards |
190
+ | [Skills](docs-site/src/app/guides/skills) | Enterprise extensibility: instruction packages, rules and hooks |
191
+ | [Brownfield](docs-site/src/app/cookbook/brownfield) | Add AIDEN to an existing project |
192
+ | [Team usage](docs-site/src/app/cookbook/team) | Git workflow, onboarding, conventions |
193
+ | [CI/CD](docs-site/src/app/cookbook/ci-cd) | Pipeline integration |
194
+
195
+ > **Note**: The documentation site is written in French (project language for docs). The code, CLI, and this README are in English.
196
+
197
+ ## Tests
198
+
199
+ ```bash
200
+ $ bun test # 444 unit tests
201
+ $ bun run typecheck # TypeScript strict check
202
+ $ bun run lint # ESLint
203
+ ```
204
+
205
+ ## License
206
+
207
+ AGPL-3.0 — See [LICENSE](LICENSE) for details.
208
+