compact-core:compact-init-project
/compact-core:compact-init-project
Tworzy nowy projekt Midnight ze szkieletem kontraktu Compact i konfiguracją środowiska programistycznego.
- Autor
- midnightntwrk ↗
- Repozytorium
- midnight-expert ↗
- Licencja
- Apache-2.0
- Ostatnia zmiana repozytorium
- 23.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 19
- Skrypty
- 9
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 23.10.2026, bez odwołań do wycofanych modeli i API.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
- 9 skryptów w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: scripts/new-example.mjs, templates/example/contract/index.ts, templates/example/contract/witnesses.ts, templates/example/scripts/wait-for-dust.ts, templates/example/src/config.ts, templates/example/src/providers.ts, templates/example/src/test/__name__.test.ts, templates/example/src/wallet.ts, templates/example/vitest.config.ts
Co robi i kiedy
Tworzy nowy projekt Midnight ze szkieletem kontraktu Compact i konfiguracją środowiska programistycznego.
Wyzwalacze z opisu
Oryginalny opis (EN)
This skill should be used when the user asks to create a new Midnight project, scaffold a Compact smart contract project, initialize a DApp, set up a new Midnight application, start a new project, use a project template, or set up a Midnight development environment for the first time. Also triggered by "new project", "start a project", "init project", "scaffold", or "create-mn-app" (the former scaffolding tool, now replaced by this skill's built-in generator).
Jak działa
- What Gets Scaffolded
- Quick Start
- Key Dependencies
- Not For
- Reference Files
- Bundled Assets
Podgląd SKILL.md
--- name: compact-core:compact-init-project description: This skill should be used when the user asks to create a new Midnight project, scaffold a Compact smart contract project, initialize a DApp, set up a new Midnight application, start a new project, use a project template, or set up a Midnight development environment for the first time. Also triggered by "new project", "start a project", "init project", "scaffold", or "create-mn-app" (the former scaffolding tool, now replaced by this skill's built-in generator). version: 0.2.0 --- # Initialize a New Midnight/Compact Project This skill scaffolds a new, self-contained Midnight project using a **vendored, deterministic generator** bundled with the skill (`scripts/new-example.mjs` + `templates/example/`). It replaces the former `create-mn-app` tool: the generator is zero-dependency (Node built-ins only), fetches nothing, and produces byte-identical output for the same inputs. Follow the workflow in `references/new-example-workflow.md` step by step. > Note: `create-mn-app` is being sunset. If a user asks for it by name, route them here — this skill's > generator is its replacement. ## What Gets Scaffolded | Template | Description | |----------|-------------| | **example** (default, and only) | A self-contained Midnight project: a Compact contract stub, a TypeScript test harness (vitest), and a local Docker network. The user writes the contract and test bodies. Pass `--witnesses` to also generate a `witnesses.ts` stub for contracts with off-chain private logic. | ## Quick Start Follow `references/new-example-workflow.md` phases in order: 1. **Environment Check** — Run `/midnight-tooling:doctor` to verify Node 22+, Docker, and Compact CLI 2. **Project Setup** — Get a kebab-case project name; decide whether the contract needs witnesses 3. **Scaffolding** — Resolve the plugin root, then run `node "$PLUGIN_ROOT/skills/compact-init-project/scripts/new-example.mjs" <name> [--witnesses]` 4. **Local Network** — `cd <name> && yarn install && yarn env:up` (the project ships its own `compose.yml`) 5. **Compile** — Write the contract, then `yarn compile`; verify `contract/managed/<name>/` 6. **Summary** — Show what was created, the available scripts, and the test-run flow ## Key Dependencies This skill delegates to midnight-tooling plugin commands: - `/midnight-tooling:doctor` — prerequisite verification - `/midnight-tooling:install-cli` — Compact compiler installation (if needed) - `/midnight-tooling:proof-server` — proof server / Docker troubleshooting - `/midnight-tooling:devnet` — optional shared local devnet (alternative to the project's bundled `compose.yml`) ## Not For - Existing project troubleshooting → use `midnight-tooling:troubleshooting` - Writing custom Compact contracts → use `compact-structure`, `compact-ledger`, etc. - Deploying to a remote network → out of scope (the scaffold's tests can target Preview/Preprod with a funded seed, but wallet creation and funding are separate) - Adding features to an existing project → use domain-specific compact-core skills ## Reference Files | Topic | Reference | |-------|-----------| | Step-by-step workflow (follow this) | `references/new-example-workflow.md` | | Project layout, SDK/toolchain versions, network URLs | `references/project-structure.md` | | Common init failures and fixes | `references/troubleshooting.md` | ## Bundled Assets | Asset | Path | |-------|------| | Deterministic scaffolder | `scripts/new-example.mjs` | | Project template tree | `templates/example/` |
Pliki w paczce (19)
- SKILL.md 3 KB
- references/new-example-workflow.md 7 KB
- references/project-structure.md 7 KB
- references/troubleshooting.md 6 KB
- scripts/new-example.mjs 7 KB
- templates/example/.gitignore 1 KB
- templates/example/README.md 1 KB
- templates/example/compose.yml 2 KB
- templates/example/package.json 2 KB
- templates/example/tsconfig.json 1 KB
- templates/example/vitest.config.ts 1 KB
- templates/example/contract/__name__.compact 1 KB
- templates/example/contract/index.ts 2 KB
- templates/example/contract/witnesses.ts 2 KB
- templates/example/scripts/wait-for-dust.ts 3 KB
- templates/example/src/config.ts 4 KB
- templates/example/src/providers.ts 3 KB
- templates/example/src/wallet.ts 6 KB
- templates/example/src/test/__name__.test.ts 5 KB
Wersje
W bazie nie ma innych skilli o nazwie compact-core:compact-init-project.
Migawka bazy z 13.11.2026 · wersja paczki a5f9c8bbe330 (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
- 90midnight-dapp-dev:init
Tworzy szkielet frontendu DApp Midnight: Vite, React 19, shadcn, Tailwind v4, połączenie z portfelem i obsługę kontraktu. - 90compact-core:basic-start
Prowadzi krok po kroku przez pierwszy kontrakt Compact w Midnight: weryfikację środowiska, test i wdrożenie na devnecie. - 84init
Zakłada nowy projekt ze standardową strukturą katalogów, plikami szablonowymi i repozytorium git. - 100init-project
Zakłada szkielet projektu: AGENTS.md i CLAUDE.md, reguły, katalog kontekstu, szablony, ADR, etykiety GitHub i strukturę pracy deweloperskiej. - 90Project Scaffolding
Przygotowuje Claude do projektu: tworzy CLAUDE.md, katalog .claude i workflow AI dla nowego lub istniejącego repozytorium. - 90prompt-rewriter:generate-midnight-network-dapp-spec
Prowadzi adaptacyjny wywiad i przygotowuje zwięzły brief specyfikacji aplikacji DApp w sieci Midnight jako wejście dla planowania.