deploy-agentMulti-step deployment agent for full-stack apps. Build ā Test ā GitHub ā Cloudflare Pages with human approval at each step.
Install via ClawdBot CLI:
clawdbot install sherajdev/deploy-agentDeploy full-stack applications via a multi-step workflow with human approval at each stage.
# Install via ClawdHub
clawdhub install deploy-agent
# Initialize a new deployment
deploy-agent init my-app
# Check status
deploy-agent status my-app
# Continue through steps
deploy-agent continue my-app
| Step | Command | Description | Requires Approval |
|------|---------|-------------|-------------------|
| 1 | deploy-agent init | Start deployment | ā
Design phase |
| 2 | deploy-agent build | Build app | ā
Before testing |
| 3 | deploy-agent test | Test locally | ā
Before GitHub |
| 4 | deploy-agent push | Push to GitHub | ā
Before Cloudflare |
| 5 | deploy-agent deploy | Deploy to Cloudflare | ā
Final |
deploy-agent init my-app
Creates a new deployment state and waits for design input.
deploy-agent status my-app
Shows current step, approvals, and deployment info.
deploy-agent continue my-app
Get guidance on what to do next in the current step.
deploy-agent build my-app
After designing with C.R.A.B, run this to build the app.
deploy-agent test my-app
Verify the app is running locally before pushing.
deploy-agent push my-app [repo-name]
Creates GitHub repo and pushes code. Default repo name = app name.
deploy-agent deploy my-app [custom-domain]
Deploys to Cloudflare Pages. Default domain: {name}.sheraj.org
deploy-agent cancel my-app
Aborts and cleans up the deployment.
deploy-agent list
Shows all active deployments.
# Start new deployment
$ deploy-agent init my-blog
š Deployment initialized: my-blog
Step 1: Design your app with C.R.A.B
# ... design phase with C.R.A.B ...
$ deploy-agent build my-blog
š Build complete! Step 2: Local Testing
Start dev server: cd my-blog && npm run dev
# ... test locally ...
$ deploy-agent push my-blog
š GitHub repository ready!
Say 'deploy-agent deploy my-blog' to deploy to Cloudflare
$ deploy-agent deploy my-blog my-blog.sheraj.org
š Deployment complete!
App live at: https://my-blog.sheraj.org
State stored in: ~/.clawdbot/skills/deploy-agent/state/{deployment-name}.json
{
"name": "my-blog",
"step": 5,
"status": "deployed",
"created_at": "2026-01-18T08:00:00Z",
"repo_url": "https://github.com/user/my-blog",
"domain": "https://my-blog.sheraj.org"
}
| Tool | Purpose |
|------|---------|
| gh | GitHub repo creation and management |
| wrangler | Cloudflare Pages deployment |
| git | Version control |
| jq | JSON parsing (for state management) |
Cloudflare token should be configured in ~/.wrangler.toml:
[account]
api_token = "your-cloudflare-token"
This section covers common pitfalls and fixes for deploying Next.js apps with D1 on Cloudflare Pages.
| Check | Command | Fix if Failed |
|-------|---------|---------------|
| Next.js version | npm list next | npm install next@15.5.2 |
| Package lock sync | rm -rf node_modules package-lock.json && npm install | Commit lock file |
| Cloudflare adapter | npm list @cloudflare/next-on-pages | npm install -D @cloudflare/next-on-pages |
| wrangler installed | npm list wrangler | npm install -D wrangler |
1. package.json
{
"dependencies": {
"next": "15.5.2",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@cloudflare/next-on-pages": "^1.13.16",
"wrangler": "^4.x"
}
}
2. wrangler.toml
name = "my-app"
compatibility_date = "2026-01-18"
compatibility_flags = ["nodejs_compat"]
[[d1_databases]]
binding = "DB"
database_name = "my-db"
database_id = "your-db-id"
3. API Routes (each file)
import { getRequestContext } from '@cloudflare/next-on-pages';
export const runtime = 'edge';
export async function GET() {
const { env } = getRequestContext();
const { results } = await env.DB.prepare("SELECT * FROM tasks").all();
return Response.json({ data: results });
}
| Setting | Value |
|---------|-------|
| Build command | npx @cloudflare/next-on-pages |
| Output directory | .vercel/output/static |
| Functions | Enable (for D1 API routes) |
| Issue | Error | Fix |
|-------|-------|-----|
| Lock file mismatch | npm ci can only install packages when your package.json and package-lock.json are in sync | rm -rf node_modules package-lock.json && npm install && git add package-lock.json |
| Next.js version | peer next@">=14.3.0 && <=15.5.2" from @cloudflare/next-on-pages | Downgrade to next: "15.5.2" |
| API routes not edge | The following routes were not configured to run with the Edge Runtime | Add export const runtime = 'edge'; |
| D1 access pattern | Using context.env.DB | Use getRequestContext().env.DB |
| Missing types | TypeScript errors for D1 bindings | Create env.d.ts with CloudflareEnv interface |
html {
overflow-x: hidden;
scrollbar-gutter: stable;
}
body {
overflow-x: hidden;
}
DB ā Select your databasedocs/issues/nextjs-cloudflare-d1-deployment.mdGenerated Mar 1, 2026
A tech startup needs to quickly deploy a full-stack Next.js application with a Cloudflare D1 database for user data. This skill automates the multi-step deployment with approvals, ensuring each phase from building to Cloudflare Pages is validated, reducing errors and speeding up time-to-market for iterative releases.
An online learning institution wants to deploy a custom web app for course management, requiring secure GitHub integration and Cloudflare hosting for global accessibility. The human approval steps allow educators to review content and functionality before each deployment stage, ensuring compliance and quality.
A small business launching an e-commerce site uses this skill to manage deployment from local testing to live Cloudflare Pages, with approvals at critical points like before pushing to GitHub to prevent data leaks and before final deployment to verify payment integrations.
A non-profit organization deploys a campaign website with dynamic content using Next.js and D1 for donor tracking. The skill's structured workflow with approvals ensures that updates are carefully reviewed by stakeholders at each step, maintaining message consistency and security.
A corporation builds internal tools for employee management, leveraging this skill to deploy to Cloudflare Pages with GitHub version control. Approval gates allow IT teams to validate builds and tests before pushing to repositories, enhancing security and reducing downtime.
Offer basic deployment features for free to attract individual developers or small teams, with premium tiers providing advanced analytics, faster approvals, and priority support. Revenue is generated through subscription fees and enterprise customizations.
Provide expert deployment consulting and customization for businesses using this skill, including setup assistance, troubleshooting, and integration with existing systems. Revenue comes from hourly rates or project-based contracts.
Sell additional templates, plugins, or integrations that enhance the deployment workflow, such as pre-configured Next.js setups or advanced Cloudflare tools. Revenue is generated through one-time purchases or commissions on third-party services.
š¬ Integration Tip
Ensure all required tools like gh, wrangler, and git are installed and configured with proper tokens before starting to avoid interruptions during the multi-step approval process.
Automatically update Clawdbot and all installed skills once daily. Runs via cron, checks for updates, applies them, and messages the user with a summary of what changed.
Full desktop computer use for headless Linux servers. Xvfb + XFCE virtual desktop with xdotool automation. 17 actions (click, type, scroll, screenshot, drag,...
Essential Docker commands and workflows for container management, image operations, and debugging.
Tool discovery and shell one-liner reference for sysadmin, DevOps, and security tasks. AUTO-CONSULT this skill when the user is: troubleshooting network issues, debugging processes, analyzing logs, working with SSL/TLS, managing DNS, testing HTTP endpoints, auditing security, working with containers, writing shell scripts, or asks 'what tool should I use for X'. Source: github.com/trimstray/the-book-of-secret-knowledge
Deploy applications and manage projects with complete CLI reference. Commands for deployments, projects, domains, environment variables, and live documentation access.
Monitor topics of interest and proactively alert when important developments occur. Use when user wants automated monitoring of specific subjects (e.g., product releases, price changes, news topics, technology updates). Supports scheduled web searches, AI-powered importance scoring, smart alerts vs weekly digests, and memory-aware contextual summaries.