AI coding agents
The Nexafon skill gives an AI coding agent what it needs to add Nexafon to an app on the first try: when to use which package, the integration steps, the security rules, and code that comes from Nexafon’s tested examples.
Install it
Section titled “Install it”In your project:
npx @nexafon/cli skill addIt writes .claude/skills/nexafon/ (Claude Code loads it in its next session), a Nexafon section in AGENTS.md (read
by Codex, Copilot, Jules and other agents) and .cursor/rules/nexafon.mdc for Cursor. Until the CLI is published, run
it from a checkout, as the CLI page shows.
Claude Code can also install it as a plugin from the Nexafon repository’s marketplace entry
(.claude-plugin/marketplace.json): /plugin marketplace add Keyd-Solutions/nexafon, then
/plugin install nexafon@nexafon.
Then ask the agent, for example, “add the Nexafon inbox to this app”.
What it teaches
Section titled “What it teaches”- When to use what: web or mobile (the mobile SDKs are coming soon, so it does not invent them), a single business or a partner platform, and which framework guide applies: HTML, React, Next.js, Vue, Nuxt, Angular, Svelte, WordPress, Laravel/PHP.
- The steps: keys → a server token endpoint → the component → appearance, preferring
nexafon initto do the scaffolding andnexafon doctorto check it. - The rules: never put a secret key in frontend code or a public env variable; keep sessions in memory only;
register every origin as an allowed website and an embed domain; sign tokens only for the app’s own signed-in user,
answer
401without one and403to signed-in users who are not staff (never customers; everyone only in an app with no customer accounts at all), and send the user’s realemailVerifiedand arole(agentunless the user is one of the app’s own admins). - Your brand: it reads the colour from your Tailwind config, CSS variables or theme files and passes it as
appearance.primaryColor. - References per framework and server language (Node, PHP, Python, Go), webhooks, events, errors and theming.
Never out of date
Section titled “Never out of date”Every code block in the skill names the example or docs snippet it comes from, such as examples/react/src/App.tsx;
CI fails when a block differs from its file (task skill:check). The examples themselves run end to end against
Nexafon in CI, so the agent copies code that works with the current SDK.
The skill is also checked by evals: an agent that has only the skill and the CLI integrates a fresh React (Vite) app and a fresh Laravel app, and a browser test confirms the inbox loads through the app’s own token endpoint.
For questions an agent should look up rather than know, give it the MCP server: it searches these docs
and the example apps while the agent works, and with a test key sends a test message and shows your webhook deliveries
and recent errors. Agents without MCP can read /llms.txt or any page’s .md version.