Logo de Domain Memory

Domain Memory

Comunidade
timharris707
domain-memory

When design decisions close, review findings are declined, the decider corrects a session's assumption, a new task starts in a repo with a bound memory home, work resumes in a bound repo, or memory exceeds its size bound, record or retrieve project terms and decisions, and propose consolidation when needed.

Visão geral

Publicado portimharris707
Repositórioskills
Nome da habilidadedomain-memory
Estrelas
45
Forks
7
Arquivos incluídos
2
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    Habilidades de IA são Markdown simples, não código específico de um provedor, por isso funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • 2 arquivos incluídos

    Scripts, modelos de documentos e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente leitura e nunca são executados.

  • Código aberto

    Publicada por timharris707 no GitHub. Leia o conteúdo-fonte antes de instalar.

Instalação

Instale a habilidade de IA Domain Memory no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL da pasta da habilidade exibida abaixo e confirme.
    https://github.com/timharris707/skills/tree/main/plugins/clickai-codex/skills/orient/domain-memory
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Nova habilidade → Via URL GitHub, depois cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/timharris707/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/plugins/clickai-codex/skills/orient/domain-memory .claude/skills/domain-memory
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Domain Memory em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Domain Memory automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Domain Memory não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Domain memory

Read the Codex desktop binding when this workflow needs harness mechanics, model routing, or recovery.

Per-repo institutional memory: what the repo's words mean, and why its settled decisions went the way they did. It is written as side effects of work, never as a documentation chore. router and setup orient a session on the pack and the repo's bindings; this skill is the third orientation instrument beside them, and it orients the session on the domain.

This skill is the portable protocol: two artifacts in one store, the write and read moments that keep it alive, and evolution rules that keep it honest. Where the store lives, when consolidation is offered, and whether backfill runs are binding slots the team-workflow setup interview fills.

Read the team-workflow binding doc first; its domain-memory section names the memory home.

1. One store, two artifacts

  • The glossary: one small, opinionated file of domain terms, each entry a canonical term, a tight definition, and the synonyms to avoid (the rules live in references/formats.md). It updates in place: a term means one thing now, and the file says what.
  • Decision records: one small file per settled decision, title, date, the decision, the load-bearing reason, and links to the ticket or PR that carried it. A record costs under a minute to write, in plain English a non-engineer decider reads without translation. The reason is the record's value: a future session needs to know why, so it can tell new evidence from re-litigation.

Formats for both live in references/formats.md. Files are created lazily: the glossary when the first term settles, the decisions directory when the first record lands; an empty store on day one is the correct starting state.

The store is repo files at the memory home the binding names: a decisions directory plus a terms file (e.g. docs/decisions/ + docs/terms.md). The tracker holds work in flight; the repo carries the durable why: a decision's record outlives the ticket that produced it. And it is one store: in repos also bound to codebase-review, that skill's rejection-memory slot points at this memory home, so rejected candidates are decision records here, never a second store.

2. Write moments: side effects, never a chore

Memory is written at exactly three moments, each one a moment where a decision has just crystallised out loud:

  1. A grilling closes. The grilling close-record mints memory: each settled decision becomes a decision record, and new or sharpened terms enter the glossary.
  2. A review disposition lands. A codebase-review rejection or an adversarial-review declined finding becomes a decision record with its load-bearing reason; the record is what stops the next review from re-raising settled ground.
  3. The decider corrects a session. When the decider corrects a session's wrong assumption mid-flight, the session offers to record the correction: written down, the assumption is wrong exactly once. A diagnose root cause that overturns a standing assumption is the same correction class with reality as the corrector; the lane offers it as a fact record the same way, riding this moment rather than adding a fourth.

Lane close-outs are deliberately not a write moment: a lane executes a decision already recorded upstream, and recording every close-out buries the load-bearing records in noise.

These three are the routine writes. The store has exactly two maintenance writes beside them, an approved consolidation pass (§4) and accepted backfill drafts (§5), and each happens only under an explicit decider disposition: never skipped once the decider has given one, never performed without one.

3. Read moments

  1. Session start or compaction recovery: the orchestrator's startup checklist reads the glossary and skims recent decision records; any other session reaches the store through the binding doc's memory-home pointer.
  2. Grilling pre-round: the griller reads the relevant records before asking, so a settled question is never re-asked; it reopens on new evidence, never on repetition.
  3. Lane briefs: briefs point at the memory home, so a lane starts on the repo's terms and settled decisions instead of rediscovering them.
  4. Review layers: finders and skeptics read the relevant active decision records, so a review reads the why before contesting the what.

