Get from a fresh clone of Portwood to a working, fully-tested Salesforce org.

Apache-2.0Auto-check passedSales & Support

Install Dev Setup

skills CLI
$ npx skills add Portwood-Global-Solutions/Portwood --skill dev-setup -a claude-code

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

GitHub CLI
$ gh skill install Portwood-Global-Solutions/Portwood dev-setup --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/Portwood-Global-Solutions/Portwood.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/dev-setup .claude/skills/dev-setup && 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
dev-setup
GitHub stars
126
Token cost
~1.1k tokens
SKILL.md length
456 words
Files
1
Skills in repo
7
Repo updated
First seen
Licence
Apache-2.0

At a glance

Get from a fresh clone of Portwood to a working, fully-tested Salesforce org.

  • Works in 6 steps: Creates the scratch org --no-namespace,… → Deploys force-app. → Assigns DocGen_Admin and DocGen_User —… → …
  • Setting up a development environment
  • SKILL.md covers Prerequisites, Stand up an org, One manual step the script… and Verify it worked, plus 2 more sections
  • Calls npm and sf

What it does

Dev Setup is an agent skill from Portwood-Global-Solutions/Portwood. Get from a fresh clone of Portwood to a working, fully-tested Salesforce org. Use when setting up a development environment, creating a scratch org, onboarding to the project, or when org setup fails with permission or "No such column" errors.

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

It sits in Sales & Support, covering CRM management. It works with Salesforce. The repository describes itself as: Free, native document generation for Salesforce. PDF, DOCX, XLSX, PPTX — merge tags, images, barcodes, QR codes, bulk generation, Flow actions. 100% Apex + LWC, zero external… The licence is Apache-2.0.

When your agent uses it

  • Setting up a development environment
  • Creating a scratch org
  • Onboarding to the project
  • Org setup fails with permission

Example prompts

  • “No such column”
  • “/dev-setup”

Requirements

  • Node.js

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Creates the scratch org --no-namespace, so the e2e scripts' bare class and
  2. Deploys force-app.
  3. Assigns DocGen_Admin and DocGen_User — after the deploy.
  4. Deploys the QA-only host page, so docGenRunner and docGenSignatureSender are
  5. Sets org defaults that stop testing stalling on infrastructure — above all
  6. Seeds the Account and the Verify — Designer template the smoke suite opens.

What it can do on your machine

Read from SKILL.md and the folder at commit ea3fe9f. 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
    • sf

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

  • Network

    No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.

    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

Dev Setup loads about 1.1k tokens when it runs. Until then it costs about 63 tokens; SKILL.md has 456 words of instructions outside code blocks.

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

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 Portwood-Global-Solutions/Portwood at commit ea3fe9f, republished under its Apache-2.0 licence (© Portwood-Global-Solutions). 456 words, ~1,097 tokens.

