tenant
Look up verified Confluence tenant seat counts (Marketplace license users), product, license, payment, contact and pricing facts. Use for one site or a batch whenever the request asks for seats, licen
Files2
View on GitHubSKILL.md.claude/skills/tenant/SKILL.md
GitHubTenant lookup
Answers single-tenant and batch questions off Atlassian Marketplace license/transaction data
plus the Lite Stripe/KV space-license layer. It's the single-tenant primitive over
marketplace's engine (mp_report.py) — same auth, cloudId join, and SQLite snapshot — so there is
no separate code to drift. (The script physically lives under marketplace/scripts/; this skill
references it by path, the same way macro-count references mixpanel's script.)
The one command you want
S=.claude/skills/marketplace/scripts/mp_report.py
python3 $S whois <domain> # the card: cloudId, users, per-app STATE, lifetime $, + Lite Layer-B KV
python3 $S whois <domain> --json # machine-readable (self-documents data vintage in --local mode)
For a seat-count request, use the users value parsed from the Marketplace license tier. Mixpanel
active users, viewers and editors are usage measures, not seats. For multiple tenants, sync once,
record the snapshot time, then run whois <domain> --local --json for every requested domain. If a
live query or fresh sync fails, report the seat count as unknown or use a dated verified snapshot
with its date; do not substitute a usage metric.
Always read whois before concluding anything about a tenant's paid status — a naive Marketplace
$0 is the single most common wrong answer here.
What the card encodes (the traps baked in)
- Purchase and settlement are independent. Inspect raw transactions alongside the license. The current
whoishelper can label positive transaction amountsPAIDwithout checkingpaymentStatus; itsPAID,payingand lifetime totals are not independent payment confirmation. Verify raw Paid/Fully paid/Open status, source IDs and service periods in the Marketplace export/snapshot. A valid commercial order with Open status establishes purchase, while settlement stays unconfirmed. Do not describe that customer as unpaid or without an order. - Lite space licenses are checked automatically. Lite is free on the Marketplace (
$0by design); paid Lite status is the Stripe/KV space license.whoisshellswrangler kv … --remote(the--remoteis baked in — without it wrangler v4 reads LOCAL state and returns a false empty) and prints[space licenses: none / N].--no-kvskips it (~2s). On 401 the card printsFIX: npx wrangler login. That is an unread check, not an unpaid tenant. - cloudId is the join key. Transactions carry
cloudId+ company but NO hostname, so a text search by hostname finds the license yet misses every transaction → a false$0.whoisjoins on cloudId; do not hand-roll a text search. - Slug typo → suggestions. A miss prints near-match hosts (
woolworth-agile→woolworths-agile).
Drill-downs (same script)
python3 $S client <name> # full license + transaction history for one tenant ("did they ever pay, how much, what plan")
python3 $S tier <domain> # quick tier / license-type / status
Determinism / offline (optional)
python3 $S sync builds a local SQLite snapshot; then add --local to any command for
byte-deterministic, offline, sub-100ms lookups. Billing may be stale (it prints the snapshot age and
warns past 24h); Lite Layer-B is skipped in --local mode and says so. Use --local for batch /
reproducible reports, live for "is X paying right now". See marketplace for sync details.
Report shape
Give company/site, purchase evidence, verified product/license facts, source-reported payment status, contact roles and evidence gaps. Preserve transaction/line IDs, sale dates, amounts and coverage rather than quoting only a lifetime total. The helper's paying_any_layer can be unknown when Lite is unchecked, but a true result still requires raw Marketplace/Stripe verification before claiming payment. Review transaction periods/refunds and overlapping invoices separately; Open-only orders must not be described as “no transaction found”.
For purchase/renewal opportunities, pass a matched valid non-zero order with effective commercial license to customer-followup as a commercial win, even if settlement is Open. Exclude refunds, cancelled/voided orders and free-only rows. A paused support or technical conversation is separate from this commercial fact.
For a decision, pass the facts to customer-followup. This lookup does not grant permission for product changes, free extensions, outreach or scheduling. Contact role is not established by a technical-contact label. Full trial expiry alone is not a reason to chase purchasing.
Potential pricing comes from marketplace/scripts/mp_pricing.py quote <seats> using the current verified tier; report currency, source date and whether the amount is a public list price, quote or actual transaction. Keep long evidence and customer identities in private/.
Related: customer-lifecycle, customer-feedback, customer-followup, marketplace, macro-count.