ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

Approval Queue

Manage pending actions (posts, deploys) with approve/reject workflow via REST API and CLI.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/sa9saq/approval-queue
Or

Approval Queue

Lightweight approval queue for managing pending actions — SNS posts, deployments, content publishing. Approve or reject with a single tap.

Quick Start

cd {skill_dir}
npm install && npm run build

# Start API server
node dist/server.js --port 3010

# CLI usage
node dist/cli.js add --type sns_post --payload '{"text":"Hello world","platform":"twitter"}'
node dist/cli.js list --status pending
node dist/cli.js approve <item-id>
node dist/cli.js reject <item-id> --reason "Not appropriate"

API Endpoints

MethodPathDescription
GET/api/queueList items (filter: ?status=pending&type=sns_post)
POST/api/queueAdd item
POST/api/queue/:id/approveApprove
POST/api/queue/:id/rejectReject (body: {"reason": "..."})
GET/api/queue/:idGet item details
DELETE/api/queue/:idDelete item

Queue Item Structure

{
  "id": "uuid",
  "type": "sns_post",
  "status": "pending",
  "payload": { "text": "Post content", "platform": "twitter" },
  "created_at": "2025-01-01T00:00:00Z",
  "reviewed_at": null,
  "reviewer_note": null
}

Integration with OpenClaw

Agent creates content → Adds to queue → Sends inline approval button → User taps → Action executes

Security

  • Validate all input payloads before queuing — reject malformed JSON
  • Sanitize reviewer_note to prevent injection if displayed in UI
  • Use authentication middleware in production (API key or JWT)
  • SQLite DB file should be chmod 600

Configuration

VariableDefaultDescription
PORT3010Server port
DB_PATH./data/queue.dbSQLite path
WEBHOOK_URLCallback on approve/reject

Troubleshooting

  • Port in use: lsof -i :3010 to find conflicts
  • DB locked: Only one server process should access the SQLite file
  • Webhook failures: Check URL reachability; add retry logic for production

Requirements

  • Node.js 18+
  • No external API keys needed

Metadata

Author@sa9saq
Stars1133
Views0
Updated2026-02-18
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-sa9saq-approval-queue": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.