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

taubyte-build-runtime-configtaubyte 构建运行时配置

Agent Skill

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

总安装

267

周安装

11

GitHub Stars

公开资料未说明

下载量

87
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/taubyte/skills --skill taubyte-build-runtime-config

简介

用于处理 GitHub 仓库、Issue 和 Pull Request 信息。

  • 适合围绕代码变更和协作事项进行整理。
  • 可结合来源仓库和原始 README 继续核验用法。
  • 安装命令:npx skills add https://github.com/taubyte/skills --skill taubyte-build-runtime-config。
  • 使用前应确认权限范围和维护状态,避免触发联网或文件读写。

SKILL.md

Build runtime config

When to use

Use whenever a resource needs server-side build logic, runtime environment variables, or deployment-time setup. For Go functions, also load taubyte-go-sdk-constraints.


How builds are triggered

  1. Resource code and config are pushed to GitHub (normal git push workflow for the function, website, or library repo as appropriate).
  2. Remote cloud After the push, the cloud is reached from GitHub (webhook). Builds trigger automatically — no extra inject step on your machine.
  3. Local Dream GitHub cannot call into your laptop, so webhooks do not drive Dream the same way. After pushing to GitHub you must trigger the build from the local machine using Dream inject: Command Use for dream inject push-all Config and code for the whole project — run from the project root (--path = absolute project root). dream inject push-specific Individual resource repos that need their own inject after a full sync — e.g. libraries and websites (per-resource repo path and identifiers). Always run push-all successfully before push-specific when both apply. Universe, Docker, and flag details (e.g. --rid, --fn for websites) live in taubyte-dream-local-operations.

Targets

  • Function: <project>/code/.../functions/<name>/.taubyte/
  • Website repo: <project>/websites/tb_website_<name>/.taubyte/
  • Library repo: <project>/libraries/tb_library_<name>/.taubyte/

Required checks

  1. .taubyte/config.yaml exists and is valid (image, workflow, etc. — not runtime env var declarations).
  2. .taubyte/build.sh exists, is non-empty, writes output Taubyte expects (e.g. function wasm + ret-code, website assets under /out).
  3. Runtime env vars (if any) are set in .taubyte/build.sh (e.g. export … before build steps), not in config.yaml.

Function config.yaml pattern

version: 1.00
environment:
  image: taubyte/go-wasi:latest
workflow:
  - build

Keep config.yaml for image/workflow and similar metadata only.


Function build.sh pattern

#!/bin/bash
. /utils/wasm.sh
# Runtime env for this build (example — use real names/values your code expects):
# export MY_VAR=value
build "${FILENAME}"
ret=$?
echo -n $ret > /out/ret-code
exit $ret

Website build.sh (technology-specific)

Website build.sh is not one generic script — it must match how that repo is built (package manager, package.json scripts, and especially where the bundler writes static files). Treating every Node site like Vite (always dist/) is wrong for Create React App and other stacks that emit build/ or another directory.

Always

  • Produce a non-empty /out (Taubyte’s deploy staging path inside the build environment — not the same as a framework’s own out folder name on disk).
  • Put build-time env here with export, not in config.yaml.

Pick the pattern from the repo

Read package.json (scripts.build or equivalent) and the framework docs to learn the real output directory, then copy that tree into /out.

Examples (illustrative — adjust to the project)

  • Plain static (no bundler): #!/bin/bash cp index.html /out/
  • Vite (default output dist/): #!/bin/bash npm ci npm run build cp -r dist/* /out/
  • Vite + same-origin API (static site and /api/... handlers on the same configured domain — typical full-stack Taubyte):

- In vite.config.ts, use envPrefix: ["VITE_", "APP_"] when the client reads **APP_* at build time (e.g. optional API base override). - Prefer window.location.origin as the default API base when unset so the browser hits same-origin HTTP functions after deploy. - Document APP_API_BASE_URL (or equivalent) in .env.example for Dream/local when the API is on another host or port. - In config, attach website and HTTPS functions to the same domains entry so relative /api/...** calls resolve.

  • Create React App / react-scripts (output build/, not dist/): #!/bin/bash npm ci npm run build cp -r build/* /out/
  • Other stacks (Next, Nuxt, custom webpack, etc.): run that project’s install + production build commands, then **cp -r <framework-output-dir>/* /out/ using the directory that tool** actually generates (check docs and a local build once if unsure).

Rules

  • Env vars: declare and use them in .taubyte/build.sh only; do not put runtime env declarations in .taubyte/config.yaml for this purpose.
  • Websites: tailor build.sh to the actual framework and build output (e.g. Vite → dist/, CRA → build/); never copy a Vite-only script onto a React-CRA repo without changing paths and commands.
  • Do not push to GitHub before validating .taubyte/build.sh and .taubyte/config.yaml.
  • After changing build/config, remote cloud: rely on webhook-driven builds after push; Dream: run dream inject push-all and, for website/library resource repos, dream inject push-specific as required, then verify logs/build per taubyte-push-build-verify.
  • Document notable env or build assumptions in the context log (taubyte-context-log).
  • For Go compile issues, validate handler code against taubyte-go-sdk-constraints.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.96%
按下载量换算30

Claude

31.46%
按下载量换算27

Cursor

20.09%
按下载量换算17

Gemini CLI

11.16%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills