Fabric icon indicating copy to clipboard operation
Fabric copied to clipboard

[Question]: New patterns not working nor being recognized

Open infinitelyloopy-bt opened this issue 1 year ago • 3 comments

What is your question?

I am using a Mac. I created my own patters, but when I copy it to the right folder, I cannot seem to use Fabric to call it / use it. I receive an error claiming that patter is not there, even though it is in the folder with the right structure.

infinitelyloopy-bt avatar Oct 08 '24 12:10 infinitelyloopy-bt

hi @infinitelyloopy-bt, I just ran a quick test. I created a new directory and a system.md file. Here's what worked for me. create new dir and file at ~.config/fabric/patterns/new-pat/system.md. worth noting the file needs to be named system.md the md only contains "What is the answer to the meaning of life from 'A hitchiker's guide to the galaxy"?" $ fabric -p new-pat
$ 42

Does it work with other patterns? Check the .env to ensure PATTERNS_LOADER_GIT_REPO_PATTERNS_FOLDER= points where you want.

hope that helps.

charlie-romeo avatar Oct 16 '24 01:10 charlie-romeo

Does it work with other patterns? Check the .env to ensure PATTERNS_LOADER_GIT_REPO_PATTERNS_FOLDER= points where you want.

This must be the problem. I used GO to install Fabric so I am not sure where my .env file would be.

Is it better to copy the git repo and clone it locally instead of using go so I can access the .env files?

infinitelyloopy-bt avatar Oct 22 '24 11:10 infinitelyloopy-bt

hi @infinitelyloopy-bt, I just ran a quick test. I created a new directory and a system.md file. Here's what worked for me.

create new dir and file at ~.config/fabric/patterns/new-pat/system.md. worth noting the file needs to be named system.md

the md only contains "What is the answer to the meaning of life from 'A hitchiker's guide to the galaxy"?"

$ fabric -p new-pat

$ 42

Does it work with other patterns? Check the .env to ensure PATTERNS_LOADER_GIT_REPO_PATTERNS_FOLDER= points where you want.

hope that helps.

Working well thanks so much.

infinitelyloopy-bt avatar Mar 15 '25 16:03 infinitelyloopy-bt

@infinitelyloopy-bt If you install the shell completions, it will TAB-complete the pattern names and model names too.

ksylvan avatar Jun 04 '25 04:06 ksylvan