界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
设计与创意 · SKILL.md

utilities

utilities

【设计与创意】Use PocketFlow utility patterns for LLM wrappers, search, embeddings, vector search, chunking, TTS/audio, visualization, tracing, and other external integrations.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: utilities description: "Use PocketFlow utility patterns for LLM wrappers, search, embeddings, vector search, chunking, TTS/audio, visualization, tracing, and other external integrations." metadata: disco-role: operating disable-model-invocation: true license: MIT

PocketFlow Utilities

Use this sub-skill when the user needs supporting functions that PocketFlow nodes can call: provider wrappers, search helpers, embedding helpers, vector search, audio, visualization, tracing, or environment validation.

What this sub-skill covers

  • Provider-neutral LLM wrapper patterns.
  • Search utilities and search-result parsing.
  • Chunking helpers.
  • Embedding and vector search helpers.
  • TTS/audio wrapper patterns.
  • Mermaid graph generation and call-stack debugging.
  • Tracing and observability integration caveats.
  • Safe env-var and dependency validation.

What to read first

Typical user requests

  • "How do I wrap OpenAI/Anthropic/other LLM calls for PocketFlow?"
  • "How do I chunk text or build embeddings?"
  • "How do I wire a vector search helper?"
  • "How do I visualize or debug a graph?"
  • "How do I add tracing or handle API-key failures?"

Route map

NeedRead
Provider-neutral utility patternsreferences/utility-recipes.md
Mermaid/debugging/tracing guidancereferences/visualization-and-observability.md
Environment and provider troubleshootingreferences/troubleshooting.md
Safe local utility checksscripts/pocketflow_utilities.py

Design principles

  1. Keep provider calls outside the graph runtime.
  2. Make env vars and credentials explicit.
  3. Validate dimensions, schemas, and return types early.
  4. Separate local smoke checks from networked or credentialed integrations.
  5. Prefer small, reusable helpers over huge mixed-purpose utility modules.

Boundaries

  • Do not duplicate PocketFlow core runtime semantics; read core-abstraction for node/flow behavior.
  • Do not claim the skill bundles vendor services or paid APIs; document them as optional dependencies or external integrations.
  • Do not keep tracing, browser, audio, or cloud service assumptions hidden in prose; list them explicitly.
我的收藏