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.
npx skills add echoVic/blade-code --skill workspace-resource-snapshots-and-project-instructionsgit clone --depth 1 https://github.com/echoVic/blade-codeWrote 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.
[](https://agentmods.dev/skills/echovic/blade-code/workspace-resource-snapshots-and-project-instructions)<a href="https://agentmods.dev/skills/echovic/blade-code/workspace-resource-snapshots-and-project-instructions"><img src="https://agentmods.dev/badge/skills/echovic/blade-code/workspace-resource-snapshots-and-project-instructions/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.
<a href="https://agentmods.dev/skills/echovic/blade-code/workspace-resource-snapshots-and-project-instructions"><img src="https://agentmods.dev/badge/skills/echovic/blade-code/workspace-resource-snapshots-and-project-instructions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00141 | $0.02358 |
| Opus 5.5 | $0.00056 | $0.00943 |
| Sonnet 5.5 | $0.00028 | $0.00472 |
| Haiku 4.5 | $0.00014 | $0.00236 |
Grade A, and why
knowledge-workspace-resource-snapshots-and-project-instructions 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.
This is a copy
86% identical to knowledge-agent-execution-and-orchestration — 129 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Module Structure
该组件把进程内可刷新 workspace registry 转换为 Session 私有快照,并以 source project 为资源身份、以 execution workspace 为文件操作位置。
Directory Layout
packages/cli/src/agent/resources/WorkspaceAgentResources.ts— workspace registry 聚合、容量、刷新和 Session 快照packages/cli/src/agent/resources/WorkspaceModelResources.ts— 模型配置与PiModelCatalog的 Session 隔离packages/cli/src/agent/resources/WorkspaceCommunicationStyles.ts— 用户、项目和插件输出风格目录packages/cli/src/agent/resources/WorkspaceProjectRules.ts— 项目规则发现、优先级、路径匹配和 provenancepackages/cli/src/prompts/projectInstructions.ts— 无ProjectRuleCatalog时的兼容指令加载器packages/cli/src/agent/runtime/SessionRuntime.ts— 快照创建、规则水合和 source/execution 路径映射packages/cli/src/agent/loop/executeLoopGenerator.ts— 条件规则注入与首次写入屏障
Key Entry Points
resolveWorkspaceAgentResources()— 获取或初始化指定 workspace 的可刷新资源集合withWorkspaceAgentResources()— 在 active-user pin 内执行异步管理操作snapshotWorkspaceAgentResources()— 深复制 registry、Hook、风格和规则到 SessionresolveWorkspaceModelResources()— 重建目标项目的模型配置和私有 catalogProjectRuleCatalog.staticRules()/contextualRules()/hydrate()— 静态注入、路径触发和恢复校验
API Surface
WorkspaceAgentResources
resolveWorkspaceAgentResources(workspaceRoot, options)— 适合短时读取;返回后通过 deferred release 解除 active pinwithWorkspaceAgentResources(workspaceRoot, operation, options)— 在整个异步 operation 期间保持资源不可驱逐snapshotWorkspaceAgentResources(resources)— 生成 Session-owned registry、Hook、风格和规则快照resetWorkspaceAgentResources()— 递增 generation、清空缓存并释放所有 registry 单例getWorkspaceAgentResourceCacheStats()— 暴露 resident、in-flight 和 active-user 计数
WorkspaceModelResources
resolveWorkspaceModelResources(projectRoot, startupConfig)— 返回深复制配置与 Session 私有 catalogsnapshotWorkspaceModelResources(resources)— 再复制配置并以原 CredentialStore 创建新 catalogcloneWorkspaceModelConfig(config)— 深复制普通对象和数组,保留函数类运行时值
ProjectRuleCatalog
list()— 仅返回规则元数据和 digeststaticRules(sourceWorkspaceRoot, maxBytes?)— 解析 Session 初始作用域内的无条件规则contextualRules(sourceWorkspaceRoot, targetPaths, loadedIds, maxBytes?)— 按工具目标路径选择尚未加载的规则hydrate(references)— 用持久化引用重建正文并验证 ID、路径、来源和 digestsnapshot()— 固化定义与 pattern 数组,隔离后续磁盘和 registry 变化
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.
- 1mo ago First seen · 105 lines · 141 tokens per session scan A 1cc39c053bef
knowledge-workspace-resource-snapshots-and-project-instructions is a skill published in the GitHub repository echoVic/blade-code (181 stars, last pushed 3d ago), licensed MIT. It adds 141 tokens to every session and 2,358 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 86% identical to knowledge-agent-execution-and-orchestration, differing in 129 lines, and is treated as a copy.
Other skills, from other repositories
linearis
Manage Linear.app work from the command line with the linearis CLI (bins linearis / linear), which outputs JSON: issues/tickets, projects, cycles (sprints), milestones, initiatives (roadmap), documents, labels, teams, users, and issue discussions/comments. Use when the user mentions Linear, a ticket identifier like…
autogpt-agents
Autonomous AI agent platform for building and deploying continuous agents. Use when creating visual workflow agents, deploying persistent autonomous agents, or building complex multi-step AI automation systems.
linear
Linear: manage issues, projects, teams via GraphQL + curl.
github-issues
Create, triage, label, assign GitHub issues via gh or REST.
stale-sweep
Sweep the googleapis/mcp-toolbox repo for issues and PRs with no real activity in N days (default 60), sort each by whose silence it is (the author's, ours, or nobody's), and draft the nudge or close comment. Use whenever a maintainer asks for a stale sweep, backlog cleanup, or an SLO check, e.g. "stale sweep", "find…
linear-tickets
Create or update high-quality Linear tickets while preserving the originating report, diagnostic links, attachments, and reporter/requester attribution. Read this whenever someone asks to create, recreate, or update a Linear issue.