Skip to content
Back to skills

Macro Count

ASecurity

Investigate per-space macro inventory for one Confluence site, comparing reported Metrics KV inventory with distinct viewed macros and optional D1 coverage. Use for macro counts, space limits and reconciling inventory/usage. Distinguishes actual stock from activity and historical sync rows.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 12, 2026
devopspythonbashfrontendbackend

Security analysis

A100/100

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

Scanned November 12, 2026

npx -y skills add ZenUml/conf-app --skill macro-count --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Macro Count?

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

Security grade badge for Macro Count
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/zenuml-macro-count/badge)](https://www.skillsdirectory.com/skills/zenuml-macro-count)

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: macro-count
description: Investigate per-space macro inventory for one Confluence site, comparing reported Metrics KV inventory with distinct viewed macros and optional D1 coverage. Use for macro counts, space limits and reconciling inventory/usage. Distinguishes actual stock from activity and historical sync rows.
---

# Per-space macro inventory

```bash
python3 .claude/skills/macro-count/scripts/macro_count.py --domain example-tenant --no-d1 --json
```

Read [shared evidence rules](../customer-data/evidence.md) and `mixpanel` for shared semantics. Use bare subdomain for KV and frontend Mixpanel dimensions. The `addonKey` query parameter chooses the product; backend hostname alone does not. Verify actual installed/license variants before selecting records; prefer the applicable fresh record, never simply the largest number.

| Source | Meaning | Limit |
|---|---|---|
| Metrics KV | Reported inventory per space KEY | Include lastUpdated and product; stale or absent reports are not current zero |
| Mixpanel | Distinct macro placements viewed in a stated window, per space KEY | Not stock; deleted/copied placements and tracking gaps affect it |
| D1 | Successfully synced content rows per numeric spaceId | Incomplete history, possible deleted records; no guaranteed upper or lower bound on live inventory |

`--days` selects the Mixpanel window; `--no-kv`, `--no-mixpanel`, `--no-d1` skip sources explicitly. Unavailable/failed sources must remain unknown. Do not substitute the number of create events for stock, or distinct viewed placements for total diagrams.

The helper's existing D1 query is **legacy AppInstance-join coverage only**. For current Forge investigations start with `--no-d1`; inspect deployed schema/migrations before an explicit cloudId query. Current sync code writes `CustomContent.cloudId` and site mapping, so the older statement that Forge can never be scoped to a customer is false. Historical nulls and deployment state still require checking. Use verified cloudId and app identity; a Forge appId is shared across sites and is not a tenant key. Never join numeric spaceId directly to space KEY without a verified map.

Current Graph viewer code emits `macro_viewed`; older windows can lack it. The code's existence does not backfill history. A KV/MP gap warrants investigation of coverage and dates, not a causal conclusion that users churned or a claim that every missing macro was never viewed.

Confluence owns diagram content. These read-only analytics are not a content recovery source or a reason to modify customers' content. Return counts, product, window, timestamps, scope and gaps. Use `customer-followup` for the business decision.

Files in this skill

  • SKILL.md2.6 KB
  • scripts/macro_count.py17.6 KB

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.

View all in devops →

Comments

Loading comments…

Newsletter

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