Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计异常

xano-initXano 初始化

Agent Skill

xano-init 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

955

周安装

39

GitHub Stars

6

下载量

309
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:xano-init(Xano 初始化)
来源仓库:https://github.com/xano-inc/xano-developer-mcp
仓库路径:skills/xano-init
安装命令:
npx skills add https://github.com/xano-inc/xano-developer-mcp --skill xano-init
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/xano-inc/xano-developer-mcp --skill xano-init

简介

xano-init 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 可结合来源仓库、安装命令和原始 README 继续核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 它主要面向研究者和分析师快速获取相关数据和信息。
  • 适用于需要信息聚合和智能筛选的任务场景。

SKILL.md

Xano Workspace Init

You are running an interactive setup process to understand how to safely and effectively develop against a Xano workspace. Your goal is NOT to catalog the workspace contents — that's available elsewhere. Your goal is to understand the development workflow, constraints, and environment so you can work within them.

The sandbox workflow is the default and recommended way to deploy changes. Unlike workspace push which pushes directly to a branch (where schema changes hit the real database immediately), the sandbox is a fully isolated environment. Nothing touches the real workspace until you explicitly review and promote changes. This is a core safety principle that should guide everything in this setup.

This is a guided, conversational process. Ask questions, validate answers, and build up a development playbook.


Phase 1: Environment Check (automated)

Run these checks silently before asking the user anything. Gather all results in parallel, then present a status summary.

Package reference (for version comparisons)

  • Xano CLI npm package: @xano/cli — install: npm install -g @xano/cli
  • Xano Developer MCP npm package: @xano/developer-mcp — install: claude mcp add xano -- npx -y @xano/developer-mcp

1a. MCP Availability & Version

  • Use ToolSearch to check if mcp__xano-developer__mcp_version is available
  • If available, call it to get the installed version
  • Run npm view @xano/developer-mcp version to get the latest published version
  • Compare: if installed < latest, flag as outdated

1b. CLI Installation & Version

  • Run xano --version (global install) to check if the CLI is installed and get the version
  • Run npm view @xano/cli version to get the latest published version
  • Compare: if installed < latest, flag as outdated
  • If xano is not found globally, try npx xano --version as fallback (but note this doesn't mean it's properly installed)
  • Run xano sandbox --help to verify sandbox commands are available. If the command is not recognized, the CLI is too old and must be updated.

1c. Auth State

  • Run xano profile token (suppress output, only check exit code) to detect if there's an active session
  • Run xano profile me to get the user name, email, and instance URL
  • Do NOT display the token to the user

1d. Local Project State

  • Check if there's already a xano/ folder in the project
  • Check if .claude/xano-workspace-profile.md already exists (previous init)
  • Check if CLAUDE.md already references Xano configuration
  • Check for any .xs files in the project

1e. Present Environment Status

Show the user a clear status table with version details:

## Environment Status

| Check              | Status |
|--------------------|--------|
| Xano MCP tools     | ✅ Up to date (v1.0.61) / ⚠️ Outdated (v1.0.58 → v1.0.61 available) / ❌ Not installed |
| Xano CLI           | ✅ Up to date (v0.0.94) / ⚠️ Outdated (v0.0.90 → v0.0.94 available) / ❌ Not installed |
| Sandbox support    | ✅ Available / ❌ Not available (CLI update required) |
| Auth session       | ✅ [User Name] (instance.xano.io) / ❌ Not authenticated |
| Local xano/ folder | ✅ Found (X .xs files) / ⚠️ Not found |
| Previous init      | ✅ Profile exists / ➖ Fresh setup |

1f. Fix missing or outdated tools BEFORE continuing

If any critical tool is missing or outdated, stop and provide the exact fix. Do not proceed to Phase 2 until the user confirms they've resolved it.

MCP not installed:

claude mcp add xano -- npx -y @xano/developer-mcp
# Restart Claude Code after running this for MCP tools to load

MCP outdated (only applies if installed globally, not via npx which auto-fetches latest):

npm update -g @xano/developer-mcp

CLI not installed:

npm install -g @xano/cli

CLI outdated or sandbox commands not available:

xano update
# or: npm install -g @xano/cli

The sandbox workflow (xano sandbox *) is the recommended safe deployment method. If sandbox commands are not recognized after updating, the user's CLI may need a fresh install: npm install -g @xano/cli.

Not authenticated:

xano auth   # opens browser for OAuth login

