context-mode
하는 일
이 스킬은 코드를 탐색하고, 파일을 검색하고, 무거운 명령을 실행할 때 AI 에이전트가 context-mode 도구를 사용하는 방법을 알려 줍니다. context-mode 도구가 설치된 Antigravity CLI 사용자를 위한 스킬입니다.
사용하는 경우
- ✓에이전트가 코드베이스를 탐색하거나 분석을 위해 많은 파일을 읽을 때.
- ✓데이터가 많은 양을 세거나 비교하거나 파싱하는 작업일 때.
- ✓대화를 채우지 않고 웹 콘텐츠를 가져와 검색해야 하는 요청일 때.
스킬 링크
https://github.com/mksglu/context-mode/blob/main/configs/antigravity-cli/skills/context-mode/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 코드베이스를 탐색해서 TODO 주석 수를 세 주세요. 우리 대화를 큰 출력으로 채우지 말아 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 에이전트를 context-mode 도구로 안내합니다. 샌드박스에서 코드를 실행하고, 큰 콘텐츠용 로컬 검색 인덱스를 사용하며, 모든 내용을 대화에 읽어 넣는 대신 도구를 직접 씁니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
context-mode for Antigravity CLI
context-mode MCP tools are available in agy as context-mode/<tool>.
Use these tools directly. Do not inspect cached schema files under
~/.gemini/antigravity-cli/mcp/context-mode/*.json, and do not run
ctx_execute just to discover tool names or schemas.
If agy uses the generic MCP wrapper, call call_mcp_tool with:
ServerName:"context-mode"ToolName: one of the tool names belowArguments: the JSON arguments for that tool
Tool List
context-mode/ctx_execute: run JavaScript, TypeScript, Python, shell, or other code in a sandbox. Print only the final answer.context-mode/ctx_execute_file: read one file intoFILE_CONTENTinside the sandbox and run code over it. This is the context-mode file-read surface.context-mode/ctx_batch_execute: run multiple repository commands in one batch, index large output, and answer follow-up queries.context-mode/ctx_index: store a file, directory, or content in the local FTS5 knowledge base for later search.context-mode/ctx_search: search indexed content and captured session memory. Batch related questions inqueries.context-mode/ctx_fetch_and_index: fetch web content, store it, then query withctx_search.context-mode/ctx_stats: show context savings and current-session stats.context-mode/ctx_doctor: diagnose context-mode runtime and hook health.context-mode/ctx_upgrade: provide upgrade or repair guidance.context-mode/ctx_purge: purge stored context-mode knowledge after confirmation.context-mode/ctx_insight: launch or report the Insight analytics app.
When the user asks "what context-mode tools are available", answer from this
list. Do not list ~/.gemini/antigravity-cli/mcp/context-mode and do not read
the JSON schema files.
File Reading
There is no separate ctx_read tool. Use context-mode/ctx_execute_file for
file reads that analyze, summarize, extract, count, filter, or compare.
Native Read / view_file is only right when editing needs exact bytes in the
conversation, or when the user explicitly asks to view a small known range.
Use JavaScript by default for lightweight file analysis:
{
"path": "README.md",
"language": "javascript",
"code": "const lines = FILE_CONTENT.split(/\\r?\\n/); console.log(lines.slice(0, 20).join('\\n'));"
}
Never print FILE_CONTENT wholesale unless the user explicitly asks for a full
file dump. Print selected lines, counts, matches, summaries, or structured
results.
Codebase Exploration
For repository exploration, prefer one context-mode/ctx_batch_execute call
instead of many native ListDir, Read, Grep, or shell calls.
For one-off computed answers, use context-mode/ctx_execute.
For one-file analysis, use context-mode/ctx_execute_file.
For durable recall across follow-up questions, use context-mode/ctx_index
with a descriptive source, then context-mode/ctx_search.
Return concise derived answers. Do not paste raw command dumps, full files, large search results, cached schemas, or raw HTML into the conversation.
자주 묻는 질문
어떤 도구를 쓰나요?
샌드박스 코드 실행, 파일 인덱싱, 검색, 웹 가져오기를 위한 context-mode 도구를 씁니다.
특별한 설정이 필요한가요?
네. context-mode 도구가 설치되어 Antigravity CLI에서 사용할 수 있어야 합니다.
출력을 짧게 유지하는 이유는 무엇인가요?
최종 답만 출력하면 대화가 집중되고, 원시 출력이 커지는 것을 막을 수 있습니다.
상세 정보
작성자의 원본 설명
Mandatory routing rules for Antigravity CLI. Invoke when exploring a codebase, reading files for analysis, listing context-mode tools, searching, parsing, counting, comparing, summarizing, fetching web content, or running data-heavy commands.
repo: mksglu/context-mode
인기도
- GitHub 스타
- 33k
- 순위
- #8508
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
context-mode
33k에이전트가 데이터가 많은 작업을 샌드박스에서 실행하고 답만 출력하도록 가르칩니다. 원시 파일과 웹 페이지가 대화를 채우지 않게 합니다.
context-mode
33k에이전트가 로그, JSON, 빌드 결과처럼 출력이 클 수 있는 경우 일반 셸 명령 대신 context-mode 도구를 쓰도록 가르칩니다.
ctx-doctor
33k런타임, 훅, 검색 저장소, 플러그인 설정, 버전을 점검하는 context-mode 진단을 실행하고 명확한 통과 또는 실패 보고서를 보여 줍니다.
ctx-index
33k에이전트가 로컬 프로젝트나 폴더를 검색 가능한 저장소에 인덱싱하도록 돕습니다. 나중 질문은 모든 파일을 다시 읽지 않고 맞는 코드 조각을 찾습니다.
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.