Skip to content
Back to skills

Documents

ASecurity

- **状態**: 採用 - **決定日**: 2026-08-20 - **関連**: BILL-218、PR #106 - **原資料の進捗**: 70%

  • 50 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
developmentapi

Works with

  • api

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned November 7, 2026

npx -y skills add iwasa-kosui/tanteki --skill documents --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Documents?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Documents
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/iwasa-kosui-documents-ab78ec70/badge)](https://www.skillsdirectory.com/skills/iwasa-kosui-documents-ab78ec70)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# ADR-XXX: 請求書PDF生成を非同期キュー処理にする

- **状態**: 採用
- **決定日**: 2026-08-20
- **関連**: BILL-218、PR #106
- **原資料の進捗**: 70%

## コンテキスト

請求書PDFの生成には最大45秒かかる場合があり、同期処理ではAPI接続がタイムアウトまたは切断される。利用者がAPI応答を待ち続ける設計は安定しない。

## 決定

請求書PDFの生成はキューに投入して非同期で処理する。APIは生成完了を待たず、受付IDを返す。利用者は受付IDを使って処理状況や生成結果を確認し、PDFの完成を待つ。

同期生成は、接続切断のリスクがあるため採用しない。

## 影響

### 利点

- 長時間のPDF生成によるAPI接続切断を避けられる。
- APIの応答時間を短く保てる。
- PDF生成処理をキューによって平準化・再実行できる。

### 欠点・留意点

- 利用者はPDFの完成まで待つ必要がある。
- 処理状況、完了通知または取得方法など、非同期処理向けの利用者体験が必要になる。
- キューやワーカーなどの運用対象が増える。
- 再試行の上限は未決定であり、別途決定する必要がある。上限を決める際は、重複生成、恒久的な失敗、運用コストへの影響を考慮する。

## 運用上の前提

1. APIは受付IDを返す。
2. 受付IDから処理状態を確認できる仕組みを用意する。
3. PDF完成後に利用者が取得できるようにする。
4. 失敗状態と再試行結果を利用者および運用者が確認できるようにする。
5. 再試行上限は未決定事項として追跡し、決定後に本ADRを更新する。

## 代替案

### 同期生成

APIリクエスト中にPDFを生成し、完成したPDFを同じ応答で返す案。最大45秒かかり接続が切れるため、不採用とした。

## 未決定事項

- PDF生成失敗時の再試行上限
- 完成通知の方式
- 受付IDによる処理状況確認APIの詳細

Files in this skill

  • adr-boundary.1.with_skill.md1.3 KB
  • adr-boundary.1.without_skill.md1.7 KB
  • adr-boundary.2.with_skill.md1.1 KB
  • adr-boundary.2.without_skill.md2.1 KB
  • design-tradeoff.1.with_skill.md3.9 KB
  • design-tradeoff.1.without_skill.md8.2 KB
  • design-tradeoff.2.with_skill.md3.7 KB
  • design-tradeoff.2.without_skill.md5.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.