mdd-memory-gardening
Skill4 starsChanged 34 days agoMITView on GitHub
LEIA SOMENTE quando a memória de execução atingir o alerta de 50 KB / 200 linhas ou o teto de 75 KB / 300 linhas. É proibido podar arquivos saudáveis ou acionar esta skill apenas pelo fim da sessão.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- otavioserra/conn2flowword for word, first seen Oct 15, 2026
Other versions1 project uses a version of this.
Word for word · 1
- otavioserra/conn2flow★ 5100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository96 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- cli/CLAUDE.mdCLAUDE.md
- resources/CLAUDE.mdCLAUDE.md
- c2f-agent-visual-inspectionSkill
- c2f-ai-featuresSkill
- c2f-architect-masterSkill
- c2f-database-operationsSkill
- c2f-database-testingSkill
- c2f-dev-scriptsSkill
- c2f-docker-environmentSkill
- c2f-documentation-governanceSkill
- c2f-documentationSkill
- c2f-environment-configurationSkill
- c2f-executor-agentSkill
- c2f-gd-image-safetySkill
- c2f-gestor-functionsSkill
- c2f-global-variablesSkill
- c2f-hooks-systemSkill
- c2f-html-css-pages-and-componentsSkill
- c2f-interface-v2-architectureSkill
- c2f-javascript-ajaxSkill
- c2f-json-resources-syncSkill
- c2f-mdd-indexing-and-handoffsSkill
- c2f-modelo-templatesSkill
- c2f-module-crud-scaffoldingSkill
- c2f-module-visual-assetsSkill
- c2f-multilingual-skills-governanceSkill
- c2f-multilingual-systemSkill
- c2f-mysql-utf8-emoji-encodingSkill
- c2f-payment-gatewaysSkill
- c2f-plugin-architectureSkill
- c2f-preview-modals-systemSkill
- c2f-project-pipeline-and-tasksSkill
- c2f-projects-systemSkill
- c2f-resources-systemSkill
- c2f-reviewer-agentSkill
- c2f-shell-and-windows-trapsSkill
- c2f-system-tasksSkill
- c2f-tailwind-css-architectureSkill
- c2f-tailwind-module-migrationSkill
- c2f-variables-systemSkill
- c2f-widget-developmentSkill
- continue-mdd-batchSkill
- mdd-workflowSkill
- project-validationSkill
- raise-spec-changeSkill
- review-current-batchSkill
- start-mdd-sliceSkill
- c2f-mdd-indexing-and-handoffsSkill
- c2f-agent-visual-inspectionSkill
- c2f-ai-featuresSkill
- c2f-architect-masterSkill
- c2f-database-operationsSkill
- c2f-database-testingSkill
- c2f-dev-scriptsSkill
- c2f-docker-environmentSkill
- c2f-documentation-governanceSkill
- c2f-documentationSkill
- c2f-environment-configurationSkill
- The first 60 shown.
The file
Files
Memory Gardening MDD (compatível com satélites MDD)
🚫 PROIBIDO PODAR se a memória de execução estiver abaixo de 50 KB e 200 linhas. Ignorar a skill no final da sessão caso o arquivo esteja saudável.
⚡ Gatilho Obrigatório
- TRIGGER: Quando
memory/04-memory-engineering-execution.mdatingir 50 KB ou 200 linhas (alerta preventivo). A poda torna-se obrigatória ao atingir 75 KB ou 300 linhas. - SKIP APENAS SE: O arquivo estiver abaixo de 50 KB e 200 linhas. Encerramento de sessão ou conclusão de batch, isoladamente, nunca acionam esta skill.
- CONSEQUÊNCIA DE IGNORAR: Degradação cognitiva do agente por excesso de contexto (prompt bloat), aumento de custos de inferência e esquecimento de diretrizes críticas.
📦 Regra dos 10 Ativos na Raiz MDD
Além da memória de execução, a raiz das pastas de controle tem janela fixa de 10 arquivos ativos:
memory/human-requests/: no máximo 10 requisições soltas, além deCURRENT.mdeREADME.md. As demais vão paramemory/human-requests/archive/.memory/implementation/: no máximo 10 relatórios de lote soltos, além deBATCH-INDEX.md. Os demais vão paramemory/implementation/archive/.DECISION-LOG.md,BATCH-INDEX.mdeVALIDATION-CHECKLIST.mdseguem com no máximo 10 itens correntes, com o histórico resumido em tabela apontando paraarchive/.
Nunca mova arquivos manualmente: ao arquivar, todo link de markdown que apontava para o caminho antigo em BATCH-INDEX.md, VALIDATION-CHECKLIST.md, DECISION-LOG.md e CURRENT.md precisa ser reescrito. Use o cliente MDD para manutenção autorizada:
mdd compact --path RAIZ_ABSOLUTA # auditoria, sem escrita
mdd compact --path RAIZ_ABSOLUTA --apply # somente manutenção autorizadaUse o suporte MDD real do cliente; não invente ai:archive-mdd nem passe memory ao arquivador legado. Preserve original integral e síntese rastreável em memory/raw/archive/original/ e memory/raw/archive/compacted/ antes de podar memory/04-memory-engineering-execution.md. Atualize índices via mdd index e valide links.
🧠 Poda da Memória de Execução
- Meça bytes e linhas e leia a memória de execução completa (ou rode
c2f ai:prune-memories). - Se o arquivo estiver abaixo de 50 KB e 200 linhas, pare e registre que a memória está saudável; não reescreva o conteúdo.
- Entre 50 KB / 200 linhas e 75 KB / 300 linhas, emita alerta preventivo e planeje a manutenção sem poda automática.
- Ao atingir 75 KB ou 300 linhas, execute a poda obrigatória.
- Preserve as 20 a 25 tarefas, aprendizados e pendências mais recentes.
- Destile regras recorrentes para skills Core ou específicas do projeto.
- Nunca altere a memória de Chefia sem instrução humana explícita.
- Reescreva a memória visando cerca de 25 KB.
- Valide frontmatter, descoberta das skills e o diff Git recuperável.
- Registre tamanhos e evidências no checklist do batch.
MDD: faxina segura de worktrees em seis passos
Esta seção é manutenção de worktrees, independente do gatilho de poda de memória. A skill se chama mdd-memory-gardening; memory/ é a raiz da matriz e dos satélites migrados. Não pode memória saudável para fechar lote.
- Inventarie com git worktree list --porcelain; confirme raízes absolutas, autores/datas, origens em environment.json e no pipeline. Exclua árvore principal e qualquer worktree usada como origem de projeto.
- Atualize refs com git fetch e confira commits fora de origin/main (git log origin/main..HEAD na worktree), alterações staged/unstaged com git diff --ignore-cr-at-eol e git diff --cached --ignore-cr-at-eol, além de git ls-files --others --exclude-standard. Os três requisitos são cumulativos: zero commits exclusivos, zero alteração real e zero arquivo não rastreado. Não use --force para contornar mudanças; liste trabalho pendente ao humano.
- No Windows, valide o alvo e inventarie junctions (cmd /c "dir /AL
<pasta>") e referências recebidas de outras worktrees. Reaponte dependências antes da remoção; desfaça somente cada junction com cmd /c "rmdir<pasta><atalho>" sem /S, seguindo Armadilha 18. Não componha operações de exclusão entre shells. - Confirme ausência dos links e execute git worktree remove no caminho literal autorizado. Se Git recusar por sujeira, preserve a árvore e reporte; não use --force, clean, reset nem exclusão recursiva manual.
- Confira vendor/node_modules das árvores principais e demais worktrees; só então apague branch local integrada com git branch -d (nunca -D) e rode git worktree prune.
- Registre árvores removidas/preservadas, motivos e integridade dos destinos. Atualize árvore principal com git merge --ff-only origin/main apenas se estiver limpa e a atualização estiver autorizada; divergência exige avaliação, nunca mescla automática de trabalho alheio.
Na governança MDD, aplique o teto ativo de 50 KB da memory/02-policy.md antes de ampliar documento; preserve original e síntese. Não execute o arquivador legado na matriz migrada presumindo compatibilidade. mdd compact particiona documentos grandes e gera extratos estruturais; não substitui a síntese semântica autorizada da memória de execução.
REQ-071: canonical engineering memories
MDD repositories use memory/03-memory-engineering-chief.md and memory/04-memory-engineering-execution.md. A preventive 50 KiB ceiling triggers maintenance planning; 75 KiB is a critical alert. Archive pruned execution history under memory/raw/archive/original/ and memory/raw/archive/compacted/, preserving full originals and traceable summaries before reducing the active file to about 25 KiB and 20–25 recent records. Keep unresolved items, update index.md and repair links. Use memory/raw/active/ for temporary shareable observations. Do not prune as part of a filename migration. Legacy boilerplates require an explicit migration before applying this MDD workflow.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

