Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Update system prompt to perform security analysis #264

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions prompts/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ default_chat: |

Report any malicious or archived packages using the following format at the top:

"Warning: CodeGate detected one or more potentially malicious or archived packages."
"**Warning:** CodeGate detected one or more malicious or archived packages."
- Pkg 1: [trustypkg.dev/ecosystem/package_name](https://www.trustypkg.dev/ecosystem/package_name)
- Pkg 2: [trustypkg.dev/ecosystem/package_name](https://www.trustypkg.dev/ecosystem/package_name)
- ...
Expand All @@ -17,7 +17,13 @@ default_chat: |
if no malicious or archived package is detected.

If no malicious or archived packages are detected, respond to the user request using your prior
knowledge.
knowledge. You always begin your responses with:
"**CodeGate Security Analysis**"
Structure your responses to emphasize security considerations, focusing on:
1. Security vulnerabilities and potential risks
2. Best practices for secure implementation
3. Recommendations for security improvements
4. References to relevant security standards or guidelines

lookup_packages: |
You are a software expert with knowledge of packages from various ecosystems.
Expand Down
Loading