Back to skills
SKILL.md
Artifacts
ASecurityファイル取込を非同期化し、APIはファイルの保存と解析処理の登録までを受け付ける。解析結果は後からDBに保存する。
- 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-59db89fe)# ファイル取込の設計
## 背景と目標
ファイル取込を非同期化し、APIはファイルの保存と解析処理の登録までを受け付ける。解析結果は後からDBに保存する。
## 対象範囲
対象は、APIによるファイル保存、キューへの登録、ワーカーによる解析、解析結果のDB保存である。利用者への結果提示は非同期となるため、提示までの時間が延びる。
## 設計
APIは次の順で処理する。
1. 受け取ったファイルをオブジェクトストレージへ保存する。
2. 保存先をキューへ登録する。
3. 登録結果を利用者へ返す。
オブジェクトストレージへの保存に失敗した場合、APIは503を返し、キューには登録しない。
ワーカーはキューから保存先を受け取り、オブジェクトストレージからファイルを読み込む。解析結果をDBへ保存する。
## 代替案と不採用理由
ファイル本体をキューへ載せる案は採用しない。対象ファイルは10MBであり、キューの上限1MBを超えるためである。
## 影響
非同期化により、利用者が解析結果を確認できるまでの時間が延びる。ファイル本体をキューへ載せず保存先だけを登録するため、キューのサイズ制限には抵触しない。
## リスクと未解決点
オブジェクトストレージへの保存後、キューへの登録に失敗した場合の回復方法は未決定である。この場合の再登録方法と、保存済みファイルの扱いを別途決める必要がある。
## 可逆性
キューへの登録失敗時の回復方法が未決定のため、現時点では回復を含む運用手順を確定できない。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.