Skip to content
Back to skills

Artifacts

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 21 files and shows the line behind each finding

Scanned November 7, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Artifacts?

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

Security grade badge for Artifacts
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/iwasa-kosui-artifacts-67a7852b/badge)](https://www.skillsdirectory.com/skills/iwasa-kosui-artifacts-67a7852b)

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: 請求書PDF生成を非同期キューで処理する

- **ステータス:** 採用
- **決定日:** 2026-08-20
- **関連:** BILL-218、PR #106(作業メモ時点の進捗: 70%)

## コンテキスト

請求書PDFの生成には最大45秒かかる場合があり、同期処理ではAPI接続が切れる可能性がある。同期生成を採用すると、利用者や呼び出し元が長時間レスポンスを待つことになり、タイムアウトや再送の扱いも複雑になる。

## 決定

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

## 影響

### 利点

- API接続が最大45秒維持されることによる切断リスクを避けられる。
- PDF生成処理をワーカー側で実行でき、APIの応答性を保てる。
- キューによる負荷平準化や処理の再実行を設計しやすい。

### 欠点・利用者への影響

- API呼び出し時点ではPDFは完成していない。
- 利用者は、PDFの完成まで待つか、受付IDで状態を確認する必要がある。
- キュー滞留やワーカー障害により、完成までの時間が延びる可能性がある。

## 却下した選択肢

同期生成は採用しない。最大45秒かかるため、処理中に接続が切れるリスクがあるためである。

## 未決事項

生成処理の再試行回数の上限は未決定である。障害時の重複生成、キュー滞留、恒久的失敗の扱いを踏まえて、運用開始前に決定する必要がある。

## 将来の保守者向け注意

同期レスポンスでPDF本体を返す実装へ変更する場合は、接続タイムアウト、負荷特性、利用者が完成を待つ必要がある点を再評価すること。非同期処理を変更する際は、受付IDと生成状態の対応、および再試行上限の決定を併せて見直すこと。

Files in this skill

  • adr-boundary.1.with_skill.md620 B
  • adr-boundary.1.without_skill.md2 KB
  • adr-boundary.2.with_skill.md834 B
  • adr-boundary.2.without_skill.md1.3 KB
  • canonical-reference.1.with_skill.md330 B
  • canonical-reference.1.without_skill.md330 B
  • canonical-reference.2.with_skill.md185 B
  • canonical-reference.2.without_skill.md313 B
  • comparison-rfc.1.with_skill.md1 KB
  • comparison-rfc.1.without_skill.md1.4 KB
  • comparison-rfc.2.with_skill.md1.6 KB
  • comparison-rfc.2.without_skill.md1.1 KB
  • design-tradeoff.1.with_skill.md2.9 KB
  • design-tradeoff.1.without_skill.md4.1 KB
  • design-tradeoff.2.with_skill.md3.1 KB
  • design-tradeoff.2.without_skill.md4.7 KB
  • incident-record.1.with_skill.md595 B
  • incident-record.1.without_skill.md552 B
  • incident-record.2.with_skill.md588 B
  • incident-record.2.without_skill.md640 B

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.