Skip to content
Skillv1.0.0

auth

Package delta; root AGENTS.md applies.

by pumni(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from pumni/web-os (packages/auth/AGENTS.md). Install upstream with npx skills add pumni/web-os --skill auth. Copyright stays with the author.

@pumni/auth — package-scoped rules

Package delta; root AGENTS.md applies.

Summary

High-level, server-only authentication helpers (getCurrentUser, requireUser) built on @pumni/supabase/server. This is where request-scoped identity is resolved before any privileged write.

Architecture

  • Keep the package server-only and preserve its @pumni/supabase dependency.
  • Consumers are Server Components, Server Actions, and route handlers; client components must not import it.

Pitfalls

  • Mutating Server Actions must call requireUser() before any Supabase write.
  • Browser identity flows through @pumni/supabase/browser; do not add a browser or NEXT_PUBLIC_* entry point here.
  • Changing requireUser/getCurrentUser affects every protected route.

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/pumni-web-os-auth/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

pumni-web-os-auth.ocm.jsonjson
{
  "ocm": "1",
  "id": "pumni-web-os-auth",
  "kind": "skill",
  "name": "auth",
  "description": "Package delta; root AGENTS.md applies.",
  "publisher": "pumni",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "github-agents"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Package delta; root AGENTS.md applies."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github-agents",
      "repository": "https://github.com/pumni/web-os",
      "path": "packages/auth/AGENTS.md",
      "ref": "abbb6b00e9499dfda2a7eba361856ee5af8ac913",
      "url": "https://github.com/pumni/web-os/blob/abbb6b00e9499dfda2a7eba361856ee5af8ac913/packages/auth/AGENTS.md",
      "key": "pumni/web-os/packages/auth/AGENTS.md"
    }
  },
  "instructions": "# @pumni/auth — package-scoped rules\n\nPackage delta; root AGENTS.md applies.\n\n## Summary\n\nHigh-level, server-only authentication helpers (`getCurrentUser`, `requireUser`)\nbuilt on `@pumni/supabase/server`. This is where request-scoped identity is\nresolved before any privileged write.\n\n## Architecture\n\n- Keep the package server-only and preserve its `@pumni/supabase` dependency.\n- Consumers are Server Components, Server Actions, and route handlers; client\n  components must not import it.\n\n## Pitfalls\n\n- Mutating Server Actions must call `requireUser()` before any Supabase write.\n- Browser ident",
  "cost": {
    "context_tokens": 194
  }
}

Fetch it by URL: GET /api/v1/registry/pumni-web-os-auth/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.