소스 정보
- 저장소
- andrem-sec/psc-comet
- 최근 소스 활동
- 2026년 4월 22일 14:31
- 감지된 SKILL.md 언어
- 영어
- 스타
- 4
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/andrem-sec/psc-comet --skill strategic-compact명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
| name | strategic-compact |
| description | Hook-based compaction suggestions at logical task boundaries |
| version | 0.1.0 |
| level | 2 |
| triggers | ["compact now","context getting full","running out of space","should i compact"] |
| context_files | ["context/learnings.md"] |
| steps | [{"name":"Tool Invocation Count","description":"Track tool calls since last compact or session start"},{"name":"Boundary Detection","description":"Identify if current state is at a logical task boundary"},{"name":"Compact Decision","description":"Apply decision guide to recommend compact or defer"},{"name":"State Preservation","description":"Remind user to capture critical state before compacting"},{"name":"Context Documentation","description":"Update learnings.md with pre-compact state if needed"}] |
Suggests /compact at logical task boundaries. Prevents premature compaction that loses critical context.
Without strategic compaction guidance, Claude either:
Strategic compaction maintains context hygiene without disrupting workflow.
Compaction suggestions triggered by tool call count:
Count these tools:
Don't count: TodoWrite, AskUserQuestion (metadata operations)
Integration with existing preserve-on-compact.sh hook: hook fires on /compact; this skill decides when to suggest it.
| Transition | Compact? | Reasoning |
|---|---|---|
| Research → Planning | YES | Research artifacts captured, planning starts fresh |
| Planning → Implementation | YES | Plan finalized, implementation is new phase |
| Mid-Implementation | NO | Variable state, error traces, partial progress would be lost |
| After Failed Approach | YES | Dead end documented in learnings.md, fresh start needed |
| Feature Complete → Testing | YES | Implementation done, testing is verification phase |
| Bug Hunt in Progress | NO | Debugging requires full context (stack traces, state, prior attempts) |
| After Successful PR Merge | YES | Work complete, next task starts clean |
General Rule: Compact at phase transitions where the prior phase's working context is no longer needed for the next phase.
Claude Code's compaction preserves:
Lost during compaction:
Before compacting, ensure these are captured:
In context/learnings.md:
In context/decisions.md:
In code comments:
In test files:
The preserve-on-compact.sh hook prompts for this, but this skill provides the content checklist.
preserve-on-compact.sh (PreCompact hook):
Recommended enhancement: Add tool invocation counter to preserve-on-compact.sh:
TOOL_COUNT=$(grep -c "Tool:" .claude/session.log 2>/dev/null || echo 0)
if [ "$TOOL_COUNT" -gt 50 ]; then
echo "50+ tool calls since last compact. Consider capturing state."
fi
(Note: session.log doesn't exist in current Claude Code. This is aspirational for future hook enhancements.)
Compacting mid-debugging: You're investigating a bug, have a stack trace, tried 3 approaches. Compacting now loses all that context. Finish the investigation first.
Compacting to "clean up": Compaction isn't for aesthetics. Only compact at task boundaries or when context pressure is real (100+ tool calls).
Ignoring the 50-call reminder: If you're at 50 calls and still in the same task, that's a signal the task might be too large. Consider checkpointing or breaking it down.
Compacting without preserving dead ends: "I tried X but it failed because Y" is critical for the next session. Write it to learnings.md before compacting.
SOC 직업 분류 기준