nanoclaw-repl

操作并扩展NanoClaw v2,这是ECC基于claude -p构建的零依赖会话感知REPL。

144,923 stars
Complexity: medium

About this skill

The NanoClaw REPL skill empowers Claude AI agents with a robust, zero-dependency, and session-aware interactive development environment. Designed as NanoClaw v2, this REPL provides a persistent, Markdown-based session experience, crucial for complex, multi-turn interactions. Agents can dynamically switch between different models using `/model`, load new capabilities and skills on-the-fly with `/load`, and explore alternative solution paths by branching sessions with `/branch`. It also includes powerful features for cross-session search (`/search`), history compression (`/compact`), and exporting sessions in various formats (`/export`). This skill is invaluable for Claude agents engaged in iterative development, code exploration, and sophisticated problem-solving where session context, persistence, and extensibility are paramount.

Best use case

To manage complex, multi-turn coding and development sessions with Claude AI, ensuring persistence, context retention, and flexible interaction. It's ideal for iterative development, testing different models or approaches, and organizing AI-generated content.

操作并扩展NanoClaw v2,这是ECC基于claude -p构建的零依赖会话感知REPL。

Users can expect more organized, efficient, and reproducible Claude AI development sessions. The ability to manage context, dynamically load tools, and branch sessions leads to improved productivity, better code quality, and a more controlled problem-solving workflow. Sessions become easily archivable and shareable, enhancing collaboration and knowledge transfer.

Practical example

Example input

As an AI agent, I want to switch to a more powerful model to handle this complex algorithm.
` /model claude-3-opus-20240229`

Now, I need to load a specific utility skill for data transformation.
` /load data-transformer-skill`

I'm about to make a risky change; I should create a branch first.
` /branch refactor-user-auth`

After completing this milestone, I'll compact the session history.
` /compact`

Finally, I'll export my work as a Markdown file for review.
` /export my-project-session.md`

Example output

Model successfully switched to `claude-3-opus-20240229`.
Skill `data-transformer-skill` loaded and ready for use.
New session branch `refactor-user-auth` created from current state.
Session history compacted, reducing token usage by 30%.
Session exported to `my-project-session.md`.

When to use this skill

  • Use NanoClaw REPL when engaging in extended software development tasks with Claude, where maintaining session context is critical. It's particularly useful for: * Iteratively developing and refining code. * Experimenting with different Claude models (e.g., Opus, Sonnet) within the same project. * Dynamically loading and testing new agent skills or tools. * Branching off a main session to explore alternative solutions or fixes. * Organizing, compressing, and exporting interaction history for review, sharing, or archiving.

When not to use this skill

  • This skill is not necessary for simple, single-turn prompts or quick information retrieval tasks where no persistent session or complex interaction management is required. It is also specific to Claude AI and may not be applicable for other platforms without significant modification.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/nanoclaw-repl/SKILL.md --create-dirs "https://raw.githubusercontent.com/affaan-m/everything-claude-code/main/docs/zh-CN/skills/nanoclaw-repl/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/nanoclaw-repl/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How nanoclaw-repl Compares

Feature / Agentnanoclaw-replStandard Approach
Platform SupportClaudeLimited / Varies
Context Awareness High Baseline
Installation ComplexitymediumN/A

Frequently Asked Questions

What does this skill do?

操作并扩展NanoClaw v2,这是ECC基于claude -p构建的零依赖会话感知REPL。

Which AI agents support this skill?

This skill is designed for Claude.

How difficult is it to install?

The installation complexity is rated as medium. You can find the installation instructions above.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# NanoClaw REPL

在运行或扩展 `scripts/claw.js` 时使用此技能。

## 能力

* 持久的、基于 Markdown 的会话
* 使用 `/model` 进行模型切换
* 使用 `/load` 进行动态技能加载
* 使用 `/branch` 进行会话分支
* 使用 `/search` 进行跨会话搜索
* 使用 `/compact` 进行历史压缩
* 使用 `/export` 导出为 md/json/txt 格式
* 使用 `/metrics` 查看会话指标

## 操作指南

1. 保持会话聚焦于任务。
2. 在进行高风险更改前进行分支。
3. 在完成主要里程碑后进行压缩。
4. 在分享或存档前进行导出。

## 扩展规则

* 保持零外部运行时依赖
* 保持以 Markdown 作为数据库的兼容性
* 保持命令处理器的确定性和本地性

Related Skills

workspace-surface-audit

144923
from affaan-m/everything-claude-code

Audit the active repo, MCP servers, plugins, connectors, env surfaces, and harness setup, then recommend the highest-value ECC-native skills, hooks, agents, and operator workflows. Use when the user wants help setting up Claude Code or understanding what capabilities are actually available in their environment.

DevelopmentClaude

safety-guard

144923
from affaan-m/everything-claude-code

Use this skill to prevent destructive operations when working on production systems or running agents autonomously.

DevelopmentClaude

repo-scan

144923
from affaan-m/everything-claude-code

Cross-stack source code asset audit — classifies every file, detects embedded third-party libraries, and delivers actionable four-level verdicts per module with interactive HTML reports.

DevelopmentClaude

project-flow-ops

144923
from affaan-m/everything-claude-code

Operate execution flow across GitHub and Linear by triaging issues and pull requests, linking active work, and keeping GitHub public-facing while Linear remains the internal execution layer. Use when the user wants backlog control, PR triage, or GitHub-to-Linear coordination.

DevelopmentClaude

manim-video

144923
from affaan-m/everything-claude-code

Build reusable Manim explainers for technical concepts, graphs, system diagrams, and product walkthroughs, then hand off to the wider ECC video stack if needed. Use when the user wants a clean animated explainer rather than a generic talking-head script.

DevelopmentClaude

laravel-plugin-discovery

144923
from affaan-m/everything-claude-code

Discover and evaluate Laravel packages via LaraPlugins.io MCP. Use when the user wants to find plugins, check package health, or assess Laravel/PHP compatibility.

DevelopmentClaude

design-system

144923
from affaan-m/everything-claude-code

Use this skill to generate or audit design systems, check visual consistency, and review PRs that touch styling.

DevelopmentClaude

click-path-audit

144923
from affaan-m/everything-claude-code

Trace every user-facing button/touchpoint through its full state change sequence to find bugs where functions individually work but cancel each other out, produce wrong final state, or leave the UI in an inconsistent state. Use when: systematic debugging found no bugs but users report broken buttons, or after any major refactor touching shared state stores.

DevelopmentClaude

ck

144923
from affaan-m/everything-claude-code

Persistent per-project memory for Claude Code. Auto-loads project context on session start, tracks sessions with git activity, and writes to native memory. Commands run deterministic Node.js scripts — behavior is consistent across model versions.

DevelopmentClaude

canary-watch

144923
from affaan-m/everything-claude-code

Use this skill to monitor a deployed URL for regressions after deploys, merges, or dependency upgrades.

DevelopmentClaude

benchmark

144923
from affaan-m/everything-claude-code

Use this skill to measure performance baselines, detect regressions before/after PRs, and compare stack alternatives.

DevelopmentClaude

swiftui-patterns

144923
from affaan-m/everything-claude-code

SwiftUI 架构模式,使用 @Observable 进行状态管理,视图组合,导航,性能优化,以及现代 iOS/macOS UI 最佳实践。

DevelopmentClaude