knowledge-blade-code

knowledge-blade-code is a skill for Claude Code, Codex from echoVic/blade-code. It costs 104 tokens per session (4,314 once invoked), scanned A, original, MIT.

An architectural guide to Blade Code, a TypeScript monorepo containing a coding agent, its tools, interfaces, services, and extension points.

In plain words
What is it for?
Use it to understand the project structure, locate shared implementations, plan cross-area changes, or choose the right module for a feature.
Why use it?
It helps developers find where shared behavior belongs across the command line, web interface, VS Code extension, and agent runtime.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions AGENTS.md.

Good fit Use it to understand the project structure, locate shared implementations, plan cross-area changes, or choose the right module for a feature.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/echovic/blade-code/knowledges
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 echoVic/blade-code --skill knowledges
Clone the repo
git clone --depth 1 https://github.com/echoVic/blade-code

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-blade-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/echovic/blade-code/knowledges/github.svg)](https://agentmods.dev/skills/echovic/blade-code/knowledges)
Your own site
<a href="https://agentmods.dev/skills/echovic/blade-code/knowledges"><img src="https://agentmods.dev/badge/skills/echovic/blade-code/knowledges/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 knowledge-blade-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/echovic/blade-code/knowledges"><img src="https://agentmods.dev/badge/skills/echovic/blade-code/knowledges.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,314 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00104 $0.04314
Opus 5.5 $0.00042 $0.01726
Sonnet 5.5 $0.00021 $0.00863
Haiku 4.5 $0.00010 $0.00431

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

Security

Grade A, and why

knowledge-blade-code 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.

.trae/knowledges/SKILL.md · 136 lines

How it starts

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

Module Structure

Blade Code 是 TypeScript monorepo:packages/cli 同时承载无状态 Agent 核心、Session runtime、工具平台、Provider 与 CLI/Server/ACP 表面;packages/cli/web 是 React Web 投影;packages/vscode 提供编辑器桥接。权威会话状态来自持久事件与资源快照,而不是任一 UI Store。

Directory Layout

  • packages/cli/src/agent/ — Agent 决策循环、Session runtime、子代理与团队编排
  • packages/cli/src/context/ — transcript、事件日志、上下文压缩与恢复
  • packages/cli/src/tools/ — 工具契约、注册表、执行管线与内置工具
  • packages/cli/src/services/ — Provider、Session 与共享服务实现
  • packages/cli/src/mcp/、packages/cli/src/plugins/、packages/cli/src/skills/、packages/cli/src/hooks/、packages/cli/src/lsp/ — 扩展生态
  • packages/cli/src/ui/、packages/cli/src/server/、packages/cli/src/acp/ — TUI、Web 服务与 ACP 宿主表面
  • packages/cli/web/ — React + Vite Web 客户端
  • packages/vscode/ — VS Code WebSocket 桥接扩展
  • packages/cli/tests/、packages/cli/scripts/、.github/workflows/ — 测试、资格认证和发布链路

Key Entry Points

  • packages/cli/src/blade.tsx — CLI/TUI、Headless、ACP、Web/Serve 的统一进程入口
  • packages/cli/src/agent/Agent.ts — 无状态决策器和连续 Goal 推进入口
  • packages/cli/src/agent/runtime/SessionRuntime.ts — Session 资源与生命周期聚合边界
  • packages/cli/src/context/events/SessionEventLog.ts — committed event 的持久化与跨表面扇出入口
  • packages/cli/src/server/server.ts — Hono 服务、调度器和关闭流程装配入口
  • packages/cli/web/src/main.tsx — Web 客户端入口

Gotchas

  • 不要把 TUI/Web Zustand Store 当作权威状态;恢复、重连和跨表面一致性必须从 committed Session 事件或持久 metadata 投影 (packages/cli/src/context/events/SessionEventLog.ts, packages/cli/src/store/, packages/cli/web/src/store/)
  • Agent 的无状态不等于 Session 无状态;模型选择、工具目录、MCP/LSP/Browser、durable inbox 和执行租约都由 SessionRuntime 持有,绕开它会破坏恢复与清理 (packages/cli/src/agent/Agent.ts, packages/cli/src/agent/runtime/SessionRuntime.ts)
  • ToolKind.ReadOnly 是权限分类而非幂等或并发证明;并发、流式预启动和瞬态重放分别由独立 capability 控制 (packages/cli/src/tools/types/ToolTypes.ts, packages/cli/src/tools/core/createTool.ts)
  • Web、ACP 与 Headless 不是三套 Agent runtime;表面层应适配同一 SessionRuntime/loop event 契约,不能在客户端重建业务状态机 (packages/cli/src/server/routes/session.ts, packages/cli/src/acp/Session.ts, packages/cli/src/commands/headless.ts)
  • docs 根目录中文与 docs/en 英文是同一用户契约,而 changelog 页面由工作流生成;不要直接编辑生成的 docs changelog (AGENTS.md, .github/workflows/docs.yml)

Read the full file on GitHub · 136 lines

Files

What ships with it

48 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. 1mo ago First seen · 136 lines · 104 tokens per session scan A ddc709412126

Subscribe to this mod's changes

knowledge-blade-code is a skill published in the GitHub repository echoVic/blade-code (181 stars, last pushed 3d ago), licensed MIT. It adds 104 tokens to every session and 4,314 once invoked, about $0.0004 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-09-03.

Related

Other skills, from other repositories

clinical-reports

Write comprehensive clinical reports including case reports (CARE guidelines), diagnostic reports (radiology/pathology/lab), clinical trial reports (ICH-E3, SAE, CSR), and patient documentation (SOAP, H&P, discharge summaries). Full support with templates, regulatory compliance (HIPAA, FDA, ICH-GCP), and validation…

synthetic-sciences/openscience · 71 tokens

clinical-decision-support

Generate professional clinical decision support (CDS) documents for pharmaceutical and clinical research settings, including patient cohort analyses (biomarker-stratified with outcomes) and treatment recommendation reports (evidence-based guidelines with decision algorithms). Supports GRADE evidence grading…

synthetic-sciences/openscience · 97 tokens

gget

Fast CLI/Python queries to 20+ bioinformatics databases. Use for quick lookups: gene info, BLAST searches, AlphaFold structures, enrichment analysis. Best for interactive exploration, simple queries. For batch processing or advanced BLAST use biopython; for multi-database Python workflows use bioservices.

synthetic-sciences/openscience · 66 tokens

immunology-assays

Computational analysis of immunology experimental data. ATAC-seq differential accessibility, immune cell tracking from microscopy, ELISA data processing with 4-parameter logistic fitting, immunohistochemistry quantification, antibody titer analysis, and cell cycle phase duration estimation. For flow cytometry use…

synthetic-sciences/openscience · 79 tokens

molecular-cloning

Molecular cloning simulation and design. PCR amplicon prediction, restriction enzyme digestion, Golden Gate and Gibson assembly simulation, primer design, CRISPR sgRNA design, and plasmid annotation. For protein-level sequence analysis use biopython or esm; for database lookups use gene-database or ensembl-database.

synthetic-sciences/openscience · 70 tokens

geo-database

Access NCBI GEO for gene expression/genomics data. Search/download microarray and RNA-seq datasets (GSE, GSM, GPL), retrieve SOFT/Matrix files, for transcriptomics and expression analysis.

synthetic-sciences/openscience · 47 tokens