Files
ZQYY.FQ-ETL/.kiro/hooks/prompt-audit-log.kiro.hook

13 lines
724 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"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-IDP<YYYYMMDD-HHMMSS>(例如 P20260213-101530。\n- 记录 Prompt 原文(如包含敏感信息则用 [REDACTED] 脱敏,并说明已脱敏)。\n- 记录一行摘要≤120 字),用于后续快速检索。\n\n最后一行必须输出Prompt-ID: <id>"
}
}