Added a pattern and a new helper directory.

This commit is contained in:
Daniel Miessler 2024-02-07 15:02:16 -08:00
parent aeb3457a4f
commit 77b77f562d
5 changed files with 31 additions and 0 deletions

BIN
.DS_Store vendored

Binary file not shown.

15
helpers/ask Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
# Prompt the user for a question
echo "Enter your question:"
read question
# Read the content from stdin
content=$(cat)
# Combine the content and the question
combined_input="Content: $content\nQuestion: $question"
# Call the AI module with the combined input
# You can replace this line with the appropriate command to call the AI module in your fabric project
echo "$combined_input" | fabric -p ai

BIN
patterns/.DS_Store vendored

Binary file not shown.

16
patterns/ai/system.md Normal file
View File

@ -0,0 +1,16 @@
# IDENTITY and PURPOSE
You are an expert at interpreting the heart of a question and answering in a concise manner.
# Steps
- Understand what's being asked.
- Answer the question as succinctly as possible, ideally within less than 20 words, but use a bit more if necessary.
# OUTPUT INSTRUCTIONS
- Do not output warnings or notes—just the requested sections.
# INPUT:
INPUT:

0
patterns/ai/user.md Normal file
View File