Agent skill

Ts4023 Effect Errors

by forcedotcom in forcedotcom/salesforcedx-vscode

Fix TS4023 when an exported Effect's error channel names a TaggedError from another module.

BSD-3-ClauseAuto-check passed

Install Ts4023 Effect Errors

skills CLI
$ npx skills add forcedotcom/salesforcedx-vscode --skill ts4023-effect-errors -a claude-code

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

GitHub CLI
$ gh skill install forcedotcom/salesforcedx-vscode ts4023-effect-errors --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/forcedotcom/salesforcedx-vscode.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/ts4023-effect-errors .claude/skills/ts4023-effect-errors && 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
ts4023-effect-errors
GitHub stars
1k
Token cost
~563 tokens
SKILL.md length
181 words
Files
1
Skills in repo
37
Repo updated
First seen
Licence
BSD-3-Clause

At a glance

Fix TS4023 when an exported Effect's error channel names a TaggedError from another module.

  • Works in 4 steps: Find unexported TaggedErrors in the… → export the class that appears in the… → Services public API — re-export from… → …
  • Tsc reports has
  • SKILL.md covers Fix (defining module → consumer), Knip after a required… and Checklist
  • Calls rg and npm

What it does

Ts4023 Effect Errors is an agent skill from forcedotcom/salesforcedx-vscode. Fix TS4023 when an exported Effect's error channel names a TaggedError from another module. Use when tsc reports "has or is using name 'X' from external module but cannot be named".

Its SKILL.md is about 560 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: Salesforce Extensions for VS Code. The licence is BSD-3-Clause.

When your agent uses it

  • Tsc reports has
  • Is using name X from external module but cannot be named

Example prompts

  • “has or is using name”
  • “from external module but cannot be named”
  • “/ts4023-effect-errors”

Workflow steps

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

  1. Find unexported TaggedErrors in the defining package (usually services)
  2. export the class that appears in the failing Effect's error channel
  3. Services public API — re-export from index.ts
  4. Compile the consumer that failed

What it can do on your machine

Read from SKILL.md and the folder at commit f7bb6fe. 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:

    • rg
    • npm

    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

Ts4023 Effect Errors loads about 563 tokens when it runs. Until then it costs about 51 tokens; SKILL.md has 181 words of instructions outside code blocks.

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

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 forcedotcom/salesforcedx-vscode at commit f7bb6fe, republished under its BSD-3-Clause licence (© forcedotcom). 181 words, ~563 tokens.

