본문으로 건너뛰기
Skillpedia
에이전트33k · #8509

context-mode

하는 일

이 스킬은 GitHub Copilot CLI에서 context-mode 도구를 쓰는 AI 에이전트를 위한 라우팅 규칙을 설정합니다. 큰 파일, 로그, 웹 페이지를 분석하면서 대화를 작게 유지하려는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓에이전트가 많은 양의 데이터를 세거나, 거르거나, 비교하거나, 파싱해야 할 때.
  • ✓원시 HTML이 대화에 쏟아지지 않도록 웹 페이지를 가져와야 하는 작업일 때.
  • ✓큰 출력을 읽기보다 처리해야 하는 명령을 실행할 때.

스킬 링크

https://github.com/mksglu/context-mode/blob/main/configs/copilot-cli/skills/context-mode/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/mksglu/context-mode/blob/main/configs/copilot-cli/skills/context-mode/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“큰 로그 파일에서 실패한 테스트를 세어 주세요. 전체 로그를 채팅에 붙여넣지 말아 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 에이전트가 샌드박스에서 실행되는 코드를 쓰고 최종 답만 반환하도록 안내합니다. 큰 출력은 전체를 읽는 대신 저장하고 검색합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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.
  2. PROCESS: ctx_execute / ctx_execute_file — sandbox; only stdout enters context.
  3. WEB: ctx_fetch_and_index(url, source) then ctx_search(queries) — raw HTML never enters context.
  4. SEARCH: ctx_search(queries: [...]) — all questions in one call.

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

자주 묻는 질문

어떤 도구에 의존하나요?

샌드박스 코드 실행, 배치 명령, 인덱스 검색, 웹 가져오기 같은 context-mode 도구에 의존합니다.

일반 명령을 막나요?

네. curl이나 wget처럼 원시 출력을 쏟아내는 일부 명령을 막고, 대신 샌드박스를 쓰도록 안내합니다.

context-mode 도구를 설치해야 하나요?

네. 이 규칙이 작동하려면 context-mode 도구가 GitHub Copilot CLI에서 사용 가능해야 합니다.

상세 정보

작성자의 원본 설명

MANDATORY routing rules for context-mode. Invoke whenever you analyze, count, filter, compare, search, parse, or transform data; fetch a URL; or run a data-heavy command — so raw bytes stay out of the context window.

repo: mksglu/context-mode

인기도

GitHub 스타
33k
순위
#8509
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