file-links
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
#Lfor 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.
More from xenodium/emacs-skills
emacsclient
Always use emacsclient instead of emacs. This applies to all Emacs operations: user requests, byte compilation, check-parens, running ERT tests, and any other elisp evaluation.
51describe
This skill should be used when the user invokes "/describe" to look up Emacs documentation via emacsclient.
34dired
This skill should be used when the user invokes "/dired" to open files from the latest interaction in an Emacs dired buffer via emacsclient.
33open
This skill should be used when the user invokes "/open" to open files from the latest interaction in Emacs buffers via emacsclient.
32select
This skill should be used when the user invokes "/select" to open one or more files in Emacs and select a region relevant to the current discussion via emacsclient.
31highlight
This skill should be used when the user invokes "/highlight" to highlight relevant regions in one or more files in Emacs via emacsclient.
31