Download SKILL.mdSave it as .claude/skills/ts4023-effect-errors/SKILL.md (or your agent's skills folder).
name
ts4023-effect-errors
description
Fix TS4023 when an exported Effect's error channel names a TaggedError from another module. Use when tsc reports "has or is using name 'X' from external module but cannot be named".
review
never

TS4023 with Effect Error Types

TS4023 = exported Effect .d.ts names an error from another module that did not export it. Typical: a services method error leaks into a consumer command.

Export only that class. Same-file, catchTag'd, or absent from an exported signature → leave unexported (OrgNotDeletableError, ToastActionError).

TS4023 message is misleading: cites Effect internals (Channel, Sink, Stream from effect/Cause), not the missing error.

Fix (defining module → consumer)

  1. Find unexported TaggedErrors in the defining package (usually services):
bash
rg "class \w+Error extends (Data|Schema)\.TaggedError" packages/salesforcedx-vscode-services/src
  1. export the class that appears in the failing Effect's error channel:
typescript
export class EmptyComponentSetError extends Schema.TaggedError<EmptyComponentSetError>()('EmptyComponentSetError', {...}) {}
  1. Services public API — re-export from index.ts:
typescript
export type { EmptyComponentSetError } from './core/componentSetService';
  1. Compile the consumer that failed:
bash
npm run compile -w packages/salesforcedx-vscode-metadata

Knip after a required same-package export

TS4023 required export in a non-services package, knip flags it unused → tag:

typescript
/** @ExportTaggedError */
export class NoFilesRetrievedError extends Schema.TaggedError<NoFilesRetrievedError>()('NoFilesRetrievedError', {
  message: Schema.String
}) {}

Knip unused on a TaggedError with no TS4023 → unexport; do not tag.

Services errors are imported by other packages; knip already sees them used. No @ExportTaggedError there (no-export-tagged-error-in-services).

Checklist

  • TS4023 actually reported
  • Export only the class in the exported Effect's error channel
  • Services: export type { ErrorName } from index.ts
  • Consumer compile passes
  • @ExportTaggedError only if knip flags that export unused (never in services)

© forcedotcom, BSD-3-Clause. 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/ts4023-effect-errors of forcedotcom/salesforcedx-vscode.

Open the folder on GitHubat commit f7bb6fe

Compare with similar skills

Ts4023 Effect Errors 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.

Ts4023 Effect Errors compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ts4023 Effect Errors this skillforcedotcom/salesforcedx-vscode1k—~563Automated safety check: PassBSD-3-Clause
Effect And Errorslatitude-dev/latitude-llm4.7k—~2.3kAutomated safety check: PassMIT
Error Handlingaffaan-m/ECC274k1 repos~2.7kAutomated safety check: PassMIT
Wrdn Effect Typed ErrorsUsefulSoftwareCo/executor4.1k—~3kAutomated safety check: NotesMIT
Add Effectremotion-dev/remotion62k—~2.8kAutomated safety check: PassCustom licence
Error Handlingthedaviddias/Front-End-Checklist74k—~416Automated safety check: PassMIT

Similar skills

  • Effect And Errors

    latitude-dev/latitude-llm

    Composing Effect programs, domain errors, HttpError, repository error types, or error propagation at HTTP boundaries.

    4.7k GitHub stars~2.3k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Error Handling

    affaan-m/ECC

    Patterns for robust error handling across TypeScript, Python, and Go.

    274k GitHub starsUsed in 1 repo~2.7k tokens
    DevelopmentAuto-check passed
  • Wrdn Effect Typed Errors

    UsefulSoftwareCo/executor

    Fix lint findings that use untyped JavaScript error handling instead of Effect typed failures.

    4.1k GitHub stars~3k tokensUpdated today
    DevelopmentAuto-check: notes
  • Add Effect

    remotion-dev/remotion

    Official

    Add a new effect to @remotion/effects, including implementation, package exports, docs, demos, preview images, Remotion skill updates, formatting, and builds.

    62k GitHub stars~2.8k tokensUpdated today
    Media & CreativeAuto-check passed
  • Error Handling

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing scripts, client components, bundles, or runtime behavior related to Implement proper error handling.

    74k GitHub stars~416 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Error Handling

    affaan-m/ECC

    TypeScript、Python、Goにわたる堅牢なエラー処理のパターン。型付きエラー、エラー境界、リトライ、サーキットブレーカー、ユーザー向けエラーメッセージをカバーします。

    274k GitHub stars~2.4k tokensUpdated 2 days ago
    DevelopmentAuto-check passed

More from forcedotcom/salesforcedx-vscode

All 37 skills in this repo
  • Command UI

    forcedotcom/salesforcedx-vscode

    Command palette, CodeLens, context menus, package.nls titles, and NotificationModeService.

    1k GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Services Extension Consumption

    forcedotcom/salesforcedx-vscode

    Consume the salesforcedx-vscode-services extension API. An agent skill from forcedotcom/salesforcedx-vscode.

    1k GitHub stars~5k tokensUpdated today
    Auto-check passed
  • Changelog

    forcedotcom/salesforcedx-vscode

    Polish the automated CHANGELOG on develop before the next stable build.

    1k GitHub stars~3.3k tokensUpdated today
    Auto-check passed
  • Core Extension API

    forcedotcom/salesforcedx-vscode

    Public API exported by salesforcedx-vscode-core activate(). An agent skill from forcedotcom/salesforcedx-vscode.

    1k GitHub stars~842 tokensUpdated today
    Auto-check passed
  • Drivable Vscode

    forcedotcom/salesforcedx-vscode

    Operate a real VS Code instance through drivable-vscode. An agent skill from forcedotcom/salesforcedx-vscode.

    1k GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Effect Best Practices

    forcedotcom/salesforcedx-vscode

    Enforces Effect-TS patterns for services, errors, layers, atoms, and Effect.pipe composition.

    1k GitHub stars~6.2k tokensUpdated today
    Auto-check passed

Questions about Ts4023 Effect Errors

What does Ts4023 Effect Errors do?

Fix TS4023 when an exported Effect's error channel names a TaggedError from another module. Ts4023 Effect Errors is an agent skill from forcedotcom/salesforcedx-vscode. Fix TS4023 when an exported Effect's error channel names a TaggedError from another module.

When should I use Ts4023 Effect Errors?

Ts4023 Effect Errors fits situations like: tsc reports has; is using name X from external module but cannot be named.

How do I install Ts4023 Effect Errors in Claude Code?

Run `npx skills add forcedotcom/salesforcedx-vscode --skill ts4023-effect-errors -a claude-code`. Or copy the skill folder (.claude/skills/ts4023-effect-errors in forcedotcom/salesforcedx-vscode) into .claude/skills/ts4023-effect-errors in your project. Claude Code loads it when a task matches its description.

How do I install Ts4023 Effect Errors in Codex?

Run `npx skills add forcedotcom/salesforcedx-vscode --skill ts4023-effect-errors -a codex`. Or copy the skill folder (.claude/skills/ts4023-effect-errors in forcedotcom/salesforcedx-vscode) into .agents/skills/ts4023-effect-errors in your project. Codex loads it when a task matches its description.

Can I use Ts4023 Effect Errors 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 forcedotcom/salesforcedx-vscode --skill ts4023-effect-errors -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ts4023-effect-errors, .gemini/skills/ts4023-effect-errors, .github/skills/ts4023-effect-errors and .opencode/skills/ts4023-effect-errors in your project.

What does Ts4023 Effect Errors need to run?

Going by SKILL.md and its folder, Ts4023 Effect Errors needs the command-line tools its instructions call (rg and npm).

Does Ts4023 Effect Errors 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 Ts4023 Effect Errors 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 Ts4023 Effect Errors use?

Ts4023 Effect Errors is published under the BSD-3-Clause licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Ts4023 Effect Errors use?

About 563 tokens (SKILL.md is roughly 2.3k 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 Ts4023 Effect Errors?

Skills that share tags, products or a category with Ts4023 Effect Errors: Effect And Errors (latitude-dev/latitude-llm, 4.7k stars), Error Handling (affaan-m/ECC, 274k stars), Wrdn Effect Typed Errors (UsefulSoftwareCo/executor, 4.1k stars) and Add Effect (remotion-dev/remotion, 62k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ts4023 Effect Errors?

forcedotcom (a GitHub organization) maintains it in forcedotcom/salesforcedx-vscode, which has 1,035 GitHub stars. The repository holds 37 skills in this directory. The repository was last updated on October 7, 2026.

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