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

ctx-index

하는 일

이 스킬은 로컬 프로젝트 파일을 context-mode 검색 인덱스에 추가해 나중에 빠르게 검색할 수 있게 합니다. 매번 코드를 다시 읽지 않고 어시스턴트가 코드베이스에 답하기를 원하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓개발자가 나중에 어시스턴트가 프로젝트 코드와 문서를 검색하기를 원할 때.
  • ✓큰 저장소를 한 번 인덱싱해 이후 검색이 빠르게 유지되어야 할 때.
  • ✓프로젝트 문서를 분명한 라벨로 검색 가능하게 해야 할 때.

스킬 링크

https://github.com/mksglu/context-mode/blob/main/skills/ctx-index/SKILL.md

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

사용 방법

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

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

Use this skill to help me: https://github.com/mksglu/context-mode/blob/main/skills/ctx-index/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 Index

Index local project content for later search.

Instructions

  1. Prefer the ctx_index MCP tool when it is available.
  2. Ask for a path only if the user did not provide one and the current project root is ambiguous.
  3. Use path, not large inline content, so file bytes do not enter the conversation.
  4. For repository indexing, pass conservative bounds and a clear source label:
ctx_index({
  path: ".",
  source: "project:<name>",
  maxDepth: 5,
  maxFiles: 200
})
  1. If MCP tools are unavailable, fall back to the CLI:
context-mode index . --source project:<name>
  1. Report the indexed source label, file count or section count, and the matching search command:
ctx_search({ source: "project:<name>", queries: ["..."] })

Safety

  • Do not index dependency directories, build outputs, secrets, or generated artifacts.
  • Prefer --exclude or exclude for project-specific noisy paths.
  • For broad repos, ask the user before raising maxFiles above 500.
자주 묻는 질문

무엇을 인덱싱하지 말아야 하나요?

의존성 폴더, 빌드 결과물, 비밀 정보, 생성된 파일은 제외해야 합니다.

파일 수에 제한이 있나요?

네. 넓은 저장소의 경우, 파일 제한을 500개 이상으로 올리기 전에 스킬이 묻습니다.

인덱싱 후에는 어떻게 검색하나요?

같은 소스 라벨로 검색 스킬을 쓰면 인덱싱된 내용에서 조각을 찾을 수 있습니다.

상세 정보

작성자의 원본 설명

Index a local file or directory into context-mode's persistent FTS5 knowledge base so future ctx_search calls can retrieve focused snippets without rereading raw files. Trigger: /context-mode:ctx-index

repo: mksglu/context-mode

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