# Broker Delist

> Post-sale cross-platform delisting. Automatically removes listings from all platforms when an item sells. Triggered automatically by the daily scheduler when it detects a sale, or manually when user says "卖了", "sold", "已卖出". No user confirmation needed — detection is sufficient to delist.

- **Type:** Skill
- **Install:** `agentstack add skill-madguyevans-creator-resale-agent-skill-hub-broker-delist`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [madguyevans-creator](https://agentstack.voostack.com/s/madguyevans-creator)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [madguyevans-creator](https://github.com/madguyevans-creator)
- **Source:** https://github.com/madguyevans-creator/resale-agent-skill-hub/tree/main/skills/broker-delist

## Install

```sh
agentstack add skill-madguyevans-creator-resale-agent-skill-hub-broker-delist
```

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

## About

# broker-delist: Post-Sale Auto-Delisting

Automatically removes listings from all platforms when a sale is detected or reported. No user confirmation required.

## Trigger Paths

### Path A: Scheduler auto-detection
Daily repricing check scans each listing's status on its platform:
- Listing returns 404 → not found → check other platforms
- Listing page shows "sold" marker → confirmed sale
- On any platform detecting sale → auto-delist ALL other platforms

### Path B: User reports sale
User says "卖了" / "sold" → manually triggers delist on all platforms

## What Happens

For each platform where the item was listed:
1. Call platform delete/mark-as-sold API using stored session
2. Remove the listing URL from state
3. Update listing status to "sold" with sold_date
4. Remove the item from the scheduler's active list
5. **Log delist event** to audit trail (`audit_logger.log_delist`)

Finally:
- Notify user with delisting summary
- Clean up: if no more active listings, optionally remove the scheduler job
- All delist actions recorded in `~/.broker/audit.jsonl`

## Script

```bash
python3 scripts/delist.py --item-id      # Delist from all platforms
python3 scripts/delist.py --item-id  --check  # Check status only
```

## Source & license

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

- **Author:** [madguyevans-creator](https://github.com/madguyevans-creator)
- **Source:** [madguyevans-creator/resale-agent-skill-hub](https://github.com/madguyevans-creator/resale-agent-skill-hub)
- **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-madguyevans-creator-resale-agent-skill-hub-broker-delist
- Seller: https://agentstack.voostack.com/s/madguyevans-creator
- 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%.
