Token导航 LogoToken导航

Agent Skill · 运维和基础设施

create-new-bun-package-repo(create NEW Bun package repo 命令行)

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

create-new-bun-package-repo 是运维和基础设施类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,第三方扫描有未通过项,按安装量在运维和基础设施类的 2,449 个 Skill 里排第 983。

总安装 1,045周安装 44GitHub Stars 52下载 366核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:create-new-bun-package-repo(create NEW Bun package repo 命令行)
来源仓库:https://github.com/zenobi-us/dotfiles
仓库路径:skills/create-new-bun-package-repo
安装命令:
npx skills add https://github.com/zenobi-us/dotfiles --skill create-new-bun-package-repo
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/zenobi-us/dotfiles --skill create-new-bun-package-repo

这个 Skill 是做什么的

运维和基础设施类 Skill 处理部署、监控、日志和云资源,多数需要较高的执行权限。

基于 bun-module 模板自动化创建新的 Bun 包仓库,集成 TypeScript 与测试框架。利用 GitHub CLI 完成仓库创建、克隆和初始化,全程采用默认设置非交互式运行。适用于需要标准化模块结构、CI/CD 流水线或多人协作开发的 Bun 项目场景。

注意该流程依赖 gh 命令行工具,且会修改文件系统,建议提前备份重要数据。create-new-bun-package-repo 属于运维和基础设施类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/create-new-bun-package-repo

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/zenobi-us/dotfiles --skill create-new-bun-pack…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

create-new-bun-package-repo 怎么安装?

在终端执行 npx skills add https://github.com/zenobi-us/dotfiles --skill create-new-bun-package-repo。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

create-new-bun-package-repo 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

create-new-bun-package-repo 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

create-new-bun-package-repo 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

create-new-bun-package-repo 用的人多吗?

公开数据是累计安装 1,045 次,近一周安装 44 次,下载 366 次,GitHub 52 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

create-new-bun-package-repo 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理运维和基础设施类任务、又不想每次都手写提示词的人。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

运维和基础设施类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
brainstorming

头脑风暴 · Codex、Claude

3,148,776173,131操作浏览器MIT通过
copywriting

文案写作 · Codex、Claude

1,996,72425,583需要联网MIT通过
openclaw-secure-linux-cloud

OpenClaw secure linux cloud 命令行 · Codex、Claude

1,853,08840接触敏感数据未明确未通过
xget

xget 命令行 · Codex、Claude

1,799,28040执行命令未明确未通过
requesting-code-review

代码审查请求 · Codex、Claude

1,590,144173,103权限未标注MIT通过
create-new-bun-package-repo

create NEW Bun package repo 命令行 · 本页

1,04552需要联网MIT未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Create New Bun Package Repository

Expert guide for creating new Bun packages from the zenobi-us/bun-module template repository. Automates repository creation, cloning, and setup using GitHub CLI. Important: Setup runs with defaults (not interactive prompts).

Overview

This skill provides a complete workflow for bootstrapping new Bun packages using the bun-module template. The template includes TypeScript configuration, testing setup, and standardized module structure. The workflow handles repository creation via GitHub CLI, cloning, and running the setup script which applies defaults automatically.

When to Use

Use when:

  • Creating a new Bun TypeScript package or library
  • Starting a new Bun module project
  • Need consistent package structure across projects
  • Want automated GitHub repo setup with Bun template

Don't use for:

  • Non-Bun projects (use appropriate template)
  • Existing repositories (template is for new projects)
  • Projects not requiring TypeScript or testing infrastructure

Important Limitation: Setup script runs non-interactively - you must manually edit package.json after creation to set correct name, description, and author details.

Quick Reference

StepCommandPurpose
1. Create repogh repo create OWNER/NAME --template zenobi-us/bun-module --public --cloneCreate from template
2. Navigatecd NAMEEnter repo directory
3. Setupbash setup.shRun interactive setup

Complete Workflow

Prerequisites Check

Before starting, verify:

# GitHub CLI installed and authenticated
gh auth status

# Bun installed (required for setup.sh)
bun --version

Step-by-Step Process

1. Gather Information

Ask the user for:

  • Owner: GitHub username or organization (e.g., zenobi-us)
  • Repo name: New repository name (e.g., my-awesome-module)
  • Visibility: Public or private (default: public)

2. Create Repository from Template

# Public repository (recommended for open source)
gh repo create OWNER/REPO-NAME \
  --template zenobi-us/bun-module \
  --public \
  --clone

# Private repository (if needed)
gh repo create OWNER/REPO-NAME \
  --template zenobi-us/bun-module \
  --private \
  --clone

The --clone flag automatically clones after creation.

3. Navigate to Repository

cd REPO-NAME

4. Run Setup Script

