Browse Source

Added a pattern and a new helper directory.

pull/61/head
Daniel Miessler 1 year ago
parent
commit
77b77f562d
  1. BIN
      .DS_Store
  2. 15
      helpers/ask
  3. BIN
      patterns/.DS_Store
  4. 16
      patterns/ai/system.md
  5. 0
      patterns/ai/user.md

BIN
.DS_Store vendored

Binary file not shown.

15
helpers/ask

@ -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

@ -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

Loading…
Cancel
Save