caveman-compress
메모리 파일 압축으로 토큰 비용 절감
CLAUDE.md와 같은 큰 메모리 파일은 모든 AI 세션 시작 시 토큰을 낭비합니다. 이 스킬은 모든 기술 콘텐츠를 그대로 유지하면서 약 46%까지 파일을 압축합니다.
스킬 ZIP 다운로드
Claude에서 업로드
설정 → 기능 → 스킬 → 스킬 업로드로 이동
토글을 켜고 사용 시작
테스트해 보기
"caveman-compress" 사용 중입니다. TypeScript 선호도, 테스트 가이드라인, 프로젝트 규약을 전체 산문으로 작성한 706 토큰짜리 CLAUDE.md 파일.
예상 결과:
모든 기술 지시를 직접 caveman 스타일 산문으로 유지하는 285 토큰 압축 버전. 제목, 코드 예시, URLs는 변경되지 않음. 원본은 CLAUDE.original.md로 저장됨.
"caveman-compress" 사용 중입니다. 아키텍처 설명, 배포 단계, 팀 규약을 포함한 1145 토큰짜리 프로젝트 노트 파일.
예상 결과:
535 토큰 압축 파일. 모든 섹션 제목이 정확하게 유지됨. 코드 블록과 URLs는 온전함.冗長한 설명이 핵심 사실로 압축됨. 백업은 project-notes.original.md로 저장됨.
보안 감사
낮은 위험Static analysis flagged 107 potential issues across 10 files with a risk score of 100/100. After semantic evaluation, all flagged patterns are false positives. The external_commands findings (74 locations) are primarily markdown backticks in documentation files misidentified as shell execution. The one real subprocess call in scripts/compress.py uses hardcoded arguments with stdin input and no shell interpolation. Network findings (2 locations) are static URLs in README.md documentation, not runtime requests. Filesystem findings (2 locations) are standard path resolution for a file-processing tool. Environment access findings (9 locations) are legitimate ANTHROPIC_API_KEY and CAVEMAN_MODEL configuration for API usage. The critical heuristic finding about code execution plus network plus credential access is a false positive describing the normal operation of an Anthropic API client. No prompt injection attempts, data exfiltration patterns, or malicious intent detected. The tool has appropriate safeguards including file size limits (500KB), automatic backups, and retry logic with rollback on failure.
낮은 위험 문제 (3)
위험 요인
⚙️ 외부 명령어 (1)
🔑 환경 변수 (1)
품질 점수
만들 수 있는 것
반복 세션 비용 절감
CLAUDE.md 프로젝트 메모리 파일을 한 번 압축하세요. 작아진 파일이 모든 세션 시작 시 로드되어 AI 작업 시마다 토큰을 절약합니다.
팀 문서 최적화
공유 선호도 파일, 스타일 가이드, 프로젝트 규약을 압축하세요. 팀원들이 동일한 지시를 받되 세션당 더 적은 입력 토큰으로 작업할 수 있습니다.
장기 프로젝트 노트 압축
축적된 할 일 목록, 회의 노트, 결정 로그를 핵심 사실로 압축하세요. 장황한 오버헤드 없이 모든 정보를 유지합니다.
이 프롬프트를 사용해 보세요
Compress the file at CLAUDE.md into caveman format.
Compress these memory files: CLAUDE.md, todos.md, and preferences.txt.
I updated CLAUDE.original.md with new coding standards. Compress it again to replace CLAUDE.md.
Set CAVEMAN_MODEL to claude-haiku and compress CLAUDE.md.
모범 사례
- .original.md 백업 파일을 편집한 다음 재압축하세요. 이렇게 하면 인적 판독 가능 형식으로 진실의 원천을 유지합니다.
- 메모리 파일 주요 업데이트 후 압축을 실행하세요. 새로운 편집은 종종 잘 압축되는 장황한 설명을 추가합니다.
- 압축된 출력에 의존하기 전에 검토하세요. 검증은 기술 콘텐츠를 확인하지만 스타일 변경이 뉘앙스에 영향을 미칠 수 있습니다.
피하기
- 코드 파일, 설정 파일, 주로 코드 콘텐츠가 포함된 파일은 압축하지 마세요. 도구가 자동으로 건너뜁니다.
- .original.md 백업을 삭제하지 마세요. 그것은 인적 판독 가능 소스와 복구 지점입니다.
- 변경되지 않은 파일에 대해 반복적으로 압축을 실행하지 마세요. 각 실행은 API 토큰을 소비합니다. 의미 있는 편집 후에만 압축하세요.