Agent skill

Add Connector

by joeltelling in joeltelling/print-farm-manager

Scaffold, register, test, and document a new printer brand driver (connector) end to end.

MITAuto-check passed

Install Add Connector

skills CLI
$ npx skills add joeltelling/print-farm-manager --skill add-connector -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install joeltelling/print-farm-manager add-connector --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/joeltelling/print-farm-manager.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/add-connector .claude/skills/add-connector && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
add-connector
GitHub stars
208
Token cost
~1.9k tokens
SKILL.md length
962 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
MIT

At a glance

Scaffold, register, test, and document a new printer brand driver (connector) end to end.

  • Works in 6 steps: Protocol research (do this before… → The driver file → Registration (5 more touchpoints) → …
  • Adding support for a new printer brand
  • SKILL.md covers Phase 0: Protocol research (do…, Phase 1: The driver file, Phase 2: Registration (5 more… and Phase 3: Tests, plus 3 more sections
  • Calls npm

What it does

Add Connector is an agent skill from joeltelling/print-farm-manager. Scaffold, register, test, and document a new printer brand driver (connector) end to end. Use when adding support for a new printer brand or protocol, or when reviewing a community driver PR for completeness.

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Self-hosted print farm manager for multi-brand 3D printer fleets — Prusa, Bambu, Elegoo, Klipper. Live fleet monitoring, automated job dispatch, no cloud. The licence is MIT.

When your agent uses it

  • Adding support for a new printer brand
  • Reviewing a community driver PR for completeness

Example prompts

  • “/add-connector”

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Protocol research (do this before writing any code)
  2. The driver file
  3. Registration (5 more touchpoints)
  4. Tests
  5. Docs (not optional)
  6. Hardware validation status

What it can do on your machine

Read from SKILL.md and the folder at commit b5bb0a2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Add Connector loads about 1.9k tokens when it runs. Until then it costs about 56 tokens; SKILL.md has 962 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~56
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from joeltelling/print-farm-manager at commit b5bb0a2, republished under its MIT licence (© joeltelling). 962 words, ~1,903 tokens.

Download SKILL.mdSave it as .claude/skills/add-connector/SKILL.md (or your agent's skills folder).
name
add-connector
description
Scaffold, register, test, and document a new printer brand driver (connector) end to end. Use when adding support for a new printer brand or protocol, or when reviewing a community driver PR for completeness.

Add a Printer Connector

You are adding a new printer brand to Print Farm Manager. This is a 6-file change with a hard behavioral contract. Work through the phases in order and do not skip the final checklist.

Phase 0: Protocol research (do this before writing any code)

  1. Read docs/driver-authoring.md in full. It is the contract this skill enforces.
  2. Read docs/multi-brand.md for the design background.
  3. Find the official protocol documentation for the brand and fetch it (WebFetch or WebSearch). Known references:
    • Bambu: https://github.com/Doridian/OpenBambuAPI
    • Klipper: Moonraker web API docs (note: upload options like print=true are multipart FORM FIELDS, never query params; Moonraker silently ignores query params)
    • Prusa: PrusaLink OpenAPI spec
    • Elegoo: SDCP protocol docs / elegoo-link source
  4. Never guess at field names, URL formats, or command payloads. Four consecutive wrong commits were once made on the Bambu project_file URL format because the docs were not checked. If you cannot find authoritative docs for a payload, stop and tell Joel what is missing rather than guessing.
  5. Decide the connection model before coding:
    • Stateless request/response polling (Prusa, Klipper, OctoPrint pattern): no module state at all.
    • Persistent connection (Bambu, CC2 pattern): module-level const connections = new Map() keyed by printer.id, status served from a cached last-known payload, OFFLINE until the first message arrives.

Phase 1: The driver file

Create server/drivers/<id>.js where <id> is the lowercase brand id (e.g. octoprint, elegoo-centauri2).

Exact interface (all async, printer DB row is always the first argument):

js
module.exports = { getStatus, uploadAndPrint, cancelJob, checkIfPrinting };
// optional extra: deleteFile(printer, filename)

Contract rules, each one checkable:

  • getStatus(printer) returns { status, progress, timeRemaining, currentFile }. It must NEVER throw: wrap everything, return { status: 'OFFLINE', progress: null, timeRemaining: null } on any error. Request timeout around 8000 ms.
  • status must be one of the canonical strings: IDLE | PRINTING | PAUSED | FINISHED | STOPPED | ERROR | OFFLINE | READY | UNKNOWN. Map every native state explicitly. Two mappings matter most:
    • User-cancelled prints map to STOPPED, not ERROR (ERROR fails the job; STOPPED cancels it and waits for the operator).
    • FINISHED is the ONLY status that credits inventory. Never synthesize FINISHED from a guess, and never let a reconnect or cold start replay a stale FINISHED (see the no-double-credit section of docs/driver-authoring.md).
  • uploadAndPrint(printer, gcodeFullPath, filename, options) resolves only when the print has actually been started, throws on failure. If the printer reports a transfer already in progress, throw with err.code = 'UPLOAD_CONFLICT' so the scheduler applies its 60 s retry delay instead of 5 s.
  • checkIfPrinting(printer) returns a boolean, true for printing OR paused, false on any error. The scheduler uses it to detect "upload timed out on our side but the printer started anyway".
  • cancelJob(printer) logs failures, does not throw. A stub is acceptable if the protocol has no reliable cancel.
  • Drivers NEVER touch the DB. No require('../db'), no SQL. All protocol state lives in the driver module.
  • File header comment follows the house pattern: protocol summary, prerequisites on the printer, which DB fields hold credentials (printer.ip, printer.api_key, printer.serial_number), connection model notes, and the protocol reference URL.

Phase 2: Registration (5 more touchpoints)

  1. server/drivers/index.js: add one lazy loader line to LOADERS:
    js
    '<id>': () => require('./<id>'),
  2. server/routes/models.js: add <id> to VALID_CONNECTORS.
  3. server/routes/printers.js: if the brand has no API key, add it to NO_API_KEY_TYPES.
  4. client/src/pages/Settings.jsx: run grep -rn "octoprint" client/src and mirror every hit for the new brand: TYPE_OPTIONS, the label map, NO_API_KEY_TYPES, CREDENTIAL_HELP text, name placeholder, and the serial-number field condition if the brand needs a serial.
  5. If the brand needs a new DB column (like serial_number did), add it as an additive migration in server/db.js: try { db.exec('ALTER TABLE ...'); } catch (_) {}. Nothing destructive, no migration framework.
Show full SKILL.md (386 more words)Show less

Phase 3: Tests

Create server/tests/<id>-driver.test.js. House pattern:

  • Jest + CommonJS. Mock at the transport layer: jest.mock('axios') for HTTP drivers, mock mqtt/socket for persistent drivers. jest.clearAllMocks() in afterEach.
  • Cover at minimum, one test each:
    1. Each native state maps to the right canonical status (table-drive it).
    2. getStatus returns OFFLINE (not a throw) when the request fails.
    3. uploadAndPrint happy path sends the documented payload (assert URL, headers, form fields exactly).
    4. uploadAndPrint conflict path throws with code: 'UPLOAD_CONFLICT'.
    5. checkIfPrinting true for printing and paused, false on error.
  • If a test needs a real file, write it into server/gcode/ in beforeAll, track it in a filesToClean array, delete in afterAll.
  • Run the full suite: npm test. All green before proceeding.

Phase 4: Docs (not optional)

  1. docs/multi-brand.md: add the brand section (protocol, credentials, quirks).
  2. README.md: add a row to the Supported Printers table.
  3. docs/installation.md: document how the operator finds the credentials on the printer.
  4. docs/CHANGELOG.md: prepend a dated entry (## YYYY-MM-DD: feat(drivers) add <Brand> connector) with what/why prose and a ### Changes file list.
  5. All new prose: no em or en dashes. Verify with:
    bash
    grep -rPn '[\x{2013}\x{2014}]' docs/multi-brand.md README.md docs/installation.md
    (Only inspect the lines you added; legacy dashes elsewhere are not yours to fix in this change.)

Phase 5: Hardware validation status

Software-complete is not hardware-confirmed. In the CHANGELOG entry and in your summary to Joel, state explicitly which of these has been done:

  • Status mapping observed against a real printer
  • Upload + auto-start confirmed on real hardware
  • FINISHED transition credited exactly once
  • Cancel-from-printer-screen maps to STOPPED
  • Power-cycle / network-drop recovery observed

If none, say so plainly: "implemented from protocol docs, not yet validated on hardware". Never describe a driver as confirmed working without Joel having run it on a real printer.

Final checklist (all must be true)

  • Driver file implements all four functions with the exact signatures
  • getStatus cannot throw; OFFLINE on error
  • Every native state mapped to a canonical status, cancel maps to STOPPED
  • UPLOAD_CONFLICT code on transfer-in-progress
  • No DB access anywhere in the driver
  • All 6 registration touchpoints done (drivers/index.js, models.js VALID_CONNECTORS, printers.js NO_API_KEY_TYPES if applicable, Settings.jsx mirror of grep hits, db.js additive migration if needed)
  • Driver test file with the 5 minimum cases, npm test green
  • multi-brand.md, README table, installation.md, CHANGELOG all updated
  • New prose is dash-free
  • Hardware validation status stated honestly

© joeltelling, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/add-connector of joeltelling/print-farm-manager.

Open the folder on GitHubat commit b5bb0a2

Compare with similar skills

Add Connector next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Add Connector compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Add Connector this skilljoeltelling/print-farm-manager208—~1.9kAutomated safety check: PassMIT
Scaffoldingdotnet/efcore15k—~321Automated safety check: PassMIT
Scaffold Elementremotion-dev/remotion63k—~202Automated safety check: PassCustom licence
Power Apps Code App Scaffoldgithub/awesome-copilot40k1 repos~1.8kAutomated safety check: PassMIT
API Connector Builderaffaan-m/ECC276k2 repos~666Automated safety check: PassMIT
Iot Registerruvnet/ruflo74k—~263Automated safety check: PassMIT

Similar skills

  • Scaffolding

    dotnet/efcore

    Official

    Implementation details for EF Core scaffolding (reverse engineering).

    15k GitHub stars~321 tokensUpdated yesterday
    DatabasesAuto-check passed
  • Scaffold Element

    remotion-dev/remotion

    Official

    Scaffold a new Remotion Element for development in the docs Remotion Studio.

    63k GitHub stars~202 tokensUpdated yesterday
    Media & CreativeAuto-check passed
  • Power Apps Code App Scaffold

    github/awesome-copilot

    Official

    Scaffold a complete Power Apps Code App project with PAC CLI setup, SDK integration, and connector configuration

    40k GitHub starsUsed in 1 repo~1.8k tokens
    DevelopmentAuto-check passed
  • Build a new API connector or provider by matching the target repo's existing integration pattern exactly.

    276k GitHub starsUsed in 2 repos~666 tokens
    Backend & APIsAuto-check passed
  • Iot Register

    ruvnet/ruflo

    Register a Cognitum Seed device by endpoint and establish agent bridge

    74k GitHub stars~263 tokensUpdated today
    Auto-check passed
  • Scout Create Scaffold

    elastic/kibana

    Official

    Generate or repair a Scout test scaffold for a Kibana plugin/package (test/scout/{api,ui} Playwright configs, fixtures, example specs).

    21k GitHub stars~1.6k tokensUpdated today
    Testing & QAAuto-check passed

More from joeltelling/print-farm-manager

  • Ship

    joeltelling/print-farm-manager

    Finishing pass for any Print Farm Manager change. An agent skill from joeltelling/print-farm-manager.

    208 GitHub stars~1.2k tokensUpdated 4 days ago
    Auto-check passed
  • PR Review

    joeltelling/print-farm-manager

    Review a community pull request against Print Farm Manager's specific failure modes: adjacent-code drift, part-count integrity, driver contract compliance, docs completeness.

    208 GitHub stars~1.6k tokensUpdated 4 days ago
    Auto-check passed

Questions about Add Connector

What does Add Connector do?

Scaffold, register, test, and document a new printer brand driver (connector) end to end. Add Connector is an agent skill from joeltelling/print-farm-manager. Scaffold, register, test, and document a new printer brand driver (connector) end to end.

When should I use Add Connector?

Add Connector fits situations like: adding support for a new printer brand; reviewing a community driver PR for completeness.

How do I install Add Connector in Claude Code?

Run `npx skills add joeltelling/print-farm-manager --skill add-connector -a claude-code`. Or copy the skill folder (.claude/skills/add-connector in joeltelling/print-farm-manager) into .claude/skills/add-connector in your project. Claude Code loads it when a task matches its description.

How do I install Add Connector in Codex?

Run `npx skills add joeltelling/print-farm-manager --skill add-connector -a codex`. Or copy the skill folder (.claude/skills/add-connector in joeltelling/print-farm-manager) into .agents/skills/add-connector in your project. Codex loads it when a task matches its description.

Can I use Add Connector in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add joeltelling/print-farm-manager --skill add-connector -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-connector, .gemini/skills/add-connector, .github/skills/add-connector and .opencode/skills/add-connector in your project.

What does Add Connector need to run?

Going by SKILL.md and its folder, Add Connector needs the command-line tools its instructions call (npm).

Does Add Connector access the network?

SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.

Is Add Connector safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Add Connector use?

Add Connector is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Add Connector use?

About 1.9k tokens (SKILL.md is roughly 7.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Add Connector?

Skills that share tags, products or a category with Add Connector: Scaffolding (dotnet/efcore, 15k stars), Scaffold Element (remotion-dev/remotion, 63k stars), Power Apps Code App Scaffold (github/awesome-copilot, 40k stars) and API Connector Builder (affaan-m/ECC, 276k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Add Connector?

joeltelling (a GitHub user) maintains it in joeltelling/print-farm-manager, which has 208 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 6, 2026.

Source: joeltelling/print-farm-manager on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.