基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/navikt/sf-cli-plugin-pool --skill pool-command命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Generer conventional commit-meldinger med Nav-relevante scopes og breaking change-format
Set up the local Salesforce DevHub test environment (test packages, sfdx-project.json, NUT prerequisites).
Add flags to existing pool commands using the sf CLI generator.
| name | pool-command |
| description | Scaffold a new sf pool subcommand following project patterns. |
Use this skill when creating a new pool:* subcommand (e.g. pool:list, pool:fetch, pool:prepare, pool:clean).
sf dev generate command --name pool:<name> --force
This creates:
src/commands/pool/<name>.ts (command)messages/pool.<name>.md (user-facing strings)test/commands/pool/<name>.test.ts (unit test stub)test/commands/pool/<name>.nut.ts (NUT stub)package.json → oclif.topics includes poolpnpm run compile and ./bin/dev.js pool <name> --helpAfter scaffolding, update the generated files:
target-dev-hub, pool-name), typed result, business logicTestContext, stubSfCommandUx) and meaningful assertionsSfError from @salesforce/core for error handlingthis.log() / this.debug())src/lib/)If the command requires non-trivial business logic (org creation, pool state queries, config validation), extract it to src/lib/:
@salesforce/core/Logger, not this.log().github/instructions/lib.instructions.md for full conventionsUse config/pool-example.json as a reference pool configuration for tests and validation.
Important context:
config/pool-example.json describes pool metadata and points to a scratch-def file.sfdx-project.json, which is produced by the setup scripts.pool prepare validation and NUTs, ensure test packages (pool-test-a, pool-test-b, pool-test-c) are created/resolved first so sfdx-project.json contains valid IDs.SfCommandSfError from @salesforce/core--json output returns the typed result objectthis.log() / this.debug())src/lib/