The quickest way to port code from a Git repository into Ambler TS is to include it as a Git submodule and leverage Ambler's agentic skills. We'll use the PocketFlow cookbook as an example.
Project Setup
- Create a project folder
- Initialize git
- Add PocketFlow (or a Git repository of your choosing) as a submodule.
- Install the Ambler TS skills
mkdir port
cd port
git init
git submodule add https://github.com/The-Pocket/PocketFlow.git
npx skills add argenkiwi/ambler-ts
Initialize Ambler
Use a coding agent (like Claude or Pi) and invoke the ambler-walk skill:
/ambler-init .
Port Code
Invoke the ambler-walk skill and provide the path to what you want to port:
/ambler-walk create chat walk from @PocketFlow/cookbook/pocketflow-chat
The agent will automatically:
- Analyze the source logic.
- Create the necessary Nodes in
nodes/. - Scaffold a Spec in
specs/. - Wire everything into a Walk in
walks/.
Test Run
Once the agent finishes, verify the port:
deno test nodes/tests/
deno task <walk-name>
Top comments (0)