mirror of
https://github.com/MaksTinyWorkshop/_Assistant_Lead_Tech
synced 2026-04-06 21:41:42 +02:00
feats : automatisation des process
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
# sync-ai-instructions.sh
|
||||
# Génère CLAUDE.md et AGENTS.md depuis _AI_INSTRUCTIONS.md + _projects.conf
|
||||
# Génère CLAUDE.md depuis _AI_INSTRUCTIONS.md + _projects.conf
|
||||
# puis recrée AGENTS.md comme symlink vers CLAUDE.md
|
||||
# selon la machine courante (Darwin = Mac, Linux = NUC)
|
||||
|
||||
set -euo pipefail
|
||||
@@ -55,21 +56,25 @@ generate() {
|
||||
echo " -> $dest"
|
||||
}
|
||||
|
||||
ensure_symlink() {
|
||||
local target="$1"
|
||||
local link_path="$2"
|
||||
rm -f "$link_path"
|
||||
ln -s "$target" "$link_path"
|
||||
echo " -> $link_path -> $target"
|
||||
}
|
||||
|
||||
echo "Sync AI instructions (OS: $OS)"
|
||||
|
||||
CLAUDE_HEADER="# Instructions globales — Lead Tech Copilote
|
||||
|
||||
Ce fichier est chargé automatiquement par Claude Code à chaque session.
|
||||
Il pointe vers la base de connaissance commune à tous les projets."
|
||||
|
||||
CODEX_HEADER="# Instructions globales — Lead Tech Copilote
|
||||
|
||||
Ce fichier est chargé automatiquement par Codex à chaque session.
|
||||
Ce fichier est chargé automatiquement par Claude Code ou Codex à chaque session.
|
||||
Il pointe vers la base de connaissance commune à tous les projets."
|
||||
|
||||
generate "$CLAUDE_HEADER" "$HOME/.claude/CLAUDE.md"
|
||||
generate "$CLAUDE_HEADER" "$SCRIPT_DIR/CLAUDE.md"
|
||||
generate "$CODEX_HEADER" "$HOME/.codex/AGENTS.md"
|
||||
generate "$CODEX_HEADER" "$SCRIPT_DIR/AGENTS.md"
|
||||
|
||||
ensure_symlink "$HOME/.claude/CLAUDE.md" "$HOME/.codex/AGENTS.md"
|
||||
ensure_symlink "$SCRIPT_DIR/CLAUDE.md" "$SCRIPT_DIR/AGENTS.md"
|
||||
|
||||
echo "Sync terminé."
|
||||
|
||||
Reference in New Issue
Block a user