agentleFS
TeamSPWKTeamSPWK/nova/.claude/skills/strategic-compact/SKILL.md

strategic-compact

Skill2 starsChanged 7 months agoMITView on GitHub

세션 컨텍스트 압축(/clear · /compact) 시점을 판단해야 할 때. — MUST TRIGGER: /nova:plan·/nova:design·/nova:auto 마일스톤 직후, 토큰 사용량 70%+ 도달, 무관 작업 전환 직전.

68 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use configure-ecc, ralphinho-rfc-pipeline and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • royaluniondesign-sysSkill

    configure-ecc

    Interactive installer for Everything Claude Code — guides users through selecting and installing skills and rules to user-level or project-level directories, verifies paths, and optionally optimizes installed files.

    Also in 11 projects that use this

  • junimnjwSkill

    ralphinho-rfc-pipeline

    RFC-driven multi-agent DAG execution pattern with quality gates, merge queues, and work unit orchestration.

    Also in 11 projects that use this

  • InfopibeSkill

    everything-claude-code

    Also in 11 projects that use this

  • TironFoxSkill

    openclaw-persona-forge

    为 OpenClaw AI Agent 锻造完整的龙虾灵魂方案。根据用户偏好或随机抽卡, 输出身份定位、灵魂描述(SOUL.md)、角色化底线规则、名字和头像生图提示词。 如当前环境提供已审核的生图 skill,可自动生成统一风格头像图片。 当用户需要创建、设计或定制 OpenClaw 龙虾灵魂时使用。 不适用于:微调已有 SOUL.md、非 OpenClaw 平台的角色设计、纯工具型无性格 Agent。 触发词:龙虾灵魂、虾魂、OpenClaw 灵魂、养虾灵魂、龙虾角色、龙虾定位、 龙虾剧本杀角色、龙虾游戏角色、龙虾 NPC、龙虾性格、龙虾背景故事、 lobster soul、lobster character、抽卡、随机龙虾、龙虾 SOUL、gacha。

    Also in 5 projects that use this

  • royaluniondesign-sysSkill

    content-hash-cache-pattern

    Cache expensive file processing results using SHA-256 content hashes — path-independent, auto-invalidating, with service layer separation.

    Also in 15 projects that use this

  • loulanyueSkill

    nuxt4-patterns

    Nuxt 4 app patterns for hydration safety, performance, route rules, lazy loading, and SSR-safe data fetching with useFetch and useAsyncData.

    Also in 9 projects that use this

The file

Files
SKILL.md

Nova Strategic Compact

세션-수준 컨텍스트 압축 시점을 판단한다. NOVA-STATE 본문 스냅샷 + events.jsonl 분리(v5.44.0+ 상태-수준 모델)와 짝을 이루는 세션-수준 (Claude Code 컨텍스트 창 자체)의 /clear·/compact 적기를 안내한다. Nova 5기둥 중 맥락 기둥의 마지막 한 조각 — 진단(P0-1 컨텍스트 로스트 4원인 카탈로그)에서 자동 안내까지 잇는 출구.

적용 규칙 (on-demand 로드)

  • docs/nova-rules.md §8 세션 상태 유지 — STATE 트림과 세션 압축의 분리
  • docs/nova-rules.md §10 관찰성 계약 — events.jsonl로 후험 검증 가능

핵심 원칙

  1. 상태-수준 ≠ 세션-수준. NOVA-STATE.md 본문 스냅샷 + events.jsonl 단일 진실원(skills/context-chain/SKILL.md, v5.44.0+)은 사람-읽는 인덱스 + 기계-읽는 시계열이지 Claude 컨텍스트 창 압축이 아니다. 둘은 별도 트리거, 별도 효과.
  2. /clear ≠ /compact. /clear는 무관 작업 사이 즉시 비움(요약 없음), /compact는 마일스톤 사이 요약 압축. 잘못 쓰면 Generator 컨텍스트가 회복 불가능하게 손실된다.
  3. AI는 제안, 인간은 결정. 본 스킬은 시점 안내만 한다 — /compact·/clear는 사용자가 직접 입력. 자동 실행 금지 (메모리 feedback_evidence_first_identity 정합).
  4. 9 진입점 동결 유지. 본 스킬은 NOVA-STATE 갱신 트리거를 추가하지 않는다 (v5.19.6 state-prune-symmetry 룰 보존).

