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

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/johnnywuj81/tokenknows/tokenknows-knowledge
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.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.svg" alt="Measured on agentmods" 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. 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.00084 $0.00521
Opus 5 $0.00042 $0.00260
Sonnet 5 $0.00017 $0.00104
Haiku 4.5 $0.00008 $0.00052

Measured 4d ago against content hash 07a36363ade4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

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. 4d 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 yesterday), licensed MIT. It adds 84 tokens to every session and 521 once invoked, about $0.0004 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

agentline

Make phone calls, view received SMS, provision numbers, manage agents, and track billing through the AgentLine telephony API (REST or MCP). Use when the user asks to call someone, check transcripts, view text messages, manage phone agents, buy numbers, or check account balance. For MCP-native workflows, the server at…

AgentLineHQ/AgentLine · 85 tokens

excalidraw-ai

Create professional Excalidraw diagrams by generating JSON directly. This skill provides the Excalidraw JSON schema reference and professional icon libraries for AI agents to autonomously create diagrams without templates.

jiatastic/open-python-skills · 44 tokens

error-handling

Python error handling patterns for FastAPI, Pydantic, and asyncio. Follows "Let it crash" philosophy - raise exceptions, catch at boundaries. Covers HTTPException, global exception handlers, validation errors, background task failures. Use when: (1) Designing API error responses, (2) Handling RequestValidationError…

jiatastic/open-python-skills · 95 tokens

logfire

Structured observability with Pydantic Logfire and OpenTelemetry. Use when: (1) Adding traces/logs to Python APIs, (2) Instrumenting FastAPI, HTTPX, SQLAlchemy, or LLMs, (3) Setting up service metadata, (4) Configuring sampling or scrubbing sensitive data, (5) Testing observability code.

jiatastic/open-python-skills · 77 tokens

linting

Python linting with Ruff - an extremely fast linter written in Rust. Use when: (1) Standardizing code quality, (2) Fixing style warnings, (3) Enforcing rules in CI, (4) Replacing flake8/isort/pyupgrade/autoflake, (5) Configuring lint rules and suppressions.

jiatastic/open-python-skills · 74 tokens

commit-message

Analyze git changes and generate conventional commit messages. Supports batch commits for multiple unrelated changes. Use when: (1) Creating git commits, (2) Reviewing staged changes, (3) Splitting large changesets into logical commits.

jiatastic/open-python-skills · 49 tokens