rust-node-bootstrap
/rust-node-bootstrap
Zakłada nowe monorepo Rust i Node.js z pnpm workspaces, Cargo workspace, workflowami CI i infrastrukturą publikacji.
- Autor
- onsager-ai ↗
- Repozytorium
- dev-skills ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 18.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 12
- Skrypty
- 1
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 1
Brak sygnałów. Repozytorium zmienione 18.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: templates/bootstrap/publish.config.ts
Co robi i kiedy
Zakłada nowe monorepo Rust i Node.js z pnpm workspaces, Cargo workspace, workflowami CI i infrastrukturą publikacji.
Wyzwalacze z opisu
Oryginalny opis (EN)
Scaffold a new Rust+Node.js hybrid monorepo with pnpm workspaces, Cargo workspace, CI workflows, and publish infrastructure. Use when: (1) starting a new project from scratch, (2) adding missing infrastructure to an existing repo, (3) figuring out the canonical project structure for a Rust+Node.js tool. Triggers on "bootstrap", "scaffold", "new project", "set up project", or "init" in a Rust+Node.js context.
Jak działa
- When to Use This Skill
- Decision Tree
- Gather Project Info
- Scaffold Structure
- File Generation Order
- Verify
- Install Companion Skills
- Templates
- Setup & Activation
Podgląd SKILL.md
--- name: rust-node-bootstrap description: > Scaffold a new Rust+Node.js hybrid monorepo with pnpm workspaces, Cargo workspace, CI workflows, and publish infrastructure. Use when: (1) starting a new project from scratch, (2) adding missing infrastructure to an existing repo, (3) figuring out the canonical project structure for a Rust+Node.js tool. Triggers on "bootstrap", "scaffold", "new project", "set up project", or "init" in a Rust+Node.js context. metadata: author: Codervisor version: 0.1.0 homepage: https://github.com/codervisor/forge --- # Rust+Node.js Bootstrap Scaffold a Rust+Node.js hybrid project with all infrastructure in one pass. ## When to Use This Skill Activate when any of the following are true: - User says "bootstrap", "scaffold", "new project", "set up from scratch" - Repo has `Cargo.toml` or `package.json` but is missing the other - Missing `.github/workflows/`, `scripts/`, or `publish.config.ts` - Incrementally adding forge infrastructure to an existing project ## Decision Tree ``` Starting from scratch? YES → Full scaffold (all steps in order below) NO → Incremental setup ↓ Has package.json? → NO: Create root package.json + pnpm-workspace.yaml Has Cargo.toml? → NO: Create Cargo workspace Has .github/workflows/? → NO: Generate from rust-node-ci skill templates Has scripts/? → NO: Generate from rust-npm-publish skill templates Has publish.config.ts? → NO: Create from rust-npm-publish skill examples Has specs/? → NO: Initialize LeanSpec ``` ## Gather Project Info | Field | Example | Required | |-------|---------|----------| | Project name | `my-tool` | Yes | | npm scope | `@myorg` | Yes | | Rust binary name(s) | `my-cli` | Yes | | Cargo package name(s) | `my-cli-rs` | Yes | | Main npm packages | `packages/cli` | Yes | | Repository URL | `github.com/myorg/my-tool` | Yes | | Platforms | `darwin-x64, darwin-arm64, linux-x64, windows-x64` | No (default: all 4) | ## Scaffold Structure See [references/project-structure.md](./references/project-structure.md) for the full annotated tree. ``` my-tool/ ├── .github/workflows/ ← CI + publish workflows ├── .lean-spec/config.json ← LeanSpec configuration ├── specs/ ← Spec-driven development ├── packages/cli/ ← Main npm package (thin JS wrapper) │ ├── package.json ← bin + optionalDependencies │ └── bin.js ← Resolves platform binary, spawns it ├── rust/ ← Rust workspace ├── scripts/ ← Publish & version scripts ├── publish.config.ts ← Publish pipeline configuration ├── package.json ← Root (version source of truth) ├── pnpm-workspace.yaml ← pnpm workspace definition └── Cargo.toml ← Rust workspace manifest ``` ## File Generation Order Order matters — later files depend on earlier ones: 1. **Root configs** — `package.json`, `pnpm-workspace.yaml`, `Cargo.toml`, `turbo.json` Use [templates/bootstrap/](./templates/bootstrap/). 2. **Publish config** — `publish.config.ts` (drives script + workflow generation) 3. **Main package wrapper** — `bin.js` + `package.json` from rust-npm-publish skill templates, fill in scope/binary name/platforms 4. **Scripts** — Copy from rust-npm-publish skill templates 5. **Workflows** — Copy from rust-node-ci skill templates, customize matrix 6. **LeanSpec** — Initialize `.lean-spec/config.json` and `specs/` 7. **AGENTS.md** — Project-level agent instructions listing installed skills ## Verify ```bash pnpm install && pnpm build && cargo check --workspace && pnpm tsx scripts/sync-versions.ts ``` See [references/checklist.md](./references/checklist.md) for the full post-bootstrap checklist. ## Install Companion Skills After scaffolding, install skills for ongoing development: ```bash # CI/CD workflows and composite actions npx skills add -g onsager-ai/dev-skills --skill rust-node-ci -a claude-code -y # npm publishing pipeline and versioning npx skills add -g onsager-ai/dev-skills --skill rust-npm-publish -a claude-code -y ``` ## Templates | Directory | Contents | |-----------|----------| | [templates/bootstrap/](./templates/bootstrap/) | Root configs: `package.json`, `Cargo.toml`, `pnpm-workspace.yaml`, `turbo.json`, `publish.config.ts` | ## Setup & Activation ```bash npx skills add -g onsager-ai/dev-skills --skill rust-node-bootstrap -a claude-code -y ``` Auto-activates when: user says "bootstrap", "scaffold", "new project", or "init" in a Rust+Node.js context.
Pliki w paczce (12)
- SKILL.md 5 KB
- references/checklist.md 2 KB
- references/project-structure.md 5 KB
- templates/.gitignore 1 KB
- templates/AGENTS.md 2 KB
- templates/.lean-spec/config.json 1 KB
- templates/bootstrap/Cargo.toml 1 KB
- templates/bootstrap/package.json 1 KB
- templates/bootstrap/pnpm-workspace.yaml 1 KB
- templates/bootstrap/publish.config.ts 1 KB
- templates/bootstrap/turbo.json 1 KB
- templates/specs/README.md 1 KB
Wersje
W bazie nie ma innych skilli o nazwie rust-node-bootstrap.
Migawka bazy z 13.11.2026 · wersja paczki 19176d2f1d27 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100init-monorepo
Tworzy gotowe do pracy monorepo pnpm z Turborepo, wspólnymi pakietami, TypeScriptem i standardowymi skryptami. - 100scaffold-project
Tworzy szkielet nowego projektu TypeScript lub monorepo: układ pakietów, pliki konfiguracyjne i szkielety modułów, bez logiki aplikacji. Przydaje się przy starcie repozytorium od zera. - 90cargo-workflows
Obsługuje pracę z Cargo w Rust: workspace'y, feature flagi, skrypty buildów, cache w CI, audyt zależności i Cargo.lock. - 100init-prototype
Zakłada monorepo prototypu ze standardowymi pakietami core, api, ui, mcp i types, połączonymi przez workspaces Bun. - 100systems-programming-rust-project
Tworzy szkielet projektów Rust z Cargo: organizacja modułów, testy i narzędzia deweloperskie przy starcie aplikacji lub bibliotek. - 96repo-bootstrap
Zakłada nowe repozytorium lub projekt od zera, gdy użytkownik prosi o bootstrap.