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

skill-cleaner

하는 일

이 스킬은 코딩 에이전트에 설치된 스킬을 분석해 프롬프트 공간을 얼마나 쓰는지, 어떤 스킬이 겹치는지 확인합니다. 스킬이 많아서 더 가벼운 환경을 원하는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓에이전트의 스킬이 프롬프트 공간을 너무 많이 차지할 때.
  • ✓여러 폴더나 플러그인에 중복된 스킬이 있다고 의심될 때.
  • ✓제거할 스킬이나 플러그인을 정하고 싶을 때.

스킬 링크

https://github.com/steipete/agent-scripts/blob/main/skills/skill-cleaner/SKILL.md

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

사용 방법

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

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

Use this skill to help me: https://github.com/steipete/agent-scripts/blob/main/skills/skill-cleaner/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에서 그대로 가져왔습니다.

Skill Cleaner

Use this when trimming skill prompt budget, finding duplicate skills, auditing enabled/disabled skill roots, or deciding which skills/plugins to remove.

Workflow

  1. Run the analyzer from this skill directory or repo root:
node --experimental-strip-types skills/skill-cleaner/scripts/skill-cleaner.ts --months 3

Useful variants:

node --experimental-strip-types skills/skill-cleaner/scripts/skill-cleaner.ts --no-logs
node --experimental-strip-types skills/skill-cleaner/scripts/skill-cleaner.ts --no-live --no-logs
node --experimental-strip-types skills/skill-cleaner/scripts/skill-cleaner.ts --months 6 --max-log-mb 800 --deep-logs
node --experimental-strip-types skills/skill-cleaner/scripts/skill-cleaner.ts --context-tokens 272000 --budget-percent 2 --no-logs
node --experimental-strip-types skills/skill-cleaner/scripts/skill-cleaner.ts --root ~/Dropbox/boxd/skills --no-logs
node --experimental-strip-types skills/skill-cleaner/scripts/skill-cleaner.ts --root ~/.agents/skills --root-only --no-logs
  1. Read the report in this order:
  • Skill Budget: live Codex inventory, 2% budget, budgeted usage, and full-description pressure.
  • Description candidates: long descriptions where relaxed grammar saves prompt budget.
  • Duplicates: same skill name or near-identical description/body across Codex, plugin cache, repo siblings, and personal skill roots.
  • Unused candidates: no recent user mention or actual SKILL.md read in recent Codex/OpenClaw logs.
  • Root summary: where skills came from and whether config marks them disabled.
  1. Before deleting or editing:
  • Verify the kept copy exists and is loaded.
  • Prefer deleting repo-local or agent-scripts duplicates when Codex built-ins cover them.
  • Keep repo-local OpenClaw maintainer skills when they encode repo policy or live operations.
  • Preserve trigger nouns in descriptions: product, tool, action, object.

Analyzer Notes

  • By default, codex debug prompt-input supplies the exact model-visible skill list, order, names, and aliased paths. --no-live forces the broader filesystem fallback.
  • The broad filesystem scan remains for duplicate, disabled, and archived-cache diagnostics; it is not treated as the loaded inventory.
  • The script mirrors Codex's model-visible line shape: - name: description (file: path).
  • It applies Codex-like frontmatter rules: YAML frontmatter only, default name from parent dir, single-line sanitized name and description.
  • It follows Codex core-skills/src/render.rs: 2% of raw context_window, token cost ceil(utf8_bytes / 4), then full descriptions -> equal description truncation -> omitted minimum lines. Alias-table line cost is included.
  • It reads ~/.codex/models_cache.json for GPT-5.5 context_window; fallback is 272,000 tokens and 2%.
  • It scans only normal Codex/plugin/repo skill roots by default. Extra folders such as Dropbox archives are included only with --root <path>.
  • --root-only requires at least one --root <path>, skips the live Codex inventory, and scans only those supplied roots.
  • It realpath-dedupes roots, so symlinked roots such as ~/.codex/skills/agent-scripts -> ~/Projects/agent-scripts/skills do not create false duplicates.
  • For duplicate names, it reports description/body similarity and suggests deletion candidates only when bodies are near copies. Keep priority defaults to direct Codex system skills, then direct Codex skills, then plugin skills, then personal/repo copies.
  • It scans ~/.codex/history.jsonl and recent ~/.codex/sessions/**/*.jsonl by default. Add --deep-logs for archived sessions and common OpenClaw/Clawd log folders.
  • Usage evidence is heuristic: user $skill/use skill mentions and paths observed in tool-call arguments.

Output Policy

  • Suggest first; edit only when the user asks.
  • If asked to apply cleanup, make small grouped commits: descriptions, deletes, config disables.
  • Do not delete ignored/untracked skill dirs without naming the destination or confirming they are disposable.
자주 묻는 질문

보고서에서 무엇을 먼저 보여 주나요?

스킬 예산과, 스킬이 프롬프트 공간을 얼마나 쓰는지를 먼저 보여 줍니다.

설명 후보란 무엇인가요?

프롬프트 공간을 아끼기 위해 줄일 수 있는 긴 스킬 설명을 말합니다.

스킬을 스스로 삭제하나요?

아닙니다. 이 스킬은 무엇을 제거할지 결정하도록 도울 뿐이며, 최종 선택은 사용자에게 있습니다.

상세 정보

작성자의 원본 설명

Codex/OpenClaw skill audit: live budget, usage, duplicates, compact descriptions.

repo: steipete/agent-scripts

인기도

GitHub 스타
7.4k
순위
#13245
라이선스
MIT
업데이트
2026. 10. 30.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