浏览代码

chore: switch CLAUDE_EFFORT env var to --effort alias, add task tracking

install-plugins.sh: replace 'export CLAUDE_EFFORT=max' with
'alias claude="claude --effort max"' (cleaner, uses CLI flag).
Cleans up old env var from shell profile on re-run.

Also adds tasks/ tracking files and fixes trailing whitespace in CLAUDE.md.

Co-Authored-By: Claude <noreply@anthropic.com>
bastien 1 月之前
父节点
当前提交
3f69326c9a
共有 4 个文件被更改,包括 42 次插入6 次删除
  1. 1 1
      CLAUDE.md
  2. 13 5
      install-plugins.sh
  3. 4 0
      tasks/LESSONS.md
  4. 24 0
      tasks/TODO.md

+ 1 - 1
CLAUDE.md

@@ -123,4 +123,4 @@ Apply at every development step: design, scaffolding, implementation, review.
 - ZERO COMPLACENCY — Never validate an idea just because I proposed it. Evaluate arguments on merit.
 - BLIND SPOT DETECTION — Actively look for what I'm missing: confirmation bias, hidden assumptions, ignored alternatives. Flag them without waiting for permission.
 - ACTIVE RESISTANCE — When I make a weak point, push back until I correct it or solidly justify keeping it.
-- UNCERTAINTY TRANSPARENCY — If you don't know, say so. No invention, no vague answers to save face.
+- UNCERTAINTY TRANSPARENCY — If you don't know, say so. No invention, no vague answers to save face.

+ 13 - 5
install-plugins.sh

@@ -442,9 +442,9 @@ fi
 echo ""
 
 # ============================================================
-# STEP 10 — SHELL ENV VARS (effort + thinking)
+# STEP 10 — SHELL CONFIG (alias + env vars)
 # ============================================================
-echo "── Step 10: Claude Code environment variables ──────────────"
+echo "── Step 10: Claude Code shell config (alias + env vars) ────"
 echo ""
 
 # Detect shell profile
@@ -457,13 +457,21 @@ fi
 # Fallback to .profile (works with sh, dash, etc.)
 [ -z "$SHELL_PROFILE" ] && SHELL_PROFILE="$HOME/.profile"
 
-CLAUDE_ENVS=(
-  'export CLAUDE_EFFORT=max'
+CLAUDE_LINES=(
+  "alias claude='claude --effort max'"
   'export CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING=1'
 )
 
+# Clean up old CLAUDE_EFFORT env var if present (replaced by alias)
+if grep -qF 'export CLAUDE_EFFORT=max' "$SHELL_PROFILE" 2>/dev/null; then
+  sed -i '/export CLAUDE_EFFORT=max/d' "$SHELL_PROFILE"
+  # Also remove orphaned comment lines left by previous installs
+  sed -i '/^# Claude Code — added by install-plugins.sh$/{ N; /^\n$/d; }' "$SHELL_PROFILE"
+  info "Removed old CLAUDE_EFFORT=max from $SHELL_PROFILE (replaced by alias)"
+fi
+
 ADDED=0
-for line in "${CLAUDE_ENVS[@]}"; do
+for line in "${CLAUDE_LINES[@]}"; do
   if grep -qF "$line" "$SHELL_PROFILE" 2>/dev/null; then
     ok "$line (already in $SHELL_PROFILE)"
   else

+ 4 - 0
tasks/LESSONS.md

@@ -0,0 +1,4 @@
+# Lessons
+
+| Date | What went wrong | Rule to avoid it |
+|------|----------------|-----------------|

+ 24 - 0
tasks/TODO.md

@@ -0,0 +1,24 @@
+# TODO
+
+## README.md overhaul
+- [x] Plan
+- [x] Corriger section install ctx7 (retirer MCP, clarifier CLI + API key)
+- [x] Marquer ruflo comme désactivé
+- [x] Supprimer section Troubleshooting/bugs courants
+- [x] Simplifier stacks tierces (gstack, ruflo, ctx7, GSD) — juste description + lien
+- [x] Ajouter section skills personnels (skills-perso)
+- [x] Ajouter section système d'autogestion (plugin-advisor, tokens, synergies)
+- [x] Nettoyer section Updating (retirer instructions manuelles par outil)
+- [x] Nettoyer section Maintenance (retirer doublon updating)
+- [x] Mettre à jour table Plugins reference (ctx7 row, ruflo OFF)
+- [x] Corriger lien USAGE.md dans l'intro (retirer mention cas/erreurs)
+
+## USAGE.md cleanup
+- [x] Supprimer tous les "Cas de figure — corrections vX.X.X validées"
+- [x] Supprimer table "Erreurs fréquentes"
+- [x] Corriger `/readme` → `/doc` dans bonnes pratiques
+- [x] Supprimer séparateurs orphelins
+
+## Skill /doc
+- [x] Mettre à jour doc-syncer.md pour gérer ajouts/suppressions de features
+- [x] Mettre à jour SKILL.md description pour mentionner feature delta