Agent skill

Knowledge Workspace Policy And Shared Foundations

by echoVic in echoVic/blade-code

覆盖 Blade 跨 Agent、工具、扩展和交互表面的配置、Workspace Trust、Session 资源快照、共享 TypeBox 合约、容量准入与关闭策略。

MITAuto-check passedAgent Workflows

Install Knowledge Workspace Policy And Shared Foundations

skills CLI
$ npx skills add echoVic/blade-code --skill knowledge-workspace-policy-and-shared-foundations -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install echoVic/blade-code knowledge-workspace-policy-and-shared-foundations --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/echoVic/blade-code.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.trae/knowledges/workspace-policy-and-shared-foundations .claude/skills/knowledge-workspace-policy-and-shared-foundations && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
knowledge-workspace-policy-and-shared-foundations
GitHub stars
181
Token cost
~1.7k tokens
SKILL.md length
390 words
Files
1
Skills in repo
38
Repo updated
First seen
Licence
MIT

At a glance

覆盖 Blade 跨 Agent、工具、扩展和交互表面的配置、Workspace Trust、Session 资源快照、共享 TypeBox 合约、容量准入与关闭策略。

  • Tasks that involve Session handoff
  • SKILL.md covers Module Structure, Branching Table, Affected Scope and Gotchas, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Knowledge Workspace Policy And Shared Foundations is an agent skill from echoVic/blade-code. 覆盖 Blade 跨 Agent、工具、扩展和交互表面的配置、Workspace Trust、Session 资源快照、共享 TypeBox 合约、容量准入与关闭策略。 使用时机:修改全局策略、排查多 workspace 串扰、增加共享配置或 API 字段、处理资源耗尽、背压与进程回收。 不包含:具体工具实现见 tool-and-automation-platform,Provider 重试与熔断见 model-and-provider-runtime,Session 事件持久化见 session-state-and-context。 关键词:ConfigManager, WorkspaceTrustService, SessionAgentResources, RuntimeSchema, admission, egress, shutdown, workspace isolation。

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering Session handoff. The repository describes itself as: AI-powered CLI coding agent with 20+ built-in tools, MCP support, and multi-model providers. The licence is MIT.

When your agent uses it

  • Tasks that involve Session handoff

Example prompts

  • “/knowledge-workspace-policy-and-shared-foundations”

What it can do on your machine

Read from SKILL.md and the folder at commit 30f8684. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Knowledge Workspace Policy And Shared Foundations loads about 1.7k tokens when it runs. Until then it costs about 113 tokens; SKILL.md has 390 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~113
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from echoVic/blade-code at commit 30f8684, republished under its MIT licence (© echoVic). 390 words, ~1,672 tokens.

