bkend-auth

bkend-auth is a skill for Claude Code from ww-w-ai/bkit-claude-code. It costs 45 tokens per session (962 once invoked), scanned A, original, Apache-2.0.

A guide to adding user sign-in to bkend.ai applications. It covers email passwords, Google or GitHub sign-in, magic links, and the tokens used to keep users signed in.

In plain words
What is it for?
Use it to implement registration, login, social sign-in, magic links, password rules, and token renewal.
Why use it?
It explains the available sign-in choices and the steps needed to connect them to an application.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: agent in frontmatter.

Part of the bkit plugin — 44 skills, 2 commands, 34 agents, 21 hooks shipped together

Good fit Use it to implement registration, login, social sign-in, magic links, password rules, and token renewal.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ww-w-ai/bkit-claude-code/bkend-auth
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 ww-w-ai/bkit-claude-code --skill bkend-auth
Clone the repo
git clone --depth 1 https://github.com/ww-w-ai/bkit-claude-code

Made for: Claude Code.

Or install bkit, the plugin that ships this one along with the rest of its 44 skills, 2 commands, 34 agents, 21 hooks.

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 bkend-auth

README.md
[![agentmods](https://agentmods.dev/badge/skills/ww-w-ai/bkit-claude-code/bkend-auth.svg)](https://agentmods.dev/skills/ww-w-ai/bkit-claude-code/bkend-auth)
Your own site
<a href="https://agentmods.dev/skills/ww-w-ai/bkit-claude-code/bkend-auth"><img src="https://agentmods.dev/badge/skills/ww-w-ai/bkit-claude-code/bkend-auth.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 962 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 37
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Tool Misuse · line 107
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
How audits are shown
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.00045 $0.00962
Opus 5 $0.00023 $0.00481
Sonnet 5 $0.00009 $0.00192
Haiku 4.5 $0.00005 $0.00096

Measured 8d ago against content hash cf0b2d2b5466, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

bkend-auth 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 8d ago.

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/bkend-auth/SKILL.md · 116 lines

How it starts

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

bkend.ai Authentication & Security Guide

Auth Methods

Method Description
Email + Password Email/password signup and login
Social (Google) OAuth 2.0 social login
Social (GitHub) OAuth 2.0 social login
Magic Link Email link login (no password)

JWT Token Structure

  • Access Token: 1 hour validity
  • Refresh Token: 7 days validity
  • Auto-refresh: POST /v1/auth/refresh

Password Policy

8+ characters, uppercase + lowercase + numbers + special characters

MCP Auth Workflow

bkend MCP does NOT have dedicated auth tools. Use this workflow:

  1. Search docs: search_docs with query "email signup" or "social login"
  2. Get examples: search_docs with query "auth code examples"
  3. Generate code: AI generates REST API code based on search results

Searchable Auth Docs

Doc ID Content
3_howto_implement_auth Signup, login, token management guide
6_code_examples_auth Email, social, magic link code examples

Key Pattern

User: "Add social login"
  → search_docs(query: "social login implementation")
  → Returns auth guide with REST API patterns
  → AI generates social login code

REST Auth API (Core Endpoints)

For the complete endpoint list, use search_docs or check Live Reference.

Method Endpoint Description
POST /v1/auth/email/signup Sign up
POST /v1/auth/email/signin Sign in
GET /v1/auth/me Current user
POST /v1/auth/refresh Refresh token
POST /v1/auth/signout Sign out
GET/POST /v1/auth/:provider/callback Social login callback
POST /v1/auth/password/reset/request Password reset
POST /v1/auth/password/reset/confirm Confirm reset
POST /v1/auth/password/change Change password
GET /v1/auth/sessions List sessions
DELETE /v1/auth/sessions/:sessionId Remove session
DELETE /v1/auth/withdraw Delete account

Read the full file on GitHub · 116 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. 8d ago First seen · 116 lines · 45 tokens per session scan A cf0b2d2b5466

Subscribe to this mod's changes

bkend-auth is a skill published in the GitHub repository ww-w-ai/bkit-claude-code (595 stars, last pushed yesterday), licensed Apache-2.0. It adds 45 tokens to every session and 962 once invoked, about $0.0002 per session on Opus 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-08-30.

Related

Other skills, from other repositories

order-processing-pipeline

Implement a reliable order state machine that moves orders from pending through payment, fulfillment, and delivery with webhook-driven transitions.

finsilabs/awesome-ecommerce-skills · 27 tokens

Data Pipeline Architect

Design and implement robust data pipelines — ETL/ELT, streaming, batch processing. From architecture to code with Airflow, dbt, Kafka, and modern data stack.

demo112/yunqu-ai-skills · 40 tokens

dotnet-audit-pipeline

An automated security-review workflow for authorised .NET web applications and compiled .NET files such as DLLs. It coordinates code decompilation, attack-surface mapping, authentication checks, vulnerability checks, call tracing, and a final report.

jinyimeng01/net-code-audit-skill-master · 137 tokens

nestjs-architecture

Design NestJS module boundaries, provider scope, and request pipeline choices. Use when structuring modules, placing guards/pipes/interceptors, or reviewing provider lifetime in NestJS.

FilippoDeSilva/skills · 39 tokens

mem0-oss-to-platform

Plan and then execute a migration of a project from the mem0 open-source / self-hosted SDK (the local Memory class) to the mem0 Platform / hosted / managed SDK (the MemoryClient class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS/self-hosted to the hosted API — e.g.…

mem0ai/mem0 · 273 tokens

azure-mgmt-botservice-dotnet

Azure Resource Manager SDK for Bot Service in .NET. Management plane operations for creating and managing Azure Bot resources, channels (Teams, DirectLine, Slack), and connection settings. Triggers: "Bot Service", "BotResource", "Azure Bot", "DirectLine channel", "Teams channel", "bot management .NET", "create bot".

microsoft/skills · 78 tokens