pipeline-persistence
БесплатноБез исполняемых скриптовНе проверенPipeline persistence — save, load, and reuse structured search plans, including exhaustive systematic-review searches with PRISMA-S records, full-set export…
от u9401066★ 30 звёзд на GitHubОб этом скилле
Pipeline 持久化 — 結構化搜尋計畫管理
描述
將複雜的搜尋流程保存為可重複使用的 Pipeline YAML 配置。支援:
- 從模板快速建立(pico、comprehensive、exploration、gene_drug、snowball)
- 自訂 DAG(有向無環圖)多步驟管道
- 雙層儲存(workspace + global)
- Schema-exact 驗證 + 有限度的安全 normalization
- 系統性回顧:
retrieval: exhaustive完整 PubMed 集合、PRISMA-S run 紀錄、完整集合匯出、MeSH 區塊分析、篩選與 PRISMA 2020 流程
觸發條件
- 「把這個搜尋存起來」、「建立搜尋計畫」
- 「每週跑一次這個搜尋」、「保存這個 pipeline」
- 「列出我的管道」、「上次的搜尋可以再跑嗎」
- 「把剛才的搜尋轉成 search plan」
- 「做系統性回顧/統合分析的檢索」、「PRISMA 流程圖」、「匯出給 Rayyan/Covidence」、「篩選紀錄」
🌟 快速開始
方法 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"
)
8 個 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") # 刪除配置 + 歷史
# 篩選紀錄已有決策時會拒絕(不刪任何東西)並回報決策/PMID 數;
# 先 pipeline_screening(request={"action":"log",...}) 匯出,再明確同意:
delete_pipeline(name="old_search", delete_screening_log=True)
檢查與刪除是原子操作(期間新記錄的決策仍會阻止刪除);檔案被鎖住時刪除會停止、pipeline 保持完整,可重試。
get_pipeline_history — 查看執行歷史
get_pipeline_history(name="weekly_remimazolam", limit=5)
# 顯示:run ID、日期、紀錄數、取回模式、PubMed 總數、新增/移除、策略 hash、狀態
get_pipeline_history(name="weekly_remimazolam", view="run") # 單一 run 來源資訊(JSON)
get_pipeline_history(name="weekly_remimazolam", view="prisma_s") # PRISMA-S 表(Markdown + CSV)
get_pipeline_history(name="weekly_remimazolam", view="records", offset=0, limit=100) # 完整紀錄集分頁(可超過 10,000 筆)
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")
pipeline_screening — 篩選紀錄與 PRISMA 2020 流程
pipeline_screening(request={"action": "queue", "pipeline": "my_review", "include_abstract": True})
pipeline_screening(request={"action": "record", "pipeline": "my_review", "decisions": [
{"pmid": "12345678", "stage": "title_abstract", "decision": "include", "reviewer": "ak"}]})
pipeline_screening(request={"action": "flow", "pipeline": "my_review"}) # PRISMA 2020 計數
pipeline_screening(request={"action": "log", "pipeline": "my_review"}) # 決策稽核紀錄
pipeline_screening(request={"action": "register_run", "pipeline": "my_review"}) # 手動登記某次 run
完整識別(exhaustive)的 run 會自動登記;更新檢索第一次出現的 PMID 自動進入標題/摘要待篩佇列。
決策只追加、以最新決策計算;未給 decision_id 時,只有與同一 reviewer 對該 PMID/階段的最新決策
完全相同才算重送,回到先前的決策(include → exclude → include)一定會記錄並計入;要讓重送冪等請給穩定的
decision_id。全文排除必須附理由(取不到全文用 not retrieved)。
flow 的識別筆數是 filter step 之前的檢索結果,被 filter 移除的筆數列為「自動化工具判為不符」。
prepare_export(pipeline_run=...) — 匯出完整紀錄集
prepare_export(pipeline_run="my_review", format="ris") # 最新 run
prepare_export(pipeline_run="my_review@<run_id>", format="csv") # 指定 r
Установить pipeline-persistence в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл pipeline-persistence?
Pipeline persistence — save, load, and reuse structured search plans, including exhaustive systematic-review searches with PRISMA-S records, full-set export and screening. Triggers: pipeline, 管道, search plan, 搜尋計畫, 重複搜尋, saved search, 排程, schedule, workflow, DAG, systematic review, meta-analysis, 統合分析, PRISMA, screening, 篩選
Как установить скилл pipeline-persistence?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pipeline-persistence запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic