matilha-den

matilha-den is a skill for Claude Code from danilods/matilha-skills. It costs 31 tokens per session (495 once invoked), scanned A, original, MIT.

A project-retrospective skill that records lessons, recurring patterns, decisions, and improvements in dated Markdown files.

In plain words
What is it for?
Use it after completing a project phase to document what happened and what should be reused or changed next time.
Why use it?
It keeps important project knowledge from being lost when a milestone ends. The notes stay linked to specific commits and files for future reference.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the matilha plugin — 12 skills, 10 commands, 2 agents, 1 hook shipped together

Good fit Use it after completing a project phase to document what happened and what should be reused or changed next time.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/danilods/matilha-skills/matilha-den
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add danilods/matilha-skills --skill matilha-den
Clone the repo
git clone --depth 1 https://github.com/danilods/matilha-skills

Made for: Claude Code.

Or install matilha, the plugin that ships this one along with the rest of its 12 skills, 10 commands, 2 agents, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for matilha-den

README.md
[![agentmods](https://agentmods.dev/badge/skills/danilods/matilha-skills/matilha-den/github.svg)](https://agentmods.dev/skills/danilods/matilha-skills/matilha-den)
Your own site
<a href="https://agentmods.dev/skills/danilods/matilha-skills/matilha-den"><img src="https://agentmods.dev/badge/skills/danilods/matilha-skills/matilha-den/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for matilha-den

Your own site · 80×15
<a href="https://agentmods.dev/skills/danilods/matilha-skills/matilha-den"><img src="https://agentmods.dev/badge/skills/danilods/matilha-skills/matilha-den.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 495 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.00495
Opus 5 $0.00015 $0.00247
Sonnet 5 $0.00006 $0.00099
Haiku 4.5 $0.00003 $0.00049

Measured 11d ago against content hash cfe2f4e0166b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

matilha-den scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/matilha-den/SKILL.md · 68 lines

What it actually says

When this fires

Project or milestone completion. User wants to distill what was learned, what patterns emerged, what to reuse. Writes docs/matilha/den/<date>-<topic>.md.

Preconditions

  • project-status.md exists.
  • At least one wave completed.

Execution Workflow

  1. Read completed waves from project-status.md via Read tool.
  2. Prompt user for topic (e.g., "auth system patterns").
  3. Read relevant wave outputs (commits via Bash, spec/plan/review_report via Read) for the topic.
  4. Synthesize via Write into docs/matilha/den/<date>-<topic>.md with sections: context, patterns observed, decisions + why, would-do-differently.
  5. Update project-status.md recent_decisions with pointer to the den file.

Rules: Do

  • Cite specific commits + files in findings.
  • Include "would-do-differently" section (honest retrospective).
  • Timestamp the filename.

Rules: Don't

  • Delete existing den files (keep history).
  • Write generic advice (be specific to THIS project).

Expected Behavior

Knowledge captured in navigable markdown that informs future /matilha-pack packaging.

Quality Gates

  • Den file exists at docs/matilha/den/<date>-<topic>.md.
  • Cited commits are real (verifiable via git log).

Companion Integration

No companion integrations in Wave 4a.

Output Artifacts

  • docs/matilha/den/<date>-<topic>.md.

Example Constraint Language

  • Use "must" for: cite wave(s) being distilled.
  • Use "should" for: include would-do-differently.
  • Use "may" for: split across multiple files for a large project.

Troubleshooting

  • "no waves completed": Run /matilha-gather first.
  • "topic too broad": Split into multiple den files per sub-topic.

CLI shortcut (optional)

matilha den <topic> (future CLI command; not shipped yet).

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 68 lines · 31 tokens per session scan A cfe2f4e0166b

Subscribe to this mod's changes

matilha-den is a skill published in the GitHub repository danilods/matilha-skills (2 stars, last pushed 4mo ago), licensed MIT. It adds 31 tokens to every session and 495 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

init

Opt-in onboarding for the mARC agent team. Scaffolds a per-repo team binding so the team graduates from ephemeral session-memory to persistent, versioned config — without ever writing a file silently. Discovers the repo's org/repo/ project at runtime via gh, prefills {{ agentsdir }}/team.toml, and (optionally) a lean…

NexaDuo/mARC · 122 tokens

knowledge-wiki

A tool that turns useful lessons from coding sessions into general articles for a team wiki. A wiki is a collection of linked reference pages, and this one can be kept locally or shared through a Git repository.

wigtn/wigtn-plugins · 97 tokens

dream

Prunes and consolidates the project's auto-memory to keep it minimal — deletes stale, wrong, or redundant memories, merges overlapping ones into existing files, and trims the index. Strong bias against growth: never creates new memory files and never stores new facts. Verifies staleness against the current codebase…

oprogramadorreal/optimus-claude · 85 tokens

optimize-learnings

Audit and curate the learnings memory namespace — the one namespace nothing re-derives, so the only one that rots. Runs moflo's mechanical audit to nominate stale, unused, and near-duplicate entries, then decides entry by entry whether to keep, retire, compress, or merge, and propagates the result to the shared…

eric-cielo/moflo · 116 tokens

memory-team

Guided setup for sharing moflo's durable learnings through a git-tracked JSONL artifact — for a whole TEAM on one repo, OR for one person across several MACHINES (a team of one). Use when the user says "share learnings with my team", "commit our moflo memory", "sync memory across my laptop and desktop", "set up…

eric-cielo/moflo · 126 tokens

magic-compact

Compact this Claude Code session.

aerovato/magic-compact · 10 tokens