Approval Queue
Manage pending actions (posts, deploys) with approve/reject workflow via REST API and CLI.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/sa9saq/approval-queueApproval 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
| Method | Path | Description |
|---|---|---|
GET | /api/queue | List items (filter: ?status=pending&type=sns_post) |
POST | /api/queue | Add item |
POST | /api/queue/:id/approve | Approve |
POST | /api/queue/:id/reject | Reject (body: {"reason": "..."}) |
GET | /api/queue/:id | Get item details |
DELETE | /api/queue/:id | Delete 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_noteto prevent injection if displayed in UI - Use authentication middleware in production (API key or JWT)
- SQLite DB file should be
chmod 600
Configuration
| Variable | Default | Description |
|---|---|---|
PORT | 3010 | Server port |
DB_PATH | ./data/queue.db | SQLite path |
WEBHOOK_URL | — | Callback on approve/reject |
Troubleshooting
- Port in use:
lsof -i :3010to 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
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-sa9saq-approval-queue": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
threat-model
Threat modeling and attack scenario design. Identify risks before they become vulnerabilities. STRIDE, attack trees, risk matrix.
Sns Auto Poster
Schedule and automate social media posts to X/Twitter with cron-based queue management.
security-review
Comprehensive security review for code, configs, and operations. OWASP, prompt injection, crypto security. Auto-triggers on security-related changes.
Process Monitor
Monitor system processes, identify top CPU/memory consumers, and alert on resource thresholds.
Readme Generator
Auto-generate comprehensive README.md files by analyzing project structure and configuration.