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

design-patterns

design-patterns

【设计与创意】Use PocketFlow to design LLM apps and agentic workflows with workflows, agents, RAG, map-reduce, structured output, multi-agent queues, and service/background patterns.

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

技能说明

GitHub

name: design-patterns description: "Use PocketFlow to design LLM apps and agentic workflows with workflows, agents, RAG, map-reduce, structured output, multi-agent queues, and service/background patterns." metadata: disco-role: operating disable-model-invocation: true license: MIT

PocketFlow Design Patterns

Use this sub-skill when the user wants to turn a task into a PocketFlow application design rather than debug a single node or utility function.

What this sub-skill covers

  • Workflow decomposition for article-writing, extraction, planning, and approval flows.
  • Agent decision loops and tool/action routing.
  • RAG pipelines with offline indexing and online retrieval.
  • Map-reduce style document or record processing.
  • Structured output with validation-friendly prompts.
  • Multi-agent or message-queue style coordination.
  • FastAPI/Streamlit/Gradio-style service and background job shapes when they are part of the PocketFlow app structure.
  • Cookbook-derived pattern selection and dependency caveats.

What to read first

Typical user requests

  • "How should I structure this PocketFlow app?"
  • "Should I use workflow, agent, or RAG?"
  • "How do I add a review/retry loop?"
  • "How do I process many docs or files?"
  • "How do I design a service-backed or background-job PocketFlow app?"

Route map

NeedRead
Pattern choice and node-level recipe shapereferences/pattern-recipes.md
Docs-first process and project skeletonreferences/agentic-coding-guide.md
Cookbook-style task matchingreferences/cookbook-map.md
Architectural failure modes and repair stepsreferences/troubleshooting.md
Safe local skeleton outputscripts/design_pattern_templates.py

Design principles

  1. Start with the smallest useful graph.
  2. Put schema and task state into the shared store.
  3. Keep exec() focused on compute and utility calls.
  4. Use post() to write results and choose the next action.
  5. Add validation on outputs that an LLM may produce in an unreliable format.
  6. Prefer explicit recipes over clever, over-general node abstractions.

Boundaries

  • Do not use this sub-skill for core runtime signatures or retry semantics; read core-abstraction instead.
  • Do not use this sub-skill to implement provider-specific LLM wrappers, vector stores, tracing clients, or audio functions; read utilities instead.
  • Do not bundle credentialed or network-heavy cookbook scripts. Distill them into safe reusable recipes and note optional dependencies.
我的收藏