Logo de Capability Map

Capability Map

Organização
Codeminer42
capability-map

Draft a capability map for a repository, a single page that maps the client's domain. It lists every capability with what it owns, the words it uses, its contracts, who acts on it, what it is NOT, where its code lives, the ADRs that bind it and its state, grouped by context. Builds the draft from the client's documents, meeting notes and glossary as well as the code. Keeps the client's words over the code's, records disagreements instead of settling them, and ends with a list of questions for the team and the client. Adds a section with a generated capability table to AGENTS.md or CLAUDE.md, so agents read an entry before changing its code. Offers a check (one bash script) that fails CI on a stale table, a broken entry, or a glossary term no capability speaks. Commits nothing. Use when asked to map the domain, write a capability map, define the ubiquitous language or bounded contexts for agents, or stop agents inventing names for the client's concepts.

Visão geral

Publicado porCodeminer42
Repositórioskills
Nome da habilidadecapability-map
Estrelas
33
Forks
2
Arquivos incluídos
5
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.

  • 5 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 Codeminer42 no GitHub. Leia o conteúdo-fonte antes de instalar.

Instalação

Instale a habilidade de IA Capability Map 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/Codeminer42/skills/tree/main/capability-map
  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/Codeminer42/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/capability-map .claude/skills/capability-map
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Capability Map 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 Capability Map 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, Capability Map 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á.

Capability map

Drafts docs/capability-map.md, a single page that maps the domain of a project. It lists every capability the system has, what each one owns, which words it uses, and what it is not. People and agents read it to answer "what lives here, and what do we call it?" before opening the code.

An agent doesn't know the client's words. It fills the gap with the most common name it has seen, such as Cart, Asset or User, and that name spreads through the code, the API and the screens. The map gives every session the client's words, and the boundaries between the parts of the system.

This skill drafts; people decide

The two most important things in a capability map come from people, not from the code:

  • the language: the words the client uses for its own business;
  • the "Is not" lines: where one capability ends and the next begins, as the team understands it.

So the skill does not hand over a finished map. It hands over a draft and a list of questions. Every word the code and the documents disagree on, and every boundary the code doesn't make clear, goes into the questions instead of being settled by the agent.

The skill also:

  • fixes nothing. Gaps found while mapping (permissions nobody checks, wrong glossary entries) are recorded, not fixed;
  • doesn't commit.

Conventions the map follows

  • One page, with a short intro that says what it is and where words and decisions are defined.
  • Contexts are # headings: the large areas of the business, such as Tenancy & access, Fleet or Sales, each with one sentence under it. Three to six is typical.
  • Capabilities are ## headings with a lowercase-kebab id (access-control, manual-review). The id is also the anchor agents link to.
  • Every entry has the same fields, in the same order, one line each:
FieldWhat it says
One lineWhat the capability is, in one sentence a client would recognize.
LanguageThe words it uses, in the client's terms. Name the states a thing moves through.
OwnsThe data it owns and the rules it enforces on that data.
ContractsWhat others use: routes, events, emails, jobs.
Who actsWho can use it, by role or permission, and what checks it. Say when a permission is declared but not checked.
Is notWhat it doesn't do, and which capability does, by id.
Lives inWhere its code is, across every app.
DecisionsThe ADRs in effect that a change here must respect, by ID, each with a few words. The most binding ten at most; the ADR index holds the rest.
StateBuilt, partial or planned, and the gaps found while mapping it.
  • A capability spans apps. The map follows the domain, not the folders. One capability's entry lists its backend, frontend and admin code together.
  • Closing sections, in this order: Declared, not built (permissions, flags or concepts that exist and nothing implements), Where the words still disagree (synonyms and overloaded terms), Seams worth knowing (one rule split across capabilities), and a short How to keep this page true footer.
  • The glossary defines words. The map says which capability speaks them. If the project has a glossary, don't copy definitions into the map.

If the project needs different fields (a team restructuring its architecture may want Ports and Today → target), change them, keep them fixed across the page, and change FIELDS in the check to match.

Flow

Track progress with these steps, in order.

1. Detect an existing map

Look before creating anything (skip node_modules, vendor and other dependency folders):

  • files: docs/capability-map.md, *capabilit*, CONTEXT.md, CONTEXT-MAP.md, docs/domain*, UBIQUITOUS_LANGUAGE.md, docs/glossary*;
  • a glossary or domain section in AGENTS.md, CLAUDE.md, README.md or PRODUCT.md;
  • per-module domain docs (*/knowledge/spec.md, */README.md describing a bounded context).

What counts as a map: a markdown file whose entries carry the map's fields (**One line:**, **Is not:** or similar). A checker script, an ADR or an agent-instructions section that mentions a map with no such file means the map was intended or lost: continue, carry what they say into the draft, and don't install a second checker in step 9.

A capability map already there: don't replace it. Tell the user where it is and stop, unless they asked to update it. Then follow Updating a map.

