Loading...
Loading...
Compare original and translation side by side
@rytass/*@rytass/*packages/{category}-* # e.g., invoice-*, payments-*, storages-*@rytass/invoicepackages/{category}-* # 例如:invoice-*, payments-*, storages-*@rytass/invoice| Category | What to Document |
|---|---|
| Classes | Gateway, Entity, Allowance classes |
| Interfaces | Core interfaces and their properties |
| Enums | All enum values with descriptions |
| Types | Type aliases and union types |
| Functions | Utility functions with signatures |
| Constants | Exported constants and helpers |
| 分类 | 文档内容 |
|---|---|
| 类 | Gateway、Entity、Allowance类 |
| 接口 | 核心接口及其属性 |
| 枚举 | 所有枚举值及说明 |
| 类型 | 类型别名和联合类型 |
| 函数 | 带签名的工具函数 |
| 常量 | 导出的常量和辅助工具 |
.claude/skills/{package-name}/
└── SKILL.md.claude/skills/{package-name}/
├── SKILL.md # Overview, quick start, comparison
├── {PROVIDER-1}.md # Detailed reference
├── {PROVIDER-2}.md # Detailed reference
└── ....claude/skills/{package}-adapters/ # User-facing
.claude/skills/{package}-development/ # Developer-facing.claude/skills/{package-name}/
└── SKILL.md.claude/skills/{package-name}/
├── SKILL.md # 概述、快速开始、对比
├── {PROVIDER-1}.md # 详细参考
├── {PROVIDER-2}.md # 详细参考
└── ....claude/skills/{package}-adapters/ # 面向用户
.claude/skills/{package}-development/ # 面向开发者| Section | Purpose |
|---|---|
| Overview | What the packages do, unified interface |
| Installation | npm install commands |
| Quick Start | Minimal working examples |
| Feature Comparison | Table comparing providers |
| Detailed Docs Links | Links to reference files |
| Section | Purpose |
|---|---|
| Constructor | Parameters and initialization |
| Methods | All public methods with signatures |
| Classes | Entity and value object classes |
| Types | Provider-specific type definitions |
| Complete Example | Full working code sample |
| 章节 | 用途 |
|---|---|
| 概述 | 套件功能介绍、统一接口说明 |
| 安装 | npm安装命令 |
| 快速开始 | 最简可运行示例 |
| 功能对比 | 各提供商对比表格 |
| 详细文档链接 | 指向参考文件的链接 |
| 章节 | 用途 |
|---|---|
| 构造函数 | 参数和初始化说明 |
| 方法 | 所有带签名的公共方法 |
| 类 | 实体和值对象类 |
| 类型 | 提供商特定的类型定义 |
| 完整示例 | 完整可运行代码示例 |
SKILL.md (loaded first)
│
├── Quick overview (always visible)
├── Common operations
└── Links to details
│
└── PROVIDER.md (loaded on demand)
│
└── Full API referenceSKILL.md(优先加载)
│
├── 快速概述(始终可见)
├── 常见操作
└── 详细内容链接
│
└── PROVIDER.md(按需加载)
│
└── 完整API参考---
name: package-name
description: Brief description with trigger words in English (中文觸發詞). Maximum 1024 characters.
---English term (中文)---
name: package-name
description: 包含中英文触发词的简短描述,最多1024字符。
---英文术语 (中文){What it does} ({中文說明}). Use when {use case 1}, {use case 2 (中文)}.
Covers {topic 1} ({中文}), {topic 2} ({中文}).Taiwan e-invoice integration (台灣電子發票整合). Use when working with
ECPay (綠界), EZPay (藍新). Covers issuing invoices (開立發票),
voiding (作廢), allowances (折讓).{功能说明} ({中文說明})。适用于{使用场景1}、{使用场景2 (中文)}时使用。
涵盖{主题1} ({中文})、{主题2} ({中文})。台湾电子发票整合(台灣電子發票整合)。适用于对接ECPay (綠界)、EZPay (藍新)时使用。
涵盖发票开立(開立發票)、作废(作廢)、折让(折讓)等操作。undefinedundefined| Package | Provider | Description |
|---|---|---|
| Provider A (中文名) | Brief desc |
| Provider B (中文名) | Brief desc |
**Installation Section:**
```markdown| 套件 | 提供商 | 描述 |
|---|---|---|
| Provider A (中文名) | 简要说明 |
| Provider B (中文名) | 简要说明 |
**安装章节:**
```markdown
**Quick Start Section:**
```markdownnpm install @rytass/package-name
**快速开始章节:**
```markdown
**Method Documentation:**
```markdownimport { ProviderAGateway } from '@rytass/pkg-adapter-a';
const gateway = new ProviderAGateway({
// 配置项
});
// 基础操作
const result = await gateway.operation({
// 参数
});
**方法文档:**
```markdownmethodName(options: OptionsType): Promise<ReturnType>methodName(options: OptionsType): Promise<ReturnType>| Option | Type | Required | Description |
|---|---|---|---|
| | Yes | Description |
| | No | Description (default: value) |
Promise<ReturnType>
---| 选项 | 类型 | 必填 | 描述 |
|---|---|---|---|
| | 是 | 描述 |
| | 否 | 描述(默认值:value) |
Promise<ReturnType>const result = await gateway.methodName({
param1: 'value',
});
---| English | 中文 |
|---|---|
| invoice | 發票、電子發票 |
| issue | 開立 |
| void | 作廢 |
| allowance | 折讓 |
| payment | 付款、支付 |
| storage | 儲存、存儲 |
| 英文 | 中文 |
|---|---|
| invoice | 發票、電子發票 |
| issue | 開立 |
| void | 作廢 |
| allowance | 折讓 |
| payment | 付款、支付 |
| storage | 儲存、存儲 |
| Feature | Provider A | Provider B | Provider C |
|---------|:----------:|:----------:|:----------:|
| Feature 1 | Yes | Yes | No |
| Feature 2 | Yes | No | Yes |:-----:| 功能 | Provider A | Provider B | Provider C |
|---------|:----------:|:----------:|:----------:|
| 功能1 | 是 | 是 | 否 |
| 功能2 | 是 | 否 | 是 |:-----:undefinedundefined
---import { Gateway, Type1, Type2 } from '@rytass/package';
async function main() {
// 1. 初始化
const gateway = new Gateway({ /* 配置 */ });
// 2. 创建
const entity = await gateway.create({ /* 选项 */ });
// 3. 查询
const found = await gateway.query({ /* 选项 */ });
// 4. 更新/修改
const updated = await gateway.modify(entity, { /* 选项 */ });
// 5. 删除/作废
await gateway.delete(entity);
}
main().catch(console.error);
---namedescriptiondescriptionnamedescriptiondescriptioninvoice-adaptersinvoice-development.claude/skills/
├── invoice-adapters/ # User-facing skill
│ ├── SKILL.md # Overview, quick start, comparison
│ ├── ECPAY.md # ECPay full reference
│ ├── EZPAY.md # EZPay full reference
│ ├── BANK-PRO.md # BankPro full reference
│ └── AMEGO.md # Amego full reference
│
└── invoice-development/ # Developer-facing skill
├── SKILL.md # Base package overview
├── BASE-INTERFACES.md # Interface specifications
└── CREATE-ADAPTER.md # How to create new adapterinvoice-adaptersinvoice-development.claude/skills/
├── invoice-adapters/ # 面向用户的技能
│ ├── SKILL.md # 概述、快速开始、对比
│ ├── ECPAY.md # ECPay完整参考
│ ├── EZPAY.md # EZPay完整参考
│ ├── BANK-PRO.md # BankPro完整参考
│ └── AMEGO.md # Amego完整参考
│
└── invoice-development/ # 面向开发者的技能
├── SKILL.md # 基础套件概述
├── BASE-INTERFACES.md # 接口规范
└── CREATE-ADAPTER.md # 如何创建新适配器