ROSTR 完善架構代理技能
描述
對代理輸出進行 AWS 完善架構框架審查。針對六大支柱進行評估:營運卓越、安全性、可靠性、效能效率、成本優化與永續性。
觸發條件
- 當代理產生需要品質審查的輸出時
- 在部署代理設定之前
- 在定期架構審查期間
- 當提出成本/安全相關問題時
輸入格式
{
"agent_output": {
"result": "string",
"metadata": {
"model_used": "string",
"tokens_used": {"prompt": int, "completion": int},
"duration_ms": int
},
"logs": [...],
"pii_detected": false,
"graviton_used": true
},
"review_type": "full" | "security" | "cost" | "quick"
}
輸出格式
{
"SAR": {
"SchemaVersion": "2020-07-01",
"Review": {
"OverallScore": 4.2,
"Pillars": [...]
},
"Risks": {
"High": [...],
"Medium": [...],
"Low": [...]
},
"ImprovementItems": [...]
}
}
使用方式
from skills.well_architected import WellArchitectedSkill
skill = WellArchitectedSkill()
review = await skill.review(agent_output, review_type="full")
# 取得 SAR 格式輸出
sar = skill.to_sar_format(review)
工具依賴
- 無
範例提示
審查此代理輸出是否符合完善架構規範
執行安全重點審查
檢查成本最佳化機會
版本
1.0.0