Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计通过

sealos-app-buildersealos 应用程序构建器

Agent Skill

sealos-app-builder 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

815

周安装

35

GitHub Stars

1

下载量

286
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:sealos-app-builder(sealos 应用程序构建器)
来源仓库:https://github.com/zjy365/seakills
仓库路径:skills/sealos-app-builder
安装命令:
npx skills add https://github.com/zjy365/seakills --skill sealos-app-builder
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/zjy365/seakills --skill sealos-app-builder

简介

sealos-app-builder 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 它适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更进行整理。
  • 可结合来源仓库、安装命令和原始 README 继续核验具体用法。
  • 适用于开发协作与代码管理场景。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装。

SKILL.md

Sealos App Builder

Overview

Use this skill to turn a generic web app into a Sealos app that runs inside Sealos Desktop, or to scaffold a new Sealos app from scratch. Focus on the repeatable parts: SDK initialization, session access, language sync, business-data integration, local debugging through a Desktop test app, and publish readiness.

Prefer a simple, teachable implementation that a beginner can understand and extend.

Core Workflow

1. Identify the starting point

Classify the request into one of these paths:

  1. Create a new Sealos app from scratch.
  2. Adapt an existing web app to run inside Sealos Desktop.
  3. Add Sealos identity and business-data integration to an app that already renders.
  4. Produce documentation or a tutorial instead of code changes.

If the repository already contains Sealos-related code, inspect local sources first. In particular:

  1. Look for packages/client-sdk or equivalent SDK sources.
  2. Look for existing provider apps under providers/ or similar directories.
  3. Reuse the repository's established framework and routing patterns when they are already in place.

If the repository does not contain local Sealos sources, use the bundled references in this skill as the baseline.

2. Integrate the Sealos app SDK

Treat Sealos Desktop integration as a root-level concern.

Before using any starter template, install the SDK first:

pnpm add @labring/sealos-desktop-sdk

Use npm install @labring/sealos-desktop-sdk or yarn add @labring/sealos-desktop-sdk when the project uses a different package manager.

  1. Initialize the SDK once in a client-only root component.
  2. Fetch getSession() and getLanguage() early.
  3. Store session, language, loading state, and desktop availability in a shared context or store.
  4. Listen for language changes through EVENT_NAME.CHANGE_I18N when the app needs runtime language sync.
  5. Add a graceful fallback when the app is opened outside Sealos Desktop.

Read references/minimal-app-template.md before implementing the root integration. If the app uses Next.js App Router, also read references/nextjs-app-router.md.

Use one of these starter templates:

  1. assets/templates/react/sealos-provider.tsx for React.
  2. assets/templates/vue/use-sealos.ts for Vue.

3. Connect Sealos identity to business data

For most apps, the key integration is not the iframe itself but the user mapping.

  1. Use session.user.id as the stable app-level user identifier.
  2. Persist display-friendly fields such as name, avatar, k8sUsername, and nsid when useful.
  3. Keep business data in the app's own database and API routes.
  4. Model Sealos user identity as input to your business logic, not as your entire backend.

Read references/data-integration-patterns.md when you need schema or API guidance.

4. Prepare local debugging in the real runtime

Do not assume a successful browser render means Sealos integration works.

The app usually needs to be opened by Sealos Desktop in an iframe for SDK calls like getSession() to succeed. When local debugging is part of the task, read references/local-debug-and-test-app.md.

Use these rules:

  1. Explain clearly when a page is outside Sealos Desktop.
  2. Prefer a test app inside Sealos Desktop for end-to-end verification.
  3. Avoid server-side SDK calls.

5. Prepare for publishing

When the user wants deployment or launch readiness:

  1. Verify environment variables.
  2. Verify database connectivity and migrations.
  3. Confirm the app works when launched from Sealos Desktop.
  4. Confirm any cross-app navigation or event usage is valid.
  5. Summarize the remaining manual registration or platform configuration steps.

Use references/publish-checklist.md as the release checklist.

Implementation Rules

Keep the integration simple

Default to the smallest viable Sealos integration:

  1. One root provider or store.
  2. One business identity mapping pattern.
  3. One fallback path for non-Desktop access.

Avoid spreading SDK initialization across multiple pages or components.

Prefer the repository's real SDK surface

If the current workspace contains actual Sealos SDK sources or existing Sealos apps:

  1. Inspect those sources.
  2. Follow the real exported APIs and types.
  3. Call out repository-specific differences from generic examples.

Use the official SDK package name

Use @labring/sealos-desktop-sdk in generated examples and starter code by default.

Only deviate from that if the target repository already has an established local workspace alias and the user explicitly wants to preserve it.

Decision Guide

If the user asks for "How do I build a Sealos app?"

Provide:

  1. A short explanation of the runtime model.
  2. A minimal SDK integration example.
  3. A business-data mapping example.
  4. Local debugging guidance through a Sealos Desktop test app.

If the user asks to modify an existing app

Do this order:

  1. Inspect the current app entry point.
  2. Add or refactor a single root Sealos provider.
  3. Wire business APIs to session.user.id.
  4. Verify fallback behavior outside Desktop.

If the user asks for documentation or a tutorial

Structure the output around:

  1. What a Sealos app is.
  2. How to initialize the SDK.
  3. How to obtain and use the session.
  4. How to integrate business data.
  5. How to debug through a Desktop test app.
  6. How to publish and verify.

References

Read only the files needed for the task:

  1. references/sdk-capabilities.md for available SDK APIs and runtime behavior.
  2. references/minimal-app-template.md for the recommended root integration pattern.
  3. references/nextjs-app-router.md for a concrete Next.js App Router placement example.
  4. references/data-integration-patterns.md for user mapping, database schemas, and API shapes.
  5. references/local-debug-and-test-app.md for iframe-based debugging and Desktop test app setup.
  6. references/publish-checklist.md for launch-readiness steps.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.24%
按下载量换算98

Claude

29.12%
按下载量换算83

Cursor

21.02%
按下载量换算60

Gemini CLI

10.06%
按下载量换算29

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills