agentskills.codes
DR

Architecture maintenance, connection validation, automated health diagnostics, and unconscious processing

Install

mkdir -p .claude/skills/dream-state-fabioc-aloha && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15127" && unzip -o skill.zip -d .claude/skills/dream-state-fabioc-aloha && rm skill.zip

Installs to .claude/skills/dream-state-fabioc-aloha

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Architecture maintenance, connection validation, automated health diagnostics, and unconscious processing
105 charsno explicit “when” trigger

About this skill

Dream State Skill

Automated architecture maintenance — scan every memory file, validate structural integrity, produce a diagnostic report. Dream observes and measures; it never modifies.

When to Use

  • User asks to "dream" or run "architecture maintenance"
  • After file reorganizations that may break connections
  • Before major meditation sessions (establish baseline)
  • After domain learning to validate new connections
  • When architecture health is uncertain before skill selection

6-Phase Protocol

PhaseActionOutput
1. DiscoveryScan .github/ for all memory filesFile inventory
2. ValidationParse frontmatter, verify trifecta completenessIssue list
3. RepairAuto-fix via consolidation mappings (renames only)Repair log
4. GK SyncCheck %OneDrive%/AI-Memory/ for cross-platform contentSync status
5. ReportingGenerate health report with statisticsMarkdown report
6. DisplayShow results, open report in VS CodeNotification

Health Metrics

MetricHealthyConcern
Broken connections0Any
Missing frontmatter0Any
Incomplete trifectas0Any high-use skills
Brand violations0 (outside exceptions)Any
Version driftAll matchAny mismatch
Review queue size0–5 pending>10 pending (semantic debt accumulating)
Review queue ageOldest <30dOldest >60d (stale reviews indicate blocked curation)

Review-Queue Backpressure (FM10)

The review queue (.github/quality/review-queue.jsonl, defined in FM5) is a leading indicator of semantic debt. When the queue grows faster than it's resolved, the architecture is accumulating unreviewed changes.

SignalThresholdHealth ImpactAction
Queue size growing>10 pending entriesneeds-attentionPrioritize review session; schedule meditation
High-priority entries staleAny high priority entry >14d unresolvedneeds-attentionEscalate: these are heir-feedback or drift-detected entries
Queue empty0 pendinghealthyNormal state; curation is keeping pace
Oldest entry age>60 daysneeds-attentionSomething is blocking reviews; investigate

Per-volatility weighting: High-volatility files (instructions, skills with frequent edits) generate more queue pressure than stable reference docs. Weight queue entries by the source file's edit frequency when computing backpressure score.

Integration: Dream protocol reads review-queue.jsonl during Phase 2 (architecture scan) and includes queue metrics in the dream report's health assessment.

Ritual Hierarchy

Meditation is the foundational ritual. Dream is a diagnostic that runs subordinate to it.

DreamMeditation
RoleDiagnostic toolFoundational ritual
ModeAutomated, unconsciousInteractive, conscious
Creates files?Reports onlyMemory files + insights
Makes decisions?NeverYes
Activation/dream, or chained after meditationUser says "meditate"
AnalogyBlood testDoctor's visit

When Dream Chains After Meditation

Dream triggers automatically after meditation when:

TriggerCondition
Pattern: file reorgMeditation touched 3+ architecture files
Pattern: trifecta concernMeditation created or modified skills/instructions
Pattern: stalenessLast dream was >7 days ago
Random~1 in 5 meditations (keeps architecture fresh)

Connection Format

Skills connect via frontmatter applyTo patterns and semantic search:

---
name: "skill-name"
description: "What this skill does"
applyTo: '**/*pattern*,**/*files*'
---

Valid relations: applies-to, extends, requires, contradicts, supersedes

Report Template

# Dream Report — YYYY-MM-DD

## Summary
- **Files Scanned**: N
- **Trifecta Completeness**: N/N
- **Broken Links**: 0
- **Brand Violations**: 0
- **Status**: HEALTHY / ATTENTION REQUIRED

## Issues Found
| File | Issue | Severity |
|------|-------|----------|

## Recommendations
Prioritized list of manual fixes needed.

Interpreting Results

StatusMeaningAction
HEALTHYAll checks pass, no broken connectionsNone — architecture is sound
ATTENTION REQUIREDOne or more issues detectedReview issues table, prioritize by severity

Severity levels: critical (broken trifecta), warning (missing frontmatter field), info (cosmetic).

Escalation: When Findings Need Human Judgment

Dream is a diagnostic — it never modifies files. When findings require judgment (skill consolidation, content quality decisions, contradiction resolution), the natural next step is meditation, which reads the dream report and decides what to fix.

Finding typeResolution path
Missing frontmatter, broken link with mappingAuthor the fix in the next meditation; mechanical
Two skills with overlapping applyToMeditation decides merge / split / keep; semantic
Skill flagged as shallowMeditation enriches or deprecates; requires domain context
Trifecta where instruction contradicts skillMeditation reconciles intent; requires understanding
Version drift master/heirMeditation picks canonical; project-specific

The handoff is the dream report file. Meditation's Resolve step explicitly evaluates whether a dream should chain after it; the inverse — meditation reading an existing dream report — happens naturally when a meditation session opens with "check the architecture first."

This pattern replaces the former lucid-dream ritual (retired v8.4.0). The escalation concept lives here because dream is the producer of the findings; meditation is the consumer that decides.

Snapshot Schema (.github/quality/dream-report.json)

dream-cli.cjs writes a single structural JSON snapshot every run. Heirs and graders depend on this shape; preserve it across versions.

FieldTypePurpose
schemaVersionnumberCurrently 1. Bump only with a heir migration plan.
timestampISO stringLast dream run; consumed by proactive-awareness and health-pulse.
workspacestringAbsolute path of the dreamed workspace.
inventory.skills / .instructions / .prompts / .agents / .totalnumbersFile counts under .github/.
trifectaIssues[]{type, skill, detail}Workflow skills missing matching .instructions.md or .prompt.md.
brokenRefs[]{sourceFile, line, target}Markdown / config references that no longer resolve.
health"healthy" | "good" | "needs-attention"Derived bucket: 0 / ≤5 / >5 issues.

Stability rule: meditation, dream-creativity-score.cjs, and heir consumers (health-pulse, proactive-awareness.instructions.md) all read these field names directly. Adding fields is safe; renaming or removing requires a fleet-wide migration.

Chronicle Pruning

dream-cli.cjs keeps the newest 50 dream-report-YYYY-MM-DD*.md chronicles in .github/episodic/ after each run; older ones are deleted in place. Rolling architecture history lives in the JSON snapshot and brain-qa outputs — chronicles are only useful as recent narrative context for meditation.

Search skills

Search the agent skills registry