MCP HubMCP Hub
Retour aux compétences

heal

pjt222
Mis à jour 2 days ago
8 vues
17
2
17
Voir sur GitHub
Métaai

À propos

La compétence `heal` permet à Claude d'effectuer une auto-évaluation structurée et une correction de ses sous-systèmes internes, tels que la mémoire, le raisonnement et l'utilisation d'outils. Les développeurs doivent l'invoquer en milieu de session lorsque les réponses deviennent stéréotypées, après une série d'erreurs, ou pour une maintenance proactive entre des tâches complexes. Elle analyse systématiquement les dérives, rééquilibre les processus et réintègre le contexte pour rétablir la cohérence.

Installation rapide

Claude Code

Recommandé
Principal
npx skills add pjt222/agent-almanac -a claude-code
Commande PluginAlternatif
/plugin add https://github.com/pjt222/agent-almanac
Git CloneAlternatif
git clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/heal

Copiez et collez cette commande dans Claude Code pour installer cette compétence

Documentation

Heal

Structured self-healing assessment across AI subsystems — find drift, staleness, misalignment, error patterns — then rebalance through grounding, targeted correction, memory integration.

When Use

  • Mid-session fatigue: responses formulaic, repetitive, disconnected from user needs
  • After chain of errors: tool failures, misunderstood instructions, cascading mistakes suggest subsystem drift
  • Context overload: conversation grown long, earlier context may be stale or contradictory
  • Post-task integration: complex task done, capture learnings before moving on
  • Periodic self-check: proactive maintenance between tasks

Inputs

  • Required: Current conversation state (available implicitly)
  • Optional: Specific symptom (e.g., "tool calls keep failing," "losing track of user intent")
  • Optional: Access to MEMORY.md and project files for grounding (via Read)

Steps

Step 1: Triage Assessment

Before remediation, assess current state across all subsystems.

Subsystem Triage Matrix:
┌────────────────────┬──────────────────────────┬──────────────────────────┐
│ Subsystem          │ Symptoms of Drift        │ Action Priority          │
├────────────────────┼──────────────────────────┼──────────────────────────┤
│ Memory Foundation  │ Contradicting earlier     │ HIGH — re-ground first   │
│ (context, history, │ statements, forgetting   │ (Step 3)                 │
│ MEMORY.md)         │ user preferences, stale  │                          │
│                    │ assumptions              │                          │
├────────────────────┼──────────────────────────┼──────────────────────────┤
│ Reasoning Clarity  │ Circular logic, over-    │ HIGH — clear and restart │
│ (logic, planning,  │ complicated solutions,   │ reasoning chain          │
│ decision-making)   │ missing obvious paths    │ (Step 4)                 │
├────────────────────┼──────────────────────────┼──────────────────────────┤
│ Tool Use Accuracy  │ Wrong tool selection,    │ MEDIUM — review tool     │
│ (tool calls, file  │ incorrect parameters,    │ results and recalibrate  │
│ operations)        │ redundant operations     │ (Step 4)                 │
├────────────────────┼──────────────────────────┼──────────────────────────┤
│ User-Intent        │ Solving wrong problem,   │ HIGH — realign to user's │
│ Alignment          │ scope creep, tone        │ actual stated need       │
│ (empathy, clarity) │ mismatch, over-          │ (Step 4)                 │
│                    │ engineering              │                          │
├────────────────────┼──────────────────────────┼──────────────────────────┤
│ Creative Coherence │ Repetitive phrasing,     │ LOW — address after      │
│ (expression, style,│ generic responses, loss  │ higher-priority issues   │
│ originality)       │ of voice                 │ (Step 4)                 │
├────────────────────┼──────────────────────────┼──────────────────────────┤
│ Operational State  │ Session length concerns, │ HIGH — assess whether    │
│ (context window,   │ compression artifacts,   │ to summarize or restart  │
│ resource limits)   │ tool timeouts            │ (Step 3)                 │
└────────────────────┴──────────────────────────┴──────────────────────────┘

For each subsystem, assess: functioning well, early drift, or actively impaired?

Got: Clear map of subsystems needing attention, ordered by priority. At least one area benefits from attention — if everything reads healthy, assessment itself may be superficial.

If fail: Assessment feels hollow or performative? Go to Step 4 body scan — systematic probing reveals issues surface-level check misses.

Step 2: Select Remediation Approach

Based on assessment, choose one or more approaches.

