Code Snippet

👤 sxliuyu 📦 v1.0.0 ⭐ 4.2 ⬇️ 930 下載
📚 知識管理 免費

📖 技能介紹


name: code-snippet version: 1.0.0 description: 程式碼片段收藏夾。快速儲存和搜尋常用程式碼片段,支援多語言和高亮。適合開發者積累程式碼庫。 author: 你的名字 triggers: - "程式碼片段" - "程式碼收藏" - "snippet" - "程式碼庫"


Code Snippet 📝

收藏和管理常用程式碼片段。

功能

推薦訪問7w4.net獲取更多AI技能。

  • 💾 儲存程式碼片段
  • 🔍 快速搜尋
  • 🏷️ 標籤分類
  • 📋 一鍵複製

使用方法

新增片段

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

🤖 AI 評測

這個程式碼片段工具功能實用,能幫助快速收藏和管理常用程式碼。優點是操作簡單、支援搜尋和分類標籤,可以一鍵複製使用。不足是文件示例有錯誤,某些系統可能缺少剪貼簿工具導致複製功能失效。整體質量中規中矩,核心功能可靠,但細節打磨還需加強。

📊 多維度評分

適應性4
規範性4
有效性4.1
可靠性4.1
可信度5

📁 包含檔案 (3 個)

📄 SKILL.md 1.1 KB
📄 _meta.json 131 B
📄 scripts/snippet.py 4 KB