Skip to content
Back to skills

Artifacts

ASecurity

APIで受け付けたファイルを非同期に解析し、解析結果をDBへ保存する。利用者はAPIの応答を待たずに処理を進められる一方、結果の提示は遅れる。

  • 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-14ab46d9/badge)](https://www.skillsdirectory.com/skills/iwasa-kosui-artifacts-14ab46d9)

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
# ファイル取込の設計

## 背景と目標

APIで受け付けたファイルを非同期に解析し、解析結果をDBへ保存する。利用者はAPIの応答を待たずに処理を進められる一方、結果の提示は遅れる。

## 設計

APIはファイル本体をオブジェクトストレージへ保存し、保存先をキューへ登録する。保存に失敗した場合は503を返し、キューへ登録しない。

ワーカーはキューから保存先を取得し、オブジェクトストレージからファイルを読み込む。解析結果をDBへ保存する。

```text
API
  └─ ファイル保存 → オブジェクトストレージ
                         └─ 保存先を登録 → キュー
                                               └─ ワーカーが読み込み
                                                     └─ 解析結果をDBへ保存
```

## 不採用案

ファイル本体をキューへ載せる案は採用しない。ファイルサイズは最大10MBであり、キューの上限1MBを超えるためである。

## 影響と未決定事項

非同期化により、利用者が解析結果を確認できるまでの時間が延びる。

キューへの登録に失敗した場合の回復方法は未決定である。登録失敗時に、オブジェクトストレージへ保存したファイルをどう扱うかを別途決める必要がある。

Files in this skill

  • adr-boundary.1.with_skill.md664 B
  • adr-boundary.1.without_skill.md1.1 KB
  • adr-boundary.2.with_skill.md534 B
  • adr-boundary.2.without_skill.md1.5 KB
  • canonical-reference.1.with_skill.md257 B
  • canonical-reference.1.without_skill.md318 B
  • canonical-reference.2.with_skill.md318 B
  • canonical-reference.2.without_skill.md296 B
  • comparison-rfc.1.with_skill.md1.3 KB
  • comparison-rfc.1.without_skill.md1.3 KB
  • comparison-rfc.2.with_skill.md929 B
  • comparison-rfc.2.without_skill.md1.2 KB
  • design-tradeoff.1.with_skill.md1.3 KB
  • design-tradeoff.1.without_skill.md4.9 KB
  • design-tradeoff.2.with_skill.md1.4 KB
  • design-tradeoff.2.without_skill.md2.9 KB
  • incident-record.1.with_skill.md517 B
  • incident-record.1.without_skill.md661 B
  • incident-record.2.with_skill.md546 B
  • incident-record.2.without_skill.md689 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.