# Snippets

> Use this tool when you need to efficiently manage and retrieve code snippets using AI-powered search. It solves problems of disorganized code libraries and difficult snippet discovery by providing hybrid search functionality that combines semantic similarity with keyword matching. It takes in code snippets, descriptions, tags, and language inputs, and outputs relevant search results, making it ideal for developers seeking to streamline their coding workflow.

Canonical page: https://skillsregistry.net/skills/freakynit-snippets  
JSON: https://api.skillsregistry.net/v1/skills/freakynit-snippets

## Description

Stores, searches, and manages code snippets using AI-powered semantic search combined with traditional keyword matching. Built using the Xenova/all-MiniLM-L6-v2 model for vector embeddings, it provides tools for adding snippets with automatic language detection, updating and deleting snippets with re-embedding when needed, and hybrid search that combines semantic similarity (70% weight) with keyword matching (30% weight) across code, descriptions, tags, and language fields. The implementation uses JSON-based storage with cached embeddings for fast retrieval, supports filtering by tags, language, and date ranges, and requires no external database setup.

## Trust

- **Trust score (0–1):** 0.95
- **Verification tier:** verified
- **Last scanned:** 2026-09-19

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** database
- **Updated:** 2026-09-19

## Source

- **Source listing:** [PulseMCP](https://www.pulsemcp.com/servers/freakynit-snippets)
- **Repository:** <https://github.com/freakynit/snippets-mcp>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "freakynit-snippets"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/freakynit-snippets` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/freakynit-snippets/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
