Skip to content
Back to skills

Distribution

ASecurity

Constructs distributor accounts, inventory binds, commission or markup, and browse-and-quote, including the ready-to-sell scene. Internal distribution slot of the parent pack; do not invoke independently.

  • 122 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 19, 2026
ai-agentsbashnoderailsapi

Works with

  • api

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned September 19, 2026

npx -y skills add openqa-cn/codexqa --skill distribution --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Distribution?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Distribution
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/openqa-cn-distribution/badge)](https://www.skillsdirectory.com/skills/openqa-cn-distribution)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: distribution
description: >-
  Constructs distributor accounts, inventory binds, commission or markup,
  and browse-and-quote, including the ready-to-sell scene.
  Internal distribution slot of the parent pack; do not invoke independently.
license: Apache-2.0
---

# Distribution data-build slot

Vendor-neutral distributor slot. Drop-in under pack `slots/` (already discovered).  
`slot.yaml` scene `ready-to-sell` is create distributor → bind inventory → set commission.  
Executors talk to `DATA_BUILD_API_BASE` (default local mock on port 8765). The case pipeline binds from `slot.yaml` when the match is unique.

## Single-step routing

| User intent | Executor |
|---|---|
| Create distributor | `scripts/executors/create_distributor.ts` |
| Bind supply / inventory | `scripts/executors/bind_inventory.ts` |
| Set commission | `scripts/executors/set_commission.ts` |
| Browse and quote | `scripts/executors/browse_and_quote.ts` |

```bash
node scripts/executors/create_distributor.ts --json '{"name":"North Channel"}'
```

## Scene: ready-to-sell

This scene **depends on a catalog product** (another domain's material). If `productId` is not in context and the catalog slot cannot produce one, **ask the user for that product material** (reuse an id, or construct via catalog first). Then continue bind → commission. Do not skip those steps.

1. Create distributor → `distributorId`
2. Bind `productId`
3. Set commission rate
4. Return distributor, binding, and commission

Optional fields (`rate`, `region`) use executor defaults. Do not invent `distributorId` / `productId` when the user already supplied them.

## Guardrails

- Start `node ../mock_server.ts` if no enterprise gateway is configured
- Do not invent `distributorId` / `productId`
- Defaults: `region=domestic`, `rate=0.1`
- See [references/tools-guide.md](references/tools-guide.md) and [../SLOT_SPEC.md](../SLOT_SPEC.md)

Files in this skill

  • SKILL.md1.9 KB
  • assets/openapi/distribution.yaml920 B
  • references/tools-guide.md566 B
  • scripts/executors/bind_inventory.ts1 KB
  • scripts/executors/browse_and_quote.ts1 KB
  • scripts/executors/create_distributor.ts950 B
  • scripts/executors/set_commission.ts1 KB
  • slot.yaml903 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.