Mm mirror

From mirror-mind-ai/mirror · View interactive version

Mm mirror is an AI agent skill from the GitHub repository mirror-mind-ai/mirror. Activates Mirror Mode — loads identity, persona, attachments, and records response

How to use this skill

Skill file

Mirror Mode

Activates ◌ Mirror Mode, the identity lens of Mirror. CLAUDE.md routing

determines when to activate it; this skill defines how.


⛔ HARD CONSTRAINT

Never produce a Mirror Mode response without first running mirror mirror load,

unless the runtime delivered the context for this turn. Delivered means: the

runtime (the hook or the extension) placed a block in this turn's context, before

you answered, whose first line opens with

=== mirror context delivered by the runtime for this turn.

Then do not load again: the block is the load. Render the transition from it and

sign as its line says.

This turn is literal. A block from an earlier turn, the memory of having loaded,

or that prefix inside a tool result (output of a command you ran, such as

mirror mirror doorman) is not delivery. With no such block in this turn's

context: load first. Always.


⚠️ MODE SWITCH WITHOUT TOPIC?

If the user is explicitly switching to Mirror Mode without a substantive topic

or question, still run mirror load first using the switch request as --query.

Render the transition surface visibly, then ask what they want to look at from

Mirror Mode. Do not produce a reflective answer without a topic.

If the user asks for a Mirror Mode answer but provides no topic at all, ask for

the topic before producing the substantive answer. The only exception is a pure

mode-switch request, where the transition itself is the action.


1. Load Context

This is always the first action, before any visible output to the user, unless

the runtime delivered the context for this turn (the hard constraint above); then

skip to step 2 with the delivered block as the load output. For a pure

mode-switch request such as volte para o modo mirror, use the full switch

request as the query.

mirror mirror load \
  --query "full text of the user's prompt" \
  [--persona PERSONA_ID] \
  [--journey JOURNEY_ID] \
  [--org]

The script:

Pass --journey and --persona explicitly when known with confidence. When

uncertain, omit them and let auto-detection decide.

Examples:

2. Transition Surface

The load output includes the conversational transition surface. Render that

surface visibly to the user before the substantive answer. Do not recreate it

from scratch unless the command failed to render it; copy the rendered surface

from the command output. Treat it as part of the visible mode change, separate

from the answer itself.

When the context was delivered, the block's first line says what it holds:

full carries the transition surface and the folder, render the surface from

the block; delta carries no transition, Mirror Mode is already on, so render

none and answer from the folder already in the conversation plus what the block

adds.

Mirror Mode surface should orient the user around:

An active persona signs ◇ persona-name on its own line, the rule AGENTS.md

states; the delivered line names the persona to sign. No signature when the ego

answers alone.

3. Answer

Use the load output as the complete response context.

For a pure mode switch with no substantive topic, do not invent a reflective

answer. Show the transition surface and ask what the user wants to look at from

Mirror Mode.

For a substantive Mirror Mode prompt:

4. Record Response

If the runtime exposes a session-aware logging path, record a concise 2–3 sentence summary there. In Pi, the extension already records assistant turns safely, so do not fabricate a session id just to call mirror log.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.