Skip to content
Agent Orchestration
Skill

/file-links

When referencing files, format them as markdown links with line numbers using GitHub-style #L syntax.

BOOST
From plugin
emacs-skills
14519 skills
Install
$ npx -y skills add xenodium/emacs-skills --skill file-links --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/file-links

Context preview

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

When referencing files, format them as markdown links with line numbers using GitHub-style #L syntax.

SKILL.md

file-links.SKILL.md
name: file-links
description: 'When referencing files, format them as markdown links with line numbers using GitHub-style #L syntax.'

Format file references as markdown links

When referencing files in your output, always format them as markdown links. Use the GitHub-style `#L` fragment for line numbers.

Format

With a line number:

[filename.el:42](relative/path/to/filename.el#L42)

With a line range:

[filename.el:42-50](relative/path/to/filename.el#L42-L50)

Without a line number:

[filename.el](relative/path/to/filename.el)

Important

  • The link text uses `:` for line numbers (e.g., `filename.el:42`).
  • The URL uses `#L` for line numbers (e.g., `filename.el#L42`).
  • For ranges, the link text uses `-` (e.g., `filename.el:42-50`) and the URL uses `-L` (e.g., `filename.el#L42-L50`).
  • The range must appear in both the link text and the URL.

Do NOT do this:

[filename.el#L42-L50](filename.el#L42)

Rules

  • Use paths relative to the project root.
  • Include line numbers when they are relevant (e.g., error locations, function definitions, modified lines).
  • Use line ranges when referring to a block of code.
  • The link text should be the filename (or relative path if needed for clarity) followed by the line number.
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.