Skip to content
Back to skills

Emacs

ASecurity

Use when Emacs, Emacs Lisp, init.el, packages, keybindings, automation, or runtime state are involved.

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 14, 2026
toolsrustshellbashexpressrailsdebugging

Works with

  • cli

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned November 14, 2026

npx -y skills add anntnzrb/agents --skill emacs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Emacs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Emacs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anntnzrb-emacs/badge)](https://www.skillsdirectory.com/skills/anntnzrb-emacs)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
disable-model-invocation: true
name: emacs
description: "Use when Emacs, Emacs Lisp, init.el, packages, keybindings, automation, or runtime state are involved."
license: AGPL-3.0-or-later
compatibility: Requires `emacsclient` and `uv`. Best with a running Emacs server. `info` preferred for manuals; `rg` recommended for installed docs/source lookup.
metadata:
  author: anntnzrb

---

# Emacs

Emacs work: running state + persistent config on disk. Prefer evidence in order: running instance; official manuals via `info`; local installed docs/source via `rg`; ecosystem corroboration via Grep.app, then `gh`. Avoid cloning Emacs unless explicitly needed.

## Entry point

Cross-platform command:

```text
uv run --script <skill-dir>/scripts/cli.py ...
```

Set `<skill-dir>` to this skill directory. Do not rely on shell sourcing, executable bits, or shebang dispatch.

## Required reads

- Any persistent or live Emacs change → read `references/live-workflow.md` for inspect, preview, persist, and verify.
- Querying faces, buffers, keys, features, or paths → read `references/common-queries.md` for exact runtime query recipes.

## Workflow

1. Inspect runtime state first.
2. Inspect relevant config files only as needed.
3. Pick the right persistence target.
4. Preview the intended change if a live preview is useful.
5. Apply the persistent edit.
6. Apply live when safe.
7. Verify runtime state and file state.
8. Call out restart requirements explicitly.
9. Write the requested artifact if the user asked for one.

Default: inspect → preview → apply → verify.

## Output discipline

- A requested report, note, patch file, or other artifact at a specific path MUST be created before finalizing.
- When a concrete deliverable is requested, do not stop at acknowledgement, plan, or partial progress.
- After writing the artifact, summarize the result briefly.

## Runtime introspection

Default Emacs communication: `uv run --script <skill-dir>/scripts/cli.py`; it dispatches to `scripts/emacsctl.py`, avoids fragile shell quoting, and simplifies common checks.

Use raw `emacsclient` only when debugging the helper, the helper is unavailable, or a truly tiny one-off probe is simpler with no quoting risk.

Prefer helper subcommands over custom Elisp when they fit: `ping`, `face`, `buffer`, `key`, `library`, `feature`, `reload-init`, `load`.

Quick checks:

```bash
uv run --script <skill-dir>/scripts/cli.py ping
uv run --script <skill-dir>/scripts/cli.py face default
uv run --script <skill-dir>/scripts/cli.py buffer
uv run --script <skill-dir>/scripts/cli.py library use-package
uv run --script <skill-dir>/scripts/cli.py feature server
```

For reusable or multiline queries, prefer a temporary `.el` file plus `eval-file`.

## Guardrails

- Do not trust memory alone for Emacs semantics; inspect runtime, docs, or source.
- Do not assume a config layout, package set, theme, keybinding scheme, or distro integration; inspect first.
- Do not claim a startup-only change is live when it only fully applies on restart.
- Do not leave persistent intent as a session-only tweak unless the user requested a temporary experiment.
- Package-manager writes require explicit user intent.
- Keep diffs small and modular; do not turn `init.el` into a dump file.
- After reloading, verify final state with runtime queries.
- Prefer querying variables, faces, frame params, keymaps, loaded features, and buffer state over guessing.
- Prefer `uv run --script <skill-dir>/scripts/cli.py` over raw `emacsclient` when the helper can express the same operation reliably.
- Be explicit about risk when live-evaluating changes in an already-running Emacs.

Files in this skill

  • SKILL.md3.6 KB
  • references/common-queries.md3 KB
  • references/live-workflow.md4.7 KB
  • scripts/cli.py1.5 KB
  • scripts/emacsctl.py10.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.