gleam-pi-tool-generator

Define Pi tools using Gleam PiToolCall/FnArgument types and the extension generator.

Updated Apr 30, 2026
One-click install
npx skills add https://github.com/emptist/psypi --skill gleam-pi-tool-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gleam-pi-tool-generator
Source: https://github.com/emptist/psypi/tree/main/ppi_skills/gleam-pi-tool-generator
Command: npx skills add https://github.com/emptist/psypi --skill gleam-pi-tool-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides expert guidance for defining and implementing Pi tools using Gleam PiToolCall/FnArgument types and the extension generator. It is used when adding new Pi tools, modifying existing tools, or understanding how Gleam types compose into extension.js.

Core Features & Use Cases

  • Tool Definition: Offers a structured approach to define Pi tools using Gleam PiToolCall/FnArgument types.
  • Extension Generator: Provides a guide on how to use the extension generator to create extension.js files required by Pi.
  • Use Case: When a developer needs to add a new Pi tool for their application, this Skill helps in understanding the process and guidelines for creating the tool using Gleam.

Quick Start

To add a new Pi tool, start by defining the Gleam function in your module, then create a PiToolCall value and import it in the generator. Finally, add it to the all_tools() list and build the project.

Frequently Asked Questions about gleam-pi-tool-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Pi tool using Gleam?

To create a Pi tool using Gleam, define a Gleam function, construct a PiToolCall value, import it in the extension generator, and add it to the all_tools() list before building the project.

What are PiToolCall and FnArgument types used for in Pi extension development?

PiToolCall and FnArgument are Gleam types used to define the structure and arguments of a tool, which the extension generator then composes into the required extension.js file for the Pi ecosystem.

How does the Gleam extension generator work for Pi tools?

The Gleam extension generator works by taking your defined PiToolCall and FnArgument types and compiling them into the extension.js file required by the Pi platform to register and run the tools.

Do I need to know Gleam to build Pi extensions?

Yes, building Pi extensions with this approach requires prior knowledge of Gleam and Pi's extension API to properly define tools and understand the generator's architecture.

What is the process to add a new tool to the Pi ecosystem?

Adding a new tool to the Pi ecosystem involves defining the Gleam function, creating a PiToolCall value, importing it in the generator, adding it to all_tools(), and building the project to generate extension.js.