living-documentation 7.46.0 → 7.47.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/dist/src/lib/config.js +2 -2
- package/dist/src/lib/config.js.map +1 -1
- package/dist/starting-doc/.living-doc.json +3 -3
- package/dist/starting-doc/ADRS/2026_01_01_[ADR]_example_architecture_decision.md +58 -0
- package/dist/starting-doc/AI/HOW_TO.md +338 -0
- package/dist/starting-doc/AI/default/AGENTS.md +14 -0
- package/dist/starting-doc/AI/default/CLAUDE.md +14 -0
- package/dist/starting-doc/AI/default/MEMORY.md +7 -0
- package/dist/starting-doc/AI/flavors/project-instructions-backend-api.md +41 -0
- package/dist/starting-doc/AI/flavors/project-instructions-frontend-app.md +42 -0
- package/dist/starting-doc/AI/flavors/project-instructions-library-cli.md +41 -0
- package/dist/starting-doc/AI/flavors/project-instructions-monorepo.md +41 -0
- package/dist/starting-doc/AI/project-instructions.md +78 -0
- package/dist/starting-doc/AI/rules/no-magic-numbers.md +18 -0
- package/package.json +1 -1
- package/dist/starting-doc/.annotations.json +0 -1
- package/dist/starting-doc/.diagrams.json +0 -2049
- package/dist/starting-doc/.metadata.json +0 -12
- package/dist/starting-doc/1_tutorial/2026_04_11_13_25_[General]_crer_vos_dossiers.md +0 -16
- package/dist/starting-doc/1_tutorial/2026_04_11_18_58_[General]_creer_un_document_dans_un_dossier.md +0 -8
- package/dist/starting-doc/1_tutorial/2026_04_12_09_00_[General]_editer_et_sauvegarder.md +0 -39
- package/dist/starting-doc/1_tutorial/2026_04_12_10_00_[General]_utiliser_les_snippets.md +0 -71
- package/dist/starting-doc/2026_04_08_20_52_[General]_welcome.md +0 -17
- package/dist/starting-doc/2026_04_11_12_55_[General]_premiers_pas.md +0 -271
- package/dist/starting-doc/2_guide/2026_04_08_00_04_[DOCUMENT]_utilisation_des_images_plein_ecran_lien_clickable.md +0 -40
- package/dist/starting-doc/2_guide/2026_04_08_23_38_[Configuration]_demarrage_de_living_documentation.md +0 -32
- package/dist/starting-doc/2_guide/2026_04_09_09_00_[NAVIGATION]_recherche_plein_texte.md +0 -65
- package/dist/starting-doc/2_guide/2026_04_09_10_00_[EXPORT]_exporter_en_pdf.md +0 -43
- package/dist/starting-doc/2_guide/2026_04_09_11_00_[Configuration]_configurer_le_panneau_admin.md +0 -55
- package/dist/starting-doc/2_guide/2026_04_09_12_00_[Configuration]_extra_files.md +0 -68
- package/dist/starting-doc/2_guide/2026_04_09_13_00_[WORDCLOUD]_word_cloud.md +0 -54
- package/dist/starting-doc/2_guide/2026_04_09_14_00_[DIAGRAM]_creer_et_lier_un_diagramme.md +0 -77
- package/dist/starting-doc/3_concept/2026_04_08_20_58_[DOCUMENTING]_ADRS.md +0 -20
- package/dist/starting-doc/3_concept/2026_04_08_22_15_[DOCUMENTING]_living_documentation.md +0 -17
- package/dist/starting-doc/3_concept/2026_04_08_22_46_[METHODOLOGY]_diataxis_architecture_du_contenu.md +0 -16
- package/dist/starting-doc/4_reference/2026_04_08_23_14_[FUNDAMENTALS]_the_living_documentation_tool.md +0 -41
- package/dist/starting-doc/4_reference/2026_04_09_01_00_[REFERENCE]_raccourcis_clavier.md +0 -61
- package/dist/starting-doc/4_reference/2026_04_09_02_00_[REFERENCE]_tokens_pattern_nommage.md +0 -75
- package/dist/starting-doc/4_reference/2026_04_09_03_00_[REFERENCE]_types_de_snippets.md +0 -68
- package/dist/starting-doc/4_reference/2026_04_11_17_31_[FUNDAMENTALS]_architecturer_une_documentation.md +0 -12
- package/dist/starting-doc/4_reference/2026_04_12_14_07_[FUNDAMENTALS]_dossiers_et_catgories.md +0 -89
- package/dist/starting-doc/5_talks/2026_04_28_09_48_[CONFERENCE]_demo_living_documentation_mcp_en_conference.md +0 -312
- package/dist/starting-doc/images/admin_screenshot.png +0 -0
- package/dist/starting-doc/images/ajout-document.png +0 -0
- package/dist/starting-doc/images/ajouter-document-categorie.png +0 -0
- package/dist/starting-doc/images/ajouter_un_document_dans_un_dossier.png +0 -0
- package/dist/starting-doc/images/architecturer_une_documentation_reference.png +0 -0
- package/dist/starting-doc/images/cr_er_un_document.png +0 -0
- package/dist/starting-doc/images/creation-nouveau-dossier.png +0 -0
- package/dist/starting-doc/images/creer-document-context-engineering.png +0 -0
- package/dist/starting-doc/images/creer-dossier-only-tutoriel.png +0 -0
- package/dist/starting-doc/images/creer-dossier-tutoriel.png +0 -0
- package/dist/starting-doc/images/creer-dossiers-done.png +0 -0
- package/dist/starting-doc/images/creer-un-document.png +0 -0
- package/dist/starting-doc/images/creer-vos-dossiers-tutoriel.png +0 -0
- package/dist/starting-doc/images/creer-vos-dossiers.png +0 -0
- package/dist/starting-doc/images/decouverte_adrs.png +0 -0
- package/dist/starting-doc/images/diataxis.png +0 -0
- package/dist/starting-doc/images/diataxis_callout.png +0 -0
- package/dist/starting-doc/images/document-cree.png +0 -0
- package/dist/starting-doc/images/liens_snippets.png +0 -0
- package/dist/starting-doc/images/living_documentation.png +0 -0
- package/dist/starting-doc/images/living_documentation_context_demo_conf.png +0 -0
- package/dist/starting-doc/images/npm_logo.png +0 -0
- package/dist/starting-doc/images/popup-creer-document.png +0 -0
- package/dist/starting-doc/images/popup-creer-dossier.png +0 -0
- package/dist/starting-doc/images/popup-dossier-cree.png +0 -0
- package/dist/starting-doc/images/quatre-dossiers-crees.png +0 -0
- package/dist/starting-doc/images/screenshot-living-doc.png +0 -0
- package/dist/starting-doc/images/the_living_documentation_tool.png +0 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Project AI Instructions
|
|
2
|
+
|
|
3
|
+
This file is the shared operating guide for AI assistants working on this project.
|
|
4
|
+
|
|
5
|
+
Keep this file short, concrete, and project-specific. `AGENTS.md` and `CLAUDE.md` should point here instead of duplicating the same instructions.
|
|
6
|
+
|
|
7
|
+
## Startup Routine
|
|
8
|
+
|
|
9
|
+
Before making changes:
|
|
10
|
+
|
|
11
|
+
1. Read this file.
|
|
12
|
+
2. Read `memory/MEMORY.md` and load the relevant memory files listed there.
|
|
13
|
+
3. Read every rule in `DOCS_FOLDER/AI/rules/*.md`.
|
|
14
|
+
4. To understand existing decisions, inspect ADR frontmatter first: read only `description` and `tags`, then open the full ADR only when relevant.
|
|
15
|
+
|
|
16
|
+
Replace `DOCS_FOLDER` with the real documentation folder path used by this project, for example `documentation` or `docs`.
|
|
17
|
+
|
|
18
|
+
## AI Rules
|
|
19
|
+
|
|
20
|
+
Rules live in `DOCS_FOLDER/AI/rules/*.md`.
|
|
21
|
+
|
|
22
|
+
Each rule uses frontmatter:
|
|
23
|
+
|
|
24
|
+
- `id` - stable rule identifier
|
|
25
|
+
- `title` - short human-readable name
|
|
26
|
+
- `severity` - `guideline`, `warning`, or `required`
|
|
27
|
+
- `description` - concise summary
|
|
28
|
+
- `tags` - themes used for discovery
|
|
29
|
+
- `appliesTo` - file globs describing where the rule applies
|
|
30
|
+
|
|
31
|
+
Apply every rule whose `appliesTo` patterns match files you touch. If a rule conflicts with the user request or another project instruction, state the conflict explicitly before proceeding.
|
|
32
|
+
|
|
33
|
+
## ADRs
|
|
34
|
+
|
|
35
|
+
ADRs are the durable record of important decisions.
|
|
36
|
+
|
|
37
|
+
When you need to understand why something exists:
|
|
38
|
+
|
|
39
|
+
1. List ADR files.
|
|
40
|
+
2. Read only frontmatter `description` and `tags`.
|
|
41
|
+
3. Open the full ADR only when it is relevant to the current task.
|
|
42
|
+
4. If you make or change an important decision, create or update an ADR.
|
|
43
|
+
|
|
44
|
+
## Continuous Documentation
|
|
45
|
+
|
|
46
|
+
At the end of every coherent feature or meaningful refactor, update the durable documentation autonomously when the change created knowledge that future work must preserve.
|
|
47
|
+
|
|
48
|
+
Do create or update an ADR when the feature:
|
|
49
|
+
|
|
50
|
+
- changes an architecture boundary, public contract, storage format, protocol, or workflow;
|
|
51
|
+
- introduces a convention that future changes must follow;
|
|
52
|
+
- resolves a trade-off that would be hard to infer from code alone;
|
|
53
|
+
- supersedes or invalidates a previous decision.
|
|
54
|
+
|
|
55
|
+
Do not create ADRs for trivial fixes, mechanical renames, formatting-only changes, or implementation details that are obvious from the changed code.
|
|
56
|
+
|
|
57
|
+
When you create or update an ADR or another durable documentation page, attach source-file metadata so Living Documentation can show reliability drift:
|
|
58
|
+
|
|
59
|
+
1. Link the document to the source files that prove or implement what it describes.
|
|
60
|
+
2. After the document is correct, refresh/re-baseline its metadata hashes.
|
|
61
|
+
3. If MCP tools are available, prefer `add_metadata` and `refresh_metadata`.
|
|
62
|
+
4. If metadata cannot be updated from the current environment, state that explicitly and list the source files that should be attached.
|
|
63
|
+
|
|
64
|
+
## Memory
|
|
65
|
+
|
|
66
|
+
Memory files live in the project under `memory/`.
|
|
67
|
+
|
|
68
|
+
Do not store project memory in a tool-specific global folder if the user expects project-local memory. Update `memory/MEMORY.md` whenever you add or remove memory files.
|
|
69
|
+
|
|
70
|
+
## Verification
|
|
71
|
+
|
|
72
|
+
Before finishing a task, run the smallest useful verification:
|
|
73
|
+
|
|
74
|
+
- build command if build files or typed code changed
|
|
75
|
+
- focused tests when behavior changed
|
|
76
|
+
- lint or formatting command if this project has one
|
|
77
|
+
|
|
78
|
+
If a verification command cannot be run, say why.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: no-magic-numbers
|
|
3
|
+
title: Avoid magic numbers
|
|
4
|
+
severity: warning
|
|
5
|
+
description: Numeric values with domain meaning must be named constants instead of repeated raw literals.
|
|
6
|
+
tags: ["code-quality", "maintainability"]
|
|
7
|
+
appliesTo: ["src/**/*.ts", "src/frontend/**/*.js"]
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
Numeric values with domain meaning should be named where they are introduced.
|
|
11
|
+
|
|
12
|
+
Prefer a constant whose name explains the intent:
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
const DEFAULT_CUSTOM_SHAPE_SIZE = 65;
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Avoid repeating raw values in code when the value carries product, rendering, sizing, timing, or protocol meaning.
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|