Added a pattern and a new helper directory.
This commit is contained in:
parent
aeb3457a4f
commit
77b77f562d
15
helpers/ask
Executable file
15
helpers/ask
Executable 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
BIN
patterns/.DS_Store
vendored
Binary file not shown.
16
patterns/ai/system.md
Normal file
16
patterns/ai/system.md
Normal 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
0
patterns/ai/user.md
Normal file
Loading…
x
Reference in New Issue
Block a user