先看看示例
作者提供的示例,实际效果取决于你的输入和使用工具。
输入
在调试脚本前用 /branch 建立分支会话,改动完成后用 /compact 压缩历史,再用 /export 导出 md 归档。
输出
预期交付:更新后的 markdown 会话记录,以及 md/json/txt 格式的导出文件与会话指标。(编辑说明,非实际运行结果)
方法说明
--- name: nanoclaw-repl description: Operate and extend NanoClaw, ECC's zero-dependency session-aware REPL, with persistent markdown-backed sessions and slash commands for model switching, skill loading, session branching, cross-session search, history compaction, and export. Use when running or extending scripts/claw.js, or when resuming, branching, compacting, searching, or exporting a NanoClaw session. metadata: origin: ECC --- # NanoClaw REPL Use this skill when running or extending `scripts/claw.js`. ## Capabilities - persistent markdown-backed sessions - model switching with `/model` - dynamic skill loading with `/load` - session branching with `/branch` - cross-session search with `/search` - history compaction with `/compact` - export to md/json/txt with `/export` - session metrics with `/metrics` ## Operating Guidance 1. Keep sessions task-focused. 2. Branch before high-risk changes. 3. Compact after major milestones. 4. Export before sharing or archival. ## Extension Rules - keep zero external runtime dependencies - preserve markdown-as-database compatibility - keep command handlers deterministic and local