admin-bootstrap

Promote a user to admin via the bootstrap-admin endpoint with security checks.

4|Updated Dec 5, 2025
One-click install
npx skills add https://github.com/aaaa47080/stock_agent --skill admin-bootstrap
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: admin-bootstrap
Source: https://github.com/aaaa47080/stock_agent/tree/main/.agent/skills/admin-bootstrap
Command: npx skills add https://github.com/aaaa47080/stock_agent --skill admin-bootstrap

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, and includes scripts (resource) components.

What problem does it solve?

Automates the process of promoting a user to the Admin role via a bootstrap endpoint, simplifying the setup of initial governance and reducing manual steps.

Core Features & Use Cases

  • One-click promotion of a user to admin via the /api/admin/bootstrap-admin endpoint.
  • Self-promotion of the first admin when no admins exist, with safeguards to prevent unauthorized promotions.
  • Security & configuration checks to ensure safe bootstrap across development and production environments.

Quick Start

Run the included Python script to bootstrap the first admin.

Frequently Asked Questions about admin-bootstrap

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I bootstrap the first admin user for a new API environment?▼

To bootstrap the first admin, you promote a user to the admin role via the bootstrap-admin endpoint using a single command. This automates initial governance setup and reduces manual configuration steps during deployment.

What security checks are required when promoting a user to admin via the bootstrap endpoint?▼

User promotion requires the ALLOW_ADMIN_BOOTSTRAP flag, existing-admin checks, and token-based authorization. These security checks ensure safe bootstrap operations across development and production environments by preventing unauthorized access.

Can I self-promote to admin when no admins exist in the system?▼

Yes, you can self-promote to admin when no admins exist in the system. The bootstrap endpoint includes safeguards to allow first-admin self-promotion while preventing subsequent unauthorized promotions.

Do I need the requests library to run the admin bootstrap script?▼

Yes, you need the requests library installed to run the admin bootstrap script. The Python script relies on this dependency to send HTTP requests to the /api/admin/bootstrap-admin endpoint for user promotion.

Why does admin bootstrap fail due to existing admin checks?▼

Admin bootstrap fails during existing-admin checks to prevent unauthorized user promotion. If an admin already exists, the endpoint blocks the request, requiring token-based authorization and configuration flags to proceed safely.