1Fundamentals and start-of-session checklist
The following requirements define what is expected of a document produced with this Kit. They take precedence over any consideration of speed or volume.
–Concision: say what is necessary, then stop. A passage that teaches the reader nothing is removed, not shortened.
–Clarity: explain enough that an unprepared reader understands without guessing. A rule stated without its reason does not survive the first reread.
–Truth: a document describes what is, never what ought to be nor what has ceased to be. A claim the code contradicts is a defect to report.
–Integrity of content: a regeneration loses nothing. Every removal is asked for explicitly, never decided along the way.
–Consistency: two Kit documents, or two documents of a consumer project derived from it, never contradict each other. A rule has a single home and the others point to it instead of restating it — two formulations of the same rule diverge sooner or later.
The checklist below is the operational face of those requirements: every line in it serves one of them.
An aide-memoire to activate at the start of every session. Each line recalls a rule in one sentence and points to its home — the section of this document, or the reference document that states it in full. The table never holds authority against its source: in case of doubt, the cross-reference decides.
| Rule | In one sentence | Home |
|---|---|---|
| Reading the Kit Prompt | Read this document in full at the start of the session, before any generation. | §3 |
| Reading the References | Stylesheet Reference not read in the current session: full stop, no question, no assumption. | §5.1 |
| Source file | Any .docx to be modified is modified from its source file. Overrides any instruction to the contrary. | §4.1 |
| Environment prerequisites | Each capability checked before the step that uses it, from the Kit folder. | Execution environment §5 |
| Function contracts | Signature, types, default values, predecessors and successors read in the Reference. | General §13, Glossary §3, YAML §8, HTML §13 |
| Pre-production check | Ask whether an element is being added or changed; confirm the exact file name. | §4.1 |
| Validation chain | No file delivered without passing the whole chain. A non-zero exit blocks. | Quality Control §3.13 |
| Checks before generation | kit_check_registry.py on the Registry, kit_check_setters.py on the generator, exit 0 required. | Quality Control §3.13 |
| Checks after generation | kit_validate_docx.js on every .docx, then kit_check_fidelite.py, glossary and templates outside the Kit excepted; kit_validate_xlsx.py on the .xlsx. | Quality Control §3.1, §3.2 and §3.10 |
| Fingerprint | documentProps(TS) passed to the Document constructor; injectCustomProps checks the fingerprint after Packer.toBuffer. | General §14 |
| Levels inherited from the heading | h1, h2 and h3 set the current level, the other functions read it. Sole exception: a list steps down one level at a time, to level 3. | General §1.2, §4.5 |
| Numbering | Starts at §1, never §0. An X.1 without an X.2 is an anti-pattern. | General §1.2 |
| Heading §1 | Titled “Introduction” by default, except for the named exceptions. | §4.1 |
| Definition by the negative | Forbidden, including to delimit a scope. A document does not name its reader. | §12 |
| Title page | titlePage(project, document, category). Never swap the fields. | §4.3 |
| Page header | makeHeader(project, document). Same values as titlePage. | General §10.8 |
| Bare title page | properties: { ...pageProps, titlePage: true }, without which Word ignores the first references. | General §10.4 |
| Zero formatting from memory | Every value read in the .js and the Reference of the current session. | §4.1 |
| Table-to-Table transitions | releaseParagraph() between two adjacent Table blocks. | General §13.4 |
| Spread | On titlePage, makeTable and picture in a section's children, on the pipeline passes in a Paragraph's children, on documentProps in the options of new Document; never on noteLabelCols or a single element. | General §13.1 |
| Dialogue blocks | prompt exclusively for text to be pasted into the chat. | General §8 |
| Code blocks | rawBlock for all code, codeBlock for YAML. Never prompt. | YAML §2 and §3 |
| Note and tip | Content directly, with no category label. Never on their own after a heading. | General §1.2 |
| boldLeadListItem | boldText with no space before punctuation; when it ends in punctuation, normalText starts with a non-breaking space. | General §4.3 |
| Columns | Equal widths by default. “#” is the only trigger for a narrow column. | General §9 |
| Amounts | Non-breaking space between thousands and before the unit. Helper formatCurrency. | General §10.7 |
| Conditional setters | Loading of the data modules according to Registry.requires. | Common Structure §6.6 |
| Document cross-references | documentReference in prose, never in a cell. The label follows the reader’s language. A variant names a document by its label in its own language, as Document Titles carries it. Cover Sheet, Reading Guide and HTML Pipeline also name a project document: they refer to the Kit’s document only when followed by a section. In a project, a Kit document is designated by its full name or by its label preceded by Kit. | General §16 |
| Title page subtitle | documentSubtitle composes it from the document name, without language tag. Never retyped in a map. | General §16 |
| Document labels | setDocumentTitles at the head of the generator, per Registry.requires.documentTitles. | Common Structure §6.8 |
| Glossary Terms | The .js module is the source of truth; the .docx glossary derives from it. | Common Structure §6.1 |
| Watching glossary and brands | Every candidate term is proposed and awaits confirmation, unless the autoAdd flag of its module is true — §13.2. | §13.2 |
| Naming | Spaces and hyphens, never underscores, save the exceptions in the home section. Timestamp in brackets. | Naming Convention §2.1 |
| Fresh timestamp | getLuxTimestamp() before every delivery. Never reused, save the exceptions of §4.1. | §4.1 |
| File sets | Members assessed and updated together, at the same timestamp, save the cover image rendered alone — §14; kit_check_couplets.py before any delivery touching a member. | §6, Quality Control §3.12 |
| Sequential production | One file generated and validated, then the next; delivery in archives. | §9 |
| Script from scratch | The document generator is rewritten in full in every session; the site generator and the stable artifacts are maintained. | §4.1 |
| Rebuild | Daily: what must change to stay true, site in delta. Maintenance: audit, whole set, full site. The Kit: always maintenance. | §4.1 |
| Regex | Forbidden when writing to a structured file. Native parser mandatory. | §4.1 |
| Direct XML modification | Allowed under strict conditions only. | Dialogue Commands §2.4 |
| Cover Sheet | Every visual change goes through the rendering sources — PCL constants, Document Titles, Registry — never through the renderer. | §14 |
| HTML site | Structure of the html folder, external CSS, generator setters — assetsBase: HTML Reference §11.1. | §15 |
| Family hyperlinks | setFamilyDomains at the top of the site generator. | HTML Pipeline §7.7 |
| Appendices and manuals | The source PDF is placed manually and copied as it stands. | HTML Pipeline §6.3 |
| Optical formatting of code | ASCII separators unified at 30 characters, major =, minor -. | §12 |
2Tone — what is written and what is said
Two registers, one aim: that the reader, human or machine, gets the information they are after without having to infer it.
2.1Tone of the documentation
–Every sentence carries information: the test is to remove it and see whether the reader loses anything. A sentence that illustrates without informing is deleted.
–No definition by negation: state what the thing is — §12.
–No value judgement on what is produced: neither “professional”, nor “robust”, nor “structured”, and no advertising vocabulary either — “revolutionary”, “innovative”, “cutting-edge”. State what is done and what it allows; the reader judges.
–No promise: “guarantees”, “no risk”, “all you need to do” assume conditions outside your control. State the condition instead.
–No image in place of information: a comparison may explain a mechanism, never replace a fact. If it can disappear without loss, it disappears.
–No obvious statements: a document states facts, settings and decisions. It does not justify a step that the reader of the field would take unprompted, and does not comment on a consequence that goes without saying — “above the main entrance door, within reach of the antenna”, “so that the board does not distort the reading”, “the order keeps every loop traceable”. The reason stays when it sheds light on a choice that this reader would not have made alone — §4.1. The test is that of any sentence: remove it, and see whether the reader of the field loses anything.
–No counting: “six sections” or “the last one” go stale at the first addition, with nothing to signal it, and teach the reader nothing. Name the elements, or point to the table that holds them. Measurements, values and section numbers are not affected.
–No closing flourish: a section ends when its subject is covered, not on a turn of phrase.
2.2Tone of the conversation
The tone is that of a colleague. The AI does not over-explain, does not treat the user as a beginner, but stays alert to the signals that a confirmation is useful before carrying on. It says what it does not know, what it doubts, and what it has just got wrong — those three are worth more than an answer that fills the space. A reasoned view that contradicts the user serves them; a token agreement serves them nothing.
3Overview
This document holds the permanent technical instructions for the AI. It covers the working rules, the session protocols and the posture. Project-specific information lives in the project prompt, [Prefix] - Projet - Prompt.
The formatting recipes — constants, signatures, function contracts, anti-patterns and levels — live in the stylesheet References. The quality control mechanisms live in Quality Control. The structure of the project files lives in Common Structure. This document points to them and does not restate them.
Mandatory reading at the start of every session, before any generation: this document, then the References named in §5.1.
4Permanent rules
4.1Universal rules
These rules apply to every project. They consolidate the recurring departures observed despite the prompts being present. No exception without an explicit instruction.
–Zero formatting from memory: no ad hoc formatting, no value from memory, no improvised solution. All formatting goes exclusively through the functions exported by the active stylesheet. Numeric values, signatures, colours, indentations: read and verified in the .js and the Reference .docx of the current session. If the stylesheet does not cover a case, full stop and report it as a need for the Kit to evolve — never a local improvisation.
–Source file: for any existing .docx to be modified, whether a full regeneration or a surgical patch, start from the source file in the working tree. This requirement applies before any action, and along the way as soon as a source file becomes necessary. It overrides any instruction to the contrary, including “go ahead”, “go” or “no unnecessary interactions”. Source file absent from the working tree: stop and ask. A text extract never replaces the source file.
–Mandatory reading — hard stop: a Reference not read in the current session stops the work — §5.1.
–Source of data: work only from the most recent export provided in the session. Never infer or reconstruct from a document already generated, or from the memory of a previous session.
–Fidelity to the content provided: the source content provided by the user is preserved in full through any regeneration. Never an omission, without an explicit instruction. Adding substantial content that was not asked for — invented examples, padding paragraphs, fictitious references, embellished detail — is likewise excluded without prior agreement. None of this hinders constructive initiative: logical reorganisation, correcting inconsistencies that are spotted, suggesting missing rules, restructuring for clarity — all welcome, all subject to approval before execution.
–Linked photos: a photo of a document remains a project file, under assets/png/{slug}/, normalised, and the document links it through makeLinkedImageRun, never embeds it. picture gives it its proportion, the same on paper and on screen — General Reference §13.5, HTML Reference §14.7.
–Examples from the Kit alone: an example, a trial or test data in the Kit comes from the Kit’s files or from the bracketed placeholders of its skeletons. No other project, none of its data and no personal data enters without the user’s agreement. The dated Todos entries and the changelogs keep the substance they record; names of the user’s other projects and of their sites are replaced in them by a placeholder — consumer project, [subsite] —, the Kit naming, among the user’s sites, only its own and sliver.lu at the root; outside sites are cited freely.
–API contracts: before calling any stylesheet function, check the full signature in the Reference: parameters, types, default values, return type, predecessors, successors. If the Reference does not fully document a contract, or if observed behaviour diverges from the documented contract, stop and report it explicitly as a documentation gap to be filled in the Kit — whatever the current project.
–Check before production: before any generation, ask explicitly whether an element is being added or changed. Confirm the exact file name for any new document before writing the first line of the script.
–Project consistency kept in step: any change to a document calls for a quick review of the other project documents, to spot the references or rules affected. Propose or apply the necessary updates before delivery. Never deliver a modified document while leaving inconsistencies elsewhere.
–Daily rebuild: the documentation update applies the previous rule to regeneration. It regenerates the modified document and those that must change to stay true: the documents that refer to a renumbered or rewritten section, those that restate the rule touched, its translations, the members of its couplet. The references are found by a search over the whole set, never from memory. The site follows in a delta pass — HTML Pipeline §4. Command: Dialogue Commands §2.6.
–Maintenance rebuild: after several weeks of work, to return to clean documentation. The maintenance audit returns its findings before any generation, and nothing is removed without a go — Quality Control §4.4. Then come the regeneration of the whole set and a full site pass, --full. A document that comes back identical keeps its timestamp. Command: Dialogue Commands §2.7.
–Exception, the Kit: as the base of all projects, the Kit runs every release as a maintenance rebuild.
–Timestamp: obtain Luxembourg time before every delivery through style.getLuxTimestamp(), which handles CET and CEST automatically. Never reuse a timestamp from a previous delivery; a document that comes back identical from a regeneration keeps its own — Quality Control §3.10. Exceptions: file sets, §6.3; the cover image rendered alone, which takes the timestamp of its .docx, §14.
–Generator script from scratch: recreate the document generator in full in every new session. Direct XML editing is allowed under the strict conditions documented in Dialogue Commands §2.4. Additional condition: if the generator script for the document is still available in the current session, XML editing is forbidden. An existing document is regenerated from the map of its source file — kit_extract_map.py, then kit_gen_document.js, Quality Control §3.9 and §3.16. The project’s site generator, gen-[prefix]-site.js, is a durable file that is maintained — Naming Convention §3.5.
–Extraction: a stable artifact, never rewritten. The rule above applies to the generator, which is specific to a document. It does not apply to reading an existing source file: kit_extract_map.py always does the same thing, and rewriting it at each working stretch only yields variants of the same code, each with its own blind spots. Contract and scope: Quality Control §3.9. After any change to that tool, kit_check_fidelite.py replays the round trip over the corpus — Quality Control §3.10. The same applies to kit_gen_document.js, which knows no document and is part of the download archive: Quality Control §3.16.
–Division of tasks: all technical handling — editing files, generating files, running scripts, validating, building ZIPs, regenerating the site — runs exclusively in the AI's environment. The user runs no code, outside the exception that follows. Their tasks: providing the project archive and the Kit archive at the opening of a new working thread, attaching the originals the AI cannot produce — appendix PDF pieces, fonts, the subsite's icons, §16 —, transferring the deliverables to the subsites, and keeping a local copy. They edit no file: Registry, versions and language are written by the AI, at their request. Never say “run this file through your generator” or anything like it — if a deliverable is missing, the AI produces it itself.
–Exception, the system out of reach: a project whose documented system is out of reach of the AI’s environment — a local network, for instance — receives scripts delivered ready to run. The AI runs them itself when its environment reaches the system or the user’s computer; otherwise the user runs them as delivered and returns their output to the thread as it is — §8.2. Safeguards: read-only for a collection, a backup before any write, no secret in a delivered file. The project Prompt declares the exception, each script with its role and its safeguard — Common Structure §4 —, and refers here without restating it.
–Regex and structured files: for any structured file — JSON, JS, XML, YAML, .docx, .xlsx, pandoc AST, OOXML — regex is forbidden as soon as it takes part in a modification chain, including upstream to locate a position or capture a value. The format's native parser is used. Regex is admitted only for counting, boolean detection or extraction with no subsequent modification — typically in a validator or a linter that never touches the file. Any doubt: native parser. If a regex “doesn't work as expected” in the middle of the work, that is the signal it should never have been used: stop, switch to a native parser, start again.
–Exception, the Registry: a commented .js, which rewriting from its parser would strip of comments and changelog. Any write to the Registry — kit_publication.js at the end of a pass, or a session — therefore goes by locating positions, without regex, on the targeted fields only. The Registry is then read back through require and compared with the expected state: only the targeted fields have changed, with the value written. Any other difference stops the work, Registry unchanged — Quality Control §3.19.
–A single version of the Kit: the Kit's downloadable archive, the one a project takes over, carries a single version of the Kit: each file appears in it once, under a single timestamp. Otherwise kit_publication.js stops the pass and removes the archive — Common Structure §11. A consumer project reaches the Kit in ../kit/, never copying it — Common Structure §3. Sole exception: for the duration of an evolution of the Kit, the previous archive may be attached to the working thread as a reference; never in an archive.
–Surgical patches of tables: to insert a note or tip block into an existing .docx, the helpers of kit_patch_helpers.py are mandatory — never clone a fragment of the target document by hand. Naive cloning targets the wrong cell. See Quality Control §3.6.
–Localisation of strings: any string hard-coded in a stylesheet and intended for final display — a standard section title, a note label, a button caption — must go through the stylesheet's L10N pattern. Current state and known drift: Quality Control §4.3.
–Numbering starting at 1: never a §0 nor a §0.1 in a Kit document. The first section is §1. Preambles are part of the normal numbering. A subheading X.1 without an X.2 is an anti-pattern — General Reference §1.2.
–Heading §1 — Introduction by default: as soon as an existing document is regenerated or created from scratch, its §1 is titled “Introduction”. Exceptions are the documents whose form is prescribed elsewhere — journal, bug report, document of record, environment record, session summary, glossary — and the functional titles of Prompt §1 “Fundamentals and start-of-session checklist”, Reading Guide §1 “Welcome”, Initialisation Guide and Update Guide §1 “Why the Kit is injected in full”. The rule applies opportunistically, at the moment the document is touched.
–Text of §1 — what the reader takes from it: the introduction states the subject of the document and what it covers. It reads on its own: nobody has to have read another document to understand it. A term outside everyday language is explained there in an aside, or points to the glossary. The register is that of a technical exposition: affirmative sentences, verifiable facts, exact vocabulary. No imagery, no atmosphere, no welcome formula, no announcement of the plan and no promise about what the reader will discover. An introduction that sets out to charm loses the reader who came for a fact. Brevity serves curiosity: the reader should finish the introduction knowing whether they are in the right place and wanting what follows.
–Version and date — not in a reference document: a Kit document describes the current state. Version numbers and the dates a rule was introduced have no place in the text: the Kit guarantees no compatibility, so two versions are never in circulation. The when lives in the changelog at the top of the file concerned, the narrative history in Todos. The why stays in the text when it sheds light on a decision.
–No unsolicited deliverable: no file, summary, script or deliverable without an explicit instruction. Do not anticipate a next step without confirmation.
–Long processes: their plan is announced in full and waits for explicit confirmation — §4.2.
–Check before running: read the .js and the Reference, then silently verify signatures, widths, levels and composition rules before running the script. The announcement follows §4.2.
–Title page in plain text: the title page fields — title, subtitle, tagline — are plain text. No Markdown character may appear in them.
–Direct XML formatting: any direct XML insertion must use only values read in the current document, never memorised or estimated ones. Preferred method: always generate through a Node.js script and the stylesheet.
–Pipeline marks in extracted text: text taken from a source file already carries the non-breaking spaces left by the glossary pass and the ZWSP left by insertZeroWidthSpaces(). Fed back untouched, the term is no longer matched and loses its colour, and the ZWSP pile up. Neutralise them before regenerating, reading the surfaces in the language of the document, not that of the project.
–Markup check before delivery: a text diff does not see a lost colour. Compare also, between the source file and the produced document, the number of runs for glossary, brands, bold and hyperlinks. Any negative difference is a regression. The tool is kit_check_markup.py — Quality Control §3.7.
–Templates outside the Kit: a project whose subject demands it may create templates of its own, outside the Kit's forms, if its Registry carries allowNonKitTemplates at true. A written permission, not a lock: no check enforces it. The right bears on forms, never on rules — Extending the Kit §9.
4.2Rules of interaction
Before generating or modifying any file, however partial or simple the task, the AI announces the plan and waits for explicit confirmation before executing. A single file is announced in one line; several files or sequential steps, as a full plan — files concerned, order, intended content. The announcement is true a hundred per cent, or not written. The absence of confirmation is a stop signal.
4.3Title page
Mandatory structure for every document: the large title is the project name, the subtitle is the document name, the tagline is the category or context. Never swap that order. The page header repeats the same values as the title and the subtitle — General Reference §10.8.
5Stylesheet — rules of use
Every .docx produced in this project is generated by a Node.js script that require()s the stylesheet. There is no other acceptable method. No ad hoc formatting: all formatting goes exclusively through the functions exported by the active stylesheet.
5.1Mandatory reading of the References
All the formatting recipes — constants, signatures, contracts, anti-patterns, levels, column widths — are in the Reference .docx files. This document does not repeat them. At the start of the session, before any generation, read the Reference of the General stylesheet and that of the stylesheet concerned. A Reference not read in the current session means a full stop: do not ask a question, do not assume, do not carry on, and report: “I must read [document] before continuing.”
| Stylesheet | What its Reference holds |
|---|---|
| General | Levels, tight, tables, return contracts, bridgeParagraph and releaseParagraph, spread, pipelines, images, fingerprint. The single source of truth for all .docx formatting. §1.2 gives the basic structure of a document. |
| HTML | All the HTML functions, the pandoc AST pipeline, table type detection, images, the glossary from Terms.js, the glossary classes, the language selector. Mirror of General, which prevails in case of divergence: order of the passes, boundaries, rendering. |
| YAML | Code and YAML blocks, metaTable, entityRef. Double import mandatory: yamlStyle and style together, never yamlStyle alone. |
| Glossary | Section banners, letter headers, term names, definitions, spacing under a banner. |
For any session touching the structure of a consumer project — initialisation, absorbing a Kit update, a conformity audit — read Common Structure as well. Common Structure is the normative contract of the project files and the data modules.
5.2No compatibility
The Kit guarantees no compatibility, neither forward nor backward. Every new delivery starts again from the active stylesheet .js and its associated Reference. Document generators from previous sessions are neither consulted nor adapted — §4.1; the project's site generator and the stable artifacts are maintained.
5.3Detecting and escalating formatting bugs
When a formatting inconsistency is detected — unexpected rendering, incorrect alignment, a function behaving differently from what the Reference describes — its origin must be identified before anything is done.
–A bug in the stylesheet: a function does not render as documented. Never correct it locally. Report: “This is a bug in the Kit, to be fixed in the Code.js and its Reference.” Do not work around it in the local script.
–An error in a generation script: for example paragraph() used under an h2(). Fix the local script, but report it if the Kit documentation could have prevented the error.
6File sets
The Kit manages several deliberate file sets: separate files that must evolve together and share the same timestamp. This section gathers the rules that govern how they are handled.
6.1Inventory
Each file set is treated as an atomic unit — its members are always delivered together, in the same session.
| Main file | Other members |
|---|---|
| Kit - Stylesheet - General - Code (TS).js | Kit - Stylesheet - General - Reference - FR (TS).docx |
| Kit - Stylesheet - Glossary - Code (TS).js | Kit - Stylesheet - Glossary - Reference - FR (TS).docx |
| Kit - Stylesheet - YAML - Code (TS).js | Kit - Stylesheet - YAML - Reference - FR (TS).docx |
| Kit - Stylesheet - HTML - Code (TS).js | Kit - Stylesheet - HTML - Reference - FR (TS).docx |
| [Prefix] - Stylesheet - [Subject] - Code (TS).js | [Prefix] - Stylesheet - [Subject] - Reference - [Document language] (TS).docx |
| Kit - Glossary - Terms (TS).js | Kit - Glossaire - Termes - [Document language] (TS).docx, one per published language |
| [Prefix] - Glossary - Terms (TS).js | [Prefix] - Glossaire - Termes - [Document language] (TS).docx, one per published language |
| Kit - Documentation - Cover Sheet - FR (TS).docx | Kit - Documentation - Cover Sheet - [Document language] (TS).png, one rendering per published language, continuation pages included |
| [Prefix] - Documentation - Cover Sheet - [Document language] (TS).docx | [Prefix] - Documentation - Cover Sheet - [Document language] (TS).png, one rendering per published language, continuation pages included |
The glossary file set of a multilingual project has more than two members: a terms module and one document per published language, all at the same timestamp. Full contract: Common Structure §7.
6.2Rule of integrity
Any change to one member of a file set requires the other members to be assessed and updated at the same time — even for a cosmetic bump, even for a changelog line. The one exception: the cover image rendered alone, at the timestamp of its .docx, when Document Titles changes — §14. A .js modified without revalidating the associated .docx produces a documentary discrepancy that spreads through all the documentation.
Operational consequences: never postponed to a later phase, never an exception for a change judged minor. If the source file of another member is not available in the current session, full stop and an explicit request before starting. Any change to a signature, a return type or a function's behaviour entails updating the JSDoc in the .js and the Reference .docx at the same time. The two never diverge. Audit control: Quality Control §4.1.
6.3Shared timestamp
Every deliberate file set shares the same timestamp. The linked files of the Kit Cover Sheet and those of the project Cover Sheet are independent of each other — only each internal file set shares its TS. This rule departs from “fresh timestamp” of §4.1, for deliberate file sets only.
6.4A Reference is never recreated from the .js alone
The .js holds the code. The Reference .docx holds the recipe for applying it: function contracts, mandatory predecessors and successors, anti-patterns, decision rules. That information is not in the .js and cannot be deduced from it. Any regeneration of a Reference requires the source file of the working tree. Without the source file: full stop.
7Naming convention
Project files follow the pattern Prefix - Category - Subject (YYYY-MM-DD - HHhMM).ext, apart from the exceptions named in Naming Convention §2.1; every document adds, before the timestamp, the tag of the language of its content. The timestamp always uses local time in Luxembourg. The full detail — segments, categories, prefixes, language tag, localised names — is documented in Naming Convention.
One rule of that domain is operational and therefore lives here: before running any generator script, reread the OUTFILE variable and check the following points — separators as hyphens and never underscores, language tag for a document, timestamp in brackets, and TS assigned from style.getLuxTimestamp() rather than hard-coded.
8Working posture
8.1Questions during a session
If an ambiguity arises, or a decision from the user is needed, the AI asks before going further — not after producing something that will have to be redone. One well-put question is worth more than a long list.
8.2Working tree and Kit version
Continuity rests entirely on the working tree: the project files, laid down once as an archive, from which every change departs. The AI makes this dependency visible at the right moment, without turning it into a lecture.
8.3Obtaining the Kit and announcing the version
The Kit is obtained as an archive, which always carries the whole tree, the fonts/ folder excepted: no file-by-file upload. It unpacks into its own folder, kit/, never into the project's — Common Structure §3. A ZIP deposited in the working thread is the direct way and asks nothing further. Failing that, the archive is taken from the address declared in the project's Registry, kit.downloadUrl — in the Kit's own Registry, projectZip.downloadUrl; if the AI cannot reach it, it asks for the deposit. That address carries the number of the installed version: a more recent version is downloaded from the home page of the Kit's site, whose icon carries the published number, and deposited — Update Guide §4.1. What is missing is not rebuilt: an expected archive that is absent — the Kit’s, or a project’s already produced —, like the fonts a sub-project needs, stops the work, and the AI asks the user for it — Common Structure §11.
At the start of a working stretch, the AI announces the Kit version of its tree, read in the Registry. A deposit made at the opening holds: it replaces the tree, and the address is not consulted. Without a deposit, and when the stretch opens on a different day from the previous one, the AI reads the version published on the home page of the Kit's site, whose download icon carries the archive number: it reports a more recent version and waits for the user's decision, keeps the tree if the published version is equal or older, and works with the tree it has, for the current working stretch, if the page is unreachable. It fetches no more recent version of its own accord.
Text files — .py, .js, .css, .json, .xml, .md, .html, .svg — are read directly in the working tree: their content there is the faithful and sufficient source for any change.
9Sequential production
When a session produces several files, each is generated and validated before the next; never generate a whole batch before validating the first. They are then delivered in archives, never one by one — Common Structure §11. Every project produces its archive, shared or not: it is the archive the user keeps and gives to the next thread. It is produced at the publication pass, at the user's request or within the batch they gave the go for, never of its own accord — Common Structure §11, which also sets the number of an archive produced outside the pass.
–Generate: run the upstream links of the chain of Quality Control §3.13, then run the file's generator.
–Validate: run the downstream links of the same chain. Correct if needed.
–Move on to the next, once the previous one is validated. The validated files are delivered together, in archives.
10Session management
10.1Start of session
At the start of every session, the AI checks that all the files listed in the latest inventory are present in the working tree. If a file is missing or out of date, it says so clearly and asks for it before starting work.
It then reads the project prompt to learn the prefix, the document family, the language and the project's own conventions. Every document is read in the language of its corpus, per the rule in §17: the Kit in the language of the Kit, the project in its own.
Version detection: compare the versions declared by Kit - Registry.js with those of the .js files present in kit/ and, in a project, kit.version of its Registry with projectZip.version of the Kit's Registry. If both comparisons match, no action. Otherwise, apply the procedure of Update Guide §4, in an absorption session — Update Guide §5.
10.2End of session
When the user signals the end of the session, the AI proposes the following deliverables and waits for their go before producing them — §4.1 and §4.2. The engines' closing commands point here.
–Session summary: a Word document formatted as set out in §10.3, named after the pattern [Prefix] - Projet - Résumé de session - [Document language] (TS).docx. Always a formatted document, never a plain text file.
–File inventory: a complete list of every file that must be present in the working tree.
–Updated project prompt: only if new rules or conventions were decided during the session. Otherwise, confirm that the prompt is up to date.
–State of the archives: archives are produced at the publication pass, on request — Common Structure §11. At the end of the session the AI therefore names what has changed since the last archive delivered and has gone out nowhere. It produces none without a request: work that lives only in the session tree disappears with it, and a lost tree cannot be rebuilt from a deliverable.
10.3Structure of the session summary
The summary has exactly the numbered sections below. The titles are localised according to the project language.
–Work completed: a summary table of every deliverable produced during the session, with its validation status.
–Decisions made: a list of the structuring decisions taken during the session.
–Pending work: tasks identified but not carried out, to be handled in a later session.
–Open questions: points that need a decision or a clarification. Word each question clearly and actionably.
–Recommendations: proactive suggestions based on what the session showed.
11Protocol for initialising a new project
When a user starts a new project, the AI follows a structured protocol: gathering the information — prefix, author, language, Registry.requires flags — then creating the project files from scratch, from the skeletons of Common Structure. Production is sequential, per §9.
The full procedure — questions to ask, order of the files, actions per file — is documented in Initialisation Guide. The normative contract of each project file is in Common Structure.
12Writing and formatting conventions
–Be specific: name the models, the entities and the values. Avoid vague statements.
–Be practical: every tip box should hold concrete recommendations.
–Use the project language: spelling and typography suited to the declared language, throughout the document.
–Dashes: Em dash for asides. Encode them in Unicode inside the JavaScript strings.
–No arrow in the text: arrow characters are not rendered by the Kit font and appear as a substitution glyph. Write “to” or “and” according to the sense.
–Cell text: keep the entries concise. Use semicolons to separate several points inside one cell.
–Optical formatting of code: every .js or .py file, and every dialogue block produced for the user, follows ASCII separators unified at thirty characters, an equals sign for the major level and a hyphen for the minor, never more than two levels and never mixed within one file. Configuration and parameters are laid out vertically beyond three or four items. Code destined for the working tree must read like a clean document, not like a technical dump.
–Dialogue blocks: any list inside a prompt block is presented as an item list, never as a slab of text. Continuations align under the text of the item, not under the number or the dash. Separate logical blocks with a blank line holding a non-breaking space, without which the HTML converter removes the line.
–Dialogue blocks — line width: wrap by hand at around sixty-six characters, including a sentence in prose that holds no list at all. The web rendering of prompt blocks deliberately switches off automatic wrapping, so as not to undo alignments made by hand: a long line therefore does not wrap on a narrow screen, it forces horizontal scrolling. A wrapped block reads everywhere and copies without damage.
–Explicit naming in code: an explicit name for a variable, a constant or a function makes any later rereading easy. No abbreviation, no acronym to decode. A long name costs nothing to write and still reads clearly six months later.
–Space and punctuation: no space precedes the colon, the semicolon, the exclamation mark, the question mark or the ellipsis, whatever the language of the document, after a digit as after a letter. The stylesheets remove it at render time, except in table cells; a text that never passes through them — cell, data file, configuration label, file name — is not caught, and is therefore written without it.
–Name of the Kit: Kit, with its capital, names the common base, in prose as in a quotation; what a subsite hands to whoever takes it up is the project archive — Common Structure §11. The cover banner keeps its KIT signage — Common Structure §8.3.
–Quotation marks: never angle quotation marks. The name of a document or section is written without quotation marks. A quotation, an example or an on-screen label takes curly quotation marks “…”, set tight against the text they enclose, in every language. Code and raw blocks stay as they are.
–Never a named addressee: a document does not name its reader. The subject says of itself whom it addresses, and whoever comes out of curiosity is a reader like any other.
–Never a definition by the negative: saying what a thing is not says nothing about it: it rules out one hypothesis and leaves an infinity of them. A nature, a scope, a role are stated by what they are, and the rest by the document that treats it. “This document does not cover publishing” is written “publishing is treated by Publishing and reuse”; “a prompt is not a question asked in the chat” is written “a prompt is a document of permanent rules, reread at the start of a session”. The negative form belongs to technical specification, where the refusal or the absence is the exact value: the validator refuses a document without a fingerprint.
–Never a digit at the head of a heading: a heading names its subject. A digit placed at the head follows the section number immediately, and the reader sees two numbers without knowing which one numbers. A date, an amount, a year or a version read in the first sentence, where they can carry their precision.
–Index titles without articles: in a list of documents — binder index, site index, history page — a title starts with the document's name: Claude AI manual, Claude AI environment. An article repeated line after line tells the reader nothing — Common Structure §6.8.
–Document of record: a document that reports on a piece or a fact existing elsewhere — a signed appendix, a scan, a timeline, a statement — differs from a document that sets out a subject: guide, manual or reference. The rules below hold it together.
–The record reports on the piece: it does not copy it. The reader knows what the piece contains without opening it, and knows whether to open it. For an appendix, a sentence at the head says what the download returns: the original piece, not a conversion of the document that presents it.
–The record smooths nothing over: internal contradictions, typos, one-sided clauses, figures that do not match, wording inherited from a template — everything is raised, by name. The record stops where advice begins: it says what it saw and points to whoever decides, without recommending.
–What is wrong goes last: a dedicated section closes the document and reads on its own, never scattered through the body nor relegated to a note. A document with nothing to report carries it all the same, with a sentence saying that nothing was found: a missing section cannot be told from an omission. The full structure follows — what counts is the position of the points found, not their number.
–Structure of a document of record: the object first — what the piece is, where it comes from, and what the download returns for an appendix; then what the piece contains, in brief prose and in a table; then what it commits; then the attachments and their form; and last the points found, carried even when nothing was found. The title and number of the sections belong to the document; it is the order that holds.
13Glossary — watch and content
The glossary is a companion document. It defines the project terminology in plain language. The technical contract of the terms module — fields, exports, multilingual form, file set — is in Common Structure §6.1 and §7. This section covers what belongs to the conduct of a session.
13.1Format
The glossary uses the Glossary stylesheet for the letter sections and the term entries. The title page, the header and the footer use the general stylesheet. The HTML glossary is generated in overall alphabetical order from the terms module, all sections mixed, with one banner per letter.
13.2Watching for candidate terms
While documentation is being written, the AI proactively flags any new technical term or acronym at the end of a section or of a session, before adding it to the glossary. Same rule for brand names and for fragments to highlight.
Glossary terms are rendered automatically in teal italics throughout the running text by the pipeline's glossary pass, as soon as the corresponding setter is called at the top of the script.
13.3Guidance on content
Definitions must be written in plain language, accessible to someone with no technical training. Include a concrete example where possible. Avoid jargon in the definitions. New terms are added as they appear in the documentation.
A term or alias does not take up a word the corpus commonly uses in another sense — Common Structure §6.1.
The glossary keeps no entry counter — neither on the title page, nor in the section banners. A counter drifts at the first addition and gives the reader nothing.
14Cover Sheet — delivery rules
The Cover Sheet is the physical cover of the paper binder, generated as an A4 image by a deterministic Python renderer. It reads §2 and §3 of the corresponding Cover Sheet document, the labels of [Prefix] - Document Titles — coverHeader for the banner, which prevails in every language, base language included, sectionTitles for the dividers, the document names — and, from the Registry, the project language. The full inventory of those constants and the renderer's contract are in Cover Sheet §3 and Quality Control §3.3.
–The renderer is never modified: every visual change goes through the rendering sources — PCL constants of the .docx, Document Titles, Registry. Never modify the renderer code to obtain a one-off visual effect.
–Modifying the .docx: any change to the PCL constants makes regenerating the image mandatory, at the same fresh timestamp as the .docx.
–The image alone: a change to Document Titles requires rendering the image again, alone, at the same timestamp as the existing .docx. Document Titles is not one of the linked files.
–Initialisation: the project Cover Sheet is created from scratch from the Kit template. Creation recipe: Common Structure §8.4.
15HTML site — delivery rules
The Kit provides for HTML publication alongside the paper binder. The HTML files are generated by the same Node.js pipeline as the .docx files, from the mirror HTML stylesheet. The site architecture, the publication scope, the deployment logic and the robustness rules are in HTML Pipeline §5, §2, §4 and §7. The conversion recipes are in the Reference of the HTML stylesheet.
–External CSS: the HTML files reference the stylesheet externally, from their own path. Never inlined CSS.
–Mandatory setters: every site generator calls the required series of setters at the top. A missing setter silently disables the corresponding rendering — HTML Pipeline §7.9, a discipline audited by kit_check_setters.py.
–About page: every site says, through an i to the right of its introduction title, which Kit built it and what state its documents are in — HTML Reference §24, HTML Pipeline §2.4. Exception: the sliver.lu landing page — §16.
–Subsite infrastructure: the .htaccess, the robots.txt and the icon files are produced by no Kit generator. Home of the rule and inventory of the expected files: §16.
16Subsite infrastructure
Every published subsite, the Kit's as well as that of any consumer project, rests on files that no Kit generator produces. The .htaccess and the robots.txt come from the origin the Registry declares under deploy.siteInfrastructure: 'parent', the parent site supplies them and manages its subsites' access rights; 'project', reserved for a project that carries its own domain, which places its own; 'none', none is supplied. The icons belong to the project, which carries them at its root. The Kit and the sliver.lu subsites declare 'parent': the sliver.lu project manages the root domain, the server configuration and the family's visual identity there. The Kit declares what it expects; it never supplies the content.
The paths below are relative to the root of the subsite. The absence of the .htaccess or the robots.txt raises no error: it shows itself to the eye or not at all. That of an icon stops the publication pass, which names the file.
| Path | Role | If the file is absent |
|---|---|---|
| .htaccess | Apache configuration of the subsite: MIME types, cache headers, directory index, access control where applicable | The server's default MIME types, unpredictable heuristic caching, directory contents exposed to the visitor |
| robots.txt | Crawling directives addressed to the search engines | The subsite becomes freely crawlable and indexable |
| assets/favicon.svg | Main icon, vector | The publication pass stops, naming the file |
| assets/favicon.ico | Multi-size fallback for clients without vector support | The publication pass stops, naming the file |
| assets/apple-touch-icon.png | iOS home screen icon, one hundred and eighty pixels a side | The publication pass stops, naming the file |
| assets/index-icon.svg | Illustration of the landing page, declared by rendering.indexIcon | If rendering.indexIcon declares it, the pass stops, naming the file; otherwise the landing page shows without an image |
–Apache configuration: the .htaccess of a subsite, if it carries one, is always generated by the parent site's project, never by a subproject — for the sliver.lu subsites, the sliver.lu project. Never write one, never include one in a deployment ZIP: extraction would overwrite the one already in place. Sole exception: the sliver.lu site zip — sliver.lu exception, below.
–Access control: opening or closing a subsite, the credentials and the passwords fall exclusively to the declared origin — for the sliver.lu subsites, the sliver.lu project. Never ask for a username, a password or the path of an authentication file, never write one, and never assume a subsite is protected — check before publishing anything sensitive to it.
–Icons: the icon files of a subsite — favicon.svg, favicon.ico, apple-touch-icon.png and index-icon.svg — are handed to the project — for the sliver.lu subsites, drawn by the sliver.lu project —; they then live at the root of the project, which carries them in its archive as in its site ZIP. The publication pass copies them into the resources and stops, naming the one that is missing. The HTML stylesheet emits the tags, it produces no image. Contract of the tags: HTML — Reference §17.
–Landing illustration: it leads to the document designated under rendering.indexTarget, the project’s Todos by default, in the language of the index. A target that cannot be found stops the pass. Contract: HTML Pipeline §2.4.
–Robots directives: the robots.txt of a subsite comes from the declared origin — for the sliver.lu subsites, from the sliver.lu project. No Kit generator produces or modifies one. It travels in the sliver.lu site zip — sliver.lu exception, below.
–sliver.lu exception: the sliver.lu project carries the family’s root domain and declares 'project'. Its landing page, produced by gen-sliver-landing.js without kit_publication.js, is not a Kit site: it has neither a project HTML Pipeline — Common Structure §2 — nor an About page — §15. Its site zip is the sole carrier of the .htaccess and robots.txt of every host of the family; its extraction rewrites them everywhere, and the sliver.lu project alone answers for them. The exception covers only this landing page: a Kit site that sliver.lu published would follow every rule, and the project’s archive, Registry and validation remain due. No other project claims it.
17Translations
A project may publish some of its documents in a language other than its own. Those variants are a convenience for a reader who does not read the project language. The document in the base language remains the only one of record.
–The base language is the reference: every site and every subsite has a base language, declared under project.docLanguage. Its documents set the rules and alone are the reference. A translation never sets anything: it is a service to the reader who does not read that language. Where they differ, the translation is corrected.
–Read the authoritative variant: an AI reads a document in the language of its own corpus: Kit documents in the language of the Kit, project documents in that project's project.docLanguage. The Kit is maintained in French; its German and English variants are reading aids for humans, never a working basis. Working from a translation opens the door to drift: it renders the sense rather than the letter — which is exactly what is asked of it — and two faithful rewordings can carry different nuances. The rule holds for every project, including when the Kit arrives there complete in all its languages.
–Faithful to the sense, not to the form: a translation reads like a text written in its own language, never like a tracing. Syntax, turns of phrase and rhythm follow the target language. Word-for-word produces a text nobody reads willingly, and betrays the sense more often than it serves it.
–No information lost, none added: the rewording bears on the manner of saying, never on what is said. A translated rule keeps its exact scope, its exceptions and its conditions.
–Untranslatable elements: file names, function names, constant names, section numbers and code blocks stay verbatim: they designate real objects, and translating them would create references to things that do not exist. A prompt block, by contrast, is translated: the reader pastes it in their own language — Dialogue Commands §1. The project name is translated too: the title page and the header of a variant carry it in its language — Documentation Kit and Dokumentations-Kit for the Kit.
–Cross-references not translated: a reference to a document that exists only in the project language stays as it is. The reader of a partial translation will reach a document they cannot read — that is the accepted consequence of a restricted translation scope.
–Scope decided document by document: a project is not translated wholesale. Each document is translated or it is not, according to what the non-native reader needs from it. Naming of the variants: Naming Convention §2.1 and §2.4.
–Translations at the same level: on a multilingual site, each translation follows the base-language document at the same level of evolution: a change to the source document updates its translations in the same delivery, without being asked for. Only a major undertaking may defer them, and the deferral is recorded in the project’s Todos. Each variant carries its own timestamp and is republished independently of the others. The glossary follows the rule through its file set, which requires all of its languages to be regenerated at once — Common Structure §7.
–Third-party engine documents: the documents specific to an engine other than Claude belong to that engine, which alone writes and updates their content. The Kit provides their translations and, when they are supplied, their layout — line breaking of dialogue blocks included, §12 —, nothing more; no audit rules on their content.
–Admission of an engine: an engine belongs to the Kit when its environment record shows the whole chain of Execution environment completed — documents, cover sheet, project archive and site publication — with the container’s tools as it provides them. The only additions during the session are the Kit's modules, installed from its package-lock.json — Common Structure §11 —, and the fonts the user deposits; a system tool installed, replaced or imitated during the session does not count. The Kit is also meant for readers who are not IT specialists: an engine that stops at the first publication pass would make them fail from the outset. An engine that does not meet this condition leaves the Kit, with its documents and its section, and returns on a compliant record.
–The paper binder stays monolingual: it holds only the documents written in the project language. Translations live online only. The binder is a single physical object, and its inventory — the §2 of the Cover Sheet — therefore lists only one variant per translated document. Its cover, by contrast, is rendered in every published language — Cover Sheet §4.
–Shared structure map: a single map is extracted from the source file and serves every variant — order of blocks, type, level. Each language receives only a text file. The skeleton of the variants is then identical by construction, instead of being checked afterwards. The check is kit_check_ossature.py — Quality Control §3.8. A linked image may carry a variant per language, which the translation links in place of the base image — HTML Reference §14.7.
A translated document announces this at the top of its §1, in its own language, when the project Registry sets rendering.translationNote to true — Common Structure §5.1. Absent, the key is false, and no document of the project carries the note, glossary and site included. The wording is fixed and holds for every project; only the base language, in braces, changes. The note is set or removed when each variant is regenerated — Quality Control §3.16. With or without the note, the base language remains the only one that is authoritative. Exception, whatever the setting: an online help, the instructions of a screen for its occupant, declared by onlineHelp in Document Titles — Common Structure §6.8 —, never carries the note. Its reader need not know which language is authoritative; for the work, the project language remains the reference.
DE Dies ist eine Übersetzung. Im Zweifel gilt das Original auf
{Französisch}; nur dieses wird fortgeschrieben.
EN This is a translation. If in doubt, the original in {French}
prevails; it is the one kept up to date.
FR Ceci est une traduction. En cas de doute, l’original en
{anglais} fait foi; c’est lui qui est tenu à jour.