effect-language-service-cc
- Repo stars 0
- Author updated Live
- Author repo skills-registry
- Domain
- AI
- Compatible agents
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- Trust score
- 88 / 100 · community maintained
- Author / version / license
- @tomevault-io · no license declared
- Token usage
- Lean
- Setup complexity
- Plug-and-play
- External API key
- Not required
- Operating systems
- macOS · Linux · Windows
- Runtime requirements
- Bun
- Permissions
-
- Read-only
- Write / modify
- Network behavior
- Local-only
- Install commands
- 26 variants
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: effect-language-service-cc
description: > Use when this capability is needed. Operational guide for @effect/language-service CLI and con…
category: ai
runtime: Bun
---
# effect-language-service-cc output preview
## PART A: Task fit
- Use case: > Use when this capability is needed. Operational guide for @effect/language-service CLI and configuration. This skill handles For architecture decisions about when/how to use Effect, see effect-usage-cc instead. runs entirely locally; runs on Bun. Works with Claude Code, Cursor, Cline and 23 more..
- Inputs: target material, constraints, expected output, and acceptance criteria.
- Evidence boundary: follow “Command Decision Table / Interpreting Output / Diagnostic format” and do not present inference as author intent.
## PART B: Execution result
- **01** The card summarizes the use case; runtime output centers on “> Use when this capability is needed. Operational guide for @effect/language-service CLI and configuration. This skill handles For architecture decisions about when/how to use Effect, see effect-usage-cc instead. runs entirely locally; runs on Bun. Works with Claude Code, Cursor, Cline and 23 more.”.
- **02** When the source has headings, the agent prioritizes “Command Decision Table / Interpreting Output / Diagnostic format” so the result follows the author’s structure.
- **03** Typical output includes task judgment, concrete steps, required commands or file edits, validation, and follow-up options.
- **04** Risk context follows the fingerprint: read files, write/modify files; mostly runs locally; usually needs no extra API key.
## Running Rules
- read files, write/modify files; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding scope.
- Return the result, validation criteria, and next iteration options. The source mentions slash commands such as `/tmp`; use them first when your agent supports command triggers.
Name target files or source material, expected output, forbidden changes, and whether network or shell access is allowed. Permission fingerprint: read files, write/modify files.
Start with a small task and check whether the result follows “Command Decision Table / Interpreting Output / Diagnostic format”. Inspect diffs, logs, previews, or tests before expanding scope.
Confirm the final output includes a concrete result, evidence, and next action. If it stays generic, tighten inputs, boundaries, and acceptance criteria.
---
name: effect-language-service-cc
description: > Use when this capability is needed. Operational guide for @effect/language-service CLI and con…
category: ai
source: tomevault-io/skills-registry
---
# effect-language-service-cc
## When to use
- > Use when this capability is needed. Operational guide for @effect/language-service CLI and configuration. This skill…
- Use it when the task has clear inputs, repeatable steps, and validation criteria.
## What to provide
- Target material, scope, expected result, and forbidden changes.
- Whether network, commands, file writes, or external services are allowed.
## Execution rules
- Organize steps around “Command Decision Table / Interpreting Output / Diagnostic format” and keep inference separate from source facts.
- read files, write/modify files; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding the task.
## Output requirements
- Return the deliverable, key evidence, validation method, and next action.
- Mark missing information as unknown; do not invent commands, platforms, or dependencies. The author source anchors workflow facts; repository files anchor sources and commands; Fluxly only adds fit, limitations, and quality judgment.
skill "effect-language-service-cc" {
input -> user goal + target files + boundaries + acceptance criteria
context -> Command Decision Table / Interpreting Output / Diagnostic format
rules -> SKILL.md triggers / order / output contract
runtime -> Bun | read files, write/modify files | mostly runs locally
guardrails -> usually needs no extra API key + small-sample validation + diff/log review
output -> copyable result + checklist + next iteration
} Effect Language Service
Operational guide for @effect/language-service CLI and configuration. This skill handles
tooling: running commands, interpreting output, applying fixes, configuring projects.
For architecture decisions about when/how to use Effect, see effect-usage-cc instead.
Command Decision Table
Always run from the project root via the local binary (bunx effect-language-service or
./node_modules/.bin/effect-language-service). Commands like check resolve paths relative
to cwd — running from a subdirectory breaks them.
| Intent | Command | Key flags |
|---|---|---|
| Check for Effect issues | diagnostics --project tsconfig.json |
--format pretty human, --format json parseable |
| Check single file | diagnostics --file <path> |
Faster than full project scan |
| See available fixes | quickfixes --project tsconfig.json |
--code <rule> filter by rule |
| Fix specific issue | quickfixes --file <path> --line <n> --fix <fixName> |
Shows diff to apply |
| Generate from directives | codegen --project tsconfig.json |
--force regenerates all |
| Understand project structure | overview --project tsconfig.json |
--max-symbol-depth 2 (depth 3 adds noise) |
| Analyze layer composition | layerinfo --file <path> --name <Layer> |
Outputs composition order |
| Check TS patch status | check |
Verifies patch version |
| Patch TypeScript for tsc | patch |
--force re-patches |
| Interactive setup | setup |
Wizard for first-time config |
| Configure rule severities | config |
Interactive severity editor |
| CI gate | diagnostics --format github-actions --strict |
Non-zero exit on warnings |
Interpreting Output
Diagnostic format
src/service.ts:42:3 effect(floatingEffect): This Effect is not yielded or assigned
Structure: file:line:col effect(ruleName): message. The ruleName maps directly to the
diagnosticSeverity config key in tsconfig.json and to the inline suppression syntax.
Quickfix format
Output: diagnostic line followed by one or more unified diffs per available fix. Each fix
has a fixName (e.g., floatingEffect_yieldStar) that can be used with --fix to filter.
Severity levels
- error — Must fix. Blocks CI (always non-zero exit)
- warning — Should fix. Blocks CI only with
--strict - message/suggestion — Informational. Never blocks CI even with
--strict(emits::noticein github-actions format, not::error). Only blocks tsc ifincludeSuggestionsInTscenabled
Key Workflows
Fix all issues in a file
# 1. See what's wrong
effect-language-service diagnostics --file src/service.ts --format pretty
# 2. See available fixes with diffs
effect-language-service quickfixes --file src/service.ts
# 3. Filter to a specific rule
effect-language-service quickfixes --file src/service.ts --code floatingEffect
Review the diffs before applying. Correctness fixes (floatingEffect, missingReturnYieldStar) are safe to apply. Style fixes (effectMapVoid, unnecessaryPipe) are preferences — check project conventions.
Onboard a new project
# 1. Interactive setup (patches TS, configures tsconfig)
effect-language-service setup
# 2. Persist patch across installs
# Add to package.json scripts: "prepare": "effect-language-service patch"
# 3. Baseline scan
effect-language-service diagnostics --project tsconfig.json --format pretty
LLM context generation
overview and layerinfo produce text output (no --format json — only diagnostics
supports --format). Both emit ANSI spinner noise that must be stripped.
Clean extraction pattern (use for all text-output commands):
# Strip ANSI codes and spinner lines from any ELS text command
els_clean() {
effect-language-service "$@" 2>/dev/null \
| sed 's/\x1b\[[0-9;]*m//g' \
| grep -v "^Processing file"
}
# Project map: services, layers, yieldable errors
els_clean overview --project tsconfig.json --max-symbol-depth 2
# Specific layer: provides, requires, composition order
els_clean layerinfo --file src/layers.ts --name AppLayer
# Full snapshot: overview + diagnostics + quickfixes in one shot
els_clean overview --project tsconfig.json --max-symbol-depth 2 > /tmp/els-overview.txt
effect-language-service diagnostics --project tsconfig.json --format json > /tmp/els-diag.json
els_clean quickfixes --project tsconfig.json > /tmp/els-fixes.txt
overview groups exports into "Yieldable Errors", "Services", "Layers" with file+line,
type info, and JSDoc. Warning: each symbol appears at every re-export point (barrel
files, index.ts). Deduplicate by source file:line — expect ~40% noise from duplicates
in large projects.
layerinfo outputs a suggested Layer.provide / Layer.provideMerge composition.
Requires a named, exported Layer — anonymous or inline layers are not supported.
Tip: write all layers in Layer.mergeAll(...), run layerinfo, use the suggested order.
Guardrails
Scope your scans — Use
--filewhen working on a single file. Full--projectscans are slow in large codebases and produce noise from files you're not touching.Review quickfix diffs — Correctness fixes are generally safe. Style fixes may conflict with project conventions. Anti-pattern fixes sometimes need manual adjustment.
Monorepo tsconfig — Always specify
--projectexplicitly. Without it, ELS infers the tsconfig which may be wrong in monorepos with multiple configs.codegen --force caution — Regenerates ALL directives in the project. Use
--fileto scope to a single file. Manual edits to generated blocks will be overwritten.Patch persistence — The TS patch modifies
node_modules/typescript/. It disappears afternpm install/bun install. Use"prepare": "effect-language-service patch"to persist it.diagnostics vs tsc — Without patching,
tscdoes NOT run Effect diagnostics. ThediagnosticsCLI command works without patching. The patch is only needed fortscintegration and IDE features.ANSI spinner pollution —
overview,layerinfo, andquickfixesemit ANSI escape codes and "Processing file" spinner lines mixed into stdout. Always pipe through theels_cleanpattern (strip ANSI + filter spinner) when capturing output programmatically.--format is diagnostics-only — Only
diagnosticssupports--format json|text|pretty|github-actions. All other commands (overview,layerinfo,quickfixes,codegen) output unstructured text. Do not waste time trying--formaton them.codegen with no directives — If no files contain
@effect-codegens,codegenthrowsNoFilesToCodegenErrorinstead of exiting cleanly. This is not a real error — the project simply has no codegen directives. Check before running.config/setup file picker — Both
configandsetupare interactive and list ALL.jsonfiles in the project, not just tsconfig files. This is a known UX issue — select the correct tsconfig manually.
Fetching Documentation
This skill covers tooling operations. For current API details or version-specific changes:
| Need | Tool |
|---|---|
| ELS release notes, new rules | mcp__exa__web_search_exa — search Effect-TS/language-service |
| Effect API docs | mcp__Context7__query-docs — resolve effect library |
| Pattern guidance | Load effect-usage-cc skill |
Navigating References
Load references when the command table and workflows above are insufficient.
| File | Answers |
|---|---|
references/cli-commands.md |
Full syntax for each command? All flags and defaults? |
references/diagnostic-rules.md |
What does rule X mean? How to fix it? Default severity? |
references/refactorings.md |
Which IDE refactoring to use? async→Effect variants? |
references/codegen-directives.md |
How to use @effect-codegens? When to annotate/accessors/typeToSchema? |
references/configuration.md |
All tsconfig options? Severity profiles? CI setup? Inline suppression? |
!echo "## ELS Project Context"
!~/.claude/skills/effect-language-service-cc/scripts/probe-els.sh
Source: bengous/agents-skills — distributed by TomeVault.
Decide Fit First
Design Intent
How To Use It
Boundaries And Review