ce-setup
everyinc/compound-engineering-plugin
Vérifiez l'état de Compound Engineering et la configuration locale de repo.
...Développer toutÀ propos ce-setup
Un outil léger de vérification de l’état de santé et d’aide à la configuration locale du dépôt pour le plugin Compound Engineering. Il vérifie que l’environnement et le dépôt sont correctement configurés, indique quelles fonctionnalités optionnelles des outils sont disponibles, et nettoie ou actualise les fichiers de configuration locaux du dépôt. Il est important de noter qu’il n’effectue pas d’installation groupée des dépendances : les outils manquants sont signalés comme des fonctionnalités optionnelles, ce qui permet à l’utilisateur de n’installer que les workflows qu’il utilise réellement. Il est destiné à vérifier la configuration, à résoudre les problèmes liés à l’absence d’outils optionnels ou à intégrer un dépôt.
Le workflow se déroule en trois phases. Lors de la phase de diagnostic, il détermine la version du plugin installée lorsque la plateforme l’expose, puis exécute un script de vérification de l’état intégré (ou un équivalent en ligne). Les vérifications intégrées recherchent les outils optionnels à l’aide de la commande -v (agent-browser, gh, jq, ast-grep, ffmpeg), déterminent la racine du dépôt avec git rev-parse --show-toplevel, recherchent un fichier compound-engineering.local.md, vérifient si le fichier .compound-engineering/config.local.yaml existe et est ignoré par Git, et comparent la configuration d’exemple au fichier references/config-template.yaml fourni. Les outils optionnels manquants ne sont explicitement pas considérés comme des échecs de configuration.
La phase deux ne s'exécute que lorsqu'un problème local au dépôt est détecté : une configuration Markdown locale obsolète, un fichier config.local.yaml qui n'est pas correctement ignoré par Git, ou un exemple de configuration manquant ou obsolète. Elle peut supprimer le fichier obsolète, actualiser le fichier .compound-engineering/config.local.example.yaml à partir du modèle, créer éventuellement un nouveau fichier config.local.yaml (tout est initialement commenté), et proposer d’ajouter .compound-engineering/*.local.yaml au fichier .gitignore. Chaque étape de modification est soumise à une question de validation via l’outil de question de la plateforme (AskUserQuestion dans Claude Code, avec des solutions de repli documentées pour Codex, Antigravity et Pi), et la compétence ne procède jamais à une configuration automatique en silence. Un résumé final répertorie les corrections appliquées, celles ignorées et les outils optionnels manquants.
FAQ
Cette skill installe-t-elle toutes les dépendances optionnelles à ma place ?
Non. Il s’agit d’un contrôle d’intégrité, et non d’un programme d’installation, et elle évite délibérément l’installation en masse de dépendances. Les outils manquants sont signalés comme des fonctionnalités optionnelles afin que vous puissiez installer uniquement les workflows que vous utilisez.
Quels outils optionnels le test de santé intégré recherche-t-il ?
Il vérifie la présence d’agent-browser, de gh, de jq, d’ast-grep et de ffmpeg à l’aide de la commande -v. Les éléments manquants sont signalés, mais ne sont pas considérés comme des échecs d’installation.
À quel moment passe-t-elle à la correction effective des problèmes ?
Uniquement lorsqu’un problème local au dépôt existe : un fichier compound-engineering.local.md obsolète, un fichier config.local.yaml non ignoré par gitignore, ou un fichier config.local.example.yaml manquant ou obsolète. Si aucun de ces cas ne s’applique, il signale que l’installation est terminée.
Va-t-il modifier mes fichiers sans me demander mon avis ?
Non. Chaque correction — suppression de la configuration obsolète, création d’une configuration locale ou modification du fichier .gitignore — est soumise à une question de validation et ne se poursuit que si vous donnez votre accord. Il n’effectue jamais de configuration automatique en silence.
Comment fait-il pour exclure la configuration locale du contrôle de version ?
Si le fichier .compound-engineering/config.local.yaml existe mais n’est pas couvert par le fichier .gitignore, l’outil propose d’ajouter .compound-engineering/*.local.yaml à la fin du fichier .gitignore situé à la racine du dépôt, sans écraser le contenu non concerné.
Tous les fichiers
3fichiersreferences/config-template.yaml3,3KoAfficher scripts/check-health5,7KoAfficher SKILL.md5,5 KoAfficherInteraction Method
Ask each question below using the platform's blocking question tool: AskUserQuestion in Claude Code (call ToolSearch with select:AskUserQuestion first if its schema isn't loaded), request_user_input in Codex, ask_question in Antigravity CLI (agy), ask_user in Pi (requires the pi-ask-user extension). Fall back to a numbered list on the host's user-visible chat surface only when no blocking tool exists in the harness or the call errors. Never silently skip or auto-configure.
ce-setup is a lightweight health check and repo-local config helper. It does not bulk-install every optional dependency. Missing tools are reported as optional capabilities so the user can install only the workflows they use.
Artifact Root Resolution
Every Compound Engineering skill that writes or reads an artifact directory (solutions, plans, ideation, and the other CE-owned trees) resolves its root through the rule below. ce-setup carries the canonical statement and reports the resolved root so an operator can confirm where artifacts land before running other skills.
Resolve the CE artifact root <root> before composing any artifact path.
- Read
docs_rootfrom<repo-root>/.compound-engineering/config.yamlonly (<repo-root>=git rev-parse --show-toplevel). Do not read it fromconfig.local.yaml. Unset -><root>isdocs, exactly as before. - Validate a set value: a repo-relative directory whose real, symlink-resolved path stays inside the repo and is neither the repo root nor under
.git/. Otherwise stop with an error namingdocs_rootand the value -- never fall back todocs. - Use
<root>as the sole artifact location: create it if absent, compose each path as<root>/<subdir>with this skill's own subdirectory, and never also readdocs.
Phase 1: Diagnose
Step 1: Determine Plugin Version
Detect the installed compound-engineering plugin version by reading the plugin metadata or manifest when the platform exposes it. If the version cannot be determined, skip this step.
If a version is found, pass it to the check script via --version. Otherwise omit the flag.
Step 2: Run the Health Check
Before running the script, display:
Compound Engineering -- checking your environment...Run the bundled check script. Set SKILL_DIR to the absolute directory you loaded this ce-setup SKILL.md from — the Bash tool's CWD is the user's project, not the skill dir, so a bare scripts/ path will not resolve:
SKILL_DIR="<absolute path of the directory containing this SKILL.md>";if [ -f "$SKILL_DIR/scripts/check-health" ]; then bash "$SKILL_DIR/scripts/check-health" --version VERSION; else echo "Bundled health script not found at $SKILL_DIR/scripts/check-health; run the inline checks from ce-setup instead."; fi
Use the same command without --version VERSION if Step 1 could not determine a version.
If the script is unavailable, run the inline equivalent listed in references/repo-fixes.md.
Display the diagnostic output to the user. Missing optional tools are not setup failures. The health report includes the resolved artifact root and which config layer supplied it (per Artifact Root Resolution above); surface that line so the operator can confirm where CE artifacts will be written. Missing config.yaml is a reported absence, not a project issue.
Step 3: Decide Whether Fixes Are Needed
Report-gated repo-local remediations apply only to the checkout the health report diagnosed; if Phase 2 will write a different writable checkout, diagnose that checkout first, while session-level findings such as plugin version and optional tools remain from this session's Phase 1.
After the health report, decide Phase 2 from writable-checkout availability:
- If this session has a writable git checkout, run Phase 2 locally, including when
project_issuesis 0. Phase 2 always refreshes the example and always offers to createconfig.yamlwhen that file is missing. - If this session has no writable checkout, but the user named a repository and the harness exposes a remote repo-work surface with a writable checkout, run Phase 2 on that surface instead and report the remote repo-local fixes in Phase 3.
- Otherwise skip Phase 2 and go to Phase 3, saying repo-local writes were skipped because no writable checkout is available.
Also remediate these project issues when the report names them:
- obsolete
compound-engineering.local.md .compound-engineering/config.local.yamlexists but is not safely gitignored.compound-engineering/config.example.yamlis missing or outdated- the health report marks the
ce-workskill implementation engine unavailable or invalid, detects retired scalar routing keys, or reports malformed dormantwork_engine_preferences - the health report marks
docs_rootinvalid (Invalid docs_root ...) — CE artifacts will not be written until it is fixed
If optional tools are missing, do not offer a bulk install. The diagnostic already printed the relevant install command or project URL. Say: "Install optional tools only for the workflows you use."
Phase 2: Fix Repo-Local Issues
Read references/repo-fixes.md from this skill's directory before making any repo-local change. It carries Steps 4-8: removing the obsolete compound-engineering.local.md, refreshing the example config, offering to create config.yaml, repairing invalid work_engine_preferences and docs_root, and the two .gitignore offers.
All paths there resolve from the repository root (git rev-parse --show-toplevel), not the current working directory. Maintaining the generated example files is the work Phase 2 does on its own — refreshing config.example.yaml and removing the superseded config.local.example.yaml. Every change to a user-owned file is offered and applied only if the user approves.
Phase 3: Summary
User-runnable invocation rendering. In setup summaries, default to /ce-setup; use $ce-setup only when the active host is Codex or explicitly documents dollar-prefixed skill invocation. On oh-my-pi (omp), use /skill:ce-setup. Render only the invocation as inline code and output one form only.
Display a brief summary:
✅ Compound Engineering setup completeFixed: <repo-local fixes applied, or none>Skipped: <repo-local fixes declined, or none>Optional: <missing optional tools, or all available>Run `<rendered invocation>` anytime to re-check. Tous les fichiers
0 fichiersInstaller ce-setup
Téléchargez et décompressez les fichiers de compétences dans votre répertoire .claude/skills/.
Télécharger le ZIPClonez le dépôt et copiez les fichiers de compétence dans votre projet.
git clone https://github.com/EveryInc/compound-engineering-plugin/blob/main/skills/ce-setup/SKILL.md # Copy SKILL.md to your .claude/skills/ directory
Copier





Maison
