nanoflash: Skill for Claude Code

.claude/skills/add-emacs/SKILL.md

add-emacs is a skill for Claude Code from refactornator/nanoflash. It costs 57 tokens per session (2,318 once invoked), scanned A, a copy of add-emacs, MIT.

An Emacs connection for NanoClaw, a local chat assistant, with support for Doom Emacs, Spacemacs, and standard Emacs.

In plain words
What is it for?
Use it to send selected code or Org-mode notes to NanoClaw and receive replies or edits inside your Emacs documents.
Why use it?
It lets you ask questions, review code, revise writing, capture research, and manage reminders without leaving Emacs.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: names the AskUserQuestion tool.

This is refactornator/nanoflash's own configuration. It tells Claude Code how to work on nanoflash itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything nanoflash configures →

Reuse

Borrowing it

Nothing to install: this file belongs to refactornator/nanoflash. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/refactornator/nanoflash/main/.claude/skills/add-emacs/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/refactornator/nanoflash

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for add-emacs

README.md
[![agentmods](https://agentmods.dev/badge/skills/refactornator/nanoflash/add-emacs.svg)](https://agentmods.dev/skills/refactornator/nanoflash/add-emacs)
Your own site
<a href="https://agentmods.dev/skills/refactornator/nanoflash/add-emacs"><img src="https://agentmods.dev/badge/skills/refactornator/nanoflash/add-emacs.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,318 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.02318
Opus 5 $0.00028 $0.01159
Sonnet 5 $0.00011 $0.00464
Haiku 4.5 $0.00006 $0.00232

Measured 8d ago against content hash 8f122b6595a7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

add-emacs scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s "http://localhost:8766/api/messages?since=0"
Origin

This is a copy

100% identical to add-emacs — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/skills/add-emacs/SKILL.md · 289 lines

How it starts

The opening of the file, as written. The whole thing — 289 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Add Emacs Channel

This skill adds Emacs support to NanoClaw, then walks through interactive setup. Works with Doom Emacs, Spacemacs, and vanilla Emacs 27.1+.

What you can do with this

  • Ask while coding — open the chat buffer (C-c n c / SPC N c), ask about a function or error without leaving Emacs
  • Code review — select a region and send it with nanoclaw-org-send; the response appears as a child heading inline in your org file
  • Meeting notes — send an org agenda entry; get a summary or action item list back as a child node
  • Draft writing — send org prose; receive revisions or continuations in place
  • Research capture — ask a question directly in your org notes; the answer lands exactly where you need it
  • Schedule tasks — ask Andy to set a reminder or create a scheduled NanoClaw task (e.g. "remind me tomorrow to review the PR")

Phase 1: Pre-flight

Check if already applied

Check if src/channels/emacs.ts exists:

test -f src/channels/emacs.ts && echo "already applied" || echo "not applied"

If it exists, skip to Phase 3 (Setup). The code changes are already in place.

Phase 2: Apply Code Changes

Ensure the upstream remote

git remote -v

If an upstream remote pointing to https://github.com/qwibitai/nanoclaw.git is missing, add it:

git remote add upstream https://github.com/qwibitai/nanoclaw.git

Merge the skill branch

git fetch upstream skill/emacs
git merge upstream/skill/emacs

If there are merge conflicts on package-lock.json, resolve them by accepting the incoming version and continuing:

git checkout --theirs package-lock.json
git add package-lock.json
git merge --continue

For any other conflict, read the conflicted file and reconcile both sides manually.

This adds:

  • src/channels/emacs.tsEmacsBridgeChannel HTTP server (port 8766)
  • src/channels/emacs.test.ts — unit tests
  • emacs/nanoclaw.el — Emacs Lisp package (nanoclaw-chat, nanoclaw-org-send)
  • import './emacs.js' appended to src/channels/index.ts

Read the full file on GitHub · 289 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 289 lines · 57 tokens per session scan A 8f122b6595a7

Subscribe to this mod's changes

add-emacs is a skill published in the GitHub repository refactornator/nanoflash (5 stars, last pushed 4mo ago), licensed MIT. It adds 57 tokens to every session and 2,318 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 100% identical to add-emacs, differing in 0 lines, and is treated as a copy.