Index of every page on this site: llms.txt
All skills
xenodium avatar

/open

@a158238
by xenodiumxenodium/emacs-skills151 stars
19
Run it yourself

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

Use this Skill: https://skilld.dev/gh/xenodium/emacs-skills/open

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈34 tokens for metadata: the name and description. ≈300 when used: this file.

How this Skill uses context

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

This Skill turns off automatic use in Claude Code. Its description stays out of the automatic Skill list by default.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2mo5 checks · Risk MEDIUM
  • Gen Agent Trust Hub2mo

    This skill opens files in Emacs by generating and executing Emacs Lisp commands via emacsclient. It is vulnerable to Lisp code injection if file paths from the conversation are not properly escaped before being included in the command string.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

  • Runlayer9mo

    2 files scanned · No issues

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at a158238. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 9 months ago
tools
Bash
disable-model-invocation
true

README badge

README badge for xenodium/emacs-skills/open