starlight-king

starlight-king is a command for Claude Code from frankxai/Starlight-Intelligence-System. It costs 36 tokens per session (485 once invoked), scanned A, a copy of starlight-king, MIT.

A command for listing and checking the hard rules set by the system's owner, such as spending limits, protected branches, privacy restrictions, and licensing requirements. It can test a proposed action or pending code change against those rules.

In plain words
What is it for?
Use it to inspect active policy locks, verify a particular rule, or check whether an action such as spending money or pushing code is allowed.
Why use it?
It catches actions that would exceed authority, expose private information, push protected code, or break required licensing conditions.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the starlight-intelligence-system plugin — 8 skills, 122 commands, 7 agents, 4 hooks shipped together

Good fit Use it to inspect active policy locks, verify a particular rule, or check whether an action such as spending money or pushing code is allowed.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/frankxai/starlight-intelligence-system/starlight-king
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.

Clone the repo
git clone --depth 1 https://github.com/frankxai/Starlight-Intelligence-System

Made for: Claude Code.

Or install starlight-intelligence-system, the plugin that ships this one along with the rest of its 8 skills, 122 commands, 7 agents, 4 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 starlight-king

README.md
[![agentmods](https://agentmods.dev/badge/commands/frankxai/starlight-intelligence-system/starlight-king/github.svg)](https://agentmods.dev/commands/frankxai/starlight-intelligence-system/starlight-king)
Your own site
<a href="https://agentmods.dev/commands/frankxai/starlight-intelligence-system/starlight-king"><img src="https://agentmods.dev/badge/commands/frankxai/starlight-intelligence-system/starlight-king/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 starlight-king

Your own site · 80×15
<a href="https://agentmods.dev/commands/frankxai/starlight-intelligence-system/starlight-king"><img src="https://agentmods.dev/badge/commands/frankxai/starlight-intelligence-system/starlight-king.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 485 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 100% copy Near-identical to another mod 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.00036 $0.00485
Opus 5.5 $0.00014 $0.00194
Sonnet 5.5 $0.00007 $0.00097
Haiku 4.5 $0.00004 $0.00049

Measured 3mo ago against content hash 9c42c7ca95de, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

starlight-king 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 3mo 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.

Origin

This is a copy

100% identical to starlight-king — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/commands/starlight-king.md · 36 lines

What it actually says

/starlight-king

List, query, or verify the non-negotiable policy locks and value constraints defined by the Sovereign user (King). These are hard rules that cannot be overwritten by any agent, even in YOLO mode.

Usage

  • /starlight-king --list : List all active policy locks, spending caps, and security boundaries.
  • /starlight-king --verify <lock-id> : Check if the current environment or pending commit complies with the specified policy.
  • /starlight-king <proposal-or-action> : Test if a proposed action (e.g., spending $150 or pushing to master) violates any King intent anchor.

Active Sovereign Policy Locks (Scaffold)

  • spending-cap-daily: Maximum $100 auto-spend budget across all agents. Higher amounts require manual interactive user signature.
  • branch-lock-master: Direct pushes to main or master are blocked. All code must pass the pre-commit checks and Sentinel review.
  • privacy-the-veil: Personal identification information (PII), secret tokens, and password keys are filtered by the Sanitization Gateway and cannot be written to public vaults.
  • licensing-gate: Substrate code must maintain the MIT License. External libraries with restrictive licenses are rejected.

Rule Enforcement

  • Any YOLO session (/yolo) immediately halts if a King lock is tripped.
  • The Sentinel daemon automatically rolls back git commits if a code injection trips the branch-lock-master policy.
  • If a Model Council or Starlight Board recommendation contradicts a King policy lock, the King lock takes precedence and the recommendation is vetoed.

Built on the sovereign substrate of the Starlight Intelligence Protocol (SIP v1.1.1)

  • Substrate: starlightintelligence.org/protocol v1.1.1
  • Layers used: [file-contract, attestation, sovereignty, policy-locks]
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. 3mo ago First seen · 36 lines · 36 tokens per session scan A 9c42c7ca95de

Subscribe to this mod's changes

starlight-king is a command published in the GitHub repository frankxai/Starlight-Intelligence-System (10 stars, last pushed 27d ago), licensed MIT. It adds 36 tokens to every session and 485 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to starlight-king, differing in 0 lines, and is treated as a copy.

Related

starlight-king compared with commands from other repositories

starlight-king next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
starlight-kingfrankxai/Starlight-Intelligence-SystemCommand1027d agoMITA36Claude Code
memoriesseokan-jeong/team-shinchanCommand94mo agoMITA5Claude Code
forgetseokan-jeong/team-shinchanCommand94mo agoMITA3Claude Code
learnseokan-jeong/team-shinchanCommand94mo agoMITA5Claude Code
mpm-session-resumebobmatnyc/claude-mpmCommand1613mo agononeA5Claude Code
gbu-retroXyndoX/good-bad-uglyCommand14mo agoMITA12Claude Code
fd-checkpointDVNghiem/FlowDeckCommand4419d agoMITA21Claude Code