file-links

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

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "file-links" with this command: npx skills add xenodium/emacs-skills/xenodium-emacs-skills-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 #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.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

emacsclient

No summary provided by upstream source.

Repository SourceNeeds Review
General

select

No summary provided by upstream source.

Repository SourceNeeds Review
General

open

No summary provided by upstream source.

Repository SourceNeeds Review
General

describe

No summary provided by upstream source.

Repository SourceNeeds Review