/skills:agent-nebius-auth-diagnosefrom skills
Read-only diagnosis of Nebius project discovery, agent authentication, quota reads, profiles, selectors, and auth-hook failures. Use when auth is missing or blocked; never mutates auth or IAM.
Ships in skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
For $agent-nebius-auth-diagnose --help or $agent-nebius-auth-diagnose -h (including native Claude forms), return concise help and stop before
any workflow step. State the purpose and invocation policy. Show exact usage
for every public action. Describe each public action, positional
argument, and flag in one concise line, including -h, --help; say "No
additional public flags" when there are no others. Use only the documented
public interface. For internal or coordinator-only skills, state that boundary
and that no standalone public workflow action exists. After the selected
SKILL.md is loaded, help is report-only: do not call any additional tools,
inspect project state, or modify files, private state, Git, or external systems.
Never expose private helper actions or flags or treat help as workflow
authorization.
Use $agent-nebius-auth-diagnose in Codex, /agent-nebius-auth-diagnose in Claude Code, or
/skills:agent-nebius-auth-diagnose in the Claude plugin. Dollar-prefixed skill examples
refer to the same named skill on either host; use the native invocation syntax.
Preserve the declared invocation policy, approvals and workflow ownership.
Use available native tools; an unavailable required capability is a blocker,
never permission to bypass a guard or claim unobserved behavior.
Diagnose current-session project and agent-auth state without mutation. Do not write files, change permissions, update profiles, generate credentials, change IAM, create repair leases, install hooks, or launch interactive authentication.
Resolve exactly one project ID in this order:
parent-id.For the default-profile fallback, use sanitized nebius profile current to
resolve the profile name, then
nebius config get parent-id --profile <profile> to resolve the project. Clear
ambient Nebius selectors, profiles, credentials, tokens, and impersonation
before both reads. Accept exactly one syntactically valid profile name and
project ID. An explicit task project always wins.
Never infer authority from an ambient profile, inherited environment, credential filename or count, cwd, a legacy default selector, or unrelated task state.
Project selection is task execution context, not a typed skill argument. Implicit skill selection and hook feedback do not persist a project selection. After resolving exactly one explicit task project, carry that selection for the current task only. Replace it when a later user turn explicitly selects a different project. When no explicit task project exists, the runtime hook may repeat the sanitized default-profile lookup for each Nebius-sensitive command. When task evidence conflicts, discard the carried selection and ask rather than guessing. Never persist the selection into files, profiles, or ambient environment state.
Before every Bash tool call, decide which segments need Nebius auth. Help, version, and path-discovery probes are sensitive when they invoke or inspect a Nebius CLI.
If a proposed payload mixes local-only and Nebius-sensitive segments, split it into separate Bash calls before execution. Leave the local-only call unprefixed and apply the selector only to the Nebius-sensitive call.
When an explicit task project is known, every Nebius-sensitive Bash payload:
CODEX_NEBIUS_PROJECT_ID=<project-id> assignment the first
raw shell token at byte zero;env, timeout, or bash -c, shell guards,
pipelines, separators between Nebius-sensitive segments, command
substitutions, or nested shell commands;git, rg, and unrelated help probes
unprefixed.When no explicit task project exists, omit the selector and let the hook derive the config-owned default profile's project under its sanitized local lookup. Malformed, non-leading, nested, and duplicate selectors still fail closed. Raw-token helper children always require an explicit leading selector.
Inspect only the selected project's local surfaces:
~/.nebius/codex-agent-authkey.<project-id>.json is an owned, regular,
non-symlink mode-0600 file with canonical service-account identity;codex-agent-<project-id> exists in read-only profile output;CODEX_NEBIUS_PROJECT_ID=<project-id> assignment;Prefer setup's verify --project-id <project_id> read-only verifier so
diagnosis and repair use the same parser.
verify needs no human/admin profile. Success proves token minting, exact
profile/credential identity for the project's fixed codex-agent-sa, project
access, authoritative project-to-tenant ancestry, and tenant quota-allowance
listing. It does not prove the canonical IAM shape or absence of external
grants.
When explicitly useful, token-test only with stdout discarded:
CODEX_NEBIUS_PROJECT_ID=<project-id> \
nebius iam get-access-token \
--no-browser \
--profile codex-agent-<project-id> >/dev/null
Never print or persist a token.
Retry without setup when the failure is only command shape:
The canonical retry is:
CODEX_NEBIUS_PROJECT_ID=<project-id> <command>
When an authoritative project is already selected, do not rediscover it or run
verify for a selector-shape denial. Reconstruct the original outer payload
with the canonical leading selector and retry the corrected payload once.
For mixed payloads, including a local heredoc that prepares a script, split
preparation and the selected invocation into separate calls. A selector-shape
denial rejects the whole payload before execution; the local preparation must
still run. Generic hook advice to diagnose auth does not require rediscovery
or verification when the task project is already authoritative. If a later
explicit project replaced the selection, resolve that project first. If
the corrected payload is denied again, classify and report the persistent
failure instead of looping or invoking setup.
A raw-token child uses:
python3 "$CODEX_NEBIUS_TOKEN_HELPER" exec-token -- <command> [args...]
Use retry-idempotent only for an explicitly idempotent operation whose real
401 or UNAUTHENTICATED result was mapped to exit status 77.
Keep these outcomes distinct:
blocked-admin-auth only if an explicit setup invocation
later needs IAM mutation. Do not call this agent credential failure.viewer, which is broader read-only access than quota alone.repair-local; never rotate credentials or change IAM under it.Do not enumerate or manage tenant IAM with the agent profile merely because
tenant viewer permits broader reads.
If persistent setup or repair is required, report the evidence and tell the
user to invoke $agent-nebius-auth-setup explicitly with the selected project.
Do not invoke setup implicitly, prepare an implicit setup dry-run, or ask for a
second confirmation after the user invokes it. Explicit setup invocation is
the authorization for its bounded canonical convergence.
Return:
Never include credential contents, private keys, access tokens, or secret environment values.
When using this skill, capture durable, reusable, public-safe learnings in the narrowest appropriate surface only when the task contract allows source edits. For read-only/report-only work, or when a learning is not public-safe, evidence-backed, in scope, or free of unverified/vendor-specific claims, do not edit skill sources; report that it was skipped. Do not capture secrets, private URLs, customer data, raw logs, or one-off local state.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
nebius, auth-diagnosis, project-discovery, iam, troubleshooting
Other plugins' skills for the same job
npx claudepluginhub nebius/nebius-ps-services --plugin skills75 skills in this plugin
/agent-nebius-auth-setupUse only when explicitly invoked to bootstrap or repair current-project Codex Agent Nebius auth: account/tenant access, credentials/profile, repair lease, or separately requested auth hooks./ai-agent-designDesign provider-neutral production AI agent subsystems: behavior and topology, contracts, tools, context, memory, authority, durability, security, evals, and operations. Use ai-stack when AI technology selection remains, design/app-stack for whole products, and implementation skills for code./ai-stackSelect or review undecided AI components across models, runtimes, training/inference, interoperability, retrieval, evals, safety, and operations. Consume ai-agent-design's frozen agent-subsystem contract; use app-stack for non-AI layers, research for one technology, and design for whole solutions./alignAlign a project after changes across code, wiring, tests, CI, CLI/help, config, docs, workflows, and skills, with focused quality gates. Use align-skill for skill-folder-only work./align-skillAlign existing/scaffolded skills for Agent Skills, Codex, Claude Code, and npx skills installation while preserving functionality, native controls, resources, and evals. Accept local or report-only GitHub sources; use skill-creator for new scaffolds and align for projects./apply-securityReview software, infrastructure, CI/CD, containers, IaC, or design for security risks involving secrets, IAM/auth, exposure, inputs, dependencies, or supply chain. Advise implicitly; patch only when authorized.