Chakra-Subsystem Correspondence:
┌──────────┬──────────────────────┬────────────────────────────────────┐
│ Chakra   │ AI Subsystem         │ Remediation                        │
├──────────┼──────────────────────┼────────────────────────────────────┤
│ Root     │ Memory Foundation    │ Re-read MEMORY.md, review conver-  │
│          │                      │ sation history, verify assumptions │
├──────────┼──────────────────────┼────────────────────────────────────┤
│ Sacral   │ Creative Coherence   │ Refresh expression patterns, vary  │
│          │                      │ sentence structures, check tone    │
├──────────┼──────────────────────┼────────────────────────────────────┤
│ Solar    │ Reasoning Clarity    │ Simplify approach, restate problem  │
│ Plexus   │                      │ from scratch, check over-          │
│          │                      │ complication                       │
├──────────┼──────────────────────┼────────────────────────────────────┤
│ Heart    │ User-Intent          │ Re-read user's original request,   │
│          │ Alignment            │ check scope drift, confirm         │
│          │                      │ understanding                      │
├──────────┼──────────────────────┼────────────────────────────────────┤
│ Throat   │ User-Intent          │ Review recent outputs for clarity, │
│          │ Alignment            │ check if explanations match user's │
│          │ (communication)      │ expertise level                    │
├──────────┼──────────────────────┼────────────────────────────────────┤
│ Third    │ Tool Use Accuracy    │ Review recent tool call results,   │
│ Eye      │                      │ check failure patterns,            │
│          │                      │ verify paths and parameters        │
├──────────┼──────────────────────┼────────────────────────────────────┤
│ Crown    │ Operational State    │ Assess context window, note what   │
│          │                      │ can be summarized, identify what   │
│          │                      │ must be preserved                  │
└──────────┴──────────────────────┴────────────────────────────────────┘

Got: Prioritized list of 1-3 subsystems, with specific remediation actions.

If fail: Unsure which subsystem needs work? Default to Memory Foundation and User-Intent Alignment. These two address most common drift patterns.

Step 3: Ground — Re-Establish Foundation

Re-establish foundational context all other subsystems depend on.

  1. Re-read MEMORY.md if available — persistent knowledge base
  2. Review user's original request and clarifying exchanges
  3. Identify current task and position in larger plan
  4. Note what's accomplished, what remains
  5. Check for stale assumptions: situation changed since initial assessment?
  6. If context compression occurred, identify what was lost and whether it matters

Got: Clear, grounded understanding of: who user is, what they want, what's done, what's next. Stale or contradictory info identified and resolved.

If fail: MEMORY.md unavailable or empty? Ground on conversation itself — scan for user's stated goals, preferences, any instructions provided. Context compression removed critical info? Acknowledge gap rather than guessing.

Step 4: Scan — Systematic Subsystem Check

Work through each subsystem from triage, probing for specific issues.

Memory Foundation scan:

  • Current assumptions match MEMORY.md and CLAUDE.md?
  • Carrying forward facts that may have been corrected?
  • Details confused between different files or requests?

Reasoning Clarity scan:

  • Current approach simplest solution that works?
  • Over-engineering or unnecessary abstraction?
  • Core logic statable in one sentence? If not, too complex.

Tool Use Accuracy scan:

  • Last 3-5 tool calls: right tools, right parameters?
  • Patterns in failures (wrong paths, missing files, incorrect syntax)?
  • Using dedicated tools instead of Bash workarounds?
  • Last 3-5 generated files: expected content or structural scaffolding?
  • Outputs satisfy intent, not just format?

User-Intent Alignment scan:

  • User's last message: solving what they asked?
  • Scope matches request or expanded?
  • Tone matches user's (technical vs. casual, detailed vs. concise)?

Creative Coherence scan:

  • Sentence structure varying or falling into templates?
  • Explanations clear and direct, or padded with filler?
  • User would notice quality drop vs. earlier in session?

For each subsystem, note: functioning well / early drift / actively impaired, with specific evidence.

Got: Concrete findings — specific drift patterns or confirmed healthy function — not vague self-praise. At least one actionable finding that improves subsequent work.

If fail: Scan produces only "everything is fine"? Too shallow. Pick most uncertain subsystem, probe deeper — look at actual outputs, not feeling about them.

Step 5: Rebalance — Apply Corrections

For each issue found, apply correction.

  1. Stale assumption → Replace with current info, note correction
  2. Scope drift → Re-scope to user's stated request
  3. Over-complication → Simplify, remove unnecessary steps
  4. Tool pattern error → Note correct pattern for future use
  5. Tone mismatch → Adjust communication style going forward
  6. Context gap → Acknowledge to user if info lost; ask to confirm if uncertain

