Chromium Code Link Formatting chromium-code-link-formatting

Use this skill when you need to link to files or specific lines in the Chromium codebase within a document intended for external sharing (e.g., Google Docs, Buganizer). This skill ensures links use the stable `source.chromium.org` format with line numbers and commit hashes for accessibility, even if the user doesn't explicitly specify the format. Do not use for internal or purely local notes where file:/// links are preferred.

Works in Claude, ChatGPT, Codex and more
Our test
—
not tested yet
GitHub stars
26k
chromium/chromium
Added by
0
members
Updated
Dec 6
commit 8cf236c
Content
1 file
no scripts · 1 KB
License
BSD 3-Clause
free to use

What our test found

Not tested yet. Our model tries every skill on a realistic request and scores the result, the most popular skills first. Until then, the safety checks on the right still apply.

View on GitHub ↗
name: chromium-code-link-formatting
description: >-
  Use this skill when you need to link to files or specific lines in the Chromium codebase within a document intended for external sharing (e.g., Google Docs, Buganizer). This skill ensures links use the stable `source.chromium.org` format with line numbers and commit hashes for accessibility, even if the user doesn't explicitly specify the format. Do not use for internal or purely local notes where file:/// links are preferred.

Chromium Source Link Formatter

Instructions

When formatting links to the Chromium codebase for documents that will be shared externally:

  1. Use the following URL format: https://source.chromium.org/chromium/chromium/src/+/main:{path_to_file};l={line_no};drc={commit_hash}
  1. Resolve Placeholders:
  • path_to_file: The path to the file relative to the repository root.
  • line_no:
  • Single line: l=20
  • Range: l=400-500 (inclusive)
  • Multiple ranges: l=20,400-500
  • Whole file: Leave empty (l=)
  • commit_hash:
  • If the user specifies a hash, use it.
  • Otherwise, execute git merge-base HEAD origin/main to find the latest common ancestor and use that hash.