بنقرة واحدة
coding-style
Guidelines for formatting TypeScript code in the fx-fetch package.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Guidelines for formatting TypeScript code in the fx-fetch package.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | coding-style |
| description | Guidelines for formatting TypeScript code in the fx-fetch package. |
This skill should be used only for library code, test code, and code snippets in JSDoc.
Target Files: packages/fx-fetch/**/*.ts
When to use: Use this skill after writing or modifying TypeScript code in the fx-fetch package to ensure it follows project style guidelines.
pnpm fmt:write to apply automatic formattingpnpm fmt:write again to ensure formatting is correctpnpm validate and pnpm testThis skill can operate in three modes: library code, test code, and JSDoc code snippets.
After all changes, run pnpm fmt:write to ensure formatting is correct.
Also run pnpm validate and pnpm test to verify no issues were introduced.
Use common guidelines plus the following:
Take care about verbatimModuleSyntax option in tsconfig.json. Take care about best tree-shaking practices. Import only what is necessary.
effect package, we should import it from its specific module path instead of the root package to ensure better tree shaking. (e.g., import { type Effect } from 'effect/Effect';)import { map as effectMap } from 'effect/Effect';)import * as syntax to prevent importing unnecessary code. Only exception is when importing file "localThis.ts" as module namespace. (e.g., import * as localThis from './localThis';)Use common guidelines plus the following:
describe blocks to group related tests together.it blocks for individual test cases.expectTypeOf from vitest library.import { Effect, Option, Either } from 'effect';)Use common guidelines plus the following:
@since, @example, @category, @see, @link, @internal and @deprecated.@since, @category, and @example should always be present in public API documentation. Other tags can be used as needed.◀︎ ▶︎ ▲ ▼ ┌ ┐ └ ┘ ─ │ to draw boxes around focused types in JSDoc examples.