Download SKILL.mdSave it as .claude/skills/knowledge-workspace-policy-and-shared-foundations/SKILL.md (or your agent's skills folder).
name
knowledge-workspace-policy-and-shared-foundations
description
覆盖 Blade 跨 Agent、工具、扩展和交互表面的配置、Workspace Trust、Session 资源快照、共享 TypeBox 合约、容量准入与关闭策略。 使用时机:修改全局策略、排查多 workspace 串扰、增加共享配置或 API 字段、处理资源耗尽、背压与进程回收。 不包含:具体工具实现见 tool-and-automation-platform,Provider 重试与熔断见 model-and-provider-runtime,Session 事件持久化见 session-state-and-context。 关键词:ConfigManager, WorkspaceTrustService, SessionAgentResources, RuntimeSchema, admission, egress, shutdown, workspace isolation。

Module Structure

该域集中描述会跨越 CLI、Web、ACP、Agent Runtime、工具和扩展系统的基础策略;其共同约束是以 source project 建立身份,在进入 Session 前完成信任过滤和配置解析,再把可变进程资源冻结为 Session 私有视图。

Directory Layout
  • packages/cli/src/config/ — 配置加载、归一化、字段持久化路由和权限规则
  • packages/cli/src/security/ — canonical workspace identity 与 Folder Trust 决策
  • packages/cli/src/agent/resources/ — workspace registry、模型资源和 Session 快照
  • packages/cli/src/api/ — Server/Web 共用的请求、响应和事件合约
  • packages/cli/src/schema/ — TypeBox runtime 解析与错误归一化
  • packages/cli/src/tools/execution/ — 权限、批内 gate 和进程级工具准入
  • packages/cli/src/utils/BoundedSerialEgress.ts — 多表面共用的有界串行输出
  • packages/cli/src/services/GracefulShutdown.ts — 进程级关闭编排
Decision Entry
  • ConfigManager.initialize() in packages/cli/src/config/ConfigManager.ts — 启动配置、信任过滤和显式运行时覆盖入口
  • WorkspaceTrustService.getStatus() in packages/cli/src/security/WorkspaceTrustService.ts — 项目资源是否可见的身份决策入口
  • SessionRuntime.create() in packages/cli/src/agent/runtime/SessionRuntime.ts — 将 source project 配置与资源冻结到 Session
  • Runtime() in packages/cli/src/schema/index.ts — 共享 schema 的运行时解析入口
  • ConcurrencyScheduler.schedule() in packages/cli/src/tools/execution/ConcurrencyScheduler.ts — 工具进程级公平准入入口
  • BoundedSerialEgress.offer() in packages/cli/src/utils/BoundedSerialEgress.ts — Web、ACP 与 Headless 输出背压入口

Branching Table

决策维度主路径受限或替代路径
配置身份启动 workspace 可复用 Store 投影其他 workspace 必须从用户层和目标项目层重建,不能继承启动项目私有层
项目来源trusted 项目可加载配置、插件、规则和可执行资源untrusted 或 trust store 错误时忽略可放宽执行面的项目来源
资源时点workspace registry 可刷新并参与后续 Session 创建活动 Session 使用深复制快照,不接受 registry 热更新
边界数据schema 解析成功后应用默认值并清理未知字段输入验证失败映射为 4xx,输出投影失败则阻止泄漏内部字段
容量状态有空位时直接取得 permit 或 lease等待时受数量、字节和超时约束;满载时返回 typed capacity failure
输出状态单写者按接纳顺序排空并支持 high-water-mark flushoverflow、写超时或 committed seq 回退会关闭对应输出通道
生命周期owner 活跃时持有 Session、Browser、进程和排队项cancel/dispose/shutdown 逐层撤销等待者并等待实际资源回收

Affected Scope

  • packages/cli/src/agent/runtime/ — Session 创建、资源快照、任务准入和驻留生命周期
  • packages/cli/src/tools/ — 工具 schema、权限决策、并发 gate 和外部副作用边界
  • packages/cli/src/server/ — Hono API 校验、SSE 顺序、容量错误映射和关闭清理
  • packages/cli/src/acp/ — 多 cwd Session 隔离、不可驱逐驻留与有界更新输出
  • packages/cli/src/commands/ — CLI 覆盖、Headless 输出背压和进程级启动/关闭
  • packages/cli/src/plugins/ — 可信项目来源、配置收紧和 workspace registry 刷新
  • packages/cli/src/browser/ — HTTP(S) 来源安全、Context 容量和串行页面操作
  • packages/cli/web/src/ — 共享 API schema 消费、workspace 模型投影和容量状态展示

Gotchas

  • 进程 Store 只代表启动 workspace 的 UI 投影;为 Web 多项目、ACP 多 cwd 或 Task source project 创建 Runtime 时直接读取 Store 会泄漏模型、权限、MCP、LSP 或环境配置 (packages/cli/src/config/ConfigManager.ts, packages/cli/src/agent/runtime/SessionRuntime.ts, git:3549bb1e)
  • projectRoot 是配置和资源身份,workspaceRoot 是文件副作用位置;worktree 只替换后者,不能据此重新选择插件、Provider 或项目规则 (packages/cli/src/agent/runtime/SessionRuntime.ts, docs/reference/workspace-agent-resources.md)
  • Workspace Trust 变更不是单纯更新一个布尔值;当前启动配置必须先重载,随后断开 MCP、清空 workspace registry 并重新解析资源 (packages/cli/src/security/reloadWorkspaceTrust.ts)
  • 新增跨表面字段若只改 TypeScript 接口会留下不一致边界;通常还要同步默认值、配置校验/持久化路由、共享 API schema、公开投影和客户端解析 (packages/cli/src/config/types.ts, packages/cli/src/config/defaults.ts, packages/cli/src/api/schemas.ts)
  • 容量拒绝是可恢复协议的一部分,不应被折叠成通用 500;Session、Task、Tool、Provider 和 Browser 各自携带稳定的 resource/reason/limit 语义 (packages/cli/src/context/taskFailure.ts, packages/cli/src/server/error.ts)
  • 输出队列失败采用 fail-closed;继续向已经 overflow 或 timeout 的通道写入会破坏顺序与内存上限,因此调用方必须关闭对应订阅或会话,而不是重试同一 writer (packages/cli/src/utils/BoundedSerialEgress.ts)
Show full SKILL.md (146 more words)Show less

Architecture

  • 跨域策略按“磁盘来源 → 信任过滤 → workspace 解析 → Session 快照 → 执行时准入 → 有界表面输出”串联,任何中间层都不应绕回进程全局可变状态 (packages/cli/src/config/ConfigManager.ts, packages/cli/src/agent/runtime/SessionRuntime.ts)
  • 配置、资源目录与运行时状态拥有不同所有者:ConfigManager 读盘,ConfigService 写盘,Zustand Store 做启动表面投影,SessionRuntime 持有执行快照 (packages/cli/src/config/ConfigManager.ts, packages/cli/src/config/ConfigService.ts, packages/cli/src/store/vanilla.ts)
  • TypeBox schema 同时承担静态类型、HTTP 边界验证和公开字段投影,Web 通过 @api alias 直接消费同一源码合约 (packages/cli/src/schema/index.ts, packages/cli/web/vite.config.ts)

Decisions

  • 项目采用 source-project 级隔离而非进程 cwd 级隔离,因为同一 Serve/ACP 进程必须并发承载多个目录且不能共享可变 registry 或 endpoint (docs/reference/workspace-agent-resources.md, docs/reference/workspace-model-resources.md)
  • 从 Zod 迁移到 TypeBox 是为同时保留原生 JSON Schema 与运行时解析能力,工具声明和 Server/Web 合约由同一 schema 体系生成 (packages/cli/src/schema/index.ts, git:311ba368)
  • 资源限制同时约束 active 数量、pending 数量和 retained bytes;只限制并发数仍会让等待队列与输出缓冲无界增长 (packages/cli/src/agent/runtime/TaskRunScheduler.ts, packages/cli/src/utils/BoundedSerialEgress.ts, git:1af43232)

Branching Behavior

  • 不可信项目只能让 Hook 更严格,例如设置 disableAllHooks=true;模型、环境、权限放宽和项目扩展均不进入 Runtime (packages/cli/src/config/ConfigManager.ts)
  • Session 快照创建后,配置、插件或规则变更只影响后续 Session;恢复路径通过 digest 和引用校验旧快照语义,不能静默采用新内容 (packages/cli/src/agent/resources/WorkspaceAgentResources.ts, packages/cli/src/agent/runtime/SessionRuntime.ts)
  • 有空闲执行槽时,Task 和 Provider 的 pending-byte 预算不参与拒绝;只有请求必须排队时才对 retained footprint 计费 (packages/cli/src/agent/runtime/TaskRunScheduler.ts, packages/cli/src/services/pi/providerRequestAdmission.ts)
  • Web Session 驻留允许驱逐可回收的 idle Web Runtime,ACP 驻留不做隐式驱逐并要求宿主显式关闭 (packages/cli/src/agent/runtime/SessionRuntimeResidency.ts)
  • SSE 初始化阶段先缓冲 live 事件;完成 replay 后只补发高于 replay 水位的 committed 事件,并丢弃该窗口内无法可靠排序的 ephemeral delta (packages/cli/src/server/OrderedSseEgress.ts)

Child Knowledge Nodes

  • ./layered-configuration-and-runtime-settings/SKILL.md — 使用时机:调整配置层级、字段写入位置、workspace 运行时设置或 Web 配置同步
  • ./permissions-and-workspace-trust/SKILL.md — 使用时机:修改权限模式、allow/ask/deny、审批作用域、Folder/Hook Trust 或网络安全
  • ./workspace-resource-snapshots-and-project-instructions/SKILL.md — 使用时机:修改 Agent/模型资源隔离、Session 快照、通信风格或路径条件项目规则
  • ./shared-api-and-runtime-schemas/SKILL.md — 使用时机:新增跨 Server/Web 数据字段、TypeBox schema、默认值或公开投影
  • ./capacity-lifecycle-and-egress/SKILL.md — 使用时机:修改 Session/Task/Tool/Provider/Browser 容量、公平队列、输出背压或资源回收
  • ./runtime-state-bootstrap-and-observability/SKILL.md — 使用时机:修改 cwd/project root 启动状态、共享 Store、日志、运行版本、Session ID 或项目注册

© echoVic, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .trae/knowledges/workspace-policy-and-shared-foundations of echoVic/blade-code.

Open the folder on GitHubat commit 30f8684

Compare with similar skills

Knowledge Workspace Policy And Shared Foundations next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Knowledge Workspace Policy And Shared Foundations compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Knowledge Workspace Policy And Shared Foundations this skillechoVic/blade-code181—~1.7kAutomated safety check: PassMIT
Orca CLIstablyai/orca87k2 repos~593Automated safety check: PassMIT
Coding Agent Session Findercode-yeongyu/oh-my-openagent70k1 repos~2.8kAutomated safety check: PassCustom licence
Beads Task Memorygastownhall/beads28k—~1.2kAutomated safety check: PassMIT
Session History Searchslopus/happy24k—~3.1kAutomated safety check: PassMIT
Paseo Agent Handoffgetpaseo/paseo20k1 repos~606Automated safety check: PassCustom licence

Similar skills

  • Orca CLI

    stablyai/orca

    Operate Orca-managed worktrees, folder contexts, terminals, repos, automations, artifacts, skill sharing, worktree comments, and Orca's embedded browser…

    87k GitHub starsUsed in 2 repos~593 tokens
    Agent WorkflowsAuto-check passed
  • Coding Agent Session Finder

    code-yeongyu/oh-my-openagent

    Finds, reads and reconstructs past coding-agent sessions across Codex, Claude, OpenCode, Senpi and many other local agent logs.

    70k GitHub starsUsed in 1 repo~2.8k tokens
    Agent WorkflowsAuto-check passed
  • Beads Task Memory

    gastownhall/beads

    Tracks multi-session work with dependencies in the bd issue tracker so the agent can find ready tasks and recover its context after conversation compaction.

    28k GitHub stars~1.2k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Searches past Claude Code, Codex and Cursor sessions and summarizes what was worked on, tried or decided, using extraction scripts instead of reading raw logs.

    24k GitHub stars~3.1k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Paseo Agent Handoff

    getpaseo/paseo

    Hands off the current task, including context, decisions and failed attempts, to a fresh agent through Paseo by writing a self-contained briefing prompt and launching that agent.

    20k GitHub starsUsed in 1 repo~606 tokens
    Agent WorkflowsAuto-check passed
  • Memori Long-Term Memory

    MemoriLabs/Memori

    Connects Claude Code to Memori Cloud for long-term memory, recalling stored context before substantive replies and saving new context afterward.

    17k GitHub stars~2k tokensUpdated 5 days ago
    Agent WorkflowsAuto-check: notes

More from echoVic/blade-code

All 38 skills in this repo
  • Base64 Parser

    echoVic/blade-code

    Base64 编解码工具,支持编码/解码文本、JSON、二进制文件,自动检测格式,支持批量处理. An agent skill from echoVic/blade-code.

    181 GitHub stars~545 tokensUpdated 11 days ago
    Auto-check: notes
  • Code Review

    echoVic/blade-code

    Review frontend code for best practices, bugs, and improvements.

    181 GitHub stars~377 tokensUpdated 11 days ago
    Auto-check: notes
  • GitHub Explorer

    echoVic/blade-code

    Explore and summarize popular GitHub projects. An agent skill from echoVic/blade-code.

    181 GitHub stars~434 tokensUpdated 11 days ago
    Auto-check passed
  • 覆盖 Session 级 LSP 配置快照、stdio 进程、文档同步、语义查询、诊断回注、崩溃恢复 和子 Session 继承。进入条件:新增语言服务器、修改 LSP 工具、排查诊断缺失/重复、 处理 worktree 或 ACP 差异、修复进程泄漏或 transport 代际问题。不包含:VS Code 扩展桥接(见…

    181 GitHub stars~1.9k tokensUpdated 11 days ago
    Auto-check passed
  • 覆盖 SkillRegistry、SKILL.md 延迟加载、自定义命令 Markdown 解析、来源覆盖、插件 命名空间、Session 快照和模型/用户调用入口。进入条件:新增 Skill 或命令字段、调整 发现优先级、调试 /command 或 Skill 工具、修改 Prompt 元数据或消费者集成。不包含: 插件安装生命周期(见…

    181 GitHub stars~2.1k tokensUpdated 11 days ago
    Auto-check passed
  • Covers 领域能力如何包装成内置工具、getBuiltinTools 的 Session 依赖注入、ToolSearch 延迟激活,以及 Goal/Task/Team/Plan/Skill/LSP/MCP/Web/Config/Worktree 适配边界。

    181 GitHub stars~2.1k tokensUpdated 11 days ago
    Auto-check passed

Categories

Questions about Knowledge Workspace Policy And Shared Foundations

What does Knowledge Workspace Policy And Shared Foundations do?

覆盖 Blade 跨 Agent、工具、扩展和交互表面的配置、Workspace Trust、Session 资源快照、共享 TypeBox 合约、容量准入与关闭策略。. Knowledge Workspace Policy And Shared Foundations is an agent skill from echoVic/blade-code.

When should I use Knowledge Workspace Policy And Shared Foundations?

Knowledge Workspace Policy And Shared Foundations fits situations like: tasks that involve Session handoff.

How do I install Knowledge Workspace Policy And Shared Foundations in Claude Code?

Run `npx skills add echoVic/blade-code --skill knowledge-workspace-policy-and-shared-foundations -a claude-code`. Or copy the skill folder (.trae/knowledges/workspace-policy-and-shared-foundations in echoVic/blade-code) into .claude/skills/knowledge-workspace-policy-and-shared-foundations in your project. Claude Code loads it when a task matches its description.

How do I install Knowledge Workspace Policy And Shared Foundations in Codex?

Run `npx skills add echoVic/blade-code --skill knowledge-workspace-policy-and-shared-foundations -a codex`. Or copy the skill folder (.trae/knowledges/workspace-policy-and-shared-foundations in echoVic/blade-code) into .agents/skills/knowledge-workspace-policy-and-shared-foundations in your project. Codex loads it when a task matches its description.

Can I use Knowledge Workspace Policy And Shared Foundations in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add echoVic/blade-code --skill knowledge-workspace-policy-and-shared-foundations -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/knowledge-workspace-policy-and-shared-foundations, .gemini/skills/knowledge-workspace-policy-and-shared-foundations, .github/skills/knowledge-workspace-policy-and-shared-foundations and .opencode/skills/knowledge-workspace-policy-and-shared-foundations in your project.

What does Knowledge Workspace Policy And Shared Foundations need to run?

SKILL.md names no scripts, command-line tools or credentials: Knowledge Workspace Policy And Shared Foundations is instructions for the agent only.

Does Knowledge Workspace Policy And Shared Foundations access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Knowledge Workspace Policy And Shared Foundations safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Knowledge Workspace Policy And Shared Foundations use?

Knowledge Workspace Policy And Shared Foundations is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Knowledge Workspace Policy And Shared Foundations use?

About 1.7k tokens (SKILL.md is roughly 6.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Knowledge Workspace Policy And Shared Foundations?

Skills that share tags, products or a category with Knowledge Workspace Policy And Shared Foundations: Orca CLI (stablyai/orca, 87k stars), Coding Agent Session Finder (code-yeongyu/oh-my-openagent, 70k stars), Beads Task Memory (gastownhall/beads, 28k stars) and Session History Search (slopus/happy, 24k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Knowledge Workspace Policy And Shared Foundations?

echoVic (a GitHub user) maintains it in echoVic/blade-code, which has 181 GitHub stars. The repository holds 38 skills in this directory. The repository was last updated on September 27, 2026.

Source: echoVic/blade-code on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.