snippets

Manage reusable text snippets expanded via hashtag triggers in messages.

1|1|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/JosXa/pi-snippets --skill snippets-josxa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: snippets
Source: https://github.com/JosXa/pi-snippets/tree/main/skills/snippets
Command: npx skills add https://github.com/JosXa/pi-snippets --skill snippets-josxa

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the inefficiency of repeatedly typing or copy-pasting common text blocks, instructions, or code snippets, enabling faster and more consistent communication and task execution.

Core Features & Use Cases

  • Inline Text Expansion: Trigger reusable content by typing a #hashtag in your messages.
  • Composability: Combine multiple snippets to build complex prompts or instructions.
  • Maintainability: Update a snippet in one place, and all its uses are instantly updated.
  • Use Case: A developer can type #code-review-checklist to automatically insert a predefined set of review points into their pull request description.

Quick Start

Use the snippets skill to add a new global snippet named 'greeting' with the content 'Hello, world!'.

Frequently Asked Questions about snippets

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

FAQPage Schema
How do I use text expansion to insert reusable content blocks with hashtag triggers?

Text expansion with hashtag triggers lets you type a specific #hashtag in your message to automatically insert predefined, reusable content blocks. This mechanism eliminates repetitive copy-pasting and ensures consistent communication across your workflow.

Can I store reusable text snippets globally and within specific projects?

Yes, you can store reusable text snippets in both global and project-scoped storage. This allows you to maintain universally accessible text blocks while keeping project-specific instructions or code snippets isolated to their respective contexts.

What is the Markdown format for defining reusable content snippets with aliases and descriptions?

The Markdown format for reusable content snippets includes specific fields for defining aliases, descriptions, and special blocks like prepend, append, and inject. This structure ensures your text snippets are properly configured for expansion and composability.

How do I combine multiple text snippets to build complex prompts or instructions?

You can combine multiple text snippets by using their respective hashtag triggers within the same message. This composability allows you to assemble complex prompts or detailed instructions from smaller, maintainable, and updatable text blocks.

Does the snippets skill support sharing text blocks to GitHub Discussions?

Yes, the snippets skill supports sharing text blocks to GitHub Discussions. This allows you to distribute your reusable content, code snippets, and prompt engineering components to your team or the broader community directly.

What is the best way to manage reusable content snippets via command-line interface?

Managing reusable content snippets via command-line interface involves using specific commands to add, update, and configure your text blocks. This approach allows you to maintain inline text expansion rules and enable experimental features efficiently.