一键导入
setup
Set up Bifrost SDK - install CLI, authenticate, configure MCP server. Use when user needs to get started with Bifrost or has incomplete setup.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Set up Bifrost SDK - install CLI, authenticate, configure MCP server. Use when user needs to get started with Bifrost or has incomplete setup.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Build Bifrost workflows, forms, agents, apps, tables, and files for both Solution workspaces (v2) and the global _repo workspace (v1). Supports SDK-first (local dev + git) and MCP-only modes.
Migrate a legacy Bifrost v1 (inline) app and its backing entities into a clean, installable v2 Solution. Use when the user wants to move an existing _repo app into Solutions, modernize a v1 inline app to standalone_v2, capture loose workflows/tables/configs into a Solution, or standardize/rename a messy workspace. Trigger phrases — "migrate this app to a solution", "move X into a solution", "v1 to v2", "/migrate", "convert my app to standalone v2", "capture these workflows into a solution".
Boot an isolated, hot-reload Bifrost dev stack for the current worktree via ./debug.sh. Use when the user wants to click around the UI, view a feature in the browser, screenshot something, or otherwise needs the dev stack running. Per-worktree isolation lets multiple worktrees run dev stacks in parallel. Trigger phrases - "open the app", "let me click around", "spin up debug", "test in the browser", "show me the UI", "/bifrost-debug".
Refresh the gobifrost site by re-capturing screenshots and (optionally) authoring missing pages. Trigger phrases - "refresh docs", "update screenshots", "/bifrost-documentation", "rebuild docs site". Has three modes - bootstrap (one-shot manifest generation, mandatory first run), diff (default - only refresh entries whose Bifrost source changed), full (re-capture and re-author everything).
Build and release Bifrost. Use when pushing commits to main, cutting a versioned release, or deploying to K8s. Handles dev push (CI builds :dev image), pre-release (vX.Y.Z-rc.N tag → pre-release GitHub Release), and full release (version tag → GitHub Release + :latest).
Track work on Bifrost via GitHub Issues + isolated worktrees, AND own the PR/merge lifecycle (opening, queuing auto-merge, watching CI + reviews). Use when the user expresses work intent ("let's build/fix/add X", "work on Y"), pastes a list of todos/notes to triage, asks about existing issues, OR you (or the user) are about to open a PR, queue auto-merge, or merge a PR on this repo. `main` uses GitHub's native merge queue — `gh pr merge <N>` (no strategy flag) enqueues the PR; the queue rebases, runs checks once on a combined ref, and merges when green. Invoke this skill BEFORE running `gh pr create` or `gh pr merge`, not after. Light-touch on issue/work-intent triggers — nudges and helps, never blocks. Trigger phrases - "let's build", "let's fix", "work on", "add a feature", "triage", "todo", "what should I work on", "open a PR", "create an issue", "merge this PR", "queue auto-merge", "ship it", "help wanted".
| name | setup |
| description | Set up Bifrost SDK - install CLI, authenticate, configure MCP server. Use when user needs to get started with Bifrost or has incomplete setup. |
Before running any commands, introduce the setup process to the user:
Bifrost SDK Setup
I'll help you set up the Bifrost SDK. This involves three steps:
- Install the CLI - A command-line tool for developing and testing workflows
- Authenticate - Log in to your Bifrost instance
- Configure MCP - Connect Claude Code to Bifrost's tools
Let me check your current setup status...
Bifrost stores credentials separately for each instance URL, so several
connections can coexist on one computer. A folder's nearest .env binds CLI
commands in that workspace to one of those connections. Without a folder
binding, the CLI uses the user's saved default.
bifrost auth default only reports these values; it changes nothing. Only
bifrost auth use <url> changes the saved default, so never run it unless the
user explicitly asks to change their default connection.
Run this command to check environment (set by SessionStart hook):
echo "SDK: $BIFROST_SDK_INSTALLED | Login: $BIFROST_LOGGED_IN | MCP: $BIFROST_MCP_CONFIGURED"
echo "Python: $BIFROST_PYTHON_CMD ($BIFROST_PYTHON_VERSION) | Pip: $BIFROST_PIP_CMD | OS: $BIFROST_OS"
command -v bifrost >/dev/null && bifrost auth default
The environment flags are hints. When the CLI is installed, the read-only
bifrost auth default output is the source of truth for the current folder.
If a Codex sandbox reports no credentials, rerun that command with host access
from the exact intended workspace before entering the Login flow. Sandboxing
can hide the OS keyring; a successful host probe means the user is already
logged in and the existing connection must be reused.
Based on the environment state:
/bifrost:buildbifrost api, bifrost watch) handles most operations. MCP is only needed for creating forms/apps/agents and knowledge search. Ask if they want to configure it.If BIFROST_OS=windows or the shell appears to be native PowerShell/CMD:
.\Initialize-Bifrost.ps1 (the
PowerShell counterpart to setup.sh): it generates .env, runs
docker compose up -d, and prints the access URL. Docker Desktop must be
installed with the WSL2 backend enabled. (-Domain, -Force, and
-NoStart switches are available; -Force regenerates secrets.)./debug.sh / ./test.sh against the
source), the recommended environment is Linux or macOS. On Windows these
Bash scripts work through Git Bash (e.g.
& 'C:\Program Files\Git\bin\bash.exe' -lc './debug.sh up') or Ubuntu on
WSL2 with Docker Desktop WSL integration — but native PowerShell does not run
them. There is intentionally no PowerShell port of debug.sh/test.sh.claude --version for Claude Codecodex --version for Codexcode --version for VS Code
If none are installed, tell the user to install at least one before MCP or
source-development setup. CLI-only usage can proceed without a coding tool.skills/setup. If it is
a plain file containing ../.claude/skills/bifrost-setup instead of a
directory/symlink, tell the user this is a Git symlink checkout issue:
enable Developer Mode, set git config --global core.symlinks true, reclone,
or run bifrost skill update after CLI installation.If BIFROST_PYTHON_CMD is empty: Python 3.11+ is required. Install based on OS:
sudo apt install python3.11brew install python@3.11winget install --id Python.Python.3.11 -e. If winget fails with
0x8a15000f, run Set-WinHomeLocation -GeoId 244, winget source reset --force, and winget source update, then retry. If winget is still broken,
install Python directly from python.org. Reopen PowerShell and verify with
py -3.11 --version.If BIFROST_PIP_CMD is empty: Need pipx (recommended for CLI tools on modern systems):
sudo apt install pipx && pipx ensurepathbrew install pipx && pipx ensurepathpy -3.11 -m pip install --user pipx
then py -3.11 -m pipx ensurepath and reopen PowerShellIf Windows only reports python.exe from Microsoft\WindowsApps, that is the
Microsoft Store launcher alias, not an installed Python. Install Python with
winget or python.org, then use py -3.11 explicitly. Do not use plain
python until Get-Command python no longer points at WindowsApps.
If bifrost auth default already shows the intended current connection, reuse
that URL and do not log in again.
Otherwise: Ask the user: "What is your Bifrost instance URL? (e.g., https://yourcompany.gobifrost.com)"
Do NOT suggest placeholder URLs - every Bifrost instance has a unique URL provided by the user's organization.
BIFROST_DEV_URL is for preview and platform links. Do not use it as evidence
of the authenticated CLI connection.
Use the detected pip command (from $BIFROST_PIP_CMD):
$BIFROST_PIP_CMD {url}/api/cli/download
On native Windows, prefer:
py -3.11 -m pipx install --force {url}/api/cli/download
Verify with:
bifrost help
If bifrost is not on PATH yet, open a new PowerShell window or run it from
%USERPROFILE%\.local\bin\bifrost.exe.
Treat these as three independent update planes. Updating one does not update the others; update the CLI first because it supplies the SDK-update command.
pipx install --force {url}/api/cli/download
bifrost --version
On native Windows, use
py -3.11 -m pipx install --force {url}/api/cli/download.cd /path/to/solution
bifrost solution sdk update
Review and commit the changed vendored SDK files, then rerun
bifrost solution start and confirm any stale-SDK warning is gone.codex plugin marketplace upgrade bifrost
codex plugin list
If the installed version remains stale, refresh its cached content:
codex plugin remove bifrost@bifrost
codex plugin add bifrost@bifrost
codex plugin list
Start a new Codex task (or restart Codex) afterward; the current task keeps
the skill text it loaded at startup.Run login from the project folder the user wants connected:
bifrost login --url {url}
bifrost auth default
This opens a browser for authentication. On Windows, credentials are stored in
Windows Credential Manager when keyring is available, with
%APPDATA%\Bifrost\credentials.json as the fallback. On Linux/macOS, keyring is
used when available with ~/.bifrost/credentials.json as the fallback. Login
also writes the URL to the current folder's .env, binding that folder to the
connection. Tokens for other instance URLs remain available.
For the repository's local debug stack, use the bifrost-debug skill instead;
it knows the default dev@gobifrost.com / password credentials and creates a
dedicated scratch-folder binding without changing the saved default.
To disconnect a specific instance, use bifrost logout --url {url}. It clears
that URL's stored credentials and offers to remove a matching folder binding.
MCP setup is coding-tool specific.
Check existing configuration:
claude mcp list
If bifrost exists with wrong URL: Ask user if they want to update it.
Add/update MCP server:
claude mcp remove bifrost 2>/dev/null; claude mcp add --transport http bifrost {url}/mcp
If the user is using Codex or another agent CLI, do not run claude mcp.
Tell them SDK-first development works with bifrost watch and bifrost api.
Configure that tool's MCP settings only if its MCP command/config format is
available in the current environment.
If MCP was configured, tell the user:
Setup complete! Please restart Claude Code for the MCP server to take effect.
After restarting, you can use
/bifrost:buildto create workflows, forms, and apps.
If MCP was skipped (SDK-first only), tell the user:
Setup complete! You're ready to use
/bifrost:buildfor SDK-first development.Use
bifrost watchto auto-sync file changes andbifrost apifor platform operations. MCP can be added later if you needcreate_form,create_app, or knowledge search.
curl {url}/api/cli/download -o /dev/null -w "%{http_code}"--no-browser flag and copy the URL manuallyclaude mcp listgit is missing, install Git in the shell where setup is running.python opens the Microsoft Store or prints the Store alias message,
install Python with winget install --id Python.Python.3.11 -e or the
python.org installer, then use py -3.11.bifrost run ... -p '{"name":"Alice"}' example fails in native PowerShell with invalid JSON, escape the quotes: -p '{"name":"Alice"}'`.bifrost push workflows/foo.py fails, push a directory instead:
bifrost push workflows or bifrost push ..0x8a15000f, reset the Windows region and winget
sources: Set-WinHomeLocation -GeoId 244, winget source reset --force,
winget source update.wsl --install or VirtualMachinePlatform changes make the VM reboot into
repair, stop platform setup on that VM and continue CLI-only setup natively.
That host likely needs nested virtualization/WSL support fixed before Docker
Desktop can work.skills/setup is a symlink/directory or a plain text file. Use WSL or run
bifrost skill update.