初始提交:飞球 ETL 系统全量代码
This commit is contained in:
13
.kiro/hooks/prompt-audit-log.kiro.hook
Normal file
13
.kiro/hooks/prompt-audit-log.kiro.hook
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"enabled": true,
|
||||
"name": "Prompt Audit Log",
|
||||
"description": "每次提交 prompt 时,自动将原始用户 prompt 追加到 docs/ai_audit/prompt_log.md,包含日期时间和 Prompt-ID。",
|
||||
"version": "1",
|
||||
"when": {
|
||||
"type": "promptSubmit"
|
||||
},
|
||||
"then": {
|
||||
"type": "askAgent",
|
||||
"prompt": "将本次用户 Prompt 追加写入 docs/ai_audit/prompt_log.md。\n\n要求:\n- 使用 Asia/Taipei 日期时间。\n- 生成 Prompt-ID:P<YYYYMMDD-HHMMSS>(例如 P20260213-101530)。\n- 记录 Prompt 原文(如包含敏感信息则用 [REDACTED] 脱敏,并说明已脱敏)。\n- 记录一行摘要(≤120 字),用于后续快速检索。\n\n最后一行必须输出:Prompt-ID: <id>"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user