tokenknows-knowledge

tokenknows-knowledge is a skill for Claude Code, Codex from johnnywuj81/tokenknows. It costs 84 tokens per session (521 once invoked), scanned A, original, MIT.

A local knowledge search tool for finding project decisions, documents, and relationships between people, concepts, events, and other project items across previous sessions.

In plain words
What is it for?
Use it to look up architecture decisions, search for a project concept or person, list stored knowledge documents, and inspect the supporting chapters and evidence.
Why use it?
It reduces the need to rely on memory when checking why a decision was made or who changed a module. It returns information from the project’s stored knowledge rather than guessing.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to look up architecture decisions, search for a project concept or person, list stored knowledge documents, and inspect the supporting chapters and evidence.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/johnnywuj81/tokenknows/tokenknows-knowledge
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.

Any agent
npx skills add johnnywuj81/tokenknows --skill tokenknows-knowledge
Clone the repo
git clone --depth 1 https://github.com/johnnywuj81/tokenknows

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 tokenknows-knowledge

README.md
[![agentmods](https://agentmods.dev/badge/skills/johnnywuj81/tokenknows/tokenknows-knowledge/github.svg)](https://agentmods.dev/skills/johnnywuj81/tokenknows/tokenknows-knowledge)
Your own site
<a href="https://agentmods.dev/skills/johnnywuj81/tokenknows/tokenknows-knowledge"><img src="https://agentmods.dev/badge/skills/johnnywuj81/tokenknows/tokenknows-knowledge/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tokenknows-knowledge

Your own site · 80×15
<a href="https://agentmods.dev/skills/johnnywuj81/tokenknows/tokenknows-knowledge"><img src="https://agentmods.dev/badge/skills/johnnywuj81/tokenknows/tokenknows-knowledge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 521 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00084 $0.00521
Opus 5.5 $0.00034 $0.00208
Sonnet 5.5 $0.00017 $0.00104
Haiku 4.5 $0.00008 $0.00052

Measured 1mo ago against content hash 07a36363ade4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tokenknows-knowledge 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 1mo 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.

codex-plugin/plugins/tokenknows/skills/tokenknows-knowledge/SKILL.md · 36 lines

What it actually says

TokenKnows 知识检索

查询跨会话沉淀的项目知识资产。工具来自 tokenknows MCP server。

何时用

  • 用户想回溯历史决策:"我们之前为什么选 ClickHouse"、"有没有相关 ADR"
  • 用户想查实体:"X 模块谁改过"、"搜一下 Y 这个概念"
  • 用户想看知识库里有什么:"列一下已生成的文档"

关键步骤

  1. 列资产 (use mcp__tokenknows__list_assets): 按 type / 时间窗筛选项目里已蒸馏的文档 (周报 / ADR / KG / ...)。
  2. 读详情 (use mcp__tokenknows__get_asset + mcp__tokenknows__get_asset_chapters): 拿到某份文档的章节正文 + 证据链。
  3. 跨文档实体搜索 (use mcp__tokenknows__search_entity): 传 query (+ 可选 entity_type: person / concept / artifact / event), 在知识图谱里找实体 + 它出现在哪些文档。

好例子 / 坏例子

  • 坏:用户问"我们之前怎么决定数据库的"→ 凭印象答。应 search_entity("数据库选型") 或 list_assets(type="adr") 找到真实 ADR 再答,带出处。
  • 好:search_entity(query="ClickHouse") → 返回相关实体 + 所在 ADR/KG → 给用户带链接的答案。

注意

  • 只读操作,不改知识库。
  • 依赖本地后端 (http://127.0.0.1:8001) 在跑。后端不通 / 401 / 404 时,工具错误信息已含修复指引,原样转述给用户即可。
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. 1mo ago First seen · 36 lines · 84 tokens per session scan A 07a36363ade4

Subscribe to this mod's changes

tokenknows-knowledge is a skill published in the GitHub repository johnnywuj81/tokenknows (4 stars, last pushed 1mo ago), licensed MIT. It adds 84 tokens to every session and 521 once invoked, about $0.0003 per session on Opus 5.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

ex-example_xiaoming

An example relationship-memory and persona package for an AI agent, written in Chinese. It contains placeholder details and explicitly does not describe a real person.

M00NZ1/Persona-Distill-skill · 10 tokens

create-ex

A skill for turning information about a former partner into an AI skill, using imported chat histories, photos, and social-media posts to create relationship memories and a persona.

M00NZ1/Persona-Distill-skill · 69 tokens

kiro-steering-custom

Create custom steering documents for specialized project contexts.

gotalab/cc-sdd · 14 tokens

memory-import

Bulk-import an external knowledge base into Prismer memory via the three-layer import pipeline (07 §3.1). Use when the user asks to import/migrate documents, a knowledge base, or notes into workspace memory. Layer 1 lands raw documents (zero LLM, instantly searchable); Layer 2 is YOUR distillation work — you read the…

Prismer-AI/PrismerCloud · 111 tokens

identity-snapshot

Generate a living profile of the user's working patterns, decision tendencies and quality preferences from their Dex data. Use when the user says 'what are my patterns', 'how do I work', or during week-review. Also use proactively when the model (older than 7 days) is stale. Not for planning a week; use week-plan.

davekilleen/Dex · 74 tokens

init

Install or update OwnMem in the current repository. Use when the user asks to set up OwnMem, add local project memory for coding agents, or refresh an existing OwnMem installation after a version bump.

grpcer/ownmem · 43 tokens