Loading...
Loading...
Run AI agent tasks remotely on Netlify using Claude, Codex, or Gemini. Use when the user wants to run an AI agent on their site, get a second opinion from another model, or delegate development tasks to run remotely against their repo.
npx skill4agent add netlify/context-and-tools netlify-agent-runnernetlify linknetlify init--project <name>netlify agents:createnetlify agents:createnetlify agents:*netlify --helphttps://api.netlify.com/...netlify api <method>~/Library/Preferences/netlify/config.jsonmainmaster-b <branch>-bmainnetlify agents:createnetlify agents:show <task-id>netlify agents:listnewrunningdoneerrorcancellednetlify agents:create "<prompt>" -a <agent>--jsonnetlify agents:show <task-id>doneerrorcancelleddoneerror# Run a prompt with the default agent
netlify agents:create "Add a contact form"
# Choose a specific agent: claude, codex, or gemini
netlify agents:create --prompt "Add dark mode" --agent claude
netlify agents:create -p "Update the README" -a codex
netlify agents:create -p "Write unit tests" -a gemini
# Target a specific branch
netlify agents:create -p "Fix the login bug" -a claude -b feature-branch
# Specify a project by name (if not in a linked directory)
netlify agents:create "Add tests" --project my-site-name
# Output result as JSON
netlify agents:create "Add a footer" --json| Flag | Description |
|---|---|
| Agent type: |
| The prompt for the agent to execute |
| Git branch to work on |
| Model to use for the agent |
| Project ID or name |
| Output result as JSON |
netlify agents:*--project <name>netlify agents:list--project <name># List all tasks for the current site
netlify agents:list
# Filter by status
netlify agents:list --status running
netlify agents:list --status done
netlify agents:list --status error
# Output as JSON
netlify agents:list --jsonnewrunningdoneerrorcancellednetlify agents:show <task-id>
netlify agents:show <task-id> --jsonnetlify agents:stop <task-id>| Category | Example prompt |
|---|---|
| Prototyping / internal tools | "Build an internal dashboard for our HR team" |
| Code reviews | "Audit the code with fresh eyes and identify areas for improvement" |
| Security audits | "Do a deep security audit of our codebase to identify any potential issues" |
| Feature suggestions | "Based on our current codebase & docs, what should we build next?" |
| Performance improvements | "Scan our codebase for performance bottlenecks and suggest improvements" |
| Telemetry & analytics | "What analytics things are we not tracking but probably should" |
| SEO audit | "Audit our site for SEO issues — missing meta tags, broken links, slow pages, missing alt text" |
| Copy improvements | "Rewrite our landing page copy to be more compelling and conversion-focused" |
| Accessibility | "Run an accessibility audit and fix all WCAG 2.1 AA violations" |
| Mobile responsiveness | "Improve the mobile responsiveness — audit every page on small viewports" |
| End-to-end tests | "Add end-to-end tests for our critical user flows using Playwright" |
| Unit tests | "Generate unit tests for our untested utility functions" |
| Documentation | "Generate a README and contributing guide based on our codebase" |
| Error handling | "Add proper error boundaries, logging, and user-friendly error states throughout the app" |
| UX polish | "Add loading states, skeleton screens, & transitions to improve perceived performance" |
| Form hardening | "Add form validation, rate limiting, and spam protection to our contact form" |
| Edge Functions | "Add an edge function for A/B testing on our landing page" |
netlify agents:createnetlify agents:createnetlify agents:create -p "<the real prompt>" -a codex<placeholder>-aagents:createnetlify agents:show <task-id>netlify agents:show <task-id>