| name | explain |
| description | Inline self-comprehension adapter. Calls the distill engine to extract the essence of long text and renders it as inline markdown. audience=me is auto-fixed. Output only โ no file generation. Triggers: "์ค๋ช
ํด", "์ดํดํ๊ฒ", "explain", "์ ๋ฆฌํด์ ๋ณด์ฌ์ค", "readme ์ฝ๊ณ ", "shrink", "์ค์ฌ์ค", "์์ถ"
|
| version | 0.0.4 |
| ssl | {"scheduling":{"anti_triggers":["Inputs under ~30 tokens (use chat directly)","When the user wants a saved file (use doc instead)"]},"structural":{"scenes":["Alias detection + Input Capture","Engine Invoke","Render","Output"],"resumable":false,"branches":["shrink alias + source_tokens < 80 โ explain handles it","shrink alias + source_tokens โฅ 80 โ delegate to doc/pitch (see pitch routing)"]},"logical":{"tools":["Bash","Skill"],"side_effects":{"reads":["{input}"],"writes":[".galmuri/tmp/source-{slug}.txt",".galmuri/tmp/.warned-shrink"],"deletes":[],"network":[]},"idempotent":false,"rollback":".galmuri/tmp/source-{slug}.txt is cleaned by the session-end hook; mid-flow LLM failure โ re-run from Step 1."}} |
galmuri:explain โ Inline reader-side summary
Prerequisites
scripts/preflight.sh passes (jq, bats, bash).
skills/distill/ engine is installed.
Step 1: Alias detection + Input Capture
When triggered via shrink / ์ค์ฌ์ค / ์์ถ:
if [ ! -f ".galmuri/tmp/.warned-shrink" ]; then
echo "[deprecated] the 'shrink' trigger is routed to a context-based adapter. Scheduled for removal in a future release." >&2
touch ".galmuri/tmp/.warned-shrink"
fi
- Pipe user input (a file path or stdin) into
.galmuri/tmp/source-{slug}.txt.
If no path is provided: "Tell me a file path or some text to explain. e.g. README.md โ what should I explain?"
- audience is locked to
me automatically (no separate prompt).
Step 2: Engine Invoke
Call the galmuri:distill skill via the Skill tool with these arguments:
--mode reduce --ratio 0.2 --audience me --input {tmp file path from Step 1}
The engine returns an EngineOutput JSON. Pass it directly to Step 3.
Do not attempt to inline the distill logic here โ always delegate to the skill.
Step 3: Render
- EngineOutput.units โ inline markdown:
- First unit's
claim becomes the top-line summary.
- Each unit's
essence is listed as a bullet.
Step 4: Output
- Emit markdown to stdout. No file-generation step (by design).
- On session end,
.galmuri/tmp/source-{slug}.txt is cleaned up automatically (hook).
Output Schema
Markdown body only. No JSON output.