knowledge-extension-ecosystem-skills-and-custom-commands

knowledge-extension-ecosystem-skills-and-custom-commands is a skill for Claude Code, Codex from echoVic/blade-code. It costs 142 tokens per session (2,811 once invoked), scanned A, original, MIT.

A codebase guide to how skills and custom slash commands are discovered, loaded, parsed, and made available during an agent session.

In plain words
What is it for?
Use it when adding skills or commands, changing discovery priority, debugging command or skill calls, or updating prompt metadata and integrations.
Why use it?
It helps developers find the right registry, loader, command parser, or session integration point when changing or debugging these extensions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions subagents; names the SlashCommand tool.

Good fit Use it when adding skills or commands, changing discovery priority, debugging command or skill calls, or updating prompt metadata and integrations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/echovic/blade-code/skills-and-custom-commands
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 skills-and-custom-commands
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-extension-ecosystem-skills-and-custom-commands

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/echovic/blade-code/skills-and-custom-commands"><img src="https://agentmods.dev/badge/skills/echovic/blade-code/skills-and-custom-commands.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 142 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,811 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00142 $0.02811
Opus 5.5 $0.00057 $0.01124
Sonnet 5.5 $0.00028 $0.00562
Haiku 4.5 $0.00014 $0.00281

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

Security

Grade A, and why

knowledge-extension-ecosystem-skills-and-custom-commands scanned grade A with 1 finding 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- 自定义命令的 `!` Shell 嵌入由 `execSync` 在正文送给模型前直接执行,不经过 ToolExecutor 的常规工具权限、Hook 和调度;其安全前提是命令来源本身已受信(`packages/cli/src/slash-commands/custom/CustomCommandExecutor.ts`)
.trae/knowledges/extension-ecosystem/skills-and-custom-commands/SKILL.md · 120 lines

How it starts

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

Module Structure

Skills 与自定义命令共享“Markdown + frontmatter”的扩展形态,但加载与执行模型不同: Skills 启动时只暴露元数据并按需读取正文,命令发现时即读取正文并在调用时展开动态内容。

Directory Layout

  • packages/cli/src/skills/ — Skill 解析、发现、安装、元数据注入与注册表
  • packages/cli/src/slash-commands/custom/ — 自定义命令发现、解析、执行与注册表
  • packages/cli/src/tools/builtin/system/skill.ts — 模型调用 Skill 的工具适配
  • packages/cli/src/tools/builtin/system/slashCommand.ts — 模型调用自定义命令的工具适配
  • .blade/skills/ — 当前仓库的项目级 Skills
  • .blade/commands/ — 当前仓库的项目级自定义命令

Key Entry Points

  • SkillRegistry.initialize() in packages/cli/src/skills/SkillRegistry.ts — 按来源优先级发现 Skill 元数据
  • SkillRegistry.loadContent() in packages/cli/src/skills/SkillRegistry.ts — 调用时加载完整 Skill 正文
  • CustomCommandRegistry.initialize() in packages/cli/src/slash-commands/custom/CustomCommandRegistry.ts — 建立 Workspace 命令视图
  • CustomCommandRegistry.executeCommand() in packages/cli/src/slash-commands/custom/CustomCommandRegistry.ts — 展开命令正文
  • snapshotWorkspaceAgentResources() in packages/cli/src/agent/resources/WorkspaceAgentResources.ts — 将两类注册表冻结到 Session

API Surface

SkillRegistry

  • initialize() — 安装默认 Skill fallback、扫描来源并返回发现错误
  • loadContent(name) — 对文件系统 Skill 延迟重读 SKILL.md,内置 Skill 走内存内容
  • getModelInvocableSkills() — 排除 disable-model-invocation
  • getUserInvocableSkills() — 仅返回 user-invocable: true
  • generateAvailableSkillsList() — 生成稳定排序、描述有界的 Prompt 元数据
  • snapshot() — 深拷贝元数据和插件 Skill,形成 Session 私有视图

CustomCommandRegistry

  • initialize(workspaceRoot) — 发现命令并按 Workspace Trust 过滤项目来源
  • executeCommand(name, context) — 执行参数、Shell 和文件引用展开
  • executePluginCommand(name, context) — 将 namespaced plugin command 适配为普通命令执行
  • generateCommandListDescription(charBudget) — 为 SlashCommand 工具生成有预算的目录
  • snapshot() — 复制命令、插件命令和最近发现结果

Loaders

  • loadSkillMetadata() / loadSkillContent() — 分离 Skill 元数据与正文读取(packages/cli/src/skills/SkillLoader.ts)
  • CustomCommandLoader.discover() — 递归读取四个命令来源(packages/cli/src/slash-commands/custom/CustomCommandLoader.ts)

Read the full file on GitHub · 120 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. 1mo ago First seen · 120 lines · 142 tokens per session scan A 81587e82d5bc

Subscribe to this mod's changes

knowledge-extension-ecosystem-skills-and-custom-commands is a skill published in the GitHub repository echoVic/blade-code (181 stars, last pushed 3d ago), licensed MIT. It adds 142 tokens to every session and 2,811 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). 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