From 77b77f562db18b8741814f440e30aae871bcf030 Mon Sep 17 00:00:00 2001 From: Daniel Miessler Date: Wed, 7 Feb 2024 15:02:16 -0800 Subject: [PATCH] Added a pattern and a new helper directory. --- .DS_Store | Bin 6148 -> 8196 bytes helpers/ask | 15 +++++++++++++++ patterns/.DS_Store | Bin 8196 -> 10244 bytes patterns/ai/system.md | 16 ++++++++++++++++ patterns/ai/user.md | 0 5 files changed, 31 insertions(+) create mode 100755 helpers/ask create mode 100644 patterns/ai/system.md create mode 100644 patterns/ai/user.md diff --git a/.DS_Store b/.DS_Store index 2c5e03aea49a1aabace23251f15a30fff5a5ee6d..f2ffd788d11aef858e43a653ccdb59a4ec46f24e 100644 GIT binary patch literal 8196 zcmeHMU2GIp6u#fIzziMe6t+;7tt?a};zqWm0tLaPE%Ga^-Tnfyo!uE>!gQwW%x=-z z*q9hKphlmJe~C{TiAIeY(MJ`3qCRNVV2lrFj3$~GO?)!ZbLY+yply6HMsaR4_nUjp zJ$L4u`Ocj^Q^pwDOGYze4U93F4vtz4bu%=s=f|`rg_3GQkUe82D>8?9`7v*F+U!UW zMIeem6oDuLQ3Rq0{2L-b?`+=WS>F3X8}(5Hq6qviBf$5EBpnWQds%Cj|zkw5F&Y5Sk(^F(AxIpXAdCGa*h26y^-VoFTk2!U_e!)yXay zOlQaljQS`7Q3R$(fTxelMw!lh`n#Zh&)aUEbf@#9w&nTh^yiSOs^`p|C(n~>WzHT{YF)*+UlcpRTupGl3Yj;bI;RUu? zp^z0>$!W{R$D7lwt*K;N%eskFa=fi2ol3T@TR$x)@h$uoOQTGT3=owT$UyTnN-FDzV|Sb5c&wXJPi+HcyuZ>myeY19!|VA zrK-J0>6vSuB23fGYP`?Z^QNsCiZHu=y&4}Vi#Th0LgA*E8XqjUBO`RnUMSmoV?2I{ zUv{tV`CX%?L$~x^clt~MzLTS~=T39FB%ZBN**f@KD zJ<6VDudsL68TJ|bntjK9WWNEBFb8u{gBa?u6b)F3HQ0bQY{F)Aq8qoM2L~{WJPI%{ zf+BpBP{v)j2lwJW+>b}_7@okBcnZ(pMZAQU@g_dNhxiB|;|rX_H~1Dm;SY&PkmgG< zsa{$lt&oz^Dyd0YFKv)A(k`iA%8477Dj79Y@ideV6HePID5FM2MoFh;&ZxwWojZ2z z{_kYe*@c_}i(~ammL_>(ZQQc$JO>47D?GiB{Q>1KVnRUqAiXZ3>r?|}TB1>1F(7T(4gyo>jV^q=A@{D5CV%2uenSBxt?ew~TR{L*-odkZF{`dPSP<<2XB1dq`<(0x}Y2<49aoB o^ZziU^CV5>HklA71(Jl?KmH-$uYOTS@BiriFQ^&t^K$L}1jWW-=>Px# delta 128 zcmZp1XfcprU|?W$DortDU=RQ@Ie-{MGjUEV6q~50$jG!YU^nAr0~wad`~p+hEOZo1 zj7=x66bP6sCjN0_gDlHpb`B0fW}prr5a0$9t{}}D3%@f@=9h5 diff --git a/helpers/ask b/helpers/ask new file mode 100755 index 0000000..628f5d6 --- /dev/null +++ b/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 diff --git a/patterns/.DS_Store b/patterns/.DS_Store index 29adf5dae30ef98b2c40016131405ca78c6b950d..1a3397b2c624057672908223467cacc2d43fac4e 100644 GIT binary patch delta 446 zcmZp1XbF&DU|?W$DortDU{C-uIe-{M3-C-V6q~50D9Q%pFar4u42cZM3?&Tl4CM@& z8w;ngPi)}b%+A5WQ4dnV$B@cU0hBF5R>e@vkiwA9kegIqT#%HLp9EC5GpQgav$({- z;2I+nGYcylI|n-lH%Dx6Mt*s4Nn%N9u~TAEG>8|HpP!QiV<#qsWu}(L3y3)9=anR8 z=A{;aHDsow0+rOqglFcZlEIO7E*tE&wSOiXkXERBq7brh;C zjSO@YOpMKHYdJYYmG!NI;fQ>*dW0o$PBSVfg4D>f`Wcy;dkcA{4#+eOpplC04V@E R%m74BE|BTnEGfv$3;-eCW3K=J delta 129 zcmZn(XmOBWU|?W$DortDU;r^WfEYvza8E20o2aKK$_$bR@);Ns8HyM(8LAjk8R9n< zPGg_gz`L29gN1{Ud9tsR(PlM~lk9>Z#Xumz4J2GahHNbS&ODi4C6EJX1juNH$?-f> PHzx>XGj0x$n!^YHTXYva diff --git a/patterns/ai/system.md b/patterns/ai/system.md new file mode 100644 index 0000000..e3cd433 --- /dev/null +++ b/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: diff --git a/patterns/ai/user.md b/patterns/ai/user.md new file mode 100644 index 0000000..e69de29