knowledge-card-retrieval

knowledge-card-retrieval is a skill for Claude Code, Codex from sillyDaibo/reasflow-dev. It costs 39 tokens per session (1,667 once invoked), scanned A, original, MIT.

A Chinese-language knowledge-card search procedure for finding mathematical proof techniques and planning methods before starting a proof.

In plain words
What is it for?
Use it before proof tasks to search the built-in cards for suitable proof frameworks, algorithms, mechanisms, and optimization techniques.
Why use it?
It helps select relevant mathematical methods systematically instead of beginning with an unsupported or poorly chosen approach.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is if [ -d ./.agents/skills ]; then.

Good fit Use it before proof tasks to search the built-in cards for suitable proof frameworks, algorithms, mechanisms, and optimization techniques.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/sillyDaibo/reasflow-dev
agentmods
npx agentmods add skills/sillydaibo/reasflow-dev/knowledge-card-retrieval

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 knowledge-card-retrieval

README.md
[![agentmods](https://agentmods.dev/badge/skills/sillydaibo/reasflow-dev/knowledge-card-retrieval.svg)](https://agentmods.dev/skills/sillydaibo/reasflow-dev/knowledge-card-retrieval)
Your own site
<a href="https://agentmods.dev/skills/sillydaibo/reasflow-dev/knowledge-card-retrieval"><img src="https://agentmods.dev/badge/skills/sillydaibo/reasflow-dev/knowledge-card-retrieval.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,667 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.00039 $0.01667
Opus 5 $0.00019 $0.00834
Sonnet 5 $0.00008 $0.00333
Haiku 4.5 $0.00004 $0.00167

Measured 7d ago against content hash 8ad73883d4ac, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

knowledge-card-retrieval 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 7d 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/reasflow/prover/knowledge-card-retrieval/SKILL.md · 141 lines

How it starts

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

Installed Root

Resolve the installed reasflow-dev skills root before running packaged scripts:

REASFLOW_SKILLS_ROOT="${REASFLOW_SKILLS_ROOT:-}"
if [ -z "$REASFLOW_SKILLS_ROOT" ]; then
  if [ -d ./.agents/skills ]; then
    REASFLOW_SKILLS_ROOT="$(pwd)/.agents/skills"
  elif [ -d "$HOME/.agents/skills" ]; then
    REASFLOW_SKILLS_ROOT="$HOME/.agents/skills"
  else
    echo "reasflow shared skills not found in ./.agents/skills or $HOME/.agents/skills" >&2
    exit 1
  fi
fi

REASFLOW_PRIVATE_SKILLS_ROOT="${REASFLOW_PRIVATE_SKILLS_ROOT:-}"
if [ -z "$REASFLOW_PRIVATE_SKILLS_ROOT" ]; then
  if [ -d ./.codex/reasflow-skills ]; then
    REASFLOW_PRIVATE_SKILLS_ROOT="$(pwd)/.codex/reasflow-skills"
  elif [ -d "$HOME/.codex/reasflow-skills" ]; then
    REASFLOW_PRIVATE_SKILLS_ROOT="$HOME/.codex/reasflow-skills"
  else
    echo "reasflow private skills not found in ./.codex/reasflow-skills or $HOME/.codex/reasflow-skills" >&2
    exit 1
  fi
fi

知识卡片检索

概述

你是知识库管理员,负责从领域知识卡片目录中检索最相关的数学技术,以支持证明任务。 你必须使用分层检索策略,确保不遗漏关键技术,从高层框架逐步深入到低层优化技巧。

SKILL_ROOT="$REASFLOW_SKILLS_ROOT/knowledge-card-retrieval"

内置卡片入口:"$SKILL_ROOT/assets/knowledge-cards/catalog.json"

检索命令

python "$SKILL_ROOT/scripts/search-cards.py" \
  --catalog "$SKILL_ROOT/assets/knowledge-cards/catalog.json" \
  --query "<查询词>" \
  --top-k 5

# 按 ID 读取卡片全文:
python "$SKILL_ROOT/scripts/read-card.py" --id <CARD_ID>
# 或直接读取路径:
cat "<search 输出中显示的绝对路径>"

5层检索协议(The 5-Layer Protocol)

第1层:核心机制搜索("骨架")

  • 目标:找到主要证明框架和算法特有技术
  • 行动:提取核心算法名称和关键机制(如 "FedAvg"、"Momentum"、"Subspace")
  • 查询模板"<算法名> convergence <机制1> <机制2>"
  • 示例"FedAvg convergence random subspace momentum"

第2层:结构性质搜索("特征")

  • 目标:识别结构属性(分布式、并行、动量)和性能保证(线性加速)
  • 行动
    • 分布式/并行:搜索 "Distributed variance reduction", "Linear speedup"
    • 动量/加速:搜索 "Momentum accumulation", "Acceleration technique"
    • 压缩/量化:搜索 "Error feedback", "Compression variance"
  • 查询模板"<属性/结构> <关键词> technique"

Read the full file on GitHub · 141 lines

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 7d ago First seen · 141 lines · 39 tokens per session scan A 8ad73883d4ac

Subscribe to this mod's changes

knowledge-card-retrieval is a skill published in the GitHub repository sillyDaibo/reasflow-dev (2 stars, last pushed 11d ago), licensed MIT. It adds 39 tokens to every session and 1,667 once invoked, about $0.0002 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

html-ppt-zhangzara-pin-and-paper

A field-biology capstone on urban pollinator decline — the survey design, the data, the contribution, and the caveats. Built as a decision-grade coursework defense deck for faculty reviewers.

nexu-io/open-design · 51 tokens

proof-writer

A tool for writing or checking rigorous mathematical proofs for claims such as theorems, lemmas, propositions, and corollaries.

wanshuiyin/Auto-claude-code-research-in-sleep · 73 tokens

tooluniverse-organic-chemistry

Organic chemistry reasoning guide for reaction product prediction, mechanism analysis (electrophilic/nucleophilic substitution, addition, elimination, pericyclic, radical), and spectroscopy interpretation (1H/13C NMR, IR, MS). Reasons from first principles (electron flow, kinetic vs thermodynamic) rather than…

mims-harvard/ToolUniverse · 86 tokens

scaffold-exercises

Scaffold a graded problem set with sections, problems, worked solutions, and short "why this matters" explainers across analytical, empirical, and coding types. Use when user says "make a problem set on X", "scaffold exercises for this lecture", "create practice problems", "generate homework with a solution key"…

pedrohcgs/claude-code-my-workflow · 101 tokens

edu-chem-reaction

A guide for turning a chemical reaction into a self-contained interactive 3D web demonstration. It shows molecules changing while also displaying the balanced equation, explanations, atom counts, and optionally an energy curve.

wy51ai/edulab · 495 tokens

edu-solid-geometry

A guide for turning a three-dimensional geometry problem into a self-contained interactive web lesson. It combines step-by-step mathematical working with a rotatable 3D model made with Three.js.

wy51ai/edulab · 283 tokens