Logo de Shared Context

Shared Context

Organização
zenobi-us
shared-context

Routes shared engineering context work to the right procedure — report or change where context is stored, pull an external source (Confluence page, Jira issue, web page, PDF, screenshot) into it, and publish the write so other agents see it. Use when the user says shared context, eng-context, alignment root, "save this page", "pull this in", "where does my context live", or when a write must land outside the repository clone.

Visão geral

Publicado porzenobi-us
Repositóriodotfiles
Nome da habilidadeshared-context
Estrelas
67
Forks
6
Arquivos incluídos
10
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.

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

Instalação

Instale a habilidade de IA Shared Context 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/zenobi-us/dotfiles/tree/master/files/devtools/agent/bundles/agent-core/skills/shared-context
  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/zenobi-us/dotfiles.git /tmp/dotfiles
mkdir -p .claude/skills
cp -r /tmp/dotfiles/files/devtools/agent/bundles/agent-core/skills/shared-context .claude/skills/shared-context
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Shared Context 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 Shared Context 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, Shared Context 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á.

Shared Context

Origin-keyed engineering context. Alignment files and ingested source material live outside any single repository clone, keyed by the repository's git origin.

Step 0: resolve the root. Always.

bash
cd "<repository being worked on>" && "<skillroot>/scripts/shared-context/cli.ts"

You MUST run every cli.ts call with the working directory inside the repository you are working on. The CLI reads the origin from the working directory. Run it from the skill directory and it resolves a different repository and reports the wrong root.

<skillroot> is the directory holding the SKILL.md you are reading right now. Use that copy, not another one on disk — an installed plugin cache can be older than the source. The path to the CLI repeats the directory name: <skillroot>/scripts/shared-context/cli.ts. That is correct. Do not trim a segment.

Run the file directly, as shown. Its shebang starts bun through mise and installs the CLI's own dependencies on first run. You MUST NOT prefix the call with Bun's runner — that skips the shebang, and the call then fails in an installed copy that has no dependencies.

report is the default. cli.ts and cli.ts report do the same thing. Output:

storage: shared | repository
root: <ALIGNMENT_ROOT — use this for every write>
shared root: <equals root in shared mode, equals the repository root otherwise>
shared candidate: <where shared storage would live; printed only in repository mode>
origin: <git origin>
slug: <origin-derived directory name>

Router

You want toRead
See or change where context is storedreferences/storage.md
Know where a file goes and what it is namedreferences/layout.md
Pull an external source into contextreferences/ingest.md
Fetch one specific source typereferences/sources.md
Make a write visible to other agentsreferences/publishing.md

Rules that override convenience

  1. You MUST NOT run init or migrate from an implied request. Both mutate storage. Run either only when the user names that operation.
  2. You MUST write under the resolved root. You MUST NOT mix the repository root and the shared root in one task.
  3. You MUST use cli.ts anchor to get a target directory. Do not build the path by hand. Add --dry-run when you are planning and must not create anything.
  4. You MUST run cli.ts index <dir> after you add or remove a file in a source directory.
  5. If storage is shared, you MUST commit and push the write in the same turn. Read references/publishing.md first — the branch check there can stop the push.
  6. You MUST NOT overwrite a file that holds hand-written work. See the authored-content guard in references/layout.md.
  7. You MUST stop and report a non-zero exit status from cli.ts. Do not retry silently. This rule covers cli.ts only. An ordinary shell probe such as ls exits non-zero for an absent path, which is an answer, not a failure.

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 Shared Context faz?

Routes shared engineering context work to the right procedure — report or change where context is stored, pull an external source (Confluence page, Jira issue, web page, PDF, screenshot) into it, and publish the write so other agents see it. Use when the user says shared context, eng-context, alignment root, "save this page", "pull this in", "where does my context live", or when a write must land outside the repository clone.

Por que usar Shared Context no TypingMind?

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

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/zenobi-us/dotfiles/tree/master/files/devtools/agent/bundles/agent-core/skills/shared-context. 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 Shared Context?

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 Shared Context?

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

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