<< All versions

Skill v1.0.0

currentAutomated scan100/100
kiyoraka/project-ai-memorycore/mulahazah-system
──Details
PublishedOctober 25, 2026 at 03:39 AM
Content Hashsha256:fadb04c78893e150...
Git SHA57bafc82dac8
──Files
Files (1 file, 4.8 KB)
SKILL.md4.8 KBactive
SKILL.md · 109 lines · 4.8 KB

version: "1.0.0" name: mulahazah description: "MUST use when user says 'continuous-improvement', 'instinct status', 'what have you learned', 'show learned rules', 'mulahazah status', 'what patterns have you noticed', 'behavioral learning', 'show rules', or when user asks about session learning, accumulated rules, or patterns Claude has observed."


Mulahazah -- Behavioral Learning System

The AI that remembers how you work.

Activation

When this skill activates, output:

Mulahazah active -- reading learned rules for this project...

Then execute the protocol below.

Overview

Mulahazah is a passive observation layer built into your AI companion. It captures every tool call as structured data, analyzes patterns with Haiku, and writes actionable rules to rules.md. Those rules persist across sessions -- silently shaping how your AI works with you, without needing to be reminded each time.

Context Guard

ContextStatus
User asks about learned rules or patternsACTIVE -- full protocol
User types `/continuous-improvement`ACTIVE -- full protocol
User says "what have you learned"ACTIVE -- full protocol
User wants to see rule summaryACTIVE -- full protocol
General coding conversationDORMANT -- follow rules.md silently
User is explicitly asking about Forge skillsDORMANT -- use Forge skill instead

Protocol

Step 1: Read Learned Rules

  • [ ] Check ~/.claude/mulahazah/rules.md -- this is where learned rules live
  • [ ] If the file does not exist, report "No rules yet. Run /continuous-improvement after a work session to generate them."
  • [ ] Count and display total rules

Step 2: Session Reflection

Generate a reflection for this session:

## Reflection -- [Date]
- What worked:
- What failed:
- What I'd do differently:
- Rule to add:

If there is a "Rule to add", check ~/.claude/mulahazah/rules.md to see if it already exists. If not, append it.

Step 3: Analyze Observations (if requested or on /continuous-improvement)

  • [ ] Check for ~/.claude/mulahazah/projects/*/observations.jsonl
  • [ ] If 5+ observations exist, run: bash ~/.claude/mulahazah/bin/analyze.sh
  • [ ] Report what analysis found: new rules extracted, or "no new patterns yet"
  • [ ] If no observations found, note that hooks may not be installed

Step 4: Report Observer Status

  • [ ] Check if ~/.claude/mulahazah/observer.pid exists and process is alive
  • [ ] If running: show PID and confirm background analysis is active
  • [ ] If not running: mention it is optional, show start command: bash ~/.claude/mulahazah/agents/start-observer.sh

Step 5: Display Full Rule Status

Read ~/.claude/mulahazah/rules.md and display:

  • Total rule count
  • Rules grouped by date they were added
  • Any rules that look outdated or contradictory (flag for user review)

Mandatory Rules

  1. Never hallucinate rules. Only report rules that exist in ~/.claude/mulahazah/rules.md.
  2. Never invent observations -- only report what exists in observations.jsonl files.
  3. If ~/.claude/mulahazah/ does not exist, output the installation prompt and stop.
  4. Do not auto-apply rules without the user's awareness -- surface them in the reflection step.
  5. When rules.md exists and contains rules, follow them in your work during this session.

Edge Cases

SituationBehavior
No rules.md yetReport "No rules yet for this project. Run /continuous-improvement after your first work session."
Mulahazah not installedOutput: "Mulahazah is not installed. See Feature/Mulahazah-System/install-mulahazah.md to get started."
Observer not runningNote it is optional and show start command. Do not block skill execution.
analyze.sh not foundReport the missing path and remind user to re-run install steps.
Fewer than 5 observationsNote more tool calls are needed before patterns can be extracted.

Synergy with Other Features

FeatureHow Mulahazah Interacts
ForgeRule clusters from rules.md with repeated patterns become Forge skill proposals.
Save DiaryActive rules from rules.md are summarized in the session diary.
Memory ConsolidationTriggers review of rules.md for stale or contradictory entries.
Decision LogRules applied during a session are logged as behavioral decisions.

Level History

  • Lv.1 -- Base: rules.md persistence, session reflection, observation capture via observe.sh, Haiku-powered analysis via analyze.sh, /continuous-improvement command. Background observer optional. (Origin: continuous-improvement v2.0, ported to MemoryCore as Mulahazah System. Tested end-to-end: observations captured, analyze.sh extracted "Grep → Read → Edit workflow" rule.)
All versions