PushFire AI agent skill for Claude Code, Cursor and Codex
The PushFire AI agent skill teaches your coding agent how to add push notifications and lifecycle email to your app. One command installs it for Claude Code, Cursor, Codex, GitHub Copilot, Windsurf and other agents that read skills. PushFire is the easiest lifecycle messaging platform for AI agents and vibe coders: push and email lifecycle campaigns, segments and workflows behind one small API.
Prerequisites
- A PushFire account and project at console.pushfire.app, with your Firebase service account uploaded.
- API keys from Developers → API keys: a Public key (pf_pk_) for the app and a Secret key (pf_sk_) for your server. See Public and Secret keys.
- Node.js, so you can run npx.
- A coding agent that supports skills, in a project folder.
Install the PushFire skills
Run this in your project folder. The CLI asks which agents to install for.
To see what the site offers before you install:
The command installs four skills:
- getting-started: core concepts, entities, roles, project setup and the integration flow.
- api-rest: the HTTP API, with devices, subscribers, tags, workflows, batch push and email, authentication and errors.
- flutter-sdk: the Flutter SDK, the FlutterFlow library and Dreamflow setup.
- workflows: node types (Push, Email, Wait, Condition), triggers and execution.
Agents can also read llms.txt for a page map and the OpenAPI spec to build tool calls.
Initialize: give the agent your setup
Tell the agent four facts at the start of the task: your stack, where each key lives, your user ID field, and which IDs to use. Keep keys in environment variables; never paste a Secret key into the chat.
Register devices and identify subscribers
The agent follows the guide for your platform. Check that it uses the matching guide:
The skills cover the REST API and Flutter in depth. For Swift, Android, React Native and web, paste the guide link into the prompt, as above.
Add tags
Trigger a workflow and send push or email
Warning: never ship a Secret key (pf_sk_) in a mobile app, browser bundle or no-code frontend. PushFire does not block a Secret key on a client, so the call works, but anyone can extract the key from your app and message all your users. Start workflows and send messages from your server, a Supabase Edge Function or your app builder's server function.
Agents sometimes take the shortest path and call a send endpoint from the app. Say where the code must run:
Batch email takes connectorId and connectorSenderId. If your agent writes emailSenderId, correct it; some older references use that name.
Verify delivery
- Ask the agent to add a test route that sends one push to your own externalId.
- Run the app on a real device, sign in and allow notifications.
- Open Audience → Subscribers in the console and find your user, device and tags.
- Call the test route, then check Developers → API Messages → Push Notifications for the status.
Review checklist for agent-written code
- The app contains only pf_pk_. Search the client code and the built bundle for pf_sk_.
- Device registration sends all device fields (osVersion, appVersion, manufacturer, model, language), with null where unknown.
- The app registers a device once and updates it when the FCM token changes.
- Tag, workflow and segment IDs are UUIDs from the console.
- The endpoints are flat paths such as /register-device.
- On iOS, the token sent to PushFire is an FCM token, not an APNs token.
Troubleshooting
- The agent invents an SDK package: only the packages in PushFire SDKs and libraries exist. Other languages use the REST API.
- The agent uses the pushfire npm package: version 0.1.1 is being updated. Ask for the fetch helper from the Node.js guide.
- 403 "Client key cannot perform this action": the agent called a send or workflow endpoint with the Public key. Move the call to the server.
- npx skills add finds no skills: check your network and that you typed https://www.pushfire.app with www.
FAQ
Which AI coding agents work with the PushFire skill?
Any agent that reads agent skills: Claude Code, Cursor, Codex, GitHub Copilot, Windsurf and others the skills CLI supports. The CLI asks which agents to install for. Agents without skills support can read llms.txt and the OpenAPI spec instead, and the prompts in this guide work the same way.
Is there a PushFire MCP server?
It is coming soon. The MCP server will let an AI agent act in your PushFire projects after an OAuth sign-in, and it asks you before every send. Until it ships, agents use the REST API with your keys, guided by the skills in this guide.
Can a vibe-coding tool like Lovable, Bolt or Replit use these skills?
Those builders do not install skills yet. Paste the setup prompt from this guide and the link to your platform guide into the builder's chat instead. Make sure the builder puts the Secret key in a server function or Supabase Edge Function, never in the frontend.
How do I keep the agent from leaking my Secret key?
Keep the key in a server environment variable and tell the agent the variable name, not the value. Ask it to put every send and workflow call in server code. Then search the client code and build output for pf_sk_ before you ship, as the review checklist says.
Next steps
- See every SDK: PushFire SDKs and libraries.
- Learn the API: Push notification REST API quickstart.
- Design the journeys your agent triggers: Workflows.