tecxbro/grokbotxphoton/photon-cli

Claude Code and agent skill by tecxbro/grokbotxphoton

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when working with the Photon CLI — the `photon` binary (alias `pho`). Reach for this skill to set up or bootstrap Photon for a user and run the safe steps yourself non-interactively: install the CLI, authenticate, create or inspect a project, capture machine-readable output, and verify Spectrum resources. Also covers login, logout, whoami, auth status, projects, deliberate Spectrum secret rotation, billing, profiles, lines, users, platforms, avatars, JSON output, CI tokens, multiple backends, and environment resolution. When the user says "set this up for me," drive the workflow instead of handing back commands, except for browser approval and actions that spend money, delete resources, remove lines, or rotate credentials.

Install

npx vskill@latest install tecxbro/grokbotxphoton/photon-cli

SKILL.md

The same SKILL.md was published earlier as tecxbro/grokbotxphoton/photon-cli.

Photon CLI

photon (alias pho) is a typed terminal UI for the Photon Dashboard. Use it to authenticate, create and manage projects, handle billing, and manage Spectrum resources — all from the command line.

The CLI can run globally or through npx, pnpx, yarn dlx, or bunx. Use --json where available for machine-readable output and resolve the target backend, token, and project from command flags or environment variables. See `environment.md` for the exact precedence rules.

bash
npx @photon-ai/cli login # one-off runner
photon projects ls --json # global install
photon spectrum lines ls --json # project-scoped resource

Setting it up? Read the room, then act

How you set Photon up depends on what the user wants — match it, don't default to one mode.

  • User is adamant / "just set this up for me" / "do it" → drive the safe workflow end to end. Run the happy-path block, read the JSON output, and report the project ID and verification result. Do not hand back a checklist or ask permission for routine read-only steps.
  • User is exploring / wants to learn / is ambivalent → walk them through the commands and pause at meaningful decisions such as choosing a project or a paid plan.
  • Genuinely needs a human: browser approval for login, plus confirmation for checkout, subscription changes, deletion, line removal, or secret rotation. Surface exactly what is needed, then continue with the remaining safe work.
Happy path: set up a project yourself

Use plain, non-interactive commands and capture structured output. Do not print project secrets in the final response or commit them to the repository.

bash
# 0. Install if needed.
photon --version || npm install -g @photon-ai/cli
# 1. Check authentication. Login is the only step that may require browser approval.
photon whoami --json || photon login --no-browser
# 2. Create a Spectrum project on the free path and capture its ID.
PROJECT_ID=$(photon projects create \
--name "My App" \
--location us-east \
--spectrum \
--json | jq -r '.id')
export PHOTON_PROJECT_ID="$PROJECT_ID"
# 3. Inspect and verify the project and its Spectrum resources.
photon projects show --json
photon spectrum profile show --json
photon spectrum lines ls --json

You're done when the project can be read back and the requested Spectrum resources can be inspected. Project creation does not guarantee a dedicated line; shared and dedicated allocation depends on the project's plan.

When application code needs Spectrum credentials, retrieve them through photon projects show or the project page in the Dashboard, store them in an ignored environment file or secret manager, and never echo them back to the user. photon projects regenerate-secret is a rotation, not a read operation.

Green light vs. confirm first

So "set it up" never becomes "spent the user's money" or "broke their integration":

  • Run freely when requested: install or invoke the CLI, whoami, auth status, projects ls, projects show, free project creation, config show, env current, ping, and read-only Spectrum or billing inspection.
  • Confirm first: projects upgrade, billing checkout, Stripe portal actions that change a subscription, projects delete, spectrum lines remove, and projects regenerate-secret. Secret rotation invalidates the previous credential immediately.

The full login and bootstrap walkthrough is in `getting-started.md`.

How this skill is organized

Each topic lives in its own file in this directory. Read the file relevant to the user's question.

FileWhen to consult
`getting-started.md`One-off and global installation, standalone binaries, device login, project creation, and the first verification loop.
`commands.md`Command tree, project operations, billing, profiles, diagnostics, aliases, and destructive-action boundaries.
`spectrum.md`The photon spectrum group — project profile, users, lines, platforms, and avatar upload.
`workflows.md`End-to-end recipes for bootstrap, inspection, CI, billing, dedicated lines, and deliberate credential rotation.
`environment.md`Backend, token, active project, config directory, credentials storage, CI, and resolution priority.

See also

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/tecxbro/grokbotxphoton/photon-cli/badge)](https://verified-skill.com/skills/tecxbro/grokbotxphoton/photon-cli)

Something wrong with this skill or its page? Tell us.