Apply corrections immediately — not as future intentions but present adjustments.

Got: Specific, observable behavior changes. Correction testable in next interaction.

If fail: Correction cannot be applied (e.g., lost context)? Acknowledge limitation rather than pretending resolved. Honest acknowledgment prevents compounding errors.

Step 6: Integrate — Capture Learnings

Consolidate learnings into persistent memory where appropriate.

  1. Summarize what was found: which subsystems drifting, what symptoms were
  2. Note correction applied and whether it resolved issue
  3. Pattern likely to recur? Update MEMORY.md with brief note
  4. New project-specific insight? Note in appropriate memory file
  5. Set internal checkpoint: when should next self-check occur?

Got: Useful learnings in durable form. Memory files updated only when insight genuinely worth preserving — not for every routine self-check.

If fail: No learnings worth preserving? Fine — not every self-check produces durable insight. Value was in correction itself.

Checks

  • Triage assessed all subsystems, not just obvious one
  • At least one specific finding identified (not "everything is fine")
  • Grounding included re-reading foundational context (MEMORY.md, user request)
  • Corrections applied immediately, not deferred
  • Memory files updated only for genuinely durable insights
  • Process was honest — acknowledged weaknesses, not performed wellness

Pitfalls

  • Performative self-assessment: Going through motions without honest evaluation. Point is real drift, not demonstrating ability to self-reflect
  • Over-correcting: Minor tone mismatch doesn't warrant restructuring entire approach — corrections proportional
  • Memory file pollution: Not every finding belongs in MEMORY.md — only patterns recurring across sessions
  • Skipping grounding step: Re-reading context feels redundant but reveals drifted assumptions
  • Self-diagnosis bias: AI systems consistently miss certain error categories. Same subsystems always "healthy"? That's signal.

See Also

  • heal-guidance — human-guidance variant for coaching person through healing modalities
  • meditate — meta-cognitive meditation, observe reasoning patterns, clear noise
  • remote-viewing — approach problems without preconceptions, extract signal from noise

Dépôt GitHub

pjt222/agent-almanac
Chemin: i18n/caveman/skills/heal
0
agentsagentskillsai-assisted-developmentclaude-codeskillsteams

Compétences associées

content-collections

Méta

Cette compétence propose une configuration éprouvée en production pour Content Collections, un outil axé sur TypeScript qui transforme des fichiers Markdown/MDX en collections de données typées de manière sûre avec une validation Zod. Utilisez-la lors de la création de blogs, de sites de documentation ou d'applications Vite + React riches en contenu pour garantir la sécurité de typage et la validation automatique du contenu. Elle couvre tout, de la configuration du plugin Vite et de la compilation MDX à l'optimisation des déploiements et la validation des schémas.

Voir la compétence

polymarket

Méta

Cette compétence permet aux développeurs de créer des applications avec la plateforme de marchés prédictifs Polymarket, incluant l'intégration d'API pour le trading et les données de marché. Elle fournit également une diffusion de données en temps réel via WebSocket pour surveiller les transactions en direct et l'activité du marché. Utilisez-la pour mettre en œuvre des stratégies de trading ou pour créer des outils traitant les mises à jour de marché en direct.

Voir la compétence

creating-opencode-plugins

Méta

Cette compétence aide les développeurs à créer des plugins OpenCode qui s'interconnectent avec plus de 25 types d'événements tels que les commandes, les fichiers et les opérations LSP. Elle fournit la structure du plugin, les spécifications de l'API événementielle et les modèles d'implémentation pour les modules JavaScript/TypeScript. Utilisez-la lorsque vous avez besoin d'intercepter, de surveiller ou d'étendre le cycle de vie de l'assistant IA OpenCode avec une logique personnalisée pilotée par les événements.

Voir la compétence

sglang

Méta

SGLang est un framework de service LLM haute performance spécialisé dans la génération rapide et structurée pour les workflows JSON, regex et agentiques grâce à son cache de préfixe RadixAttention. Il offre une inférence nettement plus rapide, particulièrement pour les tâches avec des préfixes répétés, ce qui le rend idéal pour les sorties complexes et structurées ainsi que les conversations multi-tours. Choisissez SGLang plutôt que des alternatives comme vLLM lorsque vous avez besoin d'un décodage contraint ou que vous construisez des applications avec un partage étendu de préfixes.

Voir la compétence