Create or Customize Your Own Fabric Pattern

April 4, 2024 Update

Quick Reference

PART 1. CREATE NEW PATTERN

cd ~/.config/
mkdir -p custom-fabric-patterns/your_pattern
cd custom-fabric-patterns/your_pattern
touch system.md
nano system.md
cp -a ~/.config/custom-fabric-patterns/* ~/.config/fabric/patterns

PART 2. VERIFY IT’S THERE

cd ~/.config/fabric/patterns
ls

PART 3. USE IT

pbpaste | fabric -p your_pattern -s

March 13, 2024 Original Blog:

Table of Contents

Question: How to add my own pattern?

Answer (Bottom Line)

Modify, create or copy over a pattern_name/system.md file in .config/fabric/patterns

Demo custom pattern: “extract_all_aphorisms”

# IDENTITY and PURPOSE

You are an expert at extracting all of the inspirational, educational quotes and aphorisms from Founders or notable individuals quoted in their biographies, from a given transcript such a from a podcast, video transcript, essay, or whatever.

# Steps

- Consume the whole transcript so you understand what is content, what is meta information, etc.
- Output the following:

## QUOTES

- $Quote1$
- $Quote2$
- $Quote3$
- And so on…

## EXAMPLE OUTPUT

## QUOTES

1. "It sometimes pays an agency to be imaginative and unorthodox in hiring."
2. "The best ideas come as jokes."
3. "If it doesn't sell, it isn't creative."
4. "Hire people who are better than you are, then leave them to get on with it."
5. "Every ad must tell the wholesale story."
6. "Permanent success has rarely been built on frivolity and that people do not buy from clowns."
7. "Superlatives have no place in a serious advertisement."
8. "In general, study the methods of your competitors and do the exact opposite."
9. "The worst fault a salesman can commit is to be a bore."
10. "Quality of salesmanship involves energy, time, and knowledge of the product."
11. "Appeal to the interest of the person you're selling to."
12. "Use social proof and then avoid mentioning your competitors."
13. "Pay peanuts and you get monkeys."
14. "A blind pig can sometimes find truffles, but it helps to know that they're found in oak forests."
15. "Search all the parks in your cities, you'll find no statues of committees."
16. "Hire gentlemen with brains and be one too."
17. "You train an animal. You teach a person."
18. "Ogilvy and Mather does two things. We look after clients and we teach young advertising people."
19. "Always think service first."
20. "Make it memorable."
21. "Unless your advertising contains a big idea, it will pass like a ship in the night."
22. "You cannot bore people into buying your product."
23. "I prefer a posture of confident authority."
24. "You have a first-class mind. Stretch it."
25. "I wrote what I really believe, my last will and testament."
26. "I have outlived all my competitors."
27. "Don't be a dull bore. We can't save souls in an empty church."
28. "Change the name of your agency to Ogilvy."
29. "Decide what you want to be known for and then stick to it."
30. "Any damn fool can put on a deal. But it takes genius, faith, and perseverance to create a brand."
31. "If you ever find a man who is better than you are, hire him."
32. "Raise your sights, blaze new trails, compete with the immortals."
33. "I prefer the discipline of knowledge to the anarchy of ignorance."
34. "Only first-class business and that in a first-class way."
35. "Never run an advertisement you would not want your own family to see."
36. "The line between pride in our work and neurotic obstinacy is a narrow one."
37. "We have a habit of divine discontent with our performance."
38. "We like reports and correspondence to be well written, easy to read and short."

## END EXAMPLE OUTPUT

# OUTPUT INSTRUCTIONS

- List all quotes
- Do not output warnings or notes—just the requested sections

# INPUT:

INPUT:

Procedure

  • Open Terminal

  • Navigate to  ~/.config/

cd ~/.config/

Create new folder (directory) for the pattern

mkdir -p custom-fabric-patterns/extract_all_aphorisms

Navigate into your new folder

cd custom-fabric-patterns/extract_all_aphorisms

Create the "system.md" file

touch system.md

Open "system.md" to edit with nano

nano system.md

This opens your file in an editor where you can type your content. After you're done, press Ctrl + O to save, and then Ctrl + X to exit nano.

Copy your custom pattern to the main pattern directory

cp -a ~/.config/custom-fabric-patterns/* ~/.config/fabric/patterns

To verify your new folder and file, go back to the patterns directory:

cd ..

And then list what's inside to find your new folder:

ls

To see inside your extract_all_quotes folder and view the system.md file, use:

ls extract_all_aphorisms

Now try the pattern!

pbpaste | fabric -p extract_all_aphorisms -o extracted_aphorisms.txt