knowledge-workspace-resource-snapshots-and-project-instructions

knowledge-workspace-resource-snapshots-and-project-instructions is a skill for Claude Code, Codex from echoVic/blade-code. It costs 141 tokens per session (2,358 once invoked), scanned A, a copy of knowledge-agent-execution-and-orchestration, MIT.

A workspace resource layer that gives each agent session its own fixed view of models, communication styles, hooks, and project instructions. It keeps the project that owns a resource separate from the working directory where files are edited.

In plain words
What is it for?
Use it when creating or restoring sessions, refreshing plugins, loading AGENTS, CLAUDE, or BLADE instructions, or checking where project rules came from.
Why use it?
It prevents sessions and projects from accidentally sharing changing settings or instructions. It also preserves which project supplied each rule when a session is restored.

Skill for Claude CodeCodex

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

Good fit Use it when creating or restoring sessions, refreshing plugins, loading AGENTS, CLAUDE, or BLADE instructions, or checking where project rules came from.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/echovic/blade-code/workspace-resource-snapshots-and-project-instructions
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 workspace-resource-snapshots-and-project-instructions
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-workspace-resource-snapshots-and-project-instructions

README.md
[![agentmods](https://agentmods.dev/badge/skills/echovic/blade-code/workspace-resource-snapshots-and-project-instructions/github.svg)](https://agentmods.dev/skills/echovic/blade-code/workspace-resource-snapshots-and-project-instructions)
Your own site
<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.

agentmods 80×15 button for knowledge-workspace-resource-snapshots-and-project-instructions

Your own site · 80×15
<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>
Per session 141 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,358 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 86% copy Near-identical to another mod 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.00141 $0.02358
Opus 5.5 $0.00056 $0.00943
Sonnet 5.5 $0.00028 $0.00472
Haiku 4.5 $0.00014 $0.00236

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

Security

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.

Origin

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.

.trae/knowledges/workspace-policy-and-shared-foundations/workspace-resource-snapshots-and-project-instructions/SKILL.md · 105 lines

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 — 项目规则发现、优先级、路径匹配和 provenance
  • packages/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、风格和规则到 Session
  • resolveWorkspaceModelResources() — 重建目标项目的模型配置和私有 catalog
  • ProjectRuleCatalog.staticRules() / contextualRules() / hydrate() — 静态注入、路径触发和恢复校验

API Surface

WorkspaceAgentResources

  • resolveWorkspaceAgentResources(workspaceRoot, options) — 适合短时读取;返回后通过 deferred release 解除 active pin
  • withWorkspaceAgentResources(workspaceRoot, operation, options) — 在整个异步 operation 期间保持资源不可驱逐
  • snapshotWorkspaceAgentResources(resources) — 生成 Session-owned registry、Hook、风格和规则快照
  • resetWorkspaceAgentResources() — 递增 generation、清空缓存并释放所有 registry 单例
  • getWorkspaceAgentResourceCacheStats() — 暴露 resident、in-flight 和 active-user 计数

WorkspaceModelResources

  • resolveWorkspaceModelResources(projectRoot, startupConfig) — 返回深复制配置与 Session 私有 catalog
  • snapshotWorkspaceModelResources(resources) — 再复制配置并以原 CredentialStore 创建新 catalog
  • cloneWorkspaceModelConfig(config) — 深复制普通对象和数组,保留函数类运行时值

ProjectRuleCatalog

  • list() — 仅返回规则元数据和 digest
  • staticRules(sourceWorkspaceRoot, maxBytes?) — 解析 Session 初始作用域内的无条件规则
  • contextualRules(sourceWorkspaceRoot, targetPaths, loadedIds, maxBytes?) — 按工具目标路径选择尚未加载的规则
  • hydrate(references) — 用持久化引用重建正文并验证 ID、路径、来源和 digest
  • snapshot() — 固化定义与 pattern 数组,隔离后续磁盘和 registry 变化

Read the full file on GitHub · 105 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 · 105 lines · 141 tokens per session scan A 1cc39c053bef

Subscribe to this mod's changes

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.

Related

Other skills, from other repositories