@wowok/skills 2.1.3 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -2
- package/dist/cli.js +189 -41
- package/dist/cli.js.map +1 -1
- package/dist/skills.d.ts +10 -2
- package/dist/skills.d.ts.map +1 -1
- package/dist/skills.js +59 -2
- package/dist/skills.js.map +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +5 -1
- package/dist/types.js.map +1 -1
- package/package.json +3 -1
- package/scripts/install.js +227 -29
- package/wowok-arbitrator/SKILL.md +1 -1
- package/wowok-collaborator/SKILL.md +110 -0
- package/wowok-onboard/SKILL.md +4 -6
- package/wowok-order/SKILL.md +29 -10
- package/wowok-provider/SKILL.md +1 -1
- package/wowok-supplier/SKILL.md +133 -0
package/wowok-order/SKILL.md
CHANGED
|
@@ -1,25 +1,44 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: wowok-order
|
|
3
3
|
description: |
|
|
4
|
-
WoWok
|
|
5
|
-
|
|
4
|
+
WoWok Buyer Guide — TWO lifecycles in one skill:
|
|
5
|
+
|
|
6
|
+
1. PROSPECT (潜在用户尽调, pre-purchase): E1-E11 due diligence + consensus
|
|
7
|
+
building + trust-score synthesis, ending in a buy/no-buy decision.
|
|
8
|
+
2. CUSTOMER (已下单履约, post-order): order creation, progress advancement,
|
|
9
|
+
fund management, and arbitration.
|
|
10
|
+
|
|
11
|
+
For suppliers presenting to Demands, see wowok-supplier. For process
|
|
12
|
+
operators executing workflow forwards, see wowok-collaborator.
|
|
6
13
|
when_to_use:
|
|
7
|
-
- User is a
|
|
8
|
-
- User
|
|
14
|
+
- User is a potential buyer evaluating a service BEFORE purchasing (prospect)
|
|
15
|
+
- User is a customer/buyer placing or managing orders (customer)
|
|
16
|
+
- User wants to evaluate services, WIP, guards, allocations, arbitration
|
|
9
17
|
- User needs to communicate with sellers via Messenger
|
|
10
18
|
- User asks about order progress, payments, or refunds
|
|
11
19
|
- User wants to file disputes or arbitration claims
|
|
12
|
-
- User mentions "buy", "order", "purchase", "refund", "dispute", "arbitration"
|
|
20
|
+
- User mentions "buy", "order", "purchase", "refund", "dispute", "arbitration", "due diligence"
|
|
13
21
|
---
|
|
14
22
|
|
|
15
|
-
# WoWok
|
|
23
|
+
# WoWok Buyer Guide
|
|
16
24
|
|
|
17
|
-
> **Role**: Customer (
|
|
18
|
-
> **Guides**: [wowok-provider](../wowok-provider/SKILL.md) · [wowok-arbitrator](../wowok-arbitrator/SKILL.md) · [wowok-machine](../wowok-machine/SKILL.md) · [wowok-messenger](../wowok-messenger/SKILL.md)
|
|
25
|
+
> **Role**: Buyer — two lifecycles: **Prospect** (pre-purchase due diligence) → **Customer** (post-order fulfillment)
|
|
26
|
+
> **Guides**: [wowok-provider](../wowok-provider/SKILL.md) · [wowok-supplier](../wowok-supplier/SKILL.md) · [wowok-arbitrator](../wowok-arbitrator/SKILL.md) · [wowok-machine](../wowok-machine/SKILL.md) · [wowok-messenger](../wowok-messenger/SKILL.md)
|
|
19
27
|
> Guard patterns / safety rules / tool references live in the MCP knowledge layer — query via `schema_query` (`get_guard_design_patterns`, `get_safety_rules`, `get_tool_reference`).
|
|
20
28
|
|
|
21
29
|
---
|
|
22
30
|
|
|
31
|
+
## Two Lifecycles
|
|
32
|
+
|
|
33
|
+
| Lifecycle | Role | Phases | Ends with |
|
|
34
|
+
|-----------|------|--------|-----------|
|
|
35
|
+
| **Prospect** (潜在用户尽调) | You have NOT ordered yet | Phase 1 (E1-E11) + Phase 2 | buy / no-buy decision |
|
|
36
|
+
| **Customer** (已下单履约) | You are the Order `builder` | Phase 3-6 + Fund Management | funds withdrawn / dispute resolved |
|
|
37
|
+
|
|
38
|
+
The prospect lifecycle is served primarily by MCP `trust_score` (`depth: "preorder"`) and the plug-in `evaluation_operation` — this skill keeps the dialogue flow. The customer lifecycle is on-chain (Order/Progress/Allocation/Arb).
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
23
42
|
## Core Concepts (Design Invariants Not in Schema)
|
|
24
43
|
|
|
25
44
|
- **Objects**: Purchase creates **Order** (fund escrow, you are `builder`), **Progress** (Machine node tracker), **Allocation** (fund distribution). Only `builder` withdraws; agents operate but never access funds.
|
|
@@ -29,7 +48,7 @@ when_to_use:
|
|
|
29
48
|
|
|
30
49
|
---
|
|
31
50
|
|
|
32
|
-
## Phase 1: Pre-Purchase Due Diligence (MANDATORY GATE)
|
|
51
|
+
## Phase 1: Pre-Purchase Due Diligence (PROSPECT lifecycle — MANDATORY GATE)
|
|
33
52
|
|
|
34
53
|
> **⛔ Complete E1-E11 in order; user must confirm every item.** **⚠️** = explain risk, wait. **🔴** = strongly advise against.
|
|
35
54
|
|
|
@@ -177,7 +196,7 @@ Clarify via Messenger: deliverables (E2 WIP), timeline (E3 nodes), refund/cancel
|
|
|
177
196
|
|
|
178
197
|
---
|
|
179
198
|
|
|
180
|
-
## Phase 3: Order Creation
|
|
199
|
+
## Phase 3: Order Creation (CUSTOMER lifecycle)
|
|
181
200
|
|
|
182
201
|
Not in schema: excess `buy.total_pay` auto-refunded; agents cannot withdraw. Discounts: query `onchain_received` (type `0x2::service::Discount`), filter by `service`, validate time/benchmark; rate = `total_pay × (off / 10000)`; fixed = `min(off, total_pay)`. Post-creation: notify via Messenger with order ID.
|
|
183
202
|
|
package/wowok-provider/SKILL.md
CHANGED
|
@@ -235,6 +235,6 @@ Before forking, verify necessity via `get_project_detail` → `has_published_obj
|
|
|
235
235
|
|
|
236
236
|
**AI Reminder**: When fulfilling, check `customer_required` fields. Missing → prompt via Messenger.
|
|
237
237
|
|
|
238
|
-
**Demand/service matching** (`evaluation_operation`): `demand_match` ranks candidate services for a demand capability vector; `service_match` is the reverse; `capability_gap` lists unmet requirements; `compose_service` combines services to cover a demand. Read-only — the merchant decides whether to `present` (`onchain_operations` → `demand` → `
|
|
238
|
+
**Demand/service matching** (`evaluation_operation`): `demand_match` ranks candidate services for a demand capability vector; `service_match` is the reverse; `capability_gap` lists unmet requirements; `compose_service` combines services to cover a demand. Read-only — the merchant decides whether to `present` (`onchain_operations` → `demand` → `present` with `recommend`/`by_guard`/`service`).
|
|
239
239
|
|
|
240
240
|
---
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: wowok-supplier
|
|
3
|
+
description: |
|
|
4
|
+
WoWok Supplier — the canonical skill for suppliers (sub-order providers) who
|
|
5
|
+
present their service to a Demand and fulfill the resulting sub-order.
|
|
6
|
+
|
|
7
|
+
Covers demand discovery, service presentation (open or passport-gated),
|
|
8
|
+
sub-order fulfillment via Progress, and settlement collection. The supplier
|
|
9
|
+
is a PEER role with a two-sided position: deliver (to get paid) + collect
|
|
10
|
+
(from the upstream merchant).
|
|
11
|
+
|
|
12
|
+
For the merchant who owns the main Service, see wowok-provider. For the
|
|
13
|
+
process operators executing the workflow, see wowok-collaborator.
|
|
14
|
+
when_to_use:
|
|
15
|
+
- User wants to present their service to a Demand (open RFP or gated call)
|
|
16
|
+
- User is a sub-order provider / supplier fulfilling part of a transaction
|
|
17
|
+
- User wants to collect settlement from an upstream merchant
|
|
18
|
+
- User mentions "supplier", "sub-order", "demand", "present service", "RFP", "fulfill sub-order"
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
# WoWok Supplier Guide
|
|
22
|
+
|
|
23
|
+
> **Role**: Supplier (sub-order provider / Demand presenter)
|
|
24
|
+
> **Related Skills**: [wowok-provider](../wowok-provider/SKILL.md) (main merchant), [wowok-collaborator](../wowok-collaborator/SKILL.md) (process operators), [wowok-machine](../wowok-machine/SKILL.md) (workflow), [wowok-messenger](../wowok-messenger/SKILL.md) (evidence exchange)
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## MCP Knowledge Layer
|
|
29
|
+
|
|
30
|
+
The following content has been pushed down to the MCP knowledge layer and is applied automatically — this Skill does NOT duplicate it:
|
|
31
|
+
|
|
32
|
+
| Content | Access via (MCP action) | Applied Via |
|
|
33
|
+
|---------|--------------------------|-------------|
|
|
34
|
+
| Demand semantics (open vs guarded, present paths) | `schema_query` action='get' (demand object schema, or on-demand knowledge) | `onchain_operations` demand |
|
|
35
|
+
| Supplier interest analysis (fund_flow / responsibility / leverage / stakes) | `project_operation` action='participation_radar' | role derivation → `supplier-interest` |
|
|
36
|
+
| Demand/service matching | `evaluation_operation` action='demand_match' | read-only ranking |
|
|
37
|
+
| Safety rules (immutability, object reuse, confirmation) | `schema_query` action='get_safety_rules' | `evaluate_project` + pre-publish |
|
|
38
|
+
|
|
39
|
+
This Skill keeps the supplier **conversation flow** — discover → present → fulfill → collect. The MCP layer handles rules, matching, and own-interest surfacing.
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Role: the two-sided supplier
|
|
44
|
+
|
|
45
|
+
The supplier is a **peer** (not weak like the customer, not strong like the merchant). Its position is two-sided:
|
|
46
|
+
|
|
47
|
+
1. **DELIVER** — fulfill the sub-order deliverable to unlock settlement.
|
|
48
|
+
2. **COLLECT** — collect the settlement share from the upstream merchant.
|
|
49
|
+
|
|
50
|
+
Your payment is a two-hop waterfall: main order escrow → allocation → your sub-order. You must protect BOTH sides — a delivery you can't prove is unpaid work; an upstream stall you don't chase is a lost claim.
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## Core Interaction Principles
|
|
55
|
+
|
|
56
|
+
1. **Review-first**: State (a) what the AI understood, (b) the decision order, and (c) the interaction contract — before the first choice.
|
|
57
|
+
2. **User-driven**: Every step is an explicit user decision; the AI provides a `recommend` but never auto-advances.
|
|
58
|
+
3. **Reuse / Customize / Discover (三选一)**: For every component (service, passport, guard), surface reuse / customize / discover.
|
|
59
|
+
4. **Default-config disclosure**: Disclose defaults + caveats BEFORE the user decides.
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## ⚠️ PRE-FLIGHT: Before Presenting to a Demand
|
|
64
|
+
|
|
65
|
+
Before ANY presentation, confirm with the user. **Do NOT fabricate, do NOT auto-present.**
|
|
66
|
+
|
|
67
|
+
| # | Item | User Must Provide | Why Not Fabricate |
|
|
68
|
+
|---|------|-------------------|--------------------|
|
|
69
|
+
| **S1** | **Account** | Which account operates. Default `""`. | Safe default exists |
|
|
70
|
+
| **S2** | **Target Demand** | Which Demand to present to (name/address). | You don't know which RFP they're answering |
|
|
71
|
+
| **S3** | **Service to present** | Which Service represents their offering. | It's their brand/offering identity |
|
|
72
|
+
| **S4** | **Passport (if gated)** | A valid Passport passing the Demand's guards. | Guards filter presentations; wrong passport = rejection |
|
|
73
|
+
|
|
74
|
+
> ⛔ GATE: S1-S4 confirmed before calling `present` (with `by_guard` for guarded demands). Not confirmed → STOP and ask.
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Phase 1: Discover & Present
|
|
79
|
+
|
|
80
|
+
**Discover** — `query_toolkit` / `onchain_objects` to list open Demands. A Demand is a user's service request with optional reward; presenters submit proposals.
|
|
81
|
+
|
|
82
|
+
**Match** — `evaluation_operation` action='demand_match' ranks whether your service fits the Demand's capability vector. Read-only; you decide whether to present.
|
|
83
|
+
|
|
84
|
+
**Present** — `onchain_operations` operation_type='demand':
|
|
85
|
+
- Open Demand → `present`.
|
|
86
|
+
- Guarded Demand → `present` with `by_guard` (a Passport that passes one of the Demand's guards).
|
|
87
|
+
|
|
88
|
+
> The Demand's `presenters` table records your submission (recommend / service / acceptance_score). The creator may give `feedback` + an `acceptance_score` — that is the selection signal.
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## Phase 2: Fulfill the Sub-order
|
|
93
|
+
|
|
94
|
+
If selected, you receive a sub-order. Fulfill it via Progress (same routing rule as the provider):
|
|
95
|
+
|
|
96
|
+
- Empty `namedOperator` (`""`) → `order.progress`
|
|
97
|
+
- Non-empty role name or `permissionIndex` → `progress.operate`
|
|
98
|
+
- Guard-gated forwards need `b_submission` (evidence) entries.
|
|
99
|
+
|
|
100
|
+
Upload delivery evidence (Repository/proof) BEFORE advancing — it protects your payment claim and pre-builds your arbitration defense.
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## Phase 3: Collect Settlement
|
|
105
|
+
|
|
106
|
+
Your settlement is released through the allocation waterfall when the sub-order completes. It is NOT automatic — verify your share arrived (query your sub-order's Allocation/Treasury).
|
|
107
|
+
|
|
108
|
+
If the upstream merchant stalls or withholds, escalate in order:
|
|
109
|
+
1. Messenger nudge (WTS evidence).
|
|
110
|
+
2. Arbitration (if the upstream Service binds one).
|
|
111
|
+
3. On-chain reputation — the loss is permanent and public.
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## Own-Interest Surfacing
|
|
116
|
+
|
|
117
|
+
Run `project_operation` action='participation_radar' with your account + sub-order progress. The MCP derives your role (supplier) and attaches `supplier-interest` (fund_flow / responsibility / leverage / stakes). Present it as neutral information — the supplier decides.
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## Design Principles
|
|
122
|
+
|
|
123
|
+
- **Prove before you advance**: evidence first, then execute.
|
|
124
|
+
- **Protect both sides**: deliver AND collect — neglect either and you lose.
|
|
125
|
+
- **Match honestly**: presenting to every Demand dilutes your reputation; present only where you genuinely fit.
|
|
126
|
+
- **Neutrality**: the AI surfaces trade-offs, never chooses the branch for you.
|
|
127
|
+
|
|
128
|
+
## Quick Reference
|
|
129
|
+
|
|
130
|
+
- Open Demand → `present`; Guarded Demand → `present` with `by_guard`.
|
|
131
|
+
- Guarded Demand accepts only Passports that pass its guards.
|
|
132
|
+
- Settlement is two-hop (main order → allocation → sub-order) — verify the second hop too.
|
|
133
|
+
- Upstream compensation_fund is your recourse for unpaid work; empty fund = refund + reputation only.
|