> northflank
Expert guidance for Northflank, the cloud platform that combines PaaS simplicity with Kubernetes power for deploying applications, databases, and jobs. Helps developers configure build pipelines, deploy services, manage databases, and set up CI/CD workflows with Northflank's Infrastructure as Code and API.
curl "https://skillshub.wtf/TerminalSkills/skills/northflank?format=md"Northflank — Full-Stack Cloud Platform
Overview
Northflank, the cloud platform that combines PaaS simplicity with Kubernetes power for deploying applications, databases, and jobs. Helps developers configure build pipelines, deploy services, manage databases, and set up CI/CD workflows with Northflank's Infrastructure as Code and API.
Instructions
Project Configuration
// northflank.json — Infrastructure as Code
{
"apiVersion": "v1",
"spec": {
"kind": "Workflow",
"spec": {
"type": "sequential",
"steps": [
{
"kind": "BuildService",
"spec": {
"name": "api-build",
"billing": { "deploymentPlan": "nf-compute-20" },
"vcsData": {
"projectUrl": "https://github.com/myorg/my-api",
"projectType": "github",
"projectBranch": "main"
},
"buildConfiguration": {
"pathIgnoreRules": ["node_modules", ".git", "*.md"],
"isAllowList": false
},
"buildpack": {
"builder": "NIXPACKS"
}
}
},
{
"kind": "DeploymentService",
"spec": {
"name": "api",
"billing": { "deploymentPlan": "nf-compute-20" },
"deployment": {
"instances": 2,
"docker": {
"configType": "default"
},
"internal": {
"id": "api-build",
"branch": "main",
"buildSHA": "latest"
}
},
"ports": [
{
"name": "http",
"internalPort": 3000,
"public": true,
"protocol": "HTTP",
"domains": ["api.myapp.com"]
}
],
"healthChecks": [
{
"protocol": "HTTP",
"path": "/health",
"port": 3000,
"initialDelaySeconds": 10,
"periodSeconds": 30
}
],
"runtimeEnvironment": {
"NODE_ENV": "production",
"DATABASE_URL": "${database.main-db.HOST}"
}
}
},
{
"kind": "Addon",
"spec": {
"name": "main-db",
"type": "postgresql",
"version": "16",
"billing": { "deploymentPlan": "nf-compute-20", "storageClass": "ssd", "storage": 10240 },
"typeSpecificFields": {
"postgresDatabase": "myapp"
},
"backups": {
"enabled": true,
"schedule": "0 3 * * *"
}
}
}
]
}
}
}
CLI Operations
# Install Northflank CLI
npm install -g @northflank/cli
# Login
northflank login
# Create a project
northflank create project my-app --region europe-west
# Deploy from Git
northflank create service my-app/api \
--git-url https://github.com/myorg/my-api \
--branch main \
--port 3000 \
--instances 2 \
--plan nf-compute-20
# Add a database
northflank create addon my-app/main-db \
--type postgresql \
--version 16 \
--plan nf-compute-20 \
--storage 10240
# Manage secrets
northflank create secret my-app/api-secrets \
--data '{"API_KEY": "sk-xxx", "JWT_SECRET": "xxx"}'
# Link secret group to a service
northflank link secret my-app/api --secret-group api-secrets
# View logs
northflank logs my-app/api --follow
# Scale service
northflank scale my-app/api --instances 5
Build Pipelines
# Northflank supports multiple build strategies:
# 1. Nixpacks (auto-detect, default)
# 2. Dockerfile
# 3. Buildpacks (Heroku/Cloud Native)
# 4. Pre-built Docker images
# Pipeline: Build → Test → Deploy
# Configure in dashboard or via API:
# 1. Source: GitHub/GitLab/Bitbucket webhook
# 2. Build: Nixpacks or Dockerfile
# 3. Preview: Auto-deploy PR branches
# 4. Production: Deploy on merge to main
Jobs and Cron
# Create a cron job
northflank create job my-app/daily-report \
--type cron \
--schedule "0 8 * * *" \
--git-url https://github.com/myorg/my-api \
--branch main \
--run-command "node scripts/daily-report.js" \
--plan nf-compute-10
# Create a manual job (triggered via API or dashboard)
northflank create job my-app/db-migrate \
--type manual \
--run-command "npx prisma migrate deploy"
Examples
Example 1: Setting up Northflank for a microservices project
User request:
I have a Node.js API and a React frontend running in Docker. Set up Northflank for monitoring/deployment.
The agent creates the necessary configuration files based on patterns like # Install Northflank CLI, sets up the integration with the existing Docker setup, configures appropriate defaults for a Node.js + React stack, and provides verification commands to confirm everything is working.
Example 2: Troubleshooting cli operations issues
User request:
Northflank is showing errors in our cli operations. Here are the logs: [error output]
The agent analyzes the error output, identifies the root cause by cross-referencing with common Northflank issues, applies the fix (updating configuration, adjusting resource limits, or correcting syntax), and verifies the resolution with appropriate health checks.
Guidelines
- Use Infrastructure as Code — Define services in
northflank.json; version with your repo for reproducible environments - Managed addons for databases — Don't self-manage Postgres/Redis/MongoDB; use Northflank addons with automatic backups
- Secret groups for credentials — Group secrets by service; link them to deployments without hardcoding values
- Preview environments for PRs — Enable branch-based previews; each PR gets its own URL and database
- Health checks on every service — Required for zero-downtime deployments and automatic restart on failure
- Use build caching — Northflank caches Docker layers and dependencies; structure your Dockerfile for optimal caching
- Jobs for migrations — Run database migrations as manual jobs, not in the application startup sequence
- Monitor build logs — Check build logs when deployments fail; most issues are dependency installation or build command errors
> related_skills --same-repo
> zustand
You are an expert in Zustand, the small, fast, and scalable state management library for React. You help developers manage global state without boilerplate using Zustand's hook-based stores, selectors for performance, middleware (persist, devtools, immer), computed values, and async actions — replacing Redux complexity with a simple, un-opinionated API in under 1KB.
> zoho
Integrate and automate Zoho products. Use when a user asks to work with Zoho CRM, Zoho Books, Zoho Desk, Zoho Projects, Zoho Mail, or Zoho Creator, build custom integrations via Zoho APIs, automate workflows with Deluge scripting, sync data between Zoho apps and external systems, manage leads and deals, automate invoicing, build custom Zoho Creator apps, set up webhooks, or manage Zoho organization settings. Covers Zoho CRM, Books, Desk, Projects, Creator, and cross-product integrations.
> zod
You are an expert in Zod, the TypeScript-first schema declaration and validation library. You help developers define schemas that validate data at runtime AND infer TypeScript types at compile time — eliminating the need to write types and validators separately. Used for API input validation, form validation, environment variables, config files, and any data boundary.
> zipkin
Deploy and configure Zipkin for distributed tracing and request flow visualization. Use when a user needs to set up trace collection, instrument Java/Spring or other services with Zipkin, analyze service dependencies, or configure storage backends for trace data.