# Draft Queue

> Queue an external action (Telegram message, shell command, GitHub comment, PR merge, file write) for the user's explicit approval before it runs. Use when you want to take an outward-facing or irreversible action that needs sign-off first.

- **Type:** Skill
- **Install:** `agentstack add skill-jansenanalytics-claudex-draft-queue`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [JansenAnalytics](https://agentstack.voostack.com/s/jansenanalytics)
- **Installs:** 0
- **Category:** [Developer Tools](https://agentstack.voostack.com/c/developer-tools)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [JansenAnalytics](https://github.com/JansenAnalytics)
- **Source:** https://github.com/JansenAnalytics/claudex/tree/main/skills/draft-queue

## Install

```sh
agentstack add skill-jansenanalytics-claudex-draft-queue
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Draft Queue Skill

Use when: you want to take an external action that requires the user's approval before executing.

## Add a draft

```
node ${DRAFT_QUEUE_HOME:-$HOME/projects/draft-queue}/add-draft.cjs \
  --type  \
  --desc "description" \
  --payload ''
```

## Types: telegram-message, shell-command, github-comment, github-pr-merge, file-write

### Payloads by type

**telegram-message**

```json
{ "chat_id": "", "message": "text here" }
```

**shell-command**

```json
{ "command": "echo hello", "cwd": "$HOME" }
```

**github-comment**

```json
{ "repo": "JansenAnalytics/myrepo", "issue": 42, "body": "comment text" }
```

**github-pr-merge**

```json
{ "repo": "JansenAnalytics/myrepo", "pr": 7, "method": "squash" }
```

**file-write**

```json
{ "path": "/path/to/your/file.txt", "content": "file contents" }
```

## Approve (when the user says "approve ID")

```
node ${DRAFT_QUEUE_HOME:-$HOME/projects/draft-queue}/approve.cjs 
```

## Reject (when the user says "reject ID")

```
node ${DRAFT_QUEUE_HOME:-$HOME/projects/draft-queue}/reject.cjs 
```

## List pending

```
node ${DRAFT_QUEUE_HOME:-$HOME/projects/draft-queue}/list-drafts.cjs
```

## List all

```
node ${DRAFT_QUEUE_HOME:-$HOME/projects/draft-queue}/list-drafts.cjs --all
```

## List by status

```
node ${DRAFT_QUEUE_HOME:-$HOME/projects/draft-queue}/list-drafts.cjs --status approved
```

## Notes

- Drafts file: `${DRAFT_QUEUE_HOME:-$HOME/projects/draft-queue}/drafts.json` (append-only)
- Cron for expiry: `0 9 * * * /usr/bin/node ${DRAFT_QUEUE_HOME:-$HOME/projects/draft-queue}/expire-drafts.cjs >> ${DRAFT_QUEUE_HOME:-$HOME/projects/draft-queue}/draft-queue.log 2>&1`
- add-draft.cjs prints the draft ID to stdout on success
- Default expiry: 24 hours. Override with `--expires 7d` etc.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [JansenAnalytics](https://github.com/JansenAnalytics)
- **Source:** [JansenAnalytics/claudex](https://github.com/JansenAnalytics/claudex)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-jansenanalytics-claudex-draft-queue
- Seller: https://agentstack.voostack.com/s/jansenanalytics
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