Download SKILL.mdSave it as .claude/skills/dev-setup/SKILL.md (or your agent's skills folder).
name
dev-setup
description
Get from a fresh clone of Portwood to a working, fully-tested Salesforce org. Use when setting up a development environment, creating a scratch org, onboarding to the project, or when org setup fails with permission or "No such column" errors.

Setting up a Portwood dev environment

Two commands. If either fails, the causes are almost always in the gotchas below.

Prerequisites

  • Salesforce CLI (sf)
  • A DevHub org (a Developer Edition org works)
  • Node 18+ and npm install run once, for prettier and the QA harness

Stand up an org

bash
npm install          # once — prettier + QA harness deps
npm run org:new      # creates the `docgen-verify` scratch org and configures it end to end

To use an org you already have:

bash
npm run org:setup -- my-existing-org

scripts/qa/setup-org.sh is idempotent — safe to re-run against a live org. It takes an org from nothing to fully testable:

  1. Creates the scratch org --no-namespace, so the e2e scripts' bare class and field references compile.
  2. Deploys force-app.
  3. Assigns DocGen_Admin and DocGen_User — after the deploy.
  4. Deploys the QA-only host page, so docGenRunner and docGenSignatureSender are actually placed on a record page. The package ships no FlexiPage on purpose; without this there is nowhere for a browser test to reach them.
  5. Sets org defaults that stop testing stalling on infrastructure — above all Signature_Skip_Email_Verification__c, and reminders OFF.
  6. Seeds the Account and the Verify — Designer template the smoke suite opens.

One manual step the script cannot do

Setup → Release Updates → "Use the Visualforce PDF Rendering Service for Blob.toPdf() Invocations" → Enable.

Without it, PDF output is wrong in ways that look like template bugs.

Verify it worked

bash
npm run qa                  # every suite, against docgen-verify

Exit code is 0 only when every evaluated check passed. See the run-tests skill for the full set of options.

Gotchas that cost the most time

"No such column" on a field that plainly exists

The permission set was not assigned, or was assigned before the deploy. Anonymous Apex enforces FLS, so a missing permset makes deployed fields look like corrupted metadata. Assign DocGen_Admin after deploying, then retry. This is the single most common false alarm.

Show full SKILL.md (177 more words)Show less
The org must be --no-namespace

Source-deploy has to land in the default namespace or the e2e scripts' bare class and field references won't compile. setup-org.sh already does this; if you create an org by hand, pass --no-namespace.

Namespace bugs are invisible in a dev org

Lightning Web Security's per-namespace sandbox distorts DOM nodes, and getPopulatedFieldsAsMap / raw SObject keys come back namespace-prefixed in a subscriber org. Neither reproduces in a no-namespace scratch org. If you're touching LWC DOM handling or reading SObject fields in JS, that class of bug can only be caught in a namespaced package install.

Don't run a bare sf apex run test

It triggers an org-wide run that locks ContentFolder and takes far longer than you want. Always scope it:

bash
sf apex run test --target-org docgen-verify --tests DocGenServiceTest --wait 15

Where things live

PathWhat
force-app/main/default/classes/Apex — the merge engine, controllers, services
force-app/main/default/lwc/Lightning Web Components — designer, runner, canvas
scripts/e2e-*.apexAnonymous-Apex end-to-end suite
scripts/qa/The one-command QA harness and its suites
docs/Reference templates (SurveyChartExample.html is canonical for charts)
TRIAGE.mdPriority rubric
CLAUDE.mdCritical engine constraints — read before touching the merge or PDF pipeline

© Portwood-Global-Solutions, Apache-2.0. 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/dev-setup of Portwood-Global-Solutions/Portwood.

Open the folder on GitHubat commit ea3fe9f

Compare with similar skills

Dev Setup 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.

Dev Setup compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Dev Setup this skillPortwood-Global-Solutions/Portwood126—~1.1kAutomated safety check: PassApache-2.0
Education Cloud Multi Campus Configureforcedotcom/sf-skills1.1k—~5.4kAutomated safety check: NotesApache-2.0
Soql Lib Query Builderbeyond-the-cloud-dev/soql-lib154—~4.3kAutomated safety check: PassMIT
Sf DatacloudJaganpro/sf-skills424—~2.7kAutomated safety check: PassMIT
Soql Lib Selectorbeyond-the-cloud-dev/soql-lib154—~2kAutomated safety check: PassMIT
Sf FlowJaganpro/sf-skills424—~1.8kAutomated safety check: PassMIT

Similar skills

  • A skill your agent uses when a Salesforce Administrator needs to create OR maintain an institutional hierarchy for Education Cloud by parsing organizational structure from a PDF, URL, text, or CSV.

    1.1k GitHub stars~5.4k tokensUpdated 2 days ago
    Sales & SupportAuto-check: notes
  • Soql Lib Query Builder

    beyond-the-cloud-dev/soql-lib

    Builds Salesforce SOQL queries using the SOQL Lib fluent builder API (SOQL.cls).

    154 GitHub stars~4.3k tokensUpdated 6 days ago
    Sales & SupportAuto-check passed
  • Sf Datacloud

    Jaganpro/sf-skills

    Salesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows.

    424 GitHub stars~2.7k tokensUpdated 5 mo ago
    Sales & SupportAuto-check passed
  • Soql Lib Selector

    beyond-the-cloud-dev/soql-lib

    Creates Salesforce Apex selector classes using the SOQL Lib selector pattern.

    154 GitHub stars~2k tokensUpdated 6 days ago
    Sales & SupportAuto-check passed
  • Sf Flow

    Jaganpro/sf-skills

    Creates and validates Salesforce Flows with 110-point scoring.

    424 GitHub stars~1.8k tokensUpdated 5 mo ago
    Sales & SupportAuto-check passed
  • Apply a Salesforce sandbox post-copy automation JSON config against a target org.

    1.1k GitHub stars~5.3k tokensUpdated 2 days ago
    Sales & SupportAuto-check: notes

More from Portwood-Global-Solutions/Portwood

  • Canvas Designer

    Portwood-Global-Solutions/Portwood

    Work on Portwood's Canvas designer (docGenCanvas LWC and canvasModel.js).

    126 GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • HTML Template Authoring

    Portwood-Global-Solutions/Portwood

    Author or repair a Portwood HTML template that renders correctly through Blob.toPdf (Flying Saucer).

    126 GitHub stars~1.6k tokensUpdated today
    Auto-check passed
  • Triage Report

    Portwood-Global-Solutions/Portwood

    Decide whether a Portwood bug report is a real code defect or a template-authoring problem, before any code is written.

    126 GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Fix Merge Tag

    Portwood-Global-Solutions/Portwood

    Fix a Portwood merge-tag or parser bug correctly across all of its resolution paths.

    126 GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Managed Package Rules

    Portwood-Global-Solutions/Portwood

    Constraints that only bite in a real managed-package install of Portwood — global visibility, Flow Apex-Defined types, namespace-prefixed keys, USERMODE on internal reads, immutable API names.

    126 GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Run Tests

    Portwood-Global-Solutions/Portwood

    Run Portwood's test suites — the one-command QA harness, the anonymous-Apex e2e scripts, Apex unit tests, prettier, and Code Analyzer.

    126 GitHub stars~1.6k tokensUpdated today
    Auto-check passed

Works with

Questions about Dev Setup

What does Dev Setup do?

Get from a fresh clone of Portwood to a working, fully-tested Salesforce org. Dev Setup is an agent skill from Portwood-Global-Solutions/Portwood. Get from a fresh clone of Portwood to a working, fully-tested Salesforce org.

When should I use Dev Setup?

Dev Setup fits situations like: setting up a development environment; creating a scratch org; onboarding to the project; org setup fails with permission.

How do I install Dev Setup in Claude Code?

Run `npx skills add Portwood-Global-Solutions/Portwood --skill dev-setup -a claude-code`. Or copy the skill folder (.claude/skills/dev-setup in Portwood-Global-Solutions/Portwood) into .claude/skills/dev-setup in your project. Claude Code loads it when a task matches its description.

How do I install Dev Setup in Codex?

Run `npx skills add Portwood-Global-Solutions/Portwood --skill dev-setup -a codex`. Or copy the skill folder (.claude/skills/dev-setup in Portwood-Global-Solutions/Portwood) into .agents/skills/dev-setup in your project. Codex loads it when a task matches its description.

Can I use Dev Setup 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 Portwood-Global-Solutions/Portwood --skill dev-setup -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dev-setup, .gemini/skills/dev-setup, .github/skills/dev-setup and .opencode/skills/dev-setup in your project.

What does Dev Setup need to run?

Going by SKILL.md and its folder, Dev Setup needs the command-line tools its instructions call (npm and sf). Our summary lists: Node.js.

Does Dev Setup access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Dev Setup 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 Dev Setup use?

Dev Setup is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Dev Setup use?

About 1.1k tokens (SKILL.md is roughly 4.4k 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 Dev Setup?

Skills that share tags, products or a category with Dev Setup: Education Cloud Multi Campus Configure (forcedotcom/sf-skills, 1.1k stars), Soql Lib Query Builder (beyond-the-cloud-dev/soql-lib, 154 stars), Sf Datacloud (Jaganpro/sf-skills, 424 stars) and Soql Lib Selector (beyond-the-cloud-dev/soql-lib, 154 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Dev Setup?

Portwood-Global-Solutions (a GitHub organization) maintains it in Portwood-Global-Solutions/Portwood, which has 126 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 9, 2026.

Source: Portwood-Global-Solutions/Portwood on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.