7 RAKKUNN
vicem Skill
零依赖的 AI Agent 上下文接力与瘦身工具集。适用于在 AI 智能体之间交接编码任务(Claude Code、OpenAI Codex、Antigravity IDE、Cursor、VS Code、Gemini CLI、Web AI)、压缩臃肿的会话(Context Rot Rescue),或从 .vicem/ledger.json 恢复被精简的函数。
安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。
技能指令原文(SKILL.md)
Vicem (vicem.mjs) — Universal Agent Baton & Diet Skill
Vicem packages the active project state, git diff, task progress, and compressed code skeletons into a bookended U-Shaped Attention Baton (.vicem/BATON.md), redacts secrets (‹REDACTED:PROVIDER:HASH4›), and hands off or compacts sessions in a single command.
1. Receiving a Baton (Mandatory Rules for Target Agents)
- Read
.vicem/BATON.mdFirst:
- Zone 1 (Top Primacy Zone): Read
## 1. Goaland## 2. Immediate NEXTfirst. - Zone 2 (Middle Evidence Zone): Review
## 3. Done,## 4. Work Evidence (Git Diff & Slimmed Logs), and## 5. Architectural Context (Code Skeletons). - Zone 3 (Bottom Recency Anchor): Begin immediately from Immediate NEXT #1.
- NEVER Write Skeleton Placeholders or Defanged Tokens to Disk (
SkeletonWriteGuard&BatonInjectionGuard):
- Functions
>= 12lines in Section 5 have their bodies replaced with/ ... [pure] /,/ ... [effects: ...] /, orpass # [effects: ...]to save tokens while surfacing side effects (fs-write,proc,net,state,fs-read,throws,async). - Strictly Forbidden: Never write
{ ... },/ ... /,⋮,‹REDACTED:...›, or‹DEFANGED:...›tokens into real source files. - How to Rehydrate: Call MCP tool
vicem_rehydrate(file_path, symbol_name, include_callees)(or read the original file directly) before modifying a skeletonized function.
2. Daily Zero-Flag Commands
# Auto-detect active session and pass baton to recommended target
node vicem.mjs
# Hand off to a specific CLI, IDE, or Web AI target
node vicem.mjs codex
node vicem.mjs claude
node vicem.mjs ide
node vicem.mjs web
# Compact current bloated session (Context Rot Rescue)
node vicem.mjs self
# Return baton to previous agent & auto-unmount temporary rule files
node vicem.mjs back
# Restore pre-handoff file snapshot or roll back session
node vicem.mjs rollback
# Install Git pre-commit safety guard hook (+ optional Claude PreCompact/Stop lifecycle hooks)
node vicem.mjs init
node vicem.mjs init --agent-hooks
# Build reversible whole-repo structural map or pin architectural decisions at 100% salience
node vicem.mjs map
node vicem.mjs decide "Keep zero runtime npm dependencies"
# Inspect Skeleton Cache Hit Rate (CHR) & Net Token Reduction (NTR)
node vicem.mjs stats
# Run <50ms zero-spawn environment & agent storage diagnostics
node vicem.mjs doctor
# Apply Web AI clipboard reply safely (4-Pillar Guard + SmartPatchApplier)
node vicem.mjs land
3. MCP Tools & Resources Provided (node vicem.mjs mcp)
vicem_create_baton: Build.vicem/BATON.mdwith AST side-effect tags, 4-layerBatonInjectionGuard, and 3-tier Secret Redaction.vicem_read_baton: Read.vicem/BATON.mdand checkStalenessDriftGuard(git HEADdrift).vicem_rehydrate(file_path, symbol_name, include_callees): SHA-256-checked, secret-redacted AST rehydration from.vicem/ledger.json(with live disk drift fallback and.vicem/metrics.jsontelemetry).vicem_check_guard: Verify diffs againstSkeletonWriteGuard,SecretCommitGuard,BatonInjectionGuard, andStalenessDriftGuard.- Resources:
vicem://baton/current,vicem://ledger/index,vicem://salience/report,vicem://metrics/cache.