pipeline-persistence
Pipeline persistence — save, load, and reuse structured search plans. Triggers: pipeline, 管道, search plan, 搜尋計畫, 重複搜尋, saved search, 排程, schedule, workflow, DAG
от u9401066★ 15 звёзд на GitHub
Установить pipeline-persistence в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Pipeline 持久化 — 結構化搜尋計畫管理
描述
將複雜的搜尋流程保存為可重複使用的 Pipeline YAML 配置。支援:
- 從模板快速建立(pico、comprehensive、exploration、gene_drug、snowball)
- 自訂 DAG(有向無環圖)多步驟管道
- 雙層儲存(workspace + global)
- Schema-exact 驗證 + 有限度的安全 normalization
觸發條件
- 「把這個搜尋存起來」、「建立搜尋計畫」
- 「每週跑一次這個搜尋」、「保存這個 pipeline」
- 「列出我的管道」、「上次的搜尋可以再跑嗎」
- 「把剛才的搜尋轉成 search plan」
🌟 快速開始
方法 1: 用模板(最簡單)
# 保存一個 PICO 模板 pipeline
save_pipeline(
name="icu_remimazolam_vs_propofol",
config="""
template: pico
template_params:
P: ICU patients requiring sedation
I: remimazolam
C: propofol
O: delirium incidence, sedation quality
""",
tags=["anesthesia", "sedation", "ICU"],
description="Weekly monitoring: remimazolam vs propofol ICU sedation"
)
# 執行已保存的 pipeline
unified_search(pipeline="saved:icu_remimazolam_vs_propofol")
方法 2: 自訂 DAG(完整控制)
save_pipeline(
name="brca1_comprehensive",
config="""
steps:
- id: expand
action: expand
params:
topic: BRCA1 breast cancer
- id: pubmed
action: search
params:
query: BRCA1 breast cancer
sources: [pubmed]
limit: 50
- id: expanded
action: search
inputs: [expand]
params:
strategy: mesh
sources: [pubmed, openalex]
limit: 50
- id: merged
action: merge
inputs: [pubmed, expanded]
params:
method: rrf
- id: enriched
action: metrics
inputs: [merged]
output:
format: markdown
limit: 30
ranking: quality
""",
tags=["genetics", "oncology"],
description="BRCA1 breast cancer comprehensive search with MeSH expansion"
)
7 個 MCP 工具
save_pipeline — 保存管道
save_pipeline(
name="weekly_remimazolam", # 唯一名稱 (英數 + _ -, max 64)
config="<YAML or JSON>", # Pipeline 配置
tags=["tag1", "tag2"], # 最多 20 個 canonical 字串標籤
description="...", # 人類可讀描述
scope="auto" # "workspace" | "global" | "auto"
)
Fail-closed contract:
- action/template 只接受下列 canonical 值;alias 與拼字錯誤直接拒絕
- template 參數只使用頂層
template_params;已退役的頂層params直接拒絕 - step ID 必須明確且唯一;dependency ID 必須精確引用前面的 step
- 未知
on_error、output format 或 ranking 不會被猜測或改寫
list_pipelines — 列出管道
list_pipelines() # 列出所有
list_pipelines(tag="ICU") # 按標籤過濾
list_pipelines(scope="workspace") # 只看工作區
load_pipeline — 載入管道
load_pipeline(source="weekly_remimazolam") # 從已保存
load_pipeline(source="file:path/to/pipeline.yaml") # 從檔案
delete_pipeline — 刪除管道
delete_pipeline(name="old_search") # 刪除配置 + 歷史
get_pipeline_history — 查看執行歷史
get_pipeline_history(name="weekly_remimazolam", limit=5)
# 顯示:日期、文章數、新增/移除文章、狀態
schedule_pipeline — 建立或更新排程
schedule_pipeline(name="weekly_remimazolam", cron="0 9 * * 1")
diff_mode=True 會在排程報告附上與前次成功執行的差異:新增文章與移除 PMID 各最多 20 筆,首次執行標示 baseline。Partial/error 不據以推論移除。
notify=True 保存最後 run ID 與新增/移除數量;list_pipelines 顯示新增文章數並引導至 get_pipeline_history,不是外部推播。停用通知會清除舊摘要。
unschedule_pipeline — 移除排程
unschedule_pipeline(name="weekly_remimazolam")
5 個內建模板
pico — PICO 臨床問題
template: pico
template_params:
P: ICU patients requiring sedation
I: remimazolam
C: propofol
O: delirium incidence
sources: [pubmed] # 可選,預設 pubmed
limit: 20 # 可選
自動產生的 DAG:
pico → search_p ──┐
→ search_i ──┤
→ search_c ──┼→ merged → enriched
comprehensive — 多資料庫 + MeSH 擴展
template: comprehensive
template_params:
query: CRISPR gene therapy safety
sources: [pubmed, openalex, europe_pmc] # 可選
limit: 30 # 可選
min_year: 2020 # 可選
自動產生的 DAG:
expand → search_expanded ──┐
search_original ──┼→ merged → enriched
exploration — 種子論文探索
template: exploration
template_params:
pmid: "33475315"
limit: 20 # 每個方向的限制
自動產生的 DAG:
related ──┐
citing ──┼→ merged → enriched
refs ──┘
gene_drug — 基因/藥物搜尋
template: gene_drug
template_params:
term: BRCA1
sources: [pubmed, openalex] # 可選
limit: 20 # 可選
min_year: 2020 # 可選
snowball — 多種子引用擴展
template: snowball
template_params:
query: remimazolam ICU sedation
seed_limit: 5 # 可選,1–10,預設 5
limit: 20 # 可選,預設 20
流程:search → citing + references → union merge(含原始搜尋結果)。
related/citing/references 也可透過 inputs 搭配 seed_limit,但不可同時給 pmid。
依輸入順序取前幾個不重複 PMID,每個 seed 消耗一次外部呼叫預算;合併去重後排除 seeds,並以 limit 截斷該 action 的結果。
10 個可用 Action
| Action | 說明 | 主要參數 |
|---|---|---|
search |
文獻搜尋 | query, sources, limit, min_year, max_year |
pico |
Agent-provided PICO handoff search | P, I, optional C, recommended O |
expand |
MeSH/同義詞擴展 | topic |
details |
取得文章詳情 | pmids |
related |
相關文章 | pmid 或 |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/pipeline-tutorial.md
- references/pipeline-tutorial.zh-TW.md
FAQ
Что делает скилл pipeline-persistence?
Pipeline persistence — save, load, and reuse structured search plans. Triggers: pipeline, 管道, search plan, 搜尋計畫, 重複搜尋, saved search, 排程, schedule, workflow, DAG
Как установить скилл pipeline-persistence?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pipeline-persistence запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
agent-skill-stack
GitHubFind, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
build-evidence-map
GitHubBuild an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
pinecone-rag
GitHubBuild production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
qdrant-monitoring-debugging
GitHubDiagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…