snippets-collector

Capture clipboard code snippets, detect language, and save structured notes.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/lordking/lee-second-brain-os --skill snippets-collector
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: snippets-collector
Source: https://github.com/lordking/lee-second-brain-os/tree/main/skills/kb-snippets-collecting
Command: npx skills add https://github.com/lordking/lee-second-brain-os --skill snippets-collector

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Collects code snippets copied to the clipboard and saves them as structured notes in a knowledge base, with language detection and automatic metadata extraction.

Core Features & Use Cases

  • Language-aware snippet capture: detect language, extract metadata, and save notes for quick retrieval.
  • Knowledge base integration: organize snippets with tags, source URLs, and descriptive notes.
  • Safe, non-executable storage: focuses on collection, classification and storage without running code.

Quick Start

Clip code from your clipboard and save it as a structured knowledge-note with metadata.

Frequently Asked Questions about snippets-collector

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

FAQPage Schema
How do I capture code snippets from my clipboard into a knowledge base?

To capture code snippets from your clipboard into a knowledge base, the system detects the programming language, extracts metadata, and saves the text as a structured note. This enables quick retrieval of copied code samples across projects.

Can I automatically detect the programming language of a copied code snippet?

Yes, you can automatically detect the programming language of a copied code snippet using built-in language detection heuristics. The system analyzes the clipboard text to identify the syntax before saving it to your notes.

What is the best way to organize code samples with tags and source URLs for reference?

The best way to organize code samples with tags and source URLs is through structured knowledge base integration. The system automatically extracts metadata and allows you to tag snippets, ensuring your reference code remains searchable and categorized.

Does the snippet collection process execute the code stored in the clipboard?

No, the snippet collection process does not execute the code stored in the clipboard. It focuses strictly on safe, non-executable storage by capturing text, classifying syntax, and organizing metadata without running any scripts.

What metadata is extracted when saving a code snippet to a note?

When saving a code snippet to a note, the extracted metadata includes the detected programming language, optional user-defined tags, and source URLs. This creates a structured knowledge base entry for efficient retrieval.