Back to skills
SKILL.md
Artifacts
ASecurityファイル取込を非同期で処理する。APIはファイルを受け付け、ワーカーが解析結果をデータベースへ保存する。本稿では、APIからワーカーまでのファイル受け渡しと保存処理を扱う。
- 50 stars
- 0 votes
- 0 copies
- 0 views
- Added November 7, 2026
Works with
Security analysis
100/100Pro scans all 21 files and shows the line behind each finding
npx -y skills add iwasa-kosui/tanteki --skill artifacts --agent claude-codeAre you the author of Artifacts?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/iwasa-kosui-artifacts-6c8c6499)# ファイル取込の設計
## 背景と範囲
ファイル取込を非同期で処理する。APIはファイルを受け付け、ワーカーが解析結果をデータベースへ保存する。本稿では、APIからワーカーまでのファイル受け渡しと保存処理を扱う。
## 処理方式
APIは受け取ったファイルをオブジェクトストレージへ保存し、保存先をキューへ登録する。ワーカーはキューから保存先を取得し、オブジェクトストレージのファイルを読み込んで解析する。解析結果はデータベースへ保存する。
ファイル本体はキューに登録しない。10MBのファイルがキューの1MB制限を超えるためである。
## 失敗時の動作
APIによるオブジェクトストレージへの保存に失敗した場合、APIは503を返し、保存先をキューへ登録しない。
キューへの登録に失敗した場合の回復方法は未決定である。登録失敗時にファイルを再処理する方法は、別途決定する。
## 影響
解析を非同期化するため、利用者が解析結果を確認できるまでの時間が延びる。ファイル本体をキューへ送らず保存先だけを渡すことで、キューのサイズ制限を回避する。Files in this skill
- adr-boundary.1.with_skill.md
- adr-boundary.1.without_skill.md
- adr-boundary.2.with_skill.md
- adr-boundary.2.without_skill.md
- canonical-reference.1.with_skill.md
- canonical-reference.1.without_skill.md
- canonical-reference.2.with_skill.md
- canonical-reference.2.without_skill.md
- comparison-rfc.1.with_skill.md
- comparison-rfc.1.without_skill.md
- comparison-rfc.2.with_skill.md
- comparison-rfc.2.without_skill.md
- design-tradeoff.1.with_skill.md
- design-tradeoff.1.without_skill.md
- design-tradeoff.2.with_skill.md
- design-tradeoff.2.without_skill.md
- incident-record.1.with_skill.md
- incident-record.1.without_skill.md
- incident-record.2.with_skill.md
- incident-record.2.without_skill.md
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.