Design a useful service
Check the need, actual use and ease of use before adding more features.
The 3U approachGreen Codex
Rules to design, develop and verify with Codex, while preserving the quality, accessibility and sobriety of digital services.
An open skill, maintained by the INR and its community.
Green Codex selects the relevant rules from the need, the technologies and the observable evidence.
Check the need, actual use and ease of use before adding more features.
The 3U approachTarget costly queries, transfers, resources and behaviours in your environment.
The technical catalogueLink each finding to evidence, report limits and test the changes actually made.
The end-of-task summaryJava, Rust, C, C++, C#, Swift, Go, Python, JavaScript, TypeScript, PHP, Ruby, Scala, Kotlin, Julia, Nim, Zig, Shell, SQL, PL/SQL, HTML, CSS, React, Vue, Angular, Svelte, Preact, Astro and Solid. Detecting a technology does not make all of its rules applicable.
For a first installation on macOS or Linux, with Git and Codex already installed, get the repository and copy the skill folder. If the destination already exists, read the guide before changing it.
From the root of the downloaded repository:
mkdir -p ~/.agents/skills
cp -R green-codex ~/.agents/skills/green-codexThen call $green-codex in your request. Codex can also select the skill automatically.
A 50-second animated demonstration, without audio, for a first installation on macOS or Linux. Git and Codex must already be installed. The on-screen text is in French; the transcript below is in English.
This animation illustrates the commands to run. It is not a recorded session or an installation carried out on your machine.
In a terminal, from a folder where you want to download the repository:
git clone https://github.com/Institut-du-Numerique-Responsable/green-codex.git
cd green-codex
From the repository root, for a first installation. If ~/.agents/skills/green-codex already exists, review and back up your local changes before updating.
mkdir -p ~/.agents/skills
cp -R green-codex ~/.agents/skills/green-codex
ls ~/.agents/skills/green-codex/SKILL.md
The file path should print without an error. This confirms the file is present; check that the skill is available in Codex afterwards.
Open your project in Codex CLI or the IDE extension and type this request in Codex, not in the terminal:
$green-codex
Review this project and suggest verifiable eco-design improvements.
If the skill does not appear, restart Codex. Read the official Codex skills documentation.
The project rules rely on documented sources. They are not a compliance certification.
Eco-design of digital services, from user need to lifecycle.
Responsible design: user experience, code, data and hosting.
Quality, clarity and robustness of web experiences.
Safeguards for keyboard use, focus, contrast and semantics. A full RGAA audit remains separate.
Confirm the need, observe actual use and check that people can complete their task, including with a keyboard.
Each dimension needs its own evidence. Missing information stays to be verified.
These guides are written in French.
RIA31 is distinct from the EU AI Act. Generated documents do not prove that an organisation has adopted the practices.
Reducing unnecessary tokens and calls supports responsible digital practice by limiting the processing used for the same result, while preserving quality.
The actual environmental gain depends on the model, the infrastructure and the use.
The NR-TOK rules cover targeted reads, context reuse, operations, models and measuring rework.
Read the Codex sobriety guide (in French)Rules inspired by and adapted from Caveman, by Julius Brussee. The INR extensions are documented.
The summary lists the rules applied, the actions taken, why they matter, the checks and the limits.
The included static tools check specific patterns: SQL projection, media autoplay and periodic polling in JavaScript.
An optional hook can check the structure of the summary. Its installation and trust review are explicit; it does not check whether the evidence is true.
Use the NR summaryA passing scan proves neither overall compliance nor energy savings. The evaluations separate format checks from review of what the answers mean.
Suggest a fix, document a use case or contribute to the evaluations.
Code and references adapted from Caveman: Apache-2.0. Original documentation: CC BY 4.0. BP-AIR, maturity and RIA31 adaptations: CC BY-SA 4.0. Licences per file and third-party attributions (in French).
Green Codex is maintained by Guillaume Gallon, Guillaume Bourgeois and Vincent Courboulay, with contributions from the community.
Meet the project team