Skip to content

Add usage-efficiency-audit to use case library - #112

Open
rezakhadjavi wants to merge 2 commits into
mainfrom
runneth/usage-efficiency-audit
Open

Add usage-efficiency-audit to use case library#112
rezakhadjavi wants to merge 2 commits into
mainfrom
runneth/usage-efficiency-audit

Conversation

@rezakhadjavi

Copy link
Copy Markdown
Contributor

Adds the usage-efficiency-audit use case to the library so it can be installed into customer sandboxes from the link.

What this is

Two skills packaged behind one install:

  • usage-efficiency-audit (the watcher + audit). Runs daily, silent. When the customer crosses 80% of plan in the cycle, pulls their cycle's conversations from local Postgres, runs Claude-powered pattern detection across five categories (re-pasted context, repeating workflows, skill mismatches, over-scoped threads, re-derived knowledge), builds an openable HTML page, and posts a friend-voice note to Slack with the link. Fires once per cycle.
  • setup-usage-efficiency-audit (the one-time install). Captures Slack channel, optional user tags, and billing anniversary day. Schedules the daily watcher reminder.

Customer-facing copy guardrails

The customer never sees dollar figures, internal pricing tiers, or scarcity language. They only see percentage of plan used, days until reset, and (when usage trajectory warrants it) one optional line that the next tier 3x's their usage.

Files added

  • usage-efficiency-audit/use-case.json
  • usage-efficiency-audit/marketing.md
  • usage-efficiency-audit/install-config.json
  • usage-efficiency-audit/post-install-intro.md
  • usage-efficiency-audit/README.md
  • usage-efficiency-audit/SKILL.md
  • usage-efficiency-audit/setup-usage-efficiency-audit/SKILL.md
  • use-case-library-site/frontend/src/icons/bars-rising-filled.svg (new icon)
  • use-case-library-site/frontend/src/Illustration.tsx (import + slug map)
  • .use-case-library/catalog.json (slug registered)

Validation

All six required library files pass the validation checklist from use-case-library-add: use-case.json has all six fields and a valid category, marketing.md has frontmatter + three standard sections, install-config.json changelog notes are strings, SVG is 24x24 with currentColor on paths, Illustration.tsx has both the import and the slug map entry, catalog.json has the slug registered.

Not merging

Leaving for you to review and merge. Per Rabia's workflow rules, every merge to main needs explicit approval per change.

Runneth added 2 commits June 2, 2026 18:36
Two skills (audit + setup) packaged for installation through the use case library. When the team crosses 80% of their plan in a billing cycle, Runneth pulls their cycle's conversation history, runs personalized pattern detection across re-pasted context, repeating workflows, skill mismatches, over-scoped threads, and re-derived knowledge, builds an openable HTML page with the highest-leverage recommendations, and posts a friend-voice note to Slack with the link. Fires once per cycle.

Customer-facing copy guardrails enforced throughout: no dollar figures, no scarcity framing, no internal pricing terminology. Setup captures Slack channel, optional tags, and billing anniversary day. Daily watcher reminder schedules itself on install.
…month end

Setup was rejecting days 29 through 31 to dodge the February edge case. That's wrong: real customer billing cycles land on those days all the time, and the right behavior is to clamp the anniversary to the last day of any month that doesn't contain that day (Feb 29 in non-leap years, Apr 31, etc), which is how Stripe handles it.

Setup now accepts 1-31. Main skill cycle math uses safe_anniversary() that clamps to the last valid day of the target month. Validated against day 29 (the customer case) across leap-year and non-leap February, plus day 31 across April and Feb.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant