result-ts

@shirudo/result Skill

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "result-ts" with this command: npx skills add shi-rudo/result-ts/shi-rudo-result-ts-result-ts

@shirudo/result Skill

This skill helps you effectively use the package @shirudo/result in your TypeScript projects.

What is a Result ?

A Result<T, E> is a typed return value that represents either success or failure:

  • Ok<T> : the operation succeeded and contains a value of type T .

  • Err<E> : the operation failed and contains an error value of type E .

This makes error handling explicit in the type system: functions return a Result instead of throwing.

You then compose operations (e.g. via .pipe() / .pipeAsync() ), where failures short-circuit and propagate as Err .

When to Use

Use this skill when you need to:

  • Integrate @shirudo/result : Introduce the library into an existing codebase.

  • Refactor Code: Convert existing code (e.g., try/catch blocks, null checks) to use Result types.

  • Understand Core Concepts: Get guidance on the library's functions and best practices.

How to Use

Consult the References: Depending on your needs, refer to the following guides in the references/ directory:

  • api-cheatsheet.md : A quick reference for all major @shirudo/result functions.

  • refactoring-patterns.md : Provides concrete examples of how to refactor your code.

  • best-practices.md : Offers guidance on using the library idiomatically.

Ask for Refactoring Help: You can ask me to refactor a specific piece of code. For example: "Refactor this function to use @shirudo/result".

Ask for Explanations: You can ask for explanations of specific functions. For example: "Explain how to use flatMap in @shirudo/result".

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

ll-feishu-audio

飞书语音交互技能。支持语音消息自动识别、AI 处理、语音回复全流程。需要配置 FEISHU_APP_ID 和 FEISHU_APP_SECRET 环境变量。使用 faster-whisper 进行语音识别,Edge TTS 进行语音合成,自动转换 OPUS 格式并通过飞书发送。适用于飞书平台的语音对话场景。

Archived SourceRecently Updated
General

test_skill

import json import tkinter as tk from tkinter import messagebox, simpledialog

Archived SourceRecently Updated
General

51mee-resume-profile

简历画像。触发场景:用户要求生成候选人画像;用户想了解候选人的多维度标签和能力评估。

Archived SourceRecently Updated
General

51mee-resume-parse

简历解析。触发场景:用户上传简历文件要求解析、提取结构化信息。

Archived SourceRecently Updated