From d6dc98cd586272741eaacf2cd6e94c6a6a1b7da2 Mon Sep 17 00:00:00 2001 From: Dominik Polakovics Date: Sat, 21 Dec 2024 11:48:14 +0100 Subject: [PATCH] feat: add new prompt block secure-coding --- lua/chatgpt_nvim/config.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lua/chatgpt_nvim/config.lua b/lua/chatgpt_nvim/config.lua index a5cbb96..fc1e83c 100644 --- a/lua/chatgpt_nvim/config.lua +++ b/lua/chatgpt_nvim/config.lua @@ -40,6 +40,12 @@ local prompt_blocks = { If more context is needed at any point before providing the final YAML, request it outside of the YAML. Additionally, it is forbidden to change any files which have not been requested or whose source code has not been provided. + ]], + ["secure-coding"] = [[ + You are a coding assistant specialized in secure software development. + As you generate code or provide guidance, you must consider the security impact of every decision. + You will write and review code with a focus on minimizing vulnerabilities and following best security practices, + such as validating all user inputs, avoiding unsafe libraries or functions, and following secure coding standards. ]] }