At every read moment, follow the supersession chain: only the latest unsuperseded record is active; a superseded decision or rejection is history, never authority.

4. Evolution: supersede, never edit

A decision record is superseded, never edited: a change of mind gets a new record carrying a "supersedes" link to the old one, and the old record gains a superseded marker pointing forward. Adding that Superseded-by marker is the one edit a record ever receives outside an approved consolidation pass (references/formats.md states the two supersession steps). History stays readable: you can watch a decision change and see each reason standing at its own date. The glossary is the opposite case and updates in place: it says what a term means now, and its history is git's job.

Past the size bound the binding names, the skill offers a consolidation pass: a proposal to merge superseded chains, retire records whose subject no longer exists, and tighten the glossary, presented to the decider for disposition like any other proposal. The store shrinks only on the decider's yes, never on a session's tidying instinct.

5. Backfill: on request, by disposition

An existing repo starts empty and grows forward; that is the default, and it is correct. On the decider's request, a one-time backfill lane mines closed PRs, issues, and handoffs and drafts candidate records, presented card by card, grilling-style, for disposition. Nothing becomes memory without the decider's yes: an accepted draft becomes a record, a rejected one is dropped, and the lane never writes to the store directly.

6. Binding slots (the setup interview fills these per-repo)

  • Memory home: where the store lives, a decisions directory plus a terms file the repo tracks.
  • Size bound: the store size past which sessions offer the consolidation pass.
  • Backfill (optional): whether the one-time backfill lane has been requested, and when.

Done when (checkable)

  • Every settled decision from the triggering write moment (grilling close, review disposition, or decider correction) is a record at the memory home carrying title, date, decision, the load-bearing reason, and links where a ticket or PR exists (a decider-correction record often has neither), or was declined by the decider; none is silently skipped.
  • New or sharpened terms from the moment are in the glossary: canonical form, avoid-list, no implementation detail.
  • No existing record was edited outside an approved consolidation pass, save adding a Superseded-by forward marker per formats.md's supersession steps: changes of mind are new records with supersedes links, and each superseded record carries its marker.
  • The read moment in play actually read: session start, pre-round, lane brief, or review layer consulted the store, and nothing re-asked or re-raised a recorded decision without new evidence.
  • A store past its size bound has the consolidation offer on the decider's table, and nothing was consolidated without disposition.
  • Backfill drafts, where the lane ran, were each dispositioned card by card; nothing entered the store without a yes.

Attribution

Adapted from Matt Pocock's domain-modeling (MIT). The mechanism is his: a repo glossary plus lightweight decision records (his CONTEXT.md, renamed GLOSSARY.md in his v1.3.0, and ADRs) as the two artifacts, written the moment a term or decision crystallises (a side effect of design work, not a documentation chore), files created lazily when the first entry exists, the glossary rules his GLOSSARY-FORMAT.md (called CONTEXT-FORMAT.md until v1.3.0) states (opinionated canonical terms with avoid-lists, tight definitions, project-specific concepts only) plus his SKILL.md's rule that the glossary stays devoid of implementation detail, and the record-can-be-a-paragraph bar of his ADR-FORMAT.md: the value is recording that and why, not filling out sections.

What this repo changes: the write/read moment matrix wired into the pack (grilling close-records, review dispositions, and decider corrections in; session start, grilling pre-round, lane briefs, and review layers out), supersede-never-edit in place of editable ADR statuses, the consolidation pass offered past a size bound and dispositioned by the decider, the backfill-by-disposition lane, the unified store with codebase-review's rejection memory, the plain-English-for-the-decider bar, and the binding slots.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Domain Memory faz?

When design decisions close, review findings are declined, the decider corrects a session's assumption, a new task starts in a repo with a bound memory home, work resumes in a bound repo, or memory exceeds its size bound, record or retrieve project terms and decisions, and propose consolidation when needed.

Por que usar Domain Memory no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. Domain Memory é escrito em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. O TypingMind usa suas próprias chaves de API, então o pagamento é feito diretamente aos provedores, em vez de uma assinatura por licença de usuário, e suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Domain Memory no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/timharris707/skills/tree/main/plugins/clickai-codex/skills/orient/domain-memory. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Domain Memory?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Domain Memory?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Domain Memory com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Domain Memory é gratuita?

Sim. A habilidade é publicada no GitHub por timharris707 sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, modelos de documento ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas para chamar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA fornece conhecimento e um processo ao modelo: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