live-ai-pipelines
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "live-ai-pipelines":https://skillpi.com/zh/skills/deepskill-10742b447e2864bcfceff046a21e0876254cb215b3ee812358c614cd271662da。安装前核对上游来源和版本:https://github.com/swyxio/skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
构建或重构需要可见进度、持久化部分结果、中断后可恢复或原子性发布的长时间运行 AI 工作流。适用于多阶段提取、索引、批量分析、评估或报告等多步骤流程,但不用于短时同步模型调用或仅用于界面流式显示的功能。
介绍来源: third_party · swyxio · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: live-ai-pipelines
description: Build or refactor a long-running AI workflow that needs visible progress, durable partial results, resume after interruption, or atomic publication. Use for multi-stage extraction, indexing, batch analysis, evaluation, or report workflows. Do not use for a short synchronous model call or a UI-only streaming feature.Live AI Pipelines
Use this skill when people need to inspect useful work while later work is still running, or reopen a run after interruption. It owns logical stages, artifacts, progress, recovery, and publication—not a particular queue, database, or provider SDK.
Pair with ai-engineering when model request/retry/rate-limit behavior is itself the problem. Pair with a provider/runtime skill only for that platform’s current API behavior.
Useful defaults
- Keep canonical complete artifacts separate from provisional previews.
- Give artifacts and independently resumable items stable IDs.
- Make the UI a projection of stored results and events, not the source of workflow truth.
- Publish a complete new snapshot rather than exposing a half-rendered site.
- Let core output publish with optional enrichment visibly pending unless the user makes that enrichment a completion requirement.
Workflow
1. Choose the level of machinery
Identify deterministic preparation, independent fan-out, fan-in synthesis, projection, and audit/publication. A local runner with atomic files, JSONL events, and polling/SSE is often enough. Add a queue, database, ownership lease, or process supervision only when multiple workers, long detachment, or safe handoff actually needs it.
For each stage, choose its item key, input/output contract, retry behavior, and whether a partial result is safe to show. Feed fan-in synthesis a bounded normalized projection of completed artifacts, not the raw corpus and every intermediate response.
2. Define complete versus preview data
Validate a response before writing a canonical artifact. Write it atomically, then emit a completion/failure event and update a replaceable status snapshot. Streamed token fragments and drafts may support a preview, but do not give them canonical links or present them as complete facts.
For a costly broad run, a small representative calibration and per-request-class budget notes can prevent systematic truncation. They are planning aids, not a prerequisite for an exploratory pilot.
3. Make resume proportional to the risk
For a simple local job, derive completion from validated result artifacts and idempotency keys. For a job that can outlive its caller or be resumed by another process, also maintain an item index, owner/lease, heartbeat, and explicit cancellation/detach policy. On cancellation, stop new admission, preserve valid work, and classify unfinished items so a later run can decide whether to retry them.
Record which input fields invalidate which stages. A transcript change need not invalidate a biography; a prose change need not invalidate media. Reuse acceptance and validation evidence only when the relevant source, content, contract and artifact versions match. Preserve accepted content while replacements are held. For entity releases, use one completion ledger with receipts behind it rather than competing status systems. Reconcile ambiguous delivery before another submission.
4. Use one provider boundary
Keep provider-specific streaming and request behavior inside an adapter that returns a validated result or an explicit failure. Record requested/actual provider/model and route when that information changes debugging, cost, privacy, or behavior.
- For OpenAI, use Structured Outputs and capture request/rate-limit identifiers when operating or debugging at scale.
- For Anthropic streaming, use the terminal stop reason to decide whether a response completed, hit a limit, paused, used tools, or refused.
- For OpenRouter, verify structured-output support per endpoint and record actual routing when it matters; router metadata is useful for diagnostic runs.
5. Expose useful progress
Provide a status snapshot and a reconnectable event path when a UI needs live updates. Show source coverage, completed artifacts, candidates/provisional work, and published output separately. Rebuild previews from canonical artifacts and events when practical.
6. Publish and verify
Assemble one complete candidate. Reuse exact-tree validation and promote its verified artifact rather than rebuilding unchanged code. Immutable staging may overlap independent validation, but mutable publication waits for required prerequisites. Render to a new snapshot, check the links and required artifacts, then switch the current pointer conditionally against the observed prior version and persist readback. Invalidate affected caches and perform one combined live pass at the coverage required by the user or project. Bind proofs to content/frontend versions and viewports; a localized repair rechecks only affected proofs. Do not infer visual acceptance from a machine success flag. Test the failure paths that matter to the promised experience: interruption/restart, malformed model output, duplicate delivery, provider failure, and browser reconnect. Report coverage, elapsed time, retries/fallbacks, and artifact locations when the run is significant.
References and scripts
- Architecture patterns — optional local-first layout, stages, recovery, and provider notes.
- Event and artifact contract — adaptable event envelopes and resume metadata.
scripts/event_journal.py,scripts/incremental_json.py,scripts/serve_progress.py, andscripts/publish_snapshot.pyare small local reference implementations; read and adapt them rather than copying their assumptions.
当前收录版本
0.0.1
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 解决长时间运行 AI 工作流的进度可见性、中断恢复和原子发布等核心痛点
- 适用于多阶段提取、索引、批量分析等高价值工程场景
亮点
- 触发描述清晰区分了适用与不适用场景,边界明确
亮点
- 结构完整,包含6个清晰的实施步骤和最佳实践
- frontmatter 完整,文档长度适中
待提升项
-
引用文件缺失 原报告严重程度:轻微
SKILL.md 中引用了 references/architecture.md、references/event-schema.md 及 scripts/event_journal.py 等多个文件,但传入内容中未提供这些文件
改进建议:请补充被引用的参考文件和脚本,或明确说明其为外部资源
亮点
- 覆盖了中断恢复、原子发布、异常处理等关键可靠性机制
- 提供了具体的事件契约和参考实现路径
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。