code-snippet

代码片段收藏夹。快速保存和搜索常用代码片段,支持多语言和高亮。适合开发者积累代码库。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "code-snippet" with this command: npx skills add sxliuyu/code-snippet

Code Snippet 📝

收藏和管理常用代码片段。

功能

  • 💾 保存代码片段
  • 🔍 快速搜索
  • 🏷️ 标签分类
  • 📋 一键复制

使用方法

添加片段

python3 scripts/snippet.py add "Python读取文件" --code "with open('file.txt') as f:" --lang python --tag 文件操作

搜索

python3 scripts/snippet.py search "读取文件"

列出

python3 snippets.py list --tag python

复制

python3 snippets.py get 1

示例

# 添加 Python 代码片段
python3 scripts/snippet.py add "读取JSON" --code "import json\nwith open('file.json') as f: data = json.load(f)" --lang python

# 搜索
python3 scripts/snippet.py search "JSON"

# 按标签列出
python3 scripts/snippet.py list --tag python

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Facebook Page

Facebook Page API integration with managed OAuth. Manage pages, posts, comments, insights, photos, videos, and product catalogs. Use this skill when users wa...

Registry SourceRecently Updated
General

Multi Model Consensus

多模型决策委员会 — 消除单模型偏见,通过多轮分歧讨论产出客观决策参考。支持3-6个模型同时评审,提供量化投票矩阵和6段式共识报告。触发条件:包含「多模型决策」或「多模型委员会」时自动激活。

Registry SourceRecently Updated
General

Chart Splat (x402)

Generate beautiful charts by paying per request with x402 micropayments (USDC on Base) instead of an API key. Use when the user wants a chart and has no CHAR...

Registry SourceRecently Updated
General

Meta Ads

Meta Marketing API integration with managed OAuth. Manage ad accounts, campaigns, ad sets, ads, and get insights/analytics. Use this skill when users want to...

Registry SourceRecently Updated