Using AI to bootstrap

The fastest way to start a new Orchesty integration is to let an AI agent scaffold it for you. Orchesty ships two things that make this work as a single copy-paste:

  1. A bootstrap prompt generated on the AI Bootstrap page.
  2. The orchesty-nodejs-bootstrap template, which depends on the @orchesty/nodejs-ai rules package and includes an AGENTS.md file that tells any AI agent how to wire those rules into your editor's native rule format.

You don't have to read either of them. You don't have to copy rules around per editor. The agent does it.

Quick start in an empty folder #

  1. Open the AI Bootstrap page.
  2. Optionally describe the integration you want to build in the prompt input.
  3. Click Copy to Clipboard.
  4. Open an empty folder in your AI editor (Cursor, Claude Code, Windsurf, GitHub Copilot, Cline, Aider, ...) and paste the prompt into the chat.

Screenshot pending

AI Bootstrap page

Prompt textarea + Copy to Clipboard button

target 1000 x 560

The agent will then, on its own:

  • Clone orchesty-nodejs-bootstrap into the current directory and reinitialise git.
  • Run make init-dev (or make install as a fallback) — auto-generates .env from .env.dist, installs dependencies including @orchesty/nodejs-ai, and starts the dev server.
  • Read AGENTS.md and materialise the rule pack into your editor's native location via the per-tool snippets in node_modules/@orchesty/nodejs-ai/AI-INSTRUCTIONS.md (.cursor/rules/, CLAUDE.md, .windsurfrules, .github/copilot-instructions.md, .clinerules/, .aider.conf.yml, ...).
  • Run make test to verify lint + unit tests pass.
  • Start writing the integration you described, following the Orchesty conventions baked into the rules.

You review the diff and ship it.

Quick start inside the full-stack skeleton #

The full-stack orchesty-skeleton brings up the entire Community Edition stack (Admin UI, backend, MongoDB, RabbitMQ, supporting services) plus a Node.js worker container, all wired by docker compose. It ships its own root AGENTS.md plus the @orchesty/nodejs-ai dev dependency inside worker/, so the AI flow is essentially the same — just with a different prompt that targets the skeleton repo and the stack-wide make init-dev.

Use the dedicated spin-up prompt from the Community Edition page (the "AI prompt" tab in the Spin up Orchesty in minutes section). The agent will:

  • Clone orchesty-skeleton into the current directory and reinitialise git.
  • Read the root AGENTS.md, check Docker is available, run make init-dev (renders .env, brings up the stack, registers the worker, installs topology), and verify http://127.0.0.1 is reachable.
  • Materialise the AI rules from worker/node_modules/@orchesty/nodejs-ai/ into your editor's native rule directory using the per-tool snippets in worker/node_modules/@orchesty/nodejs-ai/AI-INSTRUCTIONS.md (paths in that file are relative to the worker root, so the agent prefixes them with worker/).

Once the stack is up, integration code goes into worker/src/ exactly like in the slim worker template — the same conventions and the same rule pack apply.

What's in the rule pack #

The pack ships as the @orchesty/nodejs-ai package — files live at node_modules/@orchesty/nodejs-ai/rules/:

FilePurpose
orchesty-project.mdcArchitecture, component registration, payload flow
orchesty-naming.mdcNaming conventions and folder structure
orchesty-connectors.mdcConnector, batch, and custom-node patterns
orchesty-applications.mdcAuthentication providers (Basic, OAuth2)
orchesty-testing.mdcNodeTester, mock fixtures, test layout
orchesty-topologies.mdcTopology JSON file format

Every file uses the standard .mdc rule format with YAML frontmatter (alwaysApply, globs, description). The per-editor wiring step (handled automatically by the agent via AGENTS.md + node_modules/@orchesty/nodejs-ai/AI-INSTRUCTIONS.md) translates this format into whatever your editor expects.

If your editor is not covered by AI-INSTRUCTIONS.md, the fallback rule is: read every file in node_modules/@orchesty/nodejs-ai/rules/ at the start of each session and treat the contents as mandatory coding rules.

A useful first prompt #

The bootstrap prompt is generic. Once the agent finishes setup, give it something concrete:

Add an OAuth2 application called Hubspot that fetches contacts. Create a batch node HubspotListContacts that pages through /crm/v3/objects/contacts and a custom node MapHubspotContact that maps the response into { email, firstName, lastName }. Register everything in src/index.ts and write a basic NodeTester test for the batch.

The rule pack tells the agent which classes to extend, where to put files, what to name them, how to wire authentication, and how to write tests.

Customising the rules #

The rule files are plain Markdown. Copy them out of node_modules/@orchesty/nodejs-ai/rules/ into your repo (e.g. into .cursor/rules/), tweak the conventions to match your house style, and your agent immediately follows the new rules. Project-level rules win over the defaults shipped by the package.

Updating the rule pack #

When @orchesty/nodejs-ai ships a new version, refresh both the install and the materialised copy in your editor:

pnpm update @orchesty/nodejs-ai
# Then re-run the per-editor copy/concat snippet from
# node_modules/@orchesty/nodejs-ai/AI-INSTRUCTIONS.md

What's next #

© 2025 Orchesty Solutions. All rights reserved.