Skip to content
Agent Orchestration
Skill

/open

This skill should be used when the user invokes "/open" to open files from the latest interaction in Emacs buffers via emacsclient.

BOOST
From plugin
emacs-skills
14519 skills
Install
$ npx -y skills add xenodium/emacs-skills --skill open --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/open

Context preview

The summary Claude sees to decide when to auto-load this skill.

This skill should be used when the user invokes "/open" to open files from the latest interaction in Emacs buffers via emacsclient.

SKILL.md

open.SKILL.md
name: open
description: 'This skill should be used when the user invokes "/open" to open files from the latest interaction in Emacs buffers via emacsclient.'
tools: Bash
disable-model-invocation: true

Open files in Emacs

Open files from the most recent interaction in Emacs buffers using `emacsclient --eval`. Only include files relevant to the latest interaction (files just generated, edited, listed, or produced by the most recent tool output), not all files mentioned throughout the conversation.

How to open

First, locate `agent-skill-open.el` which lives alongside this skill file at `skills/open/agent-skill-open.el` in the emacs-skills plugin directory.

Each file spec in `:files` is either a string (file path) or a plist with `:file` and optional `:line`.

emacsclient --eval '
(progn
  (load "/path/to/skills/open/agent-skill-open.el" nil t)
  (agent-skill-open
    :files (quote ((:file "/path/to/file1.txt"
                    :line 42)
                   "/path/to/file2.txt"
                   "/path/to/file3.txt"))))'

Rules

  • Use absolute paths for files.
  • Use `:line` when a specific line is relevant (e.g., an error location or a newly added function).
  • Locate `agent-skill-open.el` relative to this skill file's directory.
  • If no relevant files exist in the recent interaction, inform the user.
  • Run the `emacsclient --eval` command via the Bash tool.
Read more
Ships withemacs-skills

Claude Code skills for Emacs integration. These skills enable tighter integration with agents running inside Emacs, for example agent-shell.

Get the whole plugin
Stats
145
Stars
17
Forks
Maintained
Maintenance
Emacs Lisp
Language
3mo ago
Last commit
8mo ago
Created
4h ago
Added

Repo: xenodium/emacs-skills

Other skills on emacs-skills.