bash setup.sh

The setup script will:

  • Apply template files to current directory
  • Replace template variables with defaults
  • Remove old git history and template files
  • Initialize fresh git repository
  • Create initial commit
  • Attempt to push to remote (may fail if repo just created)

Note: The script runs non-interactively and uses these defaults:

  • Package name: my-bun-package
  • Description: A Bun package
  • Author: Your Name <you@example.com>
  • Repository URL: Detected from git remote (usually correct)

You must manually edit package.json after setup to correct these values.

5. Update package.json Manually

The setup script uses defaults, so you must edit package.json:

# Edit package.json - update these fields:
# - name: Change from "my-bun-package" to your actual name
# - description: Update to your package's description
# - author.name: Your actual name
# - author.email: Your actual email

6. Trust mise Configuration

# Required before running mise tasks
mise trust

7. Install Dependencies and Build

# Install dependencies
bun install

# Build the package
mise run build

# Verify build succeeded
ls -la dist/

8. Commit Updates

# Stage package.json changes
git add package.json

# Commit your customizations
git commit -m "chore: update package metadata"

# Push to remote
git push -u origin main

Command Options

GitHub CLI Repository Creation

gh repo create [<owner>/]<name> [flags]

Key flags:

  • --template OWNER/REPO: Use repository as template
  • --public: Create public repository (default if using template)
  • --private: Create private repository
  • --clone: Clone repository after creation
  • --description DESC: Repository description
  • --homepage URL: Repository homepage URL

Examples:

# Minimal - public, auto-clone
gh repo create zenobi-us/new-module \
  --template zenobi-us/bun-module \
  --public \
  --clone

# With metadata
gh repo create zenobi-us/new-module \
  --template zenobi-us/bun-module \
  --public \
  --clone \
  --description "My awesome Bun module" \
  --homepage "https://example.com"

# Organization repository
gh repo create my-org/new-module \
  --template zenobi-us/bun-module \
  --public \
  --clone

Template Repository Structure

The zenobi-us/bun-module template provides:

  • TypeScript configuration: Preconfigured tsconfig.json
  • Mise integration: Task runner with build, test, format tasks
  • Testing: Vitest test infrastructure
  • Package configuration: Starter package.json with defaults
  • Build tooling: Bundling with Bun's bundler
  • Release automation: Release Please configuration for automated releases
  • Documentation: README template, AGENTS.md, RELEASE.md
  • Linting: ESLint and Prettier configured
  • GitHub Actions: CI/CD workflows preconfigured

Setup Script Behavior

The setup.sh script runs non-interactively with these defaults:

FieldDefault ValueWhere to Update
Package namemy-bun-packagepackage.json → name
DescriptionA Bun packagepackage.json → description
Author nameYour Namepackage.json → author.name
Author emailyou@example.compackage.json → author.email
Repository URLAuto-detected from git remoteUsually correct, verify in package.json → repository.url
GitHub orgusernameNot stored, used during setup only

After running setup.sh, you MUST manually edit package.json to update these values to your actual project details.

Common Workflows

Creating a Bun Package

# 1. Create repository from template
gh repo create zenobi-us/my-bun-package \
  --template zenobi-us/bun-module \
  --public \
  --clone \
  --description "My awesome Bun package"

# 2. Navigate to directory
cd my-bun-package

# 3. Run setup (applies defaults)
bash setup.sh

# 4. Edit package.json manually
# Update: name, description, author.name, author.email

# 5. Trust mise and build
mise trust
bun install
mise run build

# 6. Commit and push
git add package.json
git commit -m "chore: update package metadata"
git push -u origin main

Organization Package

# Create under organization
gh repo create my-org/shared-package \
  --template zenobi-us/bun-module \
  --public \
  --clone \
  --description "Shared Bun package for organization"

cd shared-package
bash setup.sh

# Edit package.json with org-scoped name:
# name: "@my-org/shared-package"
# ...

mise trust
bun install
mise run build
git add package.json
git commit -m "chore: update package metadata"
git push -u origin main

Private Package

# Create private repository
gh repo create zenobi-us/internal-package \
  --template zenobi-us/bun-module \
  --private \
  --clone \
  --description "Internal Bun package"

cd internal-package
bash setup.sh

# Edit package.json as needed
# ...

mise trust
bun install
mise run build
git add package.json
git commit -m "chore: update package metadata"
git push -u origin main

Troubleshooting

Template Repository Not Marked as Template

Problem: Could not clone: zenobi-us/bun-module is not a template repository

Solution:

# Mark repository as template
gh repo edit zenobi-us/bun-module --template

# Verify it's now a template
gh repo view zenobi-us/bun-module --json isTemplate

GitHub CLI Authentication

Problem: gh: Not authenticated

Solution:

# Authenticate with GitHub
gh auth login

# Verify authentication
gh auth status

Template Not Found

Problem: repository not found: zenobi-us/bun-module

Solution:

  • Verify template repository exists and is accessible
  • Check spelling of owner/repo
  • Ensure template repository is public or you have access

Setup Script Fails

Problem: setup.sh: command not found or script errors

Solution:

# Verify file exists
ls -la setup.sh

# Make executable if needed
chmod +x setup.sh

# Run with bash explicitly
bash setup.sh

# Check Bun is installed
bun --version

Mise Trust Required

Problem: Config files in [...] are not trusted

Solution:

# Trust the mise configuration
mise trust

# Now run mise tasks
mise run build

Clone Directory Exists

Problem: destination path 'repo-name' already exists

Solution:

# Choose different name or remove existing directory
rm -rf repo-name

# Or use --clone flag without specifying directory
gh repo create owner/repo-name --template ... --clone

Build Fails After Setup

Problem: Build fails or dependencies missing

Solution:

# Ensure dependencies are installed
bun install

# Trust mise config if not done
mise trust

# Try build again
mise run build

# Check for specific errors
mise run build --verbose

Post-Setup Next Steps

After successful setup and package.json updates:

  1. Verify package.json: Ensure all fields are correct cat package.json | jq '.name,.description,.author'
  2. Install dependencies: bun install
  3. Trust mise and build: mise trust mise run build
  4. Verify build output: ls -la dist/ # Should see: index.js, index.d.ts
  5. Run tests (if any exist): mise run test
  6. Commit customizations: git add package.json git commit -m "chore: update package metadata" git push origin main
  7. Update README: Replace template content with actual documentation
  8. Update AGENTS.md: Document how AI agents should interact with your package
  9. Configure CI/CD: Review and customize GitHub Actions workflows in .github/workflows/
  10. Start development: Begin implementing your package in src/

Integration with Other Tools

With mise

# Pin Bun version in project
mise use bun@latest

# Add to mise.toml tasks
[tasks]
setup = "bash setup.sh"
test = "bun test"
build = "bun run build"

With Git Workflows

# Create feature branch immediately
git checkout -b feat/initial-implementation

# Set up pre-commit hooks
bun add -D husky lint-staged

With Package Managers

The template works with:

  • Bun (primary): bun install, bun add
  • npm (compatible): npm install works but Bun recommended
  • pnpm (compatible): pnpm install works as fallback

Best Practices

  1. Mark template repo once: Use gh repo edit --template on first use
  2. Use descriptive repo names: Choose names that clearly indicate purpose
  3. Scope package names: Use @scope/name for clarity and namespace ownership
  4. Update package.json immediately: Don't forget to edit after setup.sh runs
  5. Trust mise before building: Required for running mise tasks
  6. Commit metadata updates separately: Keep setup commit and metadata commit separate
  7. Test immediately after setup: Verify mise run build passes
  8. Update documentation early: Replace template placeholders with real content
  9. Configure visibility intentionally: Public for open source, private for internal
  10. Review generated files: Ensure AGENTS.md, README.md, and workflows fit your needs

Known Limitations

  1. Non-interactive setup: The setup.sh script doesn't prompt for input; it uses defaults that you must manually update in package.json afterward
  2. Manual package.json editing required: You must edit name, description, and author fields after running setup.sh
  3. No validation: The script doesn't validate your manual edits to package.json
  4. Mise trust required: You must explicitly trust the mise configuration before running tasks

Quick Start Summary

The complete workflow in commands:

# 1. Ensure template repo is marked as template (one-time setup)
gh repo edit zenobi-us/bun-module --template

# 2. Create and clone from template
gh repo create OWNER/NAME \
  --template zenobi-us/bun-module \
  --public \
  --clone \
  --description "Your plugin description"

# 3. Enter directory
cd NAME

# 4. Run setup (uses defaults)
bash setup.sh

# 5. Edit package.json manually - UPDATE THESE:
#    - name: "my-bun-package" → "@owner/actual-name"
#    - description: "A Bun package" → "Your description"
#    - author.name: "Your Name" → Your actual name
#    - author.email: "you@example.com" → Your actual email

# 6. Trust mise, install, and build
mise trust
bun install
mise run build

# 7. Commit updates and push
git add package.json
git commit -m "chore: update package metadata"
git push -u origin main

Critical: Steps 5-7 are REQUIRED because setup.sh uses placeholder values.

平台分布

OpenCode

28.4%
按下载量换算104

Claude Code

23.42%
按下载量换算86

Antigravity

18.94%
按下载量换算69

Gemini CLI

12.48%
按下载量换算46

moltbot

7.83%
按下载量换算29

windsurf

3.21%
按下载量换算12

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills