@adbayb/stack

中文文档
3.6.0发布于 2026/11/05MITTypeScriptES Module构建来源已验证近 30 天下载 8553

My opinionated JavaScript-based toolchain

原始使用文档
文档目录11 节
  1. ✨ Features
  2. 🚀 Usage
  3. 🌍 Ecosystem
  4. Available configurations
  5. Agent skills
  6. Used technologies
  7. Used conventions
  8. 🏗️ Architecture
  9. Project creation workflow
  10. ✍️ Contribution
  11. 📖 License

🦦 Stack

My opinionated scaffolding tool to ease project building


✨ Features

Stack allows creating an NPM project in a quick, easy and opinionated way with:

  • A unified monorepo-driven and git-driven approach for all kinds of projects (single-purpose library, multiple libraries, application(s), ...)
  • Support for several application templates (for now, only a default template is available, but others can be added later).
  • Standardized file structure including optional folder creation such as examples, packages, ...
  • Enable all project lifecycle steps with commands from the setup, check, fix, build, and test to the versioning and release.
  • Built-in configuration preset setup (including Node/NPM runtime, Git ignore/hooks, TypeScript, Oxlint, Oxfmt, EditorConfig, Renovate, Changesets, and VSCode).
  • A welcoming environment for users and contributors with the continuous integration setup, and the creation of README.md, CONTRIBUTING.md, and GitHub template files (including issue and pull request ones), ...
  • An optimized development environment with command caching (no build needed if nothing changes).

🚀 Usage

This section introduces the stack essentials by walking through its main commands:

1️⃣ Create the NPM project via the @adbayb/create initializer:

# Npm
npm init @adbayb
# Pnpm
pnpm create @adbayb

2️⃣ Play with available commands (already set up in the generated root package.json):

# Setup initial requirements (including Git hooks installation)
stack install
# Clean the project
stack clean
# Check code health (static analysis including linters and types)
stack check
# Fix auto-fixable issues
stack fix
# Start the project in production mode
stack start
# Build the project in production mode
stack build
# Build and start the project in development mode
stack watch
# Test the code execution
stack test
# Log, version, and publish package(s)
stack release

3️⃣ Enjoy!


🌍 Ecosystem

Available configurations

Agent skills

@adbayb/stack ships four Agent Skills for coding agents:

  • software-design: design and write clean, testable code; the single source of the design rules and glossary.
  • software-audit: audit code or pull requests against the software-design rules (depends on software-design).
  • skill-design: design and write skills with one shared anatomy, plus agent instructions such as AGENTS.md; the single source of the writing rules.
  • skill-audit: audit and score skills and agent instructions such as AGENTS.md against the skill-design rules (depends on skill-design and Anthropic skill-creator for skill evaluation).

With pnpm 12.11.0 or later, install the package as a direct dependency and approve its skills:

pnpm add -D @adbayb/stack
pnpm approve

If the package is already installed, run pnpm approve. Select @adbayb/stack to approve all four skills; pnpm records the approval in pnpm-workspace.yaml. pnpm links skills into existing agent skill directories by default. To choose a directory explicitly, configure:

skills:
    dirs:
        - .agents/skills

Links use names such as pnpm-@adbayb+stack-software-design. Global installs and pnpm dlx do not link skills.

For older pnpm versions or global installation, install from the repository with:

pnpm dlx skills add adbayb/stack --skill software-design -g
pnpm dlx skills add adbayb/stack --skill software-audit -g
pnpm dlx skills add adbayb/stack --skill skill-design -g
pnpm dlx skills add adbayb/stack --skill skill-audit -g

Use pnpm dlx rather than npx: the repo's devEngines gate accepts pnpm only.

In this repository, stack/skills/ is the published source and .agents/skills is a relative symlink to it, so local agents use the same files.

Used technologies

  • Static code analysis: Oxlint, Oxfmt
  • Node package manager: PNPM
  • Task orchestration: Turborepo
  • Release: Changesets
  • Testing: Vitest

Used conventions

  • Commits
  • Scripts
  • File Structure
    • Monorepo-first structure to:
      • Keep a consistent file structure pattern across templates (ease template familiarity and onboarding).
      • Ease examples setup.
      • Not clutter the published package with development-related context, metadata, and artifacts.

🏗️ Architecture

Project creation workflow

flowchart TD
    N("npm init @adbayb"):::strokeWidth -- Runs --> C("@adbayb/create"):::strokeWidth
    C -- Runs --> S("@adbayb/stack create"):::strokeWidth
    S -- "Scaffolds (via template and shared configurations)" --> P("New project"):::strokeWidth
    style C fill:#daf2d7,stroke:#90cf8e
    style S fill:#daf2d7,stroke:#90cf8e
    classDef strokeWidth stroke-width:3px

✍️ Contribution

We're open to new contributions, you can find more details here.


📖 License

MIT


版本与发布记录

@adbayb/stack 共发布 383 个版本,首次发布于 2023/08/14;过去 12 个月发布了 214 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
3.6.0latest2026/11/05今天
3.6.0-next.1793881218766.ca27ad0next2026/11/05今天
3.6.0-next.1793879743599.235a2202026/11/05今天
3.6.0-next.1793798105644.130a4fc2026/11/041 天前
3.6.0-next.1793710633879.40ee21e2026/11/032 天前
3.5.32026/10/2610 天前

关于 @adbayb/stack 的常见问题

@adbayb/stack 是什么?

My opinionated JavaScript-based toolchain

如何安装 @adbayb/stack?

在项目目录运行 npm install @adbayb/stack,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 stack,可以用 npx stack 直接运行。

@adbayb/stack 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@adbayb/stack 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@adbayb/stack 可以商用吗?

@adbayb/stack 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@adbayb/stack 的下载量有多少?

根据 npm 官方下载统计,@adbayb/stack 在 2026/10/05 – 2026/11/03 这 30 天内被下载 8,553 次,日均约 285 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@adbayb/stack 还在维护吗?

最新版本 3.6.0 发布于 2026/11/05(今天);至今共发布 383 个版本,其中过去 12 个月发布了 214 个;首次发布于 2023/08/14。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。