Skip to content
Skills Library
Programming · Building & coding

sf-work

/sf-work

Implement Salesforce work from a plan or prompt (Apex, LWC, Flow, metadata). Use for 'build this', 'implement the plan', 'simplify', 'optimize CPU/SOQL', worktrees, todos, handoff.

Licence
MIT
Last repository change
21.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
20
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 21.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Implement Salesforce work from a plan or prompt (Apex, LWC, Flow, metadata). Use for 'build this', 'implement the plan', 'simplify', 'optimize CPU/SOQL', worktrees, todos, handoff.

Triggers from the description

build thisimplement the plansimplifyoptimize CPU/SOQL

Arguments

/sf-work [mode:simplify|optimize|worktree|todos|handoff] [plan path or feature description]
Original author description

Implement Salesforce work from a plan or prompt (Apex, LWC, Flow, metadata). Use for 'build this', 'implement the plan', 'simplify', 'optimize CPU/SOQL', worktrees, todos, handoff.

How it works

  1. Modes
  2. Required reads
  3. Copy-paste-to-agent
  4. Interaction Method
  5. Goal
Original SKILL.md headings · 74 lines, 665 words
SKILL.md preview
---
name: sf-work
tier: discipline-gate
description: "Implement Salesforce work from a plan or prompt (Apex, LWC, Flow, metadata). Use for 'build this', 'implement the plan', 'simplify', 'optimize CPU/SOQL', worktrees, todos, handoff."
argument-hint: "[mode:simplify|optimize|worktree|todos|handoff] [plan path or feature description]"
---

# /sf-work

## Modes

First argument `mode:<name>` selects a mode; everything after it passes to that mode's guide. Load only the guide for the chosen mode.

| Mode | Use for | Guide |
|---|---|---|
| `(none)` | Implement against a plan or prompt, test-first | this file |
| `simplify` | Simplify recently changed code | `references/simplify/guide.md` |
| `optimize` | Metric-driven optimization loop (CPU, SOQL, heap) | `references/optimize/guide.md` |
| `worktree` | Create or manage isolated git worktrees | `references/worktree/guide.md` |
| `todos` | File-based task tracking in `todos/` | `references/todos/guide.md` |
| `handoff` | Write or resume a session handoff | `references/handoff/guide.md` |
| `dispatch` | Reference: how skills dispatch personas/lenses as subagents | `references/dispatch/guide.md` |

> **Persona dispatch.** This skill dispatches personas as isolated subagents — see `references/dispatch/guide.md` for the mechanics (isolated subagents, same-response parallelism, same-file-conflict check). Review personas are referenced from `../sf-review/references/personas/`, research personas from `../sf-plan/references/personas/`.

> **Principles enforced:** 1 (preserve the quality ceiling), 2 (verifiability), 3 (jagged intelligence). See `PRINCIPLES.md`.

## Required reads

Procedure lives in sibling files, not only in this orchestrator:

- **Step 0: Pre-Implementation Research (parallel)** — read `references/step-0-pre-implementation-research-parallel.md` before acting on this section.
- **Step 1: Route via Indexes** — read `references/step-1-route-via-indexes.md` before acting on this section.
- **Step 2: Internal-First Implementation** — read `references/step-2-internal-first-implementation.md` before acting on this section.
- **Step 2.5: Test-First (Red → Green → Refactor)** — read `references/step-2-5-test-first-red-green-refactor.md` before acting on this section.
- **Step 3: Implementation Standards** — read `references/step-3-implementation-standards.md` before acting on this section.
- **Step 4: System-Wide Test Check** — read `references/step-4-system-wide-test-check.md` before acting on this section.
- **Step 5: Incremental Commits** — read `references/step-5-incremental-commits.md` before acting on this section.
- **Output** — read `references/output.md` before acting on this section.
- **After Implementation** — read `references/after-implementation.md` before acting on this section.

## Copy-paste-to-agent

```
Implement a Salesforce feature against an existing plan. Before writing code, dispatch
sf-learnings-researcher and sf-repo-research-analyst in parallel. Then write code AND tests
together — verification is not a follow-up. Before declaring complete, answer all five
System-Wide Test Check questions: trigger contexts, bulk at 200+, governor limits, sharing,
integration mocks. If the plan has a Verification Strategy section, the implementation must
satisfy every field; do not relax it.
```

\<feature\_description>
\#$ARGUMENTS
\</feature\_description>

## Interaction Method

