query

query is a skill for Claude Code, Codex from nemock/company-brain. It costs 51 tokens per session (2,097 once invoked), scanned A, original, MIT.

A question-answering tool for a company knowledge vault, which is a structured collection of linked company records. It finds relevant records, follows their connections, cites the record IDs, and reports stale, conflicting, or uncertain information.

In plain words
What is it for?
Use it to retrieve facts, trace how records are related, check source confidence, and identify missing knowledge for later capture.
Why use it?
It helps answer questions from the company's recorded knowledge instead of relying on guesses or memory.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/nemock/company-brain/query
Any agent
npx skills add nemock/company-brain --skill query
Clone the repo
git clone --depth 1 https://github.com/nemock/company-brain

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for query

README.md
[![agentmods](https://agentmods.dev/badge/skills/nemock/company-brain/query.svg)](https://agentmods.dev/skills/nemock/company-brain/query)
Your own site
<a href="https://agentmods.dev/skills/nemock/company-brain/query"><img src="https://agentmods.dev/badge/skills/nemock/company-brain/query.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,097 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00051 $0.02097
Opus 5 $0.00026 $0.01048
Sonnet 5 $0.00010 $0.00419
Haiku 4.5 $0.00005 $0.00210

Measured 4d ago against content hash 1038a24145db, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

query scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/query/SKILL.md · 140 lines

How it starts

The opening of the file, as written. The whole thing — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.

query

This skill answers questions by reading the typed graph in a company-brain vault. You are the retrieval analyst; the vault is the source of truth.

The pattern follows the Infinite Brain retrieval analyst convention, adapted for a multi-product, multi-stakeholder company graph:

  1. Auto-inject the relevant pillars before reasoning about the user's question.
  2. Select candidate nodes by summary relevance, type, confidence, recency.
  3. Expand the candidate set by walking typed edges.
  4. Answer with node-id citations. Every claim names the node it comes from.
  5. Flag staleness, contradictions, and low confidence explicitly.

You do not invent facts. If the vault does not contain the answer, say so — and offer to capture the gap with the intake skill rather than guessing.

Before any question

Do these first when the skill is invoked:

  1. Confirm the vault path. Default: current working directory. Resolve to absolute. Refuse if the path has no _system/PROFILE.md.
  2. Load the active schema. Run:
    cb describe-profile --path <vault>
    
    The returned JSON tells you the active profile, controlled-document-footer policy, and the full list of active_node_types. The profile decides which node folders even exist.
  3. Load the pillar set. Run:
    cb list-nodes --path <vault> --auto-inject-only
    
    This returns every pillar with auto_inject: true plus its applicable_when string. These are the governing principles of the company. Skim them up front. They will shape your answer even when the user's question is narrow.

Staged retrieval

Stage A — auto-inject relevant pillars

Each pillar carries an applicable_when field listing the topics it governs (e.g. "pricing, business model, pad, disposable, recurring revenue"). Match the user's question against applicable_when strings; load the body of any pillar that matches. These pillars are facts about how this company thinks — they govern the answer even when not explicitly cited by the user.

Read the full file on GitHub · 140 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 140 lines · 51 tokens per session scan A 1038a24145db

Subscribe to this mod's changes

query is a skill published in the GitHub repository nemock/company-brain (5 stars, last pushed 3mo ago), licensed MIT. It adds 51 tokens to every session and 2,097 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

agent-recall

Persistent compounding memory for AI agents. 5 default MCP tools: sessionstart, sessionend, remember, recall, check. Full surface (18 tools) available with --full flag. Two-verb model: inhale (sessionstart) and exhale (sessionend). Correction-first memory with decision trail tracking, watchfor warnings, palace rooms…

Goldentrii/AgentRecall-X · 157 tokens

swarmvault

Use SwarmVault when the user needs a local-first knowledge vault that writes durable markdown, graph, search, dashboard, review, chat-session, context-pack, task-ledger, static AI export, retrieval, and MCP artifacts to disk from books, notes, transcripts, exports, datasets, slide decks, files, URLs, code, and…

swarmclawai/swarmvault · 76 tokens

linker

Discovers missing cross-domain connections between knowledge documents and creates/updates connection wiki articles.

Yrzhe/pagefly · 20 tokens

tashanzhishi

Use when 用户给出 YouTube/B站/播客链接,或一段视频文字稿、字幕、他人文章,要整理并剪藏成 20-knowledge/他山之石 下的「他人观点」笔记。触发词:用他山之石、剪藏到他山之石、整理成他山之石文档、把这个视频/链接存档、归档他人观点。.

anneheartrecord/charles-skill · 98 tokens

extract-memory

Extract writing style, personality traits, and key insights from a collection of documents (Markdown, PDF, TXT, DOCX) and save them as a Claude Code memory file. Use when the user wants to capture their writing DNA, build a personal style guide, or create a reusable memory profile from their existing content.

anneheartrecord/charles-skill · 71 tokens

spool

Search your local Claude Code and Codex CLI session history.

anneheartrecord/charles-skill · 14 tokens