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.
What this skill does
# 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
```json
// 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
```bash
# 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
```yaml
# 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
```bash
# 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
1. **Use Infrastructure as Code** — Define services in `northflank.json`; version with your repo for reproducible environments
2. **Managed addons for databases** — Don't self-manage Postgres/Redis/MongoDB; use Northflank addons with automatic backups
3. **Secret groups for credentials** — Group secrets by service; link them to deployments without hardcoding values
4. **Preview environments for PRs** — Enable branch-based previews; each PR gets its own URL and database
5. **Health checks on every service** — Required for zero-downtime deployments and automatic restart on failure
6. **Use build caching** — Northflank caches Docker layers and dependencies; structure your Dockerfile for optimal caching
7. **Jobs for migrations** — Run database migrations as manual jobs, not in the application startup sequence
8. **Monitor build logs** — Check build logs when deployments fail; most issues are dependency installation or build command errors
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.