When asking the user a question, use the platform's blocking question tool: `AskUserQuestion` in Claude Code (call `ToolSearch` with `select:AskUserQuestion` first if its schema isn't loaded), `request_user_input` in Codex, `ask_user` in Gemini. Fall back to numbered options in chat only when no blocking tool exists in the harness or the call errors. Never silently skip the question.

Ask one question at a time. Prefer a concise single-select choice when natural options exist.

You are implementing a Salesforce feature with parallel persona support and built-in quality checks.

## Goal

Implement the feature described in: `$ARGUMENTS.plan`

If a plan file path is provided, read it first. If a description is provided, implement directly.

**Bundled reference loading is fail-closed.** Resolve every path under this skill's `references/` from this `SKILL.md` directory. If a required file cannot be read, stop and report the missing reference instead of approximating.

**Writable checkout.** Repo-local implementation writes need a git checkout you can edit. If this session has no writable checkout, but the user named a repository and the harness exposes a remote repo-work surface, run the work on that surface. Otherwise skip repo-local writes and report that no writable checkout is available.

**Do not ask which branch to start on** when already on a meaningful feature branch. After implementation, invoke `/sf-review`. Critical/High security findings abort `/sf-lfg` (Principle 1) — they are not warnings.

**Branch and pre-work scope.** If you are on the default branch, detached, or on a generated name, create a feature branch from the work and continue. Do not ask. Before the first edit, record `git status --short --untracked-files=all`. Later commits stay path-limited and leave those pre-existing dirty paths out unless a unit must edit one of them; then ask once, covering those files together.

***
Files in this package (20)
  • SKILL.md 5 KB
  • references/after-implementation.md 2 KB
  • references/output.md 1 KB
  • references/step-0-pre-implementation-research-parallel.md 1 KB
  • references/step-1-route-via-indexes.md 1 KB
  • references/step-2-5-test-first-red-green-refactor.md 1 KB
  • references/step-2-internal-first-implementation.md 1 KB
  • references/step-3-implementation-standards.md 1 KB
  • references/step-4-system-wide-test-check.md 3 KB
  • references/step-5-incremental-commits.md 1 KB
  • references/dispatch/guide.md 3 KB
  • references/handoff/guide.md 1 KB
  • references/handoff/references/create.md 8 KB
  • references/handoff/references/resume.md 5 KB
  • references/handoff/references/route-the-invocation.md 1 KB
  • references/optimize/guide.md 2 KB
  • references/simplify/guide.md 5 KB
  • references/todos/guide.md 4 KB
  • references/todos/assets/todo-template.md 1 KB
  • references/worktree/guide.md 2 KB

Versions

The database has no other skills named sf-work.

Database snapshot: 13.11.2026 · package version b5a54bd9977e (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90salesforce
    Salesforce done right: bulk-safe Apex within limits, sharing enforced, tests that assert behavior, LWC with loading, empty and error. Use for Apex, LWC, SOQL, sf deploys.
  • 100salesforce-developer
    Use when building, modifying, or deploying any Salesforce platform solution — Apex classes, Lightning Web Components, SOQL queries, Flows, Metadata API deployments, scratch org configuration, Salesforce CLI automation, or Agentforce DX agent metadata. Invoke for any core…
  • 100salesforce-apex-lwc-code-review-skill
    Use this skill when Salesforce Apex classes, triggers, Lightning Web Components (LWC), or async jobs (Queueable, Batch, Future, Schedulable) must be reviewed for security vulnerabilities and governor-limit risk. Flags: SOQL and DML inside loops, missing test coverage patterns,…
  • 90sf-know
    Salesforce platform knowledge on demand: governor limits, Apex/LWC/Flow patterns, security (CRUD/FLS, sharing), integrations, GraphQL, Hosted MCP, agent-native design. Use when a question needs platform facts.
  • 100salesforce-specialist
    Use for any Salesforce question — Apex, SOQL, LWC, Flows, integrations, governor limits, DevOps, Einstein AI, Shield. Assumes Parker Harris (Salesforce co-founder) persona. Enforces SOQL-in-files discipline via salesforce-guard. Spawns search agent when 'latest', 'new feature',…
  • 100salesforce-developer
    Writes and debugs Apex code, builds Lightning Web Components, optimizes SOQL queries, implements triggers, batch jobs, platform events, and integrations on the Salesforce platform. Use when developing Salesforce applications, customizing CRM workflows, managing governor limits,…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.