Logo de Grok

Grok

Comunidade
kevinslin
grok

Trace how something works with an investigator subagent and a skeptical reviewer subagent.

Visão geral

Publicado porkevinslin
Repositórioagstack
Nome da habilidadegrok
Estrelas
26
Forks
1
Arquivos incluídos
Somente instruções
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.

  • Completa em si mesma

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

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

Instalação

Instale a habilidade de IA Grok 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/kevinslin/agstack/tree/main/active/grok
  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/kevinslin/agstack.git /tmp/agstack
mkdir -p .claude/skills
cp -r /tmp/agstack/active/grok .claude/skills/grok
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

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

grok

Use this skill when the user asks to deeply understand why a system behaves a certain way, trace an end-to-end flow, explain a confusing interaction, or prove which code path is responsible.

The pattern is two-agent adversarial investigation:

  • Investigator: exhaustive evidence gathering and hypothesis testing.
  • Reviewer: skeptical validation using 5 Whys until the answer directly addresses the user's question.

Entry Gate

  1. Restate the exact question being answered.
  2. Define what would count as a sufficient answer.
  3. Identify likely evidence classes: source code, docs, tests, logs, runtime behavior, user-visible UI, prior memory, or external system state.
  4. Spawn exactly two subagents when the tool surface allows it:
    • an investigator agent
    • a reviewer agent
  5. Keep the immediate coordination and final answer local. Do not outsource final judgment.

If subagents are unavailable, run the investigator and reviewer roles sequentially yourself and state that limitation.

Investigator Agent

The investigator's job is to prove how the system works, not to produce a plausible explanation.

Prompt the investigator with:

markdown
You are the investigator.

Question:
<exact user question>

Mission:
Trace the behavior end to end. Start breadth-first across docs, code, tests, config, logs, and prior memory. Then go depth-first on the most promising leads until you can explain the exact mechanism.

Authority:
- You may add temporary debug statements when useful unless explicitly told not to.
- You may run commands, tests, local repros, and integration checks.
- You may use available UI/browser/computer-use tools when real product behavior must be observed.
- You may use relevant integration skills or harnesses when live behavior matters.

Requirements:
- Cite concrete files, functions, docs, commands, logs, screenshots, or runtime observations.
- Separate facts from hypotheses.
- Explain alternative hypotheses you ruled out.
- Report any temporary code changes, debug logs, or test artifacts you created.
- Do not hide gaps. If evidence is missing, say exactly what is missing.

Deliverable:
1. Short answer.
2. End-to-end flow.
3. Evidence table.
4. Ruled-out hypotheses.
5. Remaining uncertainty.

When code changes are allowed only for debugging, tell the investigator to mark them clearly and either revert them before finishing or report exact files for cleanup.

Reviewer Agent

The reviewer does not investigate from scratch unless the investigator's evidence is insufficient. Its job is to attack the answer.

Prompt the reviewer with:

markdown
You are the reviewer.

Question:
<exact user question>

Investigator answer:
<paste or summarize investigator result>

Mission:
Judge whether the answer really proves the mechanism. Use the 5 Whys framework and assume the answer is invalid unless the evidence proves it beyond reasonable doubt.

Review stance:
- Be skeptical.
- Do not accept names, comments, or plausible architecture as proof.
- Require code-path, runtime, log, test, or documentation evidence for every causal claim.
- Look for omitted branches, fallback paths, race conditions, config gates, and mismatches between synthetic and real flows.
- Reject answers that explain a nearby mechanism but not the user's exact question.

Deliverable:
1. Decision: sufficient or insufficient.
2. The 5 Whys chain.
3. Missing evidence or contradictions.
4. Required follow-up questions for the investigator, if any.
5. A corrected answer if the evidence supports one.

Loop

  1. Start the investigator first.
  2. Give the reviewer the investigator's result.
  3. If the reviewer marks the answer insufficient, send the reviewer objections back to the investigator.
  4. Repeat until one of these is true:
    • the reviewer marks the answer sufficient;
    • the remaining gap requires user input or unavailable external state;
    • the question is disproven or reframed by evidence.
  5. Close unused subagents after the loop.

Do not stop after a generic architecture summary. The loop is complete only when the answer explains the observed behavior, identifies the exact producer/consumer boundaries, and accounts for why similar-looking flows do or do not behave the same way.

Final Answer Shape

Lead with the answer, then give the proof trail:

markdown
Short answer: <one paragraph>

What happens end to end:
1. <step>
2. <step>
3. <step>

Why alternatives are wrong:
- <ruled-out hypothesis>: <evidence>

Evidence:
- <file/function/log/test/screenshot>

Reviewer status: sufficient | insufficient because <gap>

Keep the final concise, but include enough concrete references that the user can audit the claim.

Learning Follow-Up

When the run exposes a reusable agent mistake, missing workflow, or repeated friction, route it through ../ag-learn/SKILL.md after the answer lands. Save a durable learning only when it should change a skill or future workflow.

Perguntas frequentes

O que a habilidade de IA Grok faz?

Trace how something works with an investigator subagent and a skeptical reviewer subagent.

Por que usar Grok no TypingMind?

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

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/kevinslin/agstack/tree/main/active/grok. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Grok?

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 Grok?

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

A habilidade é publicada no GitHub por kevinslin. Consulte os termos de licenciamento no repositório. 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 👇