Portwood: Skill for Claude Code

.claude/skills/dev-setup/SKILL.md

dev-setup is a skill for Claude Code from Portwood-Global-Solutions/Portwood. It costs 54 tokens per session (967 once invoked), scanned A, original, Apache-2.0.

A setup guide for taking a fresh Portwood clone to a working Salesforce development organisation, including a scratch org and its test configuration.

In plain words
What is it for?
Use it when starting development, creating or reusing an org, onboarding a contributor, or repairing setup errors such as missing permissions or fields.
Why use it?
It avoids common setup failures by installing dependencies, deploying the project, assigning permissions, and adding the pages and defaults that tests need.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

This is Portwood-Global-Solutions/Portwood's own configuration. It tells Claude Code how to work on Portwood itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Portwood configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Portwood-Global-Solutions/Portwood. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Portwood-Global-Solutions/Portwood/main/.claude/skills/dev-setup/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Portwood-Global-Solutions/Portwood

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dev-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/portwood-global-solutions/portwood/dev-setup/github.svg)](https://agentmods.dev/skills/portwood-global-solutions/portwood/dev-setup)
Your own site
<a href="https://agentmods.dev/skills/portwood-global-solutions/portwood/dev-setup"><img src="https://agentmods.dev/badge/skills/portwood-global-solutions/portwood/dev-setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dev-setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/portwood-global-solutions/portwood/dev-setup"><img src="https://agentmods.dev/badge/skills/portwood-global-solutions/portwood/dev-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 967 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.00967
Opus 5 $0.00027 $0.00483
Sonnet 5 $0.00011 $0.00193
Haiku 4.5 $0.00005 $0.00097

Measured 11d ago against content hash 83e512f82643, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

dev-setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/dev-setup/SKILL.md · 102 lines

How it starts

The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

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:

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_Userafter 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

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.

Read the full file on GitHub · 102 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 102 lines · 54 tokens per session scan A 83e512f82643

Subscribe to this mod's changes

dev-setup is a skill published in the GitHub repository Portwood-Global-Solutions/Portwood (120 stars, last pushed yesterday), licensed Apache-2.0. It adds 54 tokens to every session and 967 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

docx_skill

Word document generation, supports headings/paragraphs/tables, generates professional format reports.

sunchaokun/zensers · 20 tokens

anthropics-office-skills

A local collection of documentation skills for Anthropic office tools, with instructions for cloning and installing only the needed files.

AvalonLee/AstraCraft-Program · 0 tokens

officecli

A command-line tool for reading, writing, and editing Word, Excel, and PowerPoint files without Microsoft Office installed. A command-line tool is controlled by typed commands or by software rather than by clicking through an app.

AvalonLee/AstraCraft-Program · 0 tokens

nebula-logger-install

Use this skill when the user wants to install and configure Nebula Logger in a Salesforce org for the first time. Covers package selection, installation paths, permissions, LoggerSettingsc hierarchy, and first-run troubleshooting.

jongpie/NebulaLogger · 49 tokens

nebula-logger-best-practices

Use this skill when the user wants to review, harden, or standardize Nebula Logger usage across a Salesforce team. Covers operational logging standards, environment-aware settings, limit-aware design, and governance guardrails.

jongpie/NebulaLogger · 52 tokens

hermesoffice-decks

Produce presentations in HermesOffice Slides — the plandeck/generatedeck pipeline, native element editing, and the templates/decks style specs (modern, elegant, professional, keynote-speaker, minimal, tech-dark, investor-pitch, workshop). Load for any request that creates or restyles a deck.

criptogus/HermesOffice · 68 tokens