본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

context-builder

igorls 제작

Coding Agents & IDEs
500clawskills.sh가 보고한 다운로드 수
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Generate LLM-optimized codebase context from any directory using context-builder CLI.

설명

이 스킬이 하는 일

context-builder scans a local directory and generates a single structured markdown file from the codebase. Output is ordered by file relevance and supports AST-aware signature extraction to minimize token usage. Token budgeting, .gitignore awareness, and automatic directory exclusions are built in.

AST-aware signatures reduce context size by 80-90% compared to raw file dumps, making large codebases fit within model token limits without manual curation.

사용 시점

  • Feed an entire Rust codebase to an LLM for architecture review
  • Onboard to an unfamiliar repo by generating a full project snapshot
  • Extract only public API signatures before a code review session
  • Generate incremental diffs after code changes to update LLM context
  • Package a specific monorepo package for focused LLM analysis

예시 워크플로

입력

User asks: Generate a context file for my Rust project at /home/user/myapp for LLM code review

에이전트
  1. 1

    Run token count preview: context-builder -d /home/user/myapp --token-count

  2. 2

    If over budget, scope to Rust and TOML files with a token cap

  3. 3

    Run: context-builder -d /home/user/myapp -f rs,toml --max-tokens 120000 -y -o docs/context.md

  4. 4

    Attach docs/context.md to the LLM prompt for architecture or bug analysis

출력

docs/context.md containing relevance-ordered Rust and TOML files, capped at 120K tokens, ready for LLM input

요구 사항

  • Rust toolchain (rustup + cargo, required to build context-builder from source)

설치

clawhub install igorls/context-builder

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크