Critical = no CLI (sandbox workflow requires it), or no auth (can't do anything without it), or no sandbox support (CLI too old — must update).

If MCP is missing but CLI is installed with sandbox support, note it and continue — CLI covers most operations. Recommend installing MCP for full capabilities (docs, validation).

If a previous init exists, ask: "I found an existing workspace profile. Do you want to update it or start fresh?"


Phase 2: Interactive Setup (guided Q&A)

Ask these questions conversationally — don't dump them all at once. Group related questions together and adapt based on answers. Use AskUserQuestion for each group.

2a. Workspace Selection

List available workspaces (via CLI xano workspace:list or Meta API) and ask:

Which workspace are we working with?

If only one exists, confirm it. If they've already specified one (e.g., in args), use that.

Once selected, fetch basic workspace info (name, ID, instance URL) and the branch list. You need branches to ask the next questions.

2b. CLI Profile Setup

Sandbox commands (xano sandbox *) inherit the workspace and branch from the CLI profile — they do not accept -w or -b flags. Setting up a dedicated profile is essential for the sandbox workflow to target the correct workspace and branch.

  1. Run xano profile list to see existing profiles
  2. Check if any profile already targets this workspace (match by workspace ID)
  3. If a suitable profile exists, confirm with the user: "I see profile [name] targeting workspace [id]. Should I use this, or create a new one?"
  4. If the branch isn't set or is wrong on the existing profile, update it: xano profile edit [name] -b [dev-branch]
  5. If no suitable profile exists, create one: xano profile create [workspace-name-slug] -i [instance-url] -t $(xano profile token) -w [workspace-id] -b [dev-branch]
  6. Store the profile name — it will be used with -p [profile] for all subsequent CLI commands in the playbook.

Important: If the user's default profile already targets this workspace and branch, a dedicated profile isn't strictly necessary, but is still recommended for clarity — especially if they work across multiple workspaces.

2c. App Status & Stage

What's the current status of this app? - 🚧 In active development (not yet live) - 🟡 Staging/testing (has users but not fully launched) - 🟢 Production (live with real users/data) - 🔀 Mix (e.g., live but still adding major features)

This determines how cautious development rules need to be.

2d. Branching & Deployment

Present what you found from the branch list, then ask:

Here's what I see for branches: [list branches with live status] - Which branch should I develop on? - Are there any branches I should NEVER touch?

Then present the deployment method choice. Lead with the sandbox recommendation:

For deploying changes, the recommended approach is the sandbox workflow: push changes to an isolated sandbox environment, review them in the browser, then promote to your development branch. The sandbox is fully isolated — nothing touches your real workspace or database until you explicitly promote. The alternative is workspace push, which pushes directly to a branch. Be aware: schema changes (table modifications) take effect on the real database immediately, even on a dev branch. This is why workspace push is disabled by default on Xano workspaces (allow_push must be explicitly enabled). Which approach do you prefer? - Sandbox workflow (recommended — fully isolated, safe by default) - Direct workspace push (faster iteration but riskier — requires enabling allow_push in workspace settings) - Something else (CI/CD, manual in dashboard, etc.)

If the user chooses workspace push, explain the risks clearly and confirm they understand. If they choose sandbox (or don't express a preference), proceed with sandbox as the default.

2e. Team & Collaboration

Who works on the Xano backend? - Just me - Small team (2-5 people) - Larger team with defined roles Are there any conventions I should follow? (naming, code style, PR process, etc.)

2f. Development Boundaries

Are there any no-go zones I should know about? - Tables I should never modify the schema of? - Endpoints or functions I shouldn't touch? - Environment variables that are sensitive or shouldn't be changed? - Any integrations (webhooks, third-party services) I should be careful around?

2g. Data Sources

Do you use separate data sources for test vs. live data? - If yes: which data source should I use during development? - If no: should I be careful about modifying data directly?

2h. Editing & Validation Preferences

This question focuses on how to author code, not how to deploy it (that was covered in 2d).

How would you like me to author and edit Xano code? - Edit.xs files locally (pull → edit → push to sandbox) - Via MCP tools for quick inline changes - Some combination Should I always validate XanoScript before pushing to sandbox?

If the user chose sandbox in 2d, the deployment workflow is already established — don't re-ask about it here.


Phase 3: Workflow Validation (test that it works)

Run quick smoke tests to confirm the development workflow actually functions. Do these in parallel where possible.

3a. Validate XanoScript

If there are existing .xs files, pick one and run mcp__xano-developer__validate_xanoscript to confirm validation works.

3b. Test Deployment Access

Make a read-only Meta API call (e.g., list API groups) to confirm the auth token and instance URL work for the workspace.

3c. Test Branch Access

If the user specified a development branch, confirm it exists and is accessible.

3d. Test Sandbox Access

If the user chose the sandbox workflow (the default):

  • Run xano sandbox get -p [profile] to create or retrieve the sandbox environment
  • Verify it returns successfully with state "ok"
  • If it fails, troubleshoot: check the profile has the correct workspace ID and branch, check CLI version

If the user opted for workspace push instead:

  • Run xano workspace get [workspace-id] and check if Allow Push is enabled
  • If disabled, inform the user: "Workspace push is disabled by default. You can enable it in your workspace settings in the Xano dashboard, or I can help you enable it. However, the sandbox workflow avoids this requirement entirely and is safer."

3e. Report Validation Results

## Workflow Validation

| Test                    | Result |
|-------------------------|--------|
| XanoScript validation   | ✅ Working / ⚠️ No .xs files to test / ❌ Failed |
| Meta API access         | ✅ Connected / ❌ Auth error |
| Dev branch access       | ✅ Confirmed / ➖ N/A (single branch) |
| Sandbox environment     | ✅ Provisioned / ❌ Failed / ➖ N/A (using workspace push) |
| CLI profile             | ✅ [profile] → workspace [id], branch [branch] |

If anything fails, troubleshoot with the user before proceeding.


Phase 4: Generate Development Playbook

Based on everything gathered, create a focused development playbook at .claude/xano-workspace-profile.md. This is NOT an architecture document — it's a set of operating instructions for how to develop safely.

---
workspace: [Name]
workspace_id: [ID]
instance: [subdomain.xano.io]
cli_profile: [profile-name]
generated: [ISO date]
---

# Xano Development Playbook: [Workspace Name]

## Quick Reference

| Key | Value |
|-----|-------|
| Workspace ID | [id] |
| Instance | [url] |
| CLI Profile | [profile-name] (use `-p [profile-name]` with all CLI commands) |
| App Status | [Development / Staging / Production] |
| Dev Branch | [branch name or "main/v1"] |
| Live Branch | [branch name or "same as dev"] |
| Deploy Method | Sandbox (recommended) / [Workspace Push / Manual — only if user chose] |
| Workspace Push | [Enabled / Disabled (default)] |
| Data Source | [test / live / single] |

## Development Rules

[Generate 5-10 clear, specific rules based on the user's answers. These should be imperative statements. Lead with sandbox safety rules. Examples:]

1. Always deploy via sandbox: `sandbox push` → `sandbox review` → promote. Never push directly to workspace.
2. Always work on the `dev` branch — never modify the live branch directly
3. Always use `-p [profile]` with CLI commands to target the correct workspace and branch
4. Validate all XanoScript with `validate_xanoscript` before pushing to sandbox
5. Never modify the `user` or `account` table schemas — they're in production
6. Run `sandbox unit_test run_all` before promoting changes
7. If sandbox gets into a bad state, reset with `sandbox reset -p [profile] -f`
8. [etc. — based on actual user answers]

If the user opted for workspace push instead of sandbox, adjust rules accordingly but include a clear warning about schema changes hitting the real database.

## How to Deploy Changes

### Sandbox Workflow (default)

#### Editing an existing endpoint or function
1. Pull workspace locally: `xano workspace pull ./xano -p [profile] -b [dev-branch]`
2. Edit the relevant `.xs` files
3. Validate: use `validate_xanoscript` MCP tool
4. Push to sandbox: `xano sandbox push ./xano -p [profile]`
5. Run tests in sandbox: `xano sandbox unit_test run_all -p [profile]`
6. Review in browser: `xano sandbox review -p [profile]`
7. Promote changes from sandbox to the dev branch via the review UI
8. Pull updated state: `xano workspace pull ./xano -p [profile] -b [dev-branch]`

#### Creating a new endpoint or function
1. Create the `.xs` file locally following existing workspace patterns
2. Validate the XanoScript
3. Push to sandbox: `xano sandbox push ./xano -p [profile]`
4. Review and promote: `xano sandbox review -p [profile]`

#### Resetting the sandbox
If the sandbox gets into a bad state or you want a clean slate:

xano sandbox reset -p [profile] -f


#### Running tests in sandbox

xano sandbox unit_test run_all -p [profile] xano sandbox workflow_test run_all -p [profile]


#### Managing sandbox environment variables

xano sandbox env list -p [profile] xano sandbox env set KEY value -p [profile] xano sandbox env get_all -p [profile]


### Alternative: Workspace Push (only if user opted in)

> ⚠️ **Warning:** `workspace push` pushes directly to the workspace branch. Schema changes (table adds/removes/modifications) take effect on the real database immediately, even on a dev branch. This is NOT isolated. `allow_push` must be enabled on the workspace (disabled by default as a safety guard).

1. Pull workspace: `xano workspace pull./xano -p [profile] -b [dev-branch]`
2. Edit `.xs` files
3. Validate XanoScript
4. Preview changes: `xano workspace push./xano -p [profile] -b [dev-branch] --dry-run`
5. Push: `xano workspace push./xano -p [profile] -b [dev-branch]`

### Deploying to live

1. [specific steps based on user's merge/promotion workflow]

## No-Go Zones

[List specific tables, endpoints, functions, or env vars the user said not to touch]

- **Tables:** [list or "none specified"]
- **Endpoints:** [list or "none specified"]
- **Functions:** [list or "none specified"]
- **Env Vars:** [list or "none specified"]

## Team Conventions

[Any naming conventions, code style rules, or collaboration norms]

## Troubleshooting

### If sandbox push fails

- Check sandbox state: `xano sandbox get -p [profile]`
- Reset if needed: `xano sandbox reset -p [profile] -f`
- Re-push after reset
- Ensure your CLI profile has the correct workspace ID and branch

### If sandbox commands are not recognized

- Your CLI may be outdated. Update with: `xano update` or `npm install -g @xano/cli`

### If workspace push fails with "allow_push disabled"

- `allow_push` is disabled by default on Xano workspaces as a safety guard
- Enable in the Xano dashboard workspace settings, or via the Meta API
- Consider using the sandbox workflow instead — it's safer and doesn't require enabling push

### If validation passes but runtime fails

[Known gotchas like where clause syntax, $auth.account_id issues]

Keep the playbook concise and actionable. Every line should be something that changes how you develop. No filler.


Phase 5: Update CLAUDE.md

Add or update a small Xano section in the project's CLAUDE.md that points to the playbook and lists the top 3-5 most critical rules. This ensures every future conversation loads the key constraints immediately.

## Xano Backend

- **Workspace:** [Name] (ID: [id]) on [instance]
- **Status:** [Production/Development/etc.]
- **CLI Profile:** `[profile-name]` (always use `-p [profile-name]`)
- **Playbook:** See `.claude/xano-workspace-profile.md` for full development rules

### Critical Rules
1. Always use the sandbox workflow — `sandbox push` → `sandbox review` → promote. Never push directly to workspace.
2. [Branch safety rule — e.g., never touch v1/live directly]
3. [Most important data/schema constraint]
4. Always validate XanoScript before pushing to sandbox
5. [Other key constraint from user answers]

If CLAUDE.md already has a Xano section, update it rather than duplicating.


Phase 6: Summary

Present a brief summary to the user:

  1. Environment status (what's working)
  2. Workspace connected and status confirmed
  3. Where the playbook was saved
  4. The top 3 rules they should know
  5. Any recommendations (e.g., "You should create a dev branch", "Consider setting up separate data sources", "Your CLI is outdated")

End with: "You're all set. I'll follow the development playbook for all future Xano work in this project."


Important Behavioral Notes

  • Sandbox is the default. Always prescribe the sandbox workflow unless the user explicitly chooses workspace push or another method. If the user hasn't expressed a preference, default to sandbox.
  • Explain why sandbox > workspace push when relevant: workspace push hits the real branch immediately — schema changes (table adds/removes/modifications) affect the real database even on a dev branch. The sandbox is fully isolated: nothing touches the real workspace until the user promotes from the review UI.
  • workspace push is disabled by default. Do not guide the user through enabling allow_push unless they specifically ask for the workspace push workflow. If they do, explain the risks clearly.
  • Sandbox commands use the profile. Sandbox commands (xano sandbox *) inherit workspace and branch from the CLI profile. They do not accept -w or -b flags. This is why setting up a dedicated CLI profile with the correct workspace ID and branch is essential during init.
  • Be conversational, not robotic. Group questions naturally, don't interrogate.
  • Adapt to answers. If they say "just me, solo dev, early development" — skip team/collaboration questions and keep rules lightweight.
  • Don't over-generate. A solo dev on a pre-launch app doesn't need 15 safety rules. Scale the playbook to the actual risk level.
  • Validate, don't assume. If you see a branch called live, confirm with the user that it's actually the production branch.
  • Respect existing setup. If there's already a CLAUDE.md with Xano config, preserve what's there and augment it — don't overwrite.
  • Tool priority: MCP tools (mcp__xano-developer__*) → CLI (xano commands) → Meta API via curl → ask the user. Use MCP for docs/validation; use CLI for workspace/branch/function/sandbox operations. Both can coexist.
  • Prescriptive but adaptable. Default to sandbox, but respect the user's choice if they prefer workspace push or another method. The user has final say.
  • If the user provides args (e.g., /xano-init workspace 43), skip the workspace selection step and use the provided ID.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.12%
按下载量换算105

Claude

30.37%
按下载量换算94

Cursor

18.82%
按下载量换算58

Gemini CLI

9.62%
按下载量换算30

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills