live-ai-pipelines
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "live-ai-pipelines" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-10742b447e2864bcfceff046a21e0876254cb215b3ee812358c614cd271662da. Verify the upstream source and version against https://github.com/swyxio/skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Building or refactoring long-running AI pipelines that require visible progress, persistence of partial results, resumability after interruptions, or atomic publishing. Suited for multi-stage extraction, indexing, bulk analysis, evaluation, or reporting workflows, but not for short synchronous model calls or streaming features intended only for UI display.
Introduction source: third_party · swyxio · 0.0.1 Reference
SkillPi interpretation
- Tasks
- 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.
- Testing
- Not tested
Browse files
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.
Current listing version
0.0.1
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决长时间运行 AI 工作流的进度可见性、中断恢复和原子发布等核心痛点
- 适用于多阶段提取、索引、批量分析等高价值工程场景
Highlights
- 触发描述清晰区分了适用与不适用场景,边界明确
Highlights
- 结构完整,包含6个清晰的实施步骤和最佳实践
- frontmatter 完整,文档长度适中
Areas to improve
-
Missing referenced files Reported severity: Minor
SKILL.md 中引用了 references/architecture.md、references/event-schema.md 及 scripts/event_journal.py 等多个文件,但传入内容中未提供这些文件
Recommendation: 请补充被引用的参考文件和脚本,或明确说明其为外部资源
Highlights
- 覆盖了中断恢复、原子发布、异常处理等关键可靠性机制
- 提供了具体的事件契约和参考实现路径
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.