snippet-creator

snippet-creator is a skill for Claude Code, Codex from Lapis0x0/obsidian-yolo. It costs 81 tokens per session (340 once invoked), scanned A, original, MIT.

A guide for managing chat snippets: short prompts inserted from the chat input by choosing a slash command such as /review. It stores these snippets in a file named snippets.md.

In plain words
What is it for?
Use it to add, edit, rename, list, or delete slash shortcuts and to write concise prompt text for recurring tasks.
Why use it?
It keeps repeated requests easy to reuse and ensures new snippets follow the library's required format.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to add, edit, rename, list, or delete slash shortcuts and to write concise prompt text for recurring tasks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lapis0x0/obsidian-yolo/snippet-creator
About the project

Obsidian YOLO is an AI assistant integrated with Obsidian for chatting, writing, learning, and managing a knowledge base. It is for people who use Obsidian as a workspace for notes and personal knowledge. Catalogue add-ons provide related assistant capabilities.

Lapis0x0/obsidian-yolo · 1,341 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Lapis0x0/obsidian-yolo --skill snippet-creator
Clone the repo
git clone --depth 1 https://github.com/Lapis0x0/obsidian-yolo

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for snippet-creator

README.md
[![agentmods](https://agentmods.dev/badge/skills/lapis0x0/obsidian-yolo/snippet-creator/github.svg)](https://agentmods.dev/skills/lapis0x0/obsidian-yolo/snippet-creator)
Your own site
<a href="https://agentmods.dev/skills/lapis0x0/obsidian-yolo/snippet-creator"><img src="https://agentmods.dev/badge/skills/lapis0x0/obsidian-yolo/snippet-creator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for snippet-creator

Your own site · 80×15
<a href="https://agentmods.dev/skills/lapis0x0/obsidian-yolo/snippet-creator"><img src="https://agentmods.dev/badge/skills/lapis0x0/obsidian-yolo/snippet-creator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 340 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00081 $0.00340
Opus 5 $0.00041 $0.00170
Sonnet 5 $0.00016 $0.00068
Haiku 4.5 $0.00008 $0.00034

Measured 11d ago against content hash 786cb4dd035b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

snippet-creator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/core/skills/builtin/snippet-creator/SKILL.md · 31 lines

What it actually says

Snippet Creator

Snippets are short prompt texts users insert into the chat input by typing / and picking from the "快捷指令" category. Selecting one inserts the body verbatim — the user then edits or sends it.

Format (YOLO/snippets.md)

## trigger
> one-line description (optional)

The prompt text to insert.

Rules

  • ## marks a snippet boundary. Never use ##, ###, ####… inside the body — they will be parsed as separate snippets. Use bold or dashes for emphasis instead.
  • The body is what you ask the AI to do, not the document you want the AI to produce.
    • Draft a test report with sections: goal, scenarios, expected, actual.
    • ## Goal\n## Scenarios\n## Expected\n## Actual\n… ← document skeleton, not a prompt.
  • Keep it short. If a structured ask is needed, describe the structure in prose.

Workflow

Read YOLO/snippets.md and append a new ## trigger block. Create the file with fs_write if missing.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 31 lines · 81 tokens per session scan A 786cb4dd035b

Subscribe to this mod's changes

snippet-creator is a skill published in the GitHub repository Lapis0x0/obsidian-yolo (1,341 stars, last pushed yesterday), licensed MIT. It adds 81 tokens to every session and 340 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.