mma
/mma
Archive log entries when they exceed 32 entries, using batches of 2^k for compact storage. Extractive only — no invented facts. Run whenever _meta/log.md grows unwieldy.
- Author
- s-gryt ↗
- Repository
- memory-mason ↗
- Licence
- MIT
- Last repository change
- 11.07.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 1
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 11.07.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.
What it does and when to use it
Archive log entries when they exceed 32 entries, using batches of 2^k for compact storage. Extractive only — no invented facts. Run whenever _meta/log.md grows unwieldy.
Arguments
/mma [--dry-run | --commit] [--k <n>]
Original author description
Archive log entries when they exceed 32 entries, using batches of 2^k for compact storage. Extractive only — no invented facts. Run whenever _meta/log.md grows unwieldy.
How it works
- Objective
- Path Resolution
- Parameters
- Steps
- Dry-run Output
SKILL.md preview
---
name: mma
description: >
Archive log entries when they exceed 32 entries, using batches of 2^k for
compact storage. Extractive only — no invented facts. Run whenever
_meta/log.md grows unwieldy.
argument-hint: "[--dry-run | --commit] [--k <n>]"
allowed-tools: "Read Write Edit Glob"
---
## Objective
Fold the oldest 2^k entries from _meta/log.md into a single summary page, reducing log.md size while preserving all information.
This command is operational only. Do not write `/mma`, `/memory-mason:mma`, or their execution chatter back into the vault.
Use `/mma` for:
- Manual runs outside the compile flow
- Custom batch sizes (`--k 5` folds 32 entries at once)
- Dry-run inspection before committing a fold (`--dry-run`)
## Path Resolution
Resolve vault config in priority order: `./.env` → `./memory-mason.json` → `~/.memory-mason/.env` → `~/.memory-mason/config.json`.
- `{vault}`: absolute path to the Obsidian vault.
- `{subfolder}`: `MEMORY_MASON_SUBFOLDER` (`.env` source) or `subfolder` field (JSON source); default `ai-knowledge`.
- Attempt all four locations before reporting missing config. Fail fast with an explicit error naming every location checked.
## Parameters
Run with `--dry-run` (default) to preview, `--commit` to write, `--k N` to batch 2^N entries (default k=4, 16 entries).
## Steps
1. Read {vault}/{subfolder}/_meta/log.md.
- Count total entries (each starts with `## [`).
- If under 32 entries, report "Nothing to fold yet (N entries, minimum 32)." and stop.
2. Determine fold range.
- Take the oldest 2^k entries (default 16).
- Record the earliest and latest timestamps from those entries.
- Generate fold ID: `fold-k{k}-from-{EARLIEST-DATE}-to-{LATEST-DATE}-n{COUNT}`
Example: `fold-k4-from-2026-04-01-to-2026-04-16-n16`
3. Generate fold summary.
- Extractive: summarize what those entries recorded (compiles run, articles created/updated, queries answered).
- Include exact wikilinks to articles mentioned.
- Do NOT invent facts not present in the source entries.
4. Fold page format (_meta/folds/{fold-id}.md):
```markdown
---
fold_id: "{fold-id}"
entries_folded: {COUNT}
source: "_meta/log.md"
created: {ISO-date}
---
# Build Log Fold: {EARLIEST-DATE} to {LATEST-DATE}
{COUNT} entries. Compiles: {n} | Created: {n} ([[wikilinks]]) | Updated: {n} | Queries: {n}
## Source Entries
{verbatim copy of folded entries}
```
5. Write the fold page to _meta/folds/{fold-id}.md.
6. Remove the folded entries from log.md.
- Replace the folded section with a single back-reference line:
`<!-- folded: [[{subfolder}/_meta/folds/{fold-id}]] ({COUNT} entries, {EARLIEST-DATE} to {LATEST-DATE}) -->`
7. Append to log.md:
```
## [{ISO-timestamp}] fold | {fold-id}
- Entries folded: {COUNT} ({EARLIEST-DATE} to {LATEST-DATE})
- Fold page: [[{subfolder}/_meta/folds/{fold-id}]]
```
## Dry-run Output
Report without writing:
```
Fold plan:
- Entries to fold: {COUNT} (oldest 2^{k})
- Date range: {EARLIEST-DATE} to {LATEST-DATE}
- Fold ID: {fold-id}
- Fold page: _meta/folds/{fold-id}.md
- Remaining in log.md: {total - COUNT} entries
Run /mma --commit to execute.
```
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · s-gryt/memory-mason | 100 | MIT |
| coffeesam/claude-futureman | 100 | MIT |
Identical content appears in 3 other GitHub folders. We show one copy with the highest score.
Database snapshot: 13.11.2026 · package version 1d76674bc98b (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 100wiki-fold
Create a bounded, extractive, structurally idempotent rollup of recent Obsidian wiki log entries, with dry-run preview by default and one optional transaction apply. Use for manual log compression without modifying child pages. Triggers: fold the log, run a fold, run wiki-fold,… - 100context-hygiene
Archive and trim ACTIVE_PRIORITIES and dated SESSION_LOG entries. Use when cleaning active priorities, trimming session logs, or running context hygiene.