Grok logo

Grok

Community
kevinslin
grok

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

Overview

Publisherkevinslin
Repositoryagstack
Skill namegrok
Stars
26
Forks
1
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by kevinslin on GitHub. Read the source before you install it.

Installation

Install the Grok AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/kevinslin/agstack/tree/main/active/grok
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Grok in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Grok on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Grok is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Frequently asked questions

What does the Grok AI skill do?

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

Why use Grok on TypingMind?

Because you install it once and use it with any model. Grok is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Grok in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/kevinslin/agstack/tree/main/active/grok. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Grok?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Grok?

As many as you like. As long as a model supports skills, you can use Grok with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Grok AI skill free?

It is published on GitHub by kevinslin. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