A glossary or domain doc, but no map: that is the start of the map's language. Continue, and read it in step 3.

2. Ask for the client's sources

The code says what was built and what developers called it. The client's words live elsewhere. Ask the user, with the structured question tool (AskUserQuestion in Claude Code) or in chat, for:

  • the client's documents: product descriptions, proposals, specs, the client's own manuals or site;
  • meeting notes and transcripts from discovery or planning;
  • the people to ask when a word is in dispute.

Accept what the user has. A draft from code and a glossary alone is still useful, but say in the report that its language is the developers', not yet the client's.

Don't send these documents anywhere outside the session. They are the client's.

3. Read the language first

Before reading code, read the sources from step 2, the glossary, PRODUCT.md or equivalent, and the ADRs. Write down:

  • every domain noun and verb the client uses, with the source;
  • the states a thing moves through, in the client's words;
  • the roles and who does what;
  • where the documents use two words for one thing, or one word for two things.

This list is the first draft of every Language line, and of Where the words still disagree.

4. Propose the contexts and capabilities

From the language and a first look at the code (routes, top-level modules, models, permission lists), propose:

  • the contexts, three to six;
  • the capabilities in each, with an id and a one-line description.

Show the list to the user and let them correct it before mapping. If nobody can answer (a run without a user), decide, and put each cut you are unsure of in the questions. A wrong cut here costs every later step. A capability is a part of the business someone could own, not a folder: "membership" and "access-control" can live in the same module and still be two capabilities.

5. Map each capability

When the agent can run subagents, give each one a context, and the brief in references/subagent-brief.md with the language list and the capability list filled in. Each returns one draft entry per capability, with citations.

For every entry:

  • Language uses the client's word. If the code uses another, the client's word goes in the entry, and the pair goes under Where the words still disagree. If the project glossary already settled a word and a client document uses another, keep the glossary's word, which the team agreed, and ask the client.
  • Owns names the tables or stores, and the rules on them: what must always hold, who can change what, the states and their transitions.
  • Who acts checks the server. A permission checked only in the UI protects nothing; say so. A permission declared and seeded but checked nowhere goes under Declared, not built.
  • Is not names the neighbouring capabilities by id. Write it from what the code does, then mark every Is not you are unsure of for the questions list.
  • Decisions cites ADRs that are in effect. A superseded ADR doesn't go in.
  • State says what is missing, as found. Don't fix it.

Check what comes back. Subagents return confident claims, and some are wrong. Before writing the map, open the cited code yourself for:

  • every claim that a check is missing: a permission checked only in the UI, a key checked nowhere, a rule the server doesn't enforce;
  • every gap in State;
  • one Owns rule per capability, picked at random.

Check every path in Lives in and every ADR ID in Decisions with a script: they are cheap to check and embarrassing to get wrong.

6. Write the map

Copy assets/capability-map.md to docs/capability-map.md (or doc/ if the repo has doc/ and no docs/) and fill it in. Keep each field on one line: the check reads them line by line. Subagents tend to return bulleted fields anyway; fold them back into one line.

Keep each line short enough to review in a diff, about 300 characters. In Lives in, name folders, and files only where a capability shares a folder. In Contracts, group routes by prefix.

Write the closing sections from what the mapping found. They are often the most useful part of the page. They show the team where the domain and the code have drifted apart.

If the project has a glossary, every glossary term must appear in some Language line or under Declared, not built. A term that names an app or a surface ("Operator portal", "Admin Portal") goes in the Language line of the capability that owns sign-in to it. Any other term no capability speaks is a sign the glossary or the map is wrong. Put it in the questions.

7. Write the questions

