Skip to content
Back to skills

Design Patterns

ASecurity

"Use PocketFlow to design LLM apps and agentic workflows with

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
ai-agentsnodefastapiapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill design-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Design Patterns?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Design Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-design-patterns/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-design-patterns)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

- [Pattern recipes](references/pattern-recipes.md)
- [Agentic coding guide](references/agentic-coding-guide.md)
- [Cookbook map](references/cookbook-map.md)
- [Troubleshooting](references/troubleshooting.md)
- [Templates](scripts/design_pattern_templates.py)

## 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

| Need | Read |
| --- | --- |
| Pattern choice and node-level recipe shape | `references/pattern-recipes.md` |
| Docs-first process and project skeleton | `references/agentic-coding-guide.md` |
| Cookbook-style task matching | `references/cookbook-map.md` |
| Architectural failure modes and repair steps | `references/troubleshooting.md` |
| Safe local skeleton output | `scripts/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.

Files in this skill

  • SKILL.md2.7 KB
  • references/agentic-coding-guide.md3.8 KB
  • references/cookbook-map.md3.5 KB
  • references/pattern-recipes.md4.6 KB
  • references/troubleshooting.md2.9 KB
  • scripts/design_pattern_templates.py4.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.