Skip to content

Latest commit

 

History

History
85 lines (61 loc) · 2.48 KB

File metadata and controls

85 lines (61 loc) · 2.48 KB

PocketFlow-PHP Template

Zero-friction kickoff for Agentic Coding with PocketFlow-PHP.

Built-in expert skill — your AI agent already knows the framework.


Quick Start

git clone https://github.com/weise25/pocketflow-php-template.git
cd pocketflow-php-template
composer install

That's it. Now open this folder in any AI coding tool that supports the Agent Skills standard:

Cline Cursor Windsurf Claude Code

How it works: The .agents/skills/pocketflow-php/ directory contains a skill package that makes any AI agent an expert in PocketFlow-PHP. The agent loads it automatically when it detects relevant keywords — or you can mention "PocketFlow-PHP" in your prompt.


Start Building

Just describe what you want to build. For example:

"Build me a research agent that searches the web and synthesizes a report."

"Create a CV generator that takes a text description and produces a PDF."

"Make a quiz show where two AI contestants compete."

Your agent will:

  1. Load the PocketFlow-PHP skill from .agents/skills/
  2. Follow the 8-step Agentic Coding process (Requirements → Flow → Utilities → Data → Node → Implementation → Optimization → Reliability)
  3. Write nodes.php, flow.php, and main.php using PocketFlow-PHP classes

Project Structure

your-project/
├── main.php              # Entry point
├── nodes.php             # Your node classes
├── flow.php              # Flow graph definition
├── utils/                # External API wrappers
│   ├── callLlm.php
│   └── searchWeb.php
├── docs/
│   └── design.md         # High-level design (AI writes this first)
├── .agents/skills/
│   └── pocketflow-php/   # Expert skill for AI agents
├── composer.json
└── .env

Verify It Works

php main.php
# Output: Hello from PocketFlow-PHP!

Learn More