appkit-user

appkit-user is a skill for Claude Code, Codex from jenreh/appkit. It costs 154 tokens per session (4,855 once invoked), scanned A, original, MIT.

Authentication, login sessions, and user-management helpers for Appkit applications. They connect page routes, API routes, and WebSocket events to a user's session.

In plain words
What is it for?
Use it to require a signed-in user for API routes, add login and profile pages, and connect authentication middleware to an Appkit app.
Why use it?
They provide one session-based way to protect different kinds of application requests instead of handling login checks separately. The input does not describe all available user-management features.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to require a signed-in user for API routes, add login and profile pages, and connect authentication middleware to an Appkit app.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jenreh/appkit/appkit-user
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jenreh/appkit --skill appkit-user
Clone the repo
git clone --depth 1 https://github.com/jenreh/appkit

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for appkit-user

README.md
[![agentmods](https://agentmods.dev/badge/skills/jenreh/appkit/appkit-user/github.svg)](https://agentmods.dev/skills/jenreh/appkit/appkit-user)
Your own site
<a href="https://agentmods.dev/skills/jenreh/appkit/appkit-user"><img src="https://agentmods.dev/badge/skills/jenreh/appkit/appkit-user/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for appkit-user

Your own site · 80×15
<a href="https://agentmods.dev/skills/jenreh/appkit/appkit-user"><img src="https://agentmods.dev/badge/skills/jenreh/appkit/appkit-user.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 154 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,855 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00154 $0.04855
Opus 5.5 $0.00062 $0.01942
Sonnet 5.5 $0.00031 $0.00971
Haiku 4.5 $0.00015 $0.00485

Measured today against content hash 654c7a52eb06, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

appkit-user scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/appkit-user/SKILL.md · 487 lines

How it starts

The opening of the file, as written. The whole thing — 487 lines — stays where its author put it; the contents beside it link to each section on GitHub.

appkit-user Best Practices

Authentication, sessions and user management for appkit apps. For the general path prefix helpers (public_path, public_url, strip_public_prefix) see the appkit-commons skill.


1. Wiring

One import wires the whole guard: HTTP page loads and REST routes via the ASGI middleware, WebSocket events via the Reflex middleware.

from appkit_user.authentication import add_session_guard, install_session_filter
from appkit_user.authentication.pages import (  # noqa: F401  registers routes
    azure_oauth_callback_page,
    github_oauth_callback_page,
)
from appkit_user.user_management.pages import (
    create_login_page,
    create_password_reset_confirm_page,
    create_password_reset_request_page,
    create_welcome_page,
)

from app.components.templates import default_layout  # layouts live in the app
from app.components.welcome import app_welcome  # optional own content

create_login_page(default_layout)  # logo paths are app relative; prefixed internally
create_password_reset_request_page(default_layout)
create_password_reset_confirm_page(default_layout)
create_welcome_page(default_layout, content=app_welcome)  # required unless approval off

app = rx.App(api_transformer=[api_app, add_session_guard, add_https_middleware])
install_session_filter(app)

REST routes on the FastAPI app take the user from the session cookie:

from appkit_user.authentication import RequiredSession  # Depends(require_session)


@router.get("/api/things")
async def list_things(user: RequiredSession) -> list[Thing]: ...

2. Configuration

app:
  authentication:
    server_url: http://localhost
    server_port: 8080            # 0 or the scheme default is dropped
    session_timeout: 25          # minutes
    session_cookie_secure: true  # false only for non-TLS hosts other than localhost
    require_admin_approval: true # new OAuth users start without access (see §3)
    welcome_route: /welcome      # where pending users are fenced to
    user_admin_route: /admin/users  # link in the admin notification email
    # session_cookie_name: ""    # "" = derived from frontend_path (see §5)
    # storage_key_prefix: ""     # "" = derived from frontend_path (see §5)
    public_routes:               # fnmatch globs, app relative; all else default-deny
      - /login
      - /password-reset
      - /password-reset/confirm
      - /oauth/*/callback
    session_filter_state: true   # gate WS events by handler, not route (see §4)
    public_states: []            # dotted class paths of states public pages use
    oauth_providers:
      - provider: github
        client_id: secret:my-github-client-id
        client_secret: secret:my-github-client-secret
        # redirect_url: leave unset (see §6)
    password_reset:
      token_expiry_minutes: 10
      max_requests_per_hour: 3
    login_rate_limit:            # failed password logins, stored in auth_login_throttle
      enabled: true
      max_attempts: 5            # per normalized email within window_minutes
      max_attempts_per_client: 20  # per client IP (offices share one address)
      window_minutes: 15
      lockout_minutes: 15

Read the full file on GitHub · 487 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +175 lines · +38 tokens per session 654c7a52eb06
  2. 8d ago Changed · +23 lines · +9 tokens per session deddf6318e6f
  3. 15d ago Changed · +58 lines · +7 tokens per session 22dfe24a3df5
  4. 26d ago Changed · +27 lines a66069187533
  5. 29d ago Changed · +7 lines 122e0bee9f13
  6. 1mo ago First seen · 197 lines · 100 tokens per session scan A a08ad91f19b9

Subscribe to this mod's changes

appkit-user is a skill published in the GitHub repository jenreh/appkit (5 stars, last pushed yesterday), licensed MIT. It adds 154 tokens to every session and 4,855 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-05.

Related

appkit-user compared with skills from other repositories

appkit-user next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
appkit-userjenreh/appkitSkill5yesterdayMITA154Claude Code, Codex
open-sourcebrowser-use/browser-useSkill122ktodayMITA101Claude Code
fastapi-patternsaffaan-m/ECCSkill313k7d agoMITA35Claude Code, Kiro
mem0-test-integrationmem0ai/mem0Skill70k3d agoApache-2.0A207Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill70k3d agoApache-2.0A217Claude Code, Codex
stripe-projectse2b-dev/E2BSkill15kyesterdayApache-2.0A51Claude Code, Codex
python-sdkComposioHQ/composioSkill31ktodayMITA60Claude Code, Codex