file-links

File link formatter: when referencing files, use Markdown link format and append line numbers with GitHub-style #L syntax.

Last repository push
GitHub Stars
154
Forks
19
Issues / PRs
8

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "file-links" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-872ad0b6e287df27678e22b7dd414672541a9a99efaeef733f9558c5a7ed8e3a. Verify the upstream source and version against https://github.com/xenodium/emacs-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

File link formatter: when referencing files, use Markdown link format and append line numbers with GitHub-style #L syntax.

0 Downloads

Introduction source: third_party · xenodium · 0.0.1 Reference

SkillPi interpretation

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

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
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.

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value52/100

Highlights

  • 提供清晰的 GitHub 风格文件引用格式化规范
  • 覆盖单行、范围、无行号三种典型使用场景
Trigger Precision85/100

Highlights

  • 触发词精准限定于文件引用格式化场景
  • 边界清晰不易误触
Structure and Standards90/100

Highlights

  • 结构清晰分 Format/Important/Rules 三部分
  • 包含完整正反示例便于理解执行
Execution Reliability95/100

Highlights

  • 语法示例准确符合 GitHub 实际行为
  • 覆盖常见错误用法提升执行成功率
Evidence Verifiability (mean of the first four)81/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.