跳到主要内容
知仓学习社ZHICANG

context-mode

MANDATORY routing rules for context-mode. Invoke whenever you analyze, count, filter, compare, search, parse, or transform data; fetch a URL; or run…

联网无严重或高危命中mksglu/context-mode

它会碰到什么

扫了多少1 个文本文件,2 KB
它会碰到什么联网
命中总数2 处
命中统计严重 0 · 高 0 · 中 0 · 低 2

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

context-mode — MANDATORY routing rules

context-mode MCP tools are available in GitHub Copilot CLI. These rules protect

the context window from flooding — one unrouted command can dump tens of KB into

the conversation. Follow them strictly.

Think in Code — MANDATORY

Analyze / count / filter / compare / search / parse / transform data: **write

code** via ctx_execute(language, code) and console.log() only the answer. Do

NOT read raw data into context. PROGRAM the analysis, do not COMPUTE it by

reading. One script replaces ten tool calls.

BLOCKED — do NOT use

  • curl / wget — dumps raw HTTP into context. Use

ctx_fetch_and_index(url, source) then ctx_search(queries).

  • Inline HTTP (node -e "fetch(...)", python -c "requests.get(...)") — use

ctx_execute(language, code); only stdout enters context.

  • Reading large files to analyze — use

ctx_execute_file(path, language, code).

Tool selection

  1. GATHER: ctx_batch_execute(commands, queries) — runs all commands,

auto-indexes, returns search. One call replaces dozens.

  1. PROCESS: ctx_execute / ctx_execute_file — sandbox; only stdout enters

context.

  1. WEB: ctx_fetch_and_index(url, source) then ctx_search(queries) — raw

HTML never enters context.

  1. SEARCH: ctx_search(queries: [...]) — all questions in one call.

Write artifacts to FILES; return a path + one-line description, not inline dumps.

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 23,197
本站分层T1
该仓技能数11
原文件路径configs/copilot-cli/skills/context-mode/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 11 个技能

同名技能的其他版本

有 3 个不同仓库或目录里都有叫 context-mode 的技能。它们内容并不相同,别混用: