Skip to content
SkillModel-led2,722 tokens in use

saas-authorization

Decide who may do what across every tenant boundary of a multi-tenant SaaS: workspace model, three access functions, permissions versus entitlements, and thirteen threat classes.

680 stars on the repository MIT Licensephuryn/product-engineering · app-stack/skills/saas-authorization
claude plugin install app-stack@product-engineering
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing saas-authorization costs

44tokens idle
2,722tokens in use
15,009tokens, up to

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Up to adds the files its instructions link. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

Nothing detected: no shell, network, file writes, git or credentials in its files.

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Good
  • Frontmatter8/15
  • Structure19/25
  • Examples6/15
  • Output15/15
  • Size15/15
  • Resources15/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent

No findings.

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Good
  • Development activity100
  • Maintenance100
  • Community44
  • Maturity4
  • Momentum40

This skill sets the authorization model for a multi-tenant SaaS and the threats every such app has. It starts by declaring the product’s shape before the first migration, then applies eleven rules: everything belongs to a workspace, two credentials never mix, deterministic code decides what cannot be undone, and permissions are checked, not roles.

It adds a threat table covering untrusted text, floods, cross-tenant access, leaked tokens and databases, webhooks, scheduled work, secrets, customer-supplied addresses and embedded agents, plus the tests a data route needs.

What You Get

  • Eleven model rules: workspaces, two credentials, deterministic enforcement, three functions, permissions, entitlements, constraints and unguessable ids
  • A threat table of thirteen classes, each with its rule and a reference section
  • A capability-by-actor permissions matrix kept as the intent an audit compares against
  • Required authorization tests, including a cross-tenant test on every data route
  • Reference files for the model, the threat model and the documents and tests

Common Use Cases

  • Adding a role or a permission to a multi-tenant product
  • Writing a route that reads or changes a workspace’s data
  • Adding API tokens, a webhook or a scheduled job safely
  • Reviewing a product’s security against its permissions doc

What Makes It Unique

It separates who may act (roles and permissions) from how much (entitlements from billing) and says they never touch, since gating a capability on a feature removes it mid-session when a card lapses. It also requires that a denial test prove it reached the check it claims to test.

Under The Hood

The skill is instructions and reference markdown, with no scripts of its own. Following it, the agent writes route, database and test code in the product, edits its permissions, architecture and flows docs and its backlog, and runs the test suite. Some threat rules, such as calls to customer-supplied addresses and webhook verification, steer the code the agent writes toward network calls and secrets handling. The skill itself fetches nothing.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers