relay-snippet

Save code snippets to local/snippets/ with metadata and inline commentary.

Updated Feb 28, 2026
One-click install
npx skills add https://github.com/numeric-io/the-data-relay --skill relay-snippet
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: relay-snippet
Source: https://github.com/numeric-io/the-data-relay/tree/main/skills/relay-snippet
Command: npx skills add https://github.com/numeric-io/the-data-relay --skill relay-snippet

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Captures and preserves valuable code snippets encountered during sessions, enabling quick reuse across projects in the Data Relay.

Core Features & Use Cases

  • Save snippets to the vault's local/snippets/ with a standardized, metadata-rich format.
  • Read existing tags from <vault>/tags.md and apply relevant subject tags to new snippets.
  • Use the provided template at <vault>/meta/templates/snippet.md to structure the snippet file, including description, source, date, tags, and commentary.
  • Include explanations, references, and notes as inline comments to aid future readers.

Quick Start

Invoke relay-snippet when you encounter a worthy code snippet to save it into local/snippets/ with the appropriate language extension and metadata.

Frequently Asked Questions about relay-snippet

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I save reusable code snippets with metadata and tags?

To save reusable code snippets, write the snippet to the vault's local/snippets/ directory as a language-specific file. Include description, source, date, tags, and inline commentary directly in the file to preserve context for future reuse.

What is the best way to organize and document code snippets in a vault?

Organizing code snippets in a vault requires applying a standardized template from meta/templates/snippet.md. This structures each entry with consistent metadata, applies relevant tags from tags.md, and uses a lowercase-hyphen slug for the filename.

How do I add inline commentary and references to a saved code snippet?

Add inline commentary and references to a saved code snippet by writing them directly as line comments within the language-specific file. This embeds explanations and notes alongside the code for future readers.

Can I categorize saved snippets using existing tags from my documentation vault?

Yes, you can categorize saved snippets by reading existing tags from your vault's tags.md file. The snippet management process applies these relevant subject tags to the new entry to maintain organizational consistency.

Do I need a specific template file to structure saved code snippets?

Yes, you need the snippet.md template located at meta/templates/ within your vault. This template dictates the required structure, ensuring every saved snippet includes a description, source, date, tags, and guidance.

What format should snippet files use when saved to local directories?

Snippet files should use a language-specific extension matching the code's programming language. The file must be named with a lowercase-hyphen slug and saved into the vault's local/snippets/ directory.