End the report with the questions the draft leaves open. They belong in the description of the pull request that brings the map, so reviewers answer them there:

  • every word in dispute: the code's word, the documents' word, where each appears;
  • every Is not line marked as unsure;
  • every glossary entry the code contradicts (a role that doesn't exist, a concept that works differently);
  • every capability whose boundary you guessed.

Group them by who should answer: the team, or the client.

8. Add the agent-instructions section

Pick the target file:

Repo hasEdit
CLAUDE.md that imports @AGENTS.mdAGENTS.md
only AGENTS.mdAGENTS.md
only CLAUDE.mdCLAUDE.md
both, no import between themask the user which one (or both)
neitherask the user which file to create

Use the file at the repository root. Add assets/agent-instructions.md, replacing the placeholders. If the file ends in blocks a tool generates, insert the section before them.

The section holds a table of every capability with its context and one line, between two markers. Every agent session then knows what exists without loading the whole map. Fill the table by hand now, or let the check generate it in step 9.

9. Offer the check

If the repository already has a checker for the map (step 1), don't add this one. Report the existing one and stop this step.

Otherwise, ask with the question tool whether to add the check. Without a user to ask, add it and say so. Offer:

  • Add the check (Recommended). Name where it would go and run in this project, such as "scripts/capability-map.sh, run as a step in your lint job".
  • Skip it.

Say in one line what it does: it fails CI when the capability table is stale, an entry is missing a field or has them out of order, a heading isn't a capability id, or (with a glossary) a glossary term is spoken by no capability.

If the user wants it:

  1. Copy assets/capability-map.sh to scripts/capability-map.sh (or the repo's script/ or bin/), and chmod +x it.
  2. Set MAP and AGENT_FILE. If the project has a glossary in the - **Term** — definition format, set GLOSSARY_FILE and GLOSSARY_HEADING. If its glossary has another format, leave GLOSSARY_FILE empty and say so in the report. If you changed the fields, change FIELDS.
  3. In a Node project, add "capability-map:check": "bash scripts/capability-map.sh" and "capability-map:fix": "bash scripts/capability-map.sh --fix" to package.json, without overwriting existing keys.
  4. Run it with --fix, then without. It must pass on what this skill wrote. A glossary term it flags goes to the questions, not into a made-up Language line.
  5. Wire it into the project's CI. Find the CI system (.github/workflows/, .gitlab-ci.yml, bitbucket-pipelines.yml, .circleci/config.yml and so on). Read the pipeline and add one step that runs bash scripts/capability-map.sh where its lint-type checks run, in its own style. Watch for paths: filters that skip docs-only changes: the map is a doc, so the check must run on them. Show the user the exact change and confirm it before writing. The check needs only bash and awk, so it needs no setup step.

10. Report

  • every file created or changed;
  • the contexts and capabilities, one line each;
  • what the mapping found: Declared, not built, words in dispute, seams, and gaps in State;
  • the questions from step 7, grouped by who should answer;
  • the sources the language came from, and whether the client's documents were among them;
  • if the check was installed, how to run it and where it runs in CI.

Do not commit.

Updating a map

  • A change that adds a capability, moves code between capabilities, or changes what one owns updates the entry in the same pull request. Check the Is not line first.
  • A new word goes into the glossary first, then into a Language line.
  • A superseded ADR comes off the Decisions line, replaced by the one that superseded it if it still binds.
  • Something declared becomes built: move it from Declared, not built into an entry.
  • Don't rename a capability id casually. Agents and docs link to it. If a rename is right, update every link to it in the same pull request.
  • Run the check with --fix after changing a One line.

Gotchas

  • The code's words are not the client's words. A model named Asset in a business that rents "pods" is a disagreement to record, not the word to use. Customer-facing copy that uses the code's word is worth a question.
  • A folder is not a capability. One module can hold two capabilities, and one capability can span three apps. Map the business, then say where its code lives.
  • Permission lists lie. A permission that is declared, seeded on a role and shown in the UI may be checked nowhere on the server. Mapping one real project found most of its declared permission keys unchecked. Check the server for every Who acts claim.
  • Glossaries drift too. Mapping can show glossary entries for roles that don't exist, or a concept that works differently in the code. Don't fix the glossary silently; put each case in the questions.
  • Overloaded words are the costly ones. One word for two things ("admin" as a panel and as a separate app, "transaction" as a sale and a database transaction) misleads more than two words for one thing. List every one under Where the words still disagree.
  • Keep each field on one line. The check reads fields line by line, and a field that wraps to a second line loses its continuation.
  • Don't put client confidential data in the map. It is about the domain, not the data: no customer names, credentials, internal hostnames or partner names that the client hasn't cleared. "An external manufacturer" says enough.
  • The glossary check proves a term appears, not that it's used right. It matches substrings, ignoring case, so a short term like "Pod" or "Role" passes almost anywhere. Read the Language lines yourself.
  • capability-map.sh must stay portable: bash 3.2 (macOS), POSIX awk (BSD awk on macOS, mawk on Ubuntu), no gawk or GNU-only flags. After changing it, run node --test capability-map/tests/capability-map.test.mjs, once with CAPABILITY_MAP_TEST_BASH=/bin/bash on macOS and once on Linux. Node is only the test runner.
  • CI checks the shape, not the truth. An entry can go stale while CI stays green. Reviewers keep it true, which is why the agent-instructions section asks every boundary-moving change to update its entry.

Further reading

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 Capability Map faz?

Draft a capability map for a repository, a single page that maps the client's domain. It lists every capability with what it owns, the words it uses, its contracts, who acts on it, what it is NOT, where its code lives, the ADRs that bind it and its state, grouped by context. Builds the draft from the client's documents, meeting notes and glossary as well as the code. Keeps the client's words over the code's, records disagreements instead of settling them, and ends with a list of questions for the team and the client. Adds a section with a generated capability table to AGENTS.md or CLAUDE.md...

Por que usar Capability Map no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. Capability Map é 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 Capability Map no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/Codeminer42/skills/tree/main/capability-map. 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 Capability Map?

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 Capability Map?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Capability Map 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 Capability Map é gratuita?

Sim. A habilidade é publicada no GitHub por Codeminer42 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 👇