agentleFS
hi-donwihi-donwi/Donwi-Skills/skills/membership-management/SKILL.md

membership-management

Skill0 starsChanged 13 days agoMITView on GitHub

Model organization or association memberships, invitations, eligibility, renewal, expiry, suspension, benefits, and ownership transfer. Use for member lifecycles, not login protocols, recurring payment processing, or tenant storage isolation.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check all role/status-changing paths, including invitations, imports, directory synchronization, and suspension.

    line 38

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Membership Management

Overview

A person, an organization membership, a commercial subscription, and a benefit grant are different records with independent histories and authority.

When to use

  • Managing organization teams, associations, paid communities, or membership programs.
  • Handling invitations, eligibility tiers, renewals, owner transfer, and benefit access.

Hand off when

NeedSkill
SSO, MFA, login, and permission enforcementidentity-access-management
Recurring charges, dunning, and billing entitlementssaas-billing
Tenant persistence isolationsaas-multitenancy

Process

  1. Define whether membership means organization access, program eligibility, or both. Separate global identity, scoped membership, role assignments, and benefit grants.
  2. Define states, effective dates, timezone, eligibility, tier changes, renewal windows, grace policy, expiry, suspension, cancellation, and reactivation from the domain contract.
  3. Scope invitations to organization, verified recipient, grantable role, expiry, and inviter authority. Store token hashes; consume once atomically and never trust a form role. For existing members, apply an explicit merge/reactivation policy rather than silently replacing current roles or restoring access from an old invitation result.
  4. Enforce membership uniqueness and authorized role changes. Transfer ownership atomically, preserving an active accountable owner under concurrent removals. Check all role/status-changing paths, including invitations, imports, directory synchronization, and suspension. Forced security revocation still blocks access; if no eligible owner remains, enter the explicit restricted recovery workflow.
  5. Version membership terms and benefit eligibility. Derive active benefit access from current policy and dates, not one persistent active boolean or a successful payment alone.
  6. Coordinate paid membership with verified billing outcomes using idempotent links. Define billable seats and pending invitations separately; payment cannot invent a role.
  7. Revoke sessions, cached benefits, and scheduled work on suspension or departure. Renewal/expiry jobs must recheck current versions and handle late or repeated execution.
  8. Audit lifecycle transitions and test replayed invites, identity mismatch, concurrent acceptance/removal, date boundaries, reactivation, and last-owner protection.

Red flags

  • One global member flag, raw invitation tokens in logs, or self-assigned owner roles.
  • Treating payment status as authorization or removing the final owner concurrently.
  • Invitation acceptance implicitly downgrading an existing owner without invariant checks.
  • Extending renewal twice because a scheduler or payment callback was retried.

Verification

  • Membership, identity, billing, and benefits remain distinct and consistently scoped.
  • Invitations and renewal events execute once; eligibility follows effective dates.
  • Last-owner, suspension, and cached-access regressions have concurrency tests.

References

  • references/membership-lifecycle.md - lifecycle and ownership invariants.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.