By microfnhq
Skills for MicroFn: deploy, manage, and execute sandboxed JavaScript functions as AI agent tools
Repo: microfnhq/skills
Agent kills for working with MicroFn - a cloud platform that turns JavaScript snippets into persistent, callable functions for your AI agent.
This is using the microfn CLI under the hood
MicroFn is a programmable toolbox for AI agents. Instead of being limited to built-in tools, you can write custom JavaScript functions, deploy them to isolated sandboxes in the cloud, and have your AI agent execute them on demand.
Think of it like this: Your AI agent can now fetch weather data, send Discord messages, query databases, store state between conversations, access secrets securely, and call any API - all by deploying tiny JavaScript functions that live in the cloud and can be invoked anytime.
The magic: Your AI agent can write and deploy its own tools on the fly. Need a capability that doesn't exist yet? The agent can create a function, deploy it to MicroFn, and immediately start using it. It's like giving your AI the ability to extend itself with custom tools as needed.
npx skills add microfnhq/skills
To list all available skills:
npx skills add microfnhq/skills --list
This skill teaches Claude how to use the MicroFn CLI (microfn or mfn) to deploy, update, inspect, and execute sandboxed JavaScript functions. Functions can power your applications and be exposed as MCP tools that your AI agent can call directly.
Why is this powerful?
Your AI agent can now have custom capabilities beyond its built-in tools. Need to check the weather? Deploy a function. Want to send a Discord notification? Deploy a function. Need to remember something between conversations? Use KV storage. Want to call a private API? Store the API key as a secret and deploy a function.
Self-extending AI agents: The most powerful feature is that your AI agent can create new tools for itself. During a conversation, if your agent needs a capability that doesn't exist, it can:
microfn createmicrofn executeThis means your agent gets smarter and more capable over time by building its own toolbox.
Real-world examples:
🌤️ Weather service with caching
import kv from "@microfn/kv";
export async function main(input) {
const cached = await kv.get(`weather:${input.city}`);
if (cached) return cached;
const response = await fetch(
`https://api.openweathermap.org/data/2.5/weather?q=${input.city}`,
);
const weather = await response.json();
await kv.set(`weather:${input.city}`, weather, { ttl: 3600 });
return weather;
}
Deploy once, call anytime: microfn execute myuser/weather '{"city":"Tokyo"}'
💬 Discord/Slack notifications
import secret from "@microfn/secret";
export async function main(input) {
const webhook = await secret.get("DISCORD_WEBHOOK");
await fetch(webhook, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
content: input.message,
username: "AI Agent Bot",
}),
});
return { sent: true, timestamp: new Date().toISOString() };
}
Your AI can now send notifications to your team!
📊 Stateful counter with analytics
import kv from "@microfn/kv";
export async function main(input) {
const count = (await kv.get("total_requests")) || 0;
const newCount = count + 1;
await kv.set("total_requests", newCount);
await kv.set(`request:${newCount}`, {
timestamp: Date.now(),
data: input,
});
return { requestNumber: newCount, totalRequests: newCount };
}
Track state across conversations and function calls.
🔐 Authenticated API calls
import secret from "@microfn/secret";
export async function main(input) {
const apiKey = await secret.get("GITHUB_TOKEN");
const response = await fetch(
`https://api.github.com/repos/${input.repo}/issues`,
{
headers: {
Authorization: `Bearer ${apiKey}`,
Accept: "application/vnd.github.v3+json",
},
},
);
return await response.json();
}
Securely call private APIs without exposing credentials.
More possibilities:
Invoke: /microfn
External network access
Connects to servers outside your machine
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub microfnhq/skills --plugin microfnFirebase Genkit expert for production-ready AI workflows with RAG and tool calling
Serverless architecture and FaaS expert for AWS Lambda, Azure Functions, and event-driven systems
Persistent memory system for AI coding sessions — cross-tool memory sharing with 6-dimensional hybrid search
A growing collection of Claude-compatible academic workflow bundles. Covers scientific figures, manuscript writing and polishing, reviewer assessment, citation retrieval, data availability, paper reading, literature search, response letters, paper-to-PPTX conversion, and evidence-grounded Chinese invention patent drafting. Rules are organized as reusable skill folders with explicit workflows and quality checks.
Comprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.
Comprehensive feature development workflow with specialized agents for codebase exploration, architecture design, and quality review