MUST TRIGGER (적기)

시점권장 동작사유
/nova:plan 완료 직후/compact 권장Plan 결과는 docs/plans/{slug}.md에 보존됨 — 컨텍스트는 요약해도 안전
/nova:design 완료 직후/compact 권장Design 결과는 docs/designs/{slug}.md에 보존됨
/nova:auto Phase 종료 시/compact 권장Phase 결과는 events.jsonl + v3 marker 자동 렌더로 보존됨 — 다음 Phase는 요약본만 있어도 충분 (v5.44.0+)
토큰 사용량 70%+ 도달/compact 또는 /clear80%+ AUTOCOMPACT 발동 전 사용자 통제 압축 (docs/cost-optimization.md 권장 50%와 정합)
무관 작업 전환 직전/clear어텐션 희석 사전 차단 (docs/context-rot-diagnosis.md §1 원인 1)
에이전트 spawn 직전 (메인 토큰 70%+)/compact서브에이전트 spawn 시 메인 컨텍스트가 과적이면 핸드오프 품질 저하

MUST NOT TRIGGER (금기)

시점금지 사유
구현 sprint 도중Generator 컨텍스트 살아있어야 — Plan-Design 의도가 요약으로 손실되면 sprint 중간 일관성 붕괴
Evaluator 검증 직전적대적 검증은 같은 컨텍스트 재현 필요 — 압축 후 검증은 Generator-Evaluator 분리 원칙 훼손
블로커 분석 도중블로커는 컨텍스트 의존적 — 압축 시 원인 추적 불가능
회귀 테스트 디버깅 도중실패 메시지·스택은 원본 보존 가치 높음

컨텍스트 로스트 4 원인 매핑

docs/context-rot-diagnosis.md 4 원인별 1차 대응:

원인대응
어텐션 희석 (Attention Dilution)무관 작업 전환 시 /clear
명령 충돌 (Instruction Conflict)/nova:check 정합성 검증 우선 (/compact로 해결 X)
토큰 예산 압박 (Token Budget Pressure)70%+ 도달 시 /compact + MCP 비활성화 (P1-2 ≤10/80)
관련성 미스매치 (Relevance Mismatch)Explore 서브에이전트 분리 (/compact 무관)

4 원인 모두에 /compact가 답이 아니다. 본 스킬은 해당 원인일 때만 압축을 권장한다.

ECC vs Nova 차이 (정체성 보존)

ECC affaan-m/everything-claude-code Strategic Compact는 예방 중심. Nova는:

  • 예방: 본 스킬 (세션-수준) + events.jsonl 단일 진실원 + v3 marker 자동 렌더 (상태-수준, v5.44.0+) 이중 압축
  • 진단: docs/context-rot-diagnosis.md 4 원인 카탈로그
  • 측정: .nova/events.jsonl 신뢰도(v5.20.0+) — 본 스킬 적용 전후 failures/CONDITIONAL 비율 비교 (v5.22.0+ 후험)

ECC 본문 미확보(404). 사용자 LiveWiki 요약(영상 05:57~06:24) + Nova context-rot-diagnosis "Nova 1차 대응" 표 기반 추론.

안티패턴

  • 구현 도중 토큰이 부족하다고 /compact 발동 → Plan-Design 의도 손실. 정답: 작업 단위를 쪼개거나 Plan 분할.
  • NOVA-STATE 트림과 세션 압축을 같은 것으로 혼동 → 둘 다 해야 토큰 압박 해소.
  • /compact 마일스톤마다 자동 강제 → 사용자 결정권 박탈. 본 스킬은 안내만.
  • Evaluator 검증 직전 압축 → 적대적 검증 무력화.

Refs

  • docs/proposals/2026-04-29-ecc-adversarial-gap.md §P0-3 — 본 스킬 출처
  • docs/context-rot-diagnosis.md — 4 원인 진단 카탈로그
  • docs/cost-optimization.md — AUTOCOMPACT 50% 권장
  • skills/context-chain/SKILL.md — 상태-수준 트림 (역할 분리)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.