Compare commits

..

8 Commits

Author SHA1 Message Date
github-actions[bot]
fe4f729eae chore(release): Update version to v1.4.392 2026-01-25 18:18:03 +00:00
Kayvan Sylvan
7f15553c71 Merge pull request #1968 from ksylvan/kayvan/add-extract-all-quotes
New `extract_all_quotes` and move misplaced patterns
2026-01-25 10:15:41 -08:00
Kayvan Sylvan
8075209d9e fix: New extract_all_quotes and move misplaced patterns
- Move pattern files from patterns/ to data/patterns/
- Add create_bd_issue pattern for issue tracking commands
- Add extract_all_quotes pattern for quote extraction
- Add extract_bd_ideas pattern for actionable idea extraction
- Add suggest_gt_command pattern for GT command suggestions
- Update pattern_explanations.md with new pattern entries
- Update suggest_pattern system.md with new categories
- Add new pattern descriptions and extracts in scripts/
- chore: incoming 1968 changelog entry
2026-01-25 10:11:33 -08:00
github-actions[bot]
1d7fdffdbd chore(release): Update version to v1.4.391 2026-01-24 20:02:29 +00:00
Kayvan Sylvan
bd38f5ae20 Merge pull request #1965 from infinitelyloopy-bt/fix/azure-openai-deployment-url
fix(azure): Fix deployment URL path for Azure OpenAI API
2026-01-24 12:00:09 -08:00
Baker Tamory
a61007b3b1 Apply PR review feedback from @ksylvan
- Add changelog file for PR #1965
- Fix trailing space formatting in deploymentRoutes map

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-25 01:39:18 +11:00
Baker Tamory
4d5ee38a34 docs: Add Azure OpenAI troubleshooting guide
Documents the deployment URL bug and stream_options fix with:
- Clear explanation of the root cause (SDK route matching bug)
- Technical details for developers
- Configuration guidance
- Verification steps

Related to #1954 and PR #1965

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 13:34:28 +11:00
Baker Tamory
82974a6a2a fix(azure): Fix deployment URL path for Azure OpenAI API
The OpenAI Go SDK's azure.WithEndpoint() middleware has a bug where it
expects request paths like /openai/chat/completions but the SDK actually
sends paths like /chat/completions (without the /openai/ prefix since
that's included in the base URL). This causes the SDK's route matching
to fail, resulting in deployment names not being injected into the URL.

Azure OpenAI requires URLs like:
  /openai/deployments/{deployment-name}/chat/completions
But the SDK was generating:
  /openai/chat/completions

This fix:
1. Adds custom middleware that correctly transforms API paths to include
   the deployment name extracted from the request body's model field
2. Moves StreamOptions to only be set for streaming requests (Azure
   rejects stream_options for non-streaming requests)

Fixes #1954

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 13:31:04 +11:00
17 changed files with 612 additions and 199 deletions

View File

@@ -1,12 +1,33 @@
# Changelog
## v1.4.392 (2026-01-25)
### PR [#1968](https://github.com/danielmiessler/Fabric/pull/1968) by [ksylvan](https://github.com/ksylvan): New `extract_all_quotes` and move misplaced patterns
- Move orphaned pattern files from patterns/ to data/patterns/
- Add extract_all_quotes pattern for quote extraction
- The extract_all_quotes is originally from [PR #176](https://github.com/danielmiessler/Fabric/pull/176) by [@CPAtoCybersecurity](https://github.com/CPAtoCybersecurity)
- The `suggest_pattern` pattern is updated with the following additions.
- extract_bd_ideas for actionable idea extraction
- suggest_gt_command for GT command suggestions
- create_bd_issue for issue tracking commands
## v1.4.391 (2026-01-24)
### PR [#1965](https://github.com/danielmiessler/Fabric/pull/1965) by [infinitelyloopy-bt](https://github.com/infinitelyloopy-bt): fix(azure): Fix deployment URL path for Azure OpenAI API
- Fixed deployment URL path construction for Azure OpenAI API to correctly include deployment names in request URLs
- Added custom middleware to transform API paths and extract deployment names from request body model fields
- Moved StreamOptions configuration to only apply to streaming requests, as Azure rejects stream_options for non-streaming requests
- Added Azure OpenAI troubleshooting documentation with technical details and configuration guidance
- Resolved SDK route matching bug that was preventing proper URL generation for Azure OpenAI endpoints
## v1.4.390 (2026-01-24)
MiniMax unexpected status code: 404 from provider MiniMax, response body: 404 page not found
### PR [#1964](https://github.com/danielmiessler/Fabric/pull/1964) by [jessesep](https://github.com/jessesep): feat: add design system, golden rules, and discord structure patterns
- Added create_design_system pattern to generate CSS design systems with tokens, typography scales, and dark/light mode support from requirements
- Added create_golden_rules pattern to extract implicit and explicit rules from codebases into testable, enforceable guidelines
- Added create_golden_rules pattern to extract implicit and explicit rules from codebases into testable, enforceable guidelines
- Added analyze_discord_structure pattern to audit Discord server organization, permissions, and naming conventions
### PR [#1967](https://github.com/danielmiessler/Fabric/pull/1967) by [ksylvan](https://github.com/ksylvan): chore: add MiniMax provider support and update API endpoints

View File

@@ -1,3 +1,3 @@
package main
var version = "v1.4.390"
var version = "v1.4.392"

Binary file not shown.

View File

@@ -0,0 +1,69 @@
# 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:

View File

@@ -55,185 +55,191 @@
51. **create_aphorisms**: Find and generate a list of brief, witty statements.
52. **create_art_prompt**: Generates a detailed, compelling visual description of a concept, including stylistic references and direct AI instructions for creating art.
53. **create_better_frame**: Identifies and analyzes different frames of interpreting reality, emphasizing the power of positive, productive lenses in shaping outcomes.
54. **create_coding_feature**: Generates secure and composable code features using modern technology and best practices from project specifications.
55. **create_coding_project**: Generate wireframes and starter code for any coding ideas that you have.
56. **create_command**: Helps determine the correct parameters and switches for penetration testing tools based on a brief description of the objective.
57. **create_conceptmap**: Transforms unstructured text or markdown content into an interactive HTML concept map using Vis.js by extracting key concepts and their logical relationships.
58. **create_cyber_summary**: Summarizes cybersecurity threats, vulnerabilities, incidents, and malware with a 25-word summary and categorized bullet points, after thoroughly analyzing and mapping the provided input.
59. **create_design_system**: Create comprehensive CSS design systems with tokens, typography, spacing, and components.
60. **create_design_document**: Creates a detailed design document for a system using the C4 model, addressing business and security postures, and including a system context diagram.
61. **create_diy**: Creates structured "Do It Yourself" tutorial patterns by analyzing prompts, organizing requirements, and providing step-by-step instructions in Markdown format.
62. **create_excalidraw_visualization**: Creates complex Excalidraw diagrams to visualize relationships between concepts and ideas in structured format.
63. **create_flash_cards**: Creates flashcards for key concepts, definitions, and terms with question-answer format for educational purposes.
64. **create_formal_email**: Crafts professional, clear, and respectful emails by analyzing context, tone, and purpose, ensuring proper structure and formatting.
65. **create_git_diff_commit**: Generates Git commands and commit messages for reflecting changes in a repository, using conventional commits and providing concise shell commands for updates.
66. **create_golden_rules**: Extract enforceable rules from codebases to prevent common mistakes and ensure consistency.
67. **create_graph_from_input**: Generates a CSV file with progress-over-time data for a security program, focusing on relevant metrics and KPIs.
68. **create_hormozi_offer**: Creates a customized business offer based on principles from Alex Hormozi's book, "$100M Offers."
69. **create_idea_compass**: Organizes and structures ideas by exploring their definition, evidence, sources, and related themes or consequences.
70. **create_investigation_visualization**: Creates detailed Graphviz visualizations of complex input, highlighting key aspects and providing clear, well-annotated diagrams for investigative analysis and conclusions.
71. **create_keynote**: Creates TED-style keynote presentations with a clear narrative, structured slides, and speaker notes, emphasizing impactful takeaways and cohesive flow.
72. **create_loe_document**: Creates detailed Level of Effort documents for estimating work effort, resources, and costs for tasks or projects.
73. **create_logo**: Creates simple, minimalist company logos without text, generating AI prompts for vector graphic logos based on input.
74. **create_markmap_visualization**: Transforms complex ideas into clear visualizations using MarkMap syntax, simplifying concepts into diagrams with relationships, boxes, arrows, and labels.
75. **create_mermaid_visualization**: Creates detailed, standalone visualizations of concepts using Mermaid (Markdown) syntax, ensuring clarity and coherence in diagrams.
76. **create_mermaid_visualization_for_github**: Creates standalone, detailed visualizations using Mermaid (Markdown) syntax to effectively explain complex concepts, ensuring clarity and precision.
77. **create_micro_summary**: Summarizes content into a concise, 20-word summary with main points and takeaways, formatted in Markdown.
78. **create_mnemonic_phrases**: Creates memorable mnemonic sentences from given words to aid in memory retention and learning.
79. **create_network_threat_landscape**: Analyzes open ports and services from a network scan and generates a comprehensive, insightful, and detailed security threat report in Markdown.
80. **create_newsletter_entry**: Condenses provided article text into a concise, objective, newsletter-style summary with a title in the style of Frontend Weekly.
81. **create_npc**: Generates a detailed D&D 5E NPC, including background, flaws, stats, appearance, personality, goals, and more in Markdown format.
82. **create_pattern**: Extracts, organizes, and formats LLM/AI prompts into structured sections, detailing the AI's role, instructions, output format, and any provided examples for clarity and accuracy.
83. **create_prd**: Creates a precise Product Requirements Document (PRD) in Markdown based on input.
84. **create_prediction_block**: Extracts and formats predictions from input into a structured Markdown block for a blog post.
85. **create_quiz**: Creates a three-phase reading plan based on an author or topic to help the user become significantly knowledgeable, including core, extended, and supplementary readings.
86. **create_reading_plan**: Generates review questions based on learning objectives from the input, adapted to the specified student level, and outputs them in a clear markdown format.
87. **create_recursive_outline**: Breaks down complex tasks or projects into manageable, hierarchical components with recursive outlining for clarity and simplicity.
88. **create_report_finding**: Creates a detailed, structured security finding report in markdown, including sections on Description, Risk, Recommendations, References, One-Sentence-Summary, and Quotes.
89. **create_rpg_summary**: Summarizes an in-person RPG session with key events, combat details, player stats, and role-playing highlights in a structured format.
90. **create_security_update**: Creates concise security updates for newsletters, covering stories, threats, advisories, vulnerabilities, and a summary of key issues.
91. **create_show_intro**: Creates compelling short intros for podcasts, summarizing key topics and themes discussed in the episode.
92. **create_sigma_rules**: Extracts Tactics, Techniques, and Procedures (TTPs) from security news and converts them into Sigma detection rules for host-based detections.
93. **create_story_about_people_interaction**: Analyze two personas, compare their dynamics, and craft a realistic, character-driven story from those insights.
94. **create_story_about_person**: Creates compelling, realistic short stories based on psychological profiles, showing how characters navigate everyday problems using strategies consistent with their personality traits.
95. **create_story_explanation**: Summarizes complex content in a clear, approachable story format that makes the concepts easy to understand.
96. **create_stride_threat_model**: Create a STRIDE-based threat model for a system design, identifying assets, trust boundaries, data flows, and prioritizing threats with mitigations.
97. **create_summary**: Summarizes content into a 20-word sentence, 10 main points (16 words max), and 5 key takeaways in Markdown format.
98. **create_tags**: Identifies at least 5 tags from text content for mind mapping tools, including authors and existing tags if present.
99. **create_threat_scenarios**: Identifies likely attack methods for any system by providing a narrative-based threat model, balancing risk and opportunity.
100. **create_ttrc_graph**: Creates a CSV file showing the progress of Time to Remediate Critical Vulnerabilities over time using given data.
101. **create_ttrc_narrative**: Creates a persuasive narrative highlighting progress in reducing the Time to Remediate Critical Vulnerabilities metric over time.
102. **create_upgrade_pack**: Extracts world model and task algorithm updates from content, providing beliefs about how the world works and task performance.
103. **create_user_story**: Writes concise and clear technical user stories for new features in complex software programs, formatted for all stakeholders.
104. **create_video_chapters**: Extracts interesting topics and timestamps from a transcript, providing concise summaries of key moments.
105. **create_visualization**: Transforms complex ideas into visualizations using intricate ASCII art, simplifying concepts where necessary.
106. **dialog_with_socrates**: Engages in deep, meaningful dialogues to explore and challenge beliefs using the Socratic method.
107. **enrich_blog_post**: Enhances Markdown blog files by applying instructions to improve structure, visuals, and readability for HTML rendering.
108. **explain_code**: Explains code, security tool output, configuration text, and answers questions based on the provided input.
109. **explain_docs**: Improves and restructures tool documentation into clear, concise instructions, including overviews, usage, use cases, and key features.
110. **explain_math**: Helps you understand mathematical concepts in a clear and engaging way.
111. **explain_project**: Summarizes project documentation into clear, concise sections covering the project, problem, solution, installation, usage, and examples.
112. **explain_terms**: Produces a glossary of advanced terms from content, providing a definition, analogy, and explanation of why each term matters.
113. **export_data_as_csv**: Extracts and outputs all data structures from the input in properly formatted CSV data.
114. **extract_algorithm_update_recommendations**: Extracts concise, practical algorithm update recommendations from the input and outputs them in a bulleted list.
115. **extract_article_wisdom**: Extracts surprising, insightful, and interesting information from content, categorizing it into sections like summary, ideas, quotes, facts, references, and recommendations.
116. **extract_book_ideas**: Extracts and outputs 50 to 100 of the most surprising, insightful, and interesting ideas from a book's content.
117. **extract_book_recommendations**: Extracts and outputs 50 to 100 practical, actionable recommendations from a book's content.
118. **extract_business_ideas**: Extracts top business ideas from content and elaborates on the best 10 with unique differentiators.
119. **extract_characters**: Identify all characters (human and non-human), resolve their aliases and pronouns into canonical names, and produce detailed descriptions of each character's role, motivations, and interactions ranked by narrative importance.
120. **extract_controversial_ideas**: Extracts and outputs controversial statements and supporting quotes from the input in a structured Markdown list.
121. **extract_core_message**: Extracts and outputs a clear, concise sentence that articulates the core message of a given text or body of work.
122. **extract_ctf_writeup**: Extracts a short writeup from a warstory-like text about a cyber security engagement.
123. **extract_domains**: Extracts domains and URLs from content to identify sources used for articles, newsletters, and other publications.
124. **extract_extraordinary_claims**: Extracts and outputs a list of extraordinary claims from conversations, focusing on scientifically disputed or false statements.
125. **extract_ideas**: Extracts and outputs all the key ideas from input, presented as 15-word bullet points in Markdown.
126. **extract_insights**: Extracts and outputs the most powerful and insightful ideas from text, formatted as 16-word bullet points in the INSIGHTS section, also IDEAS section.
127. **extract_insights_dm**: Extracts and outputs all valuable insights and a concise summary of the content, including key points and topics discussed.
128. **extract_instructions**: Extracts clear, actionable step-by-step instructions and main objectives from instructional video transcripts, organizing them into a concise list.
129. **extract_jokes**: Extracts jokes from text content, presenting each joke with its punchline in separate bullet points.
130. **extract_latest_video**: Extracts the latest video URL from a YouTube RSS feed and outputs the URL only.
131. **extract_main_activities**: Extracts key events and activities from transcripts or logs, providing a summary of what happened.
132. **extract_main_idea**: Extracts the main idea and key recommendation from the input, summarizing them in 15-word sentences.
133. **extract_mcp_servers**: Identify and summarize Model Context Protocol (MCP) servers referenced in the input along with their key details.
134. **extract_most_redeeming_thing**: Extracts the most redeeming aspect from an input, summarizing it in a single 15-word sentence.
135. **extract_patterns**: Extracts and analyzes recurring, surprising, and insightful patterns from input, providing detailed analysis and advice for builders.
136. **extract_poc**: Extracts proof of concept URLs and validation methods from security reports, providing the URL and command to run.
137. **extract_predictions**: Extracts predictions from input, including specific details such as date, confidence level, and verification method.
138. **extract_primary_problem**: Extracts the primary problem with the world as presented in a given text or body of work.
139. **extract_primary_solution**: Extracts the primary solution for the world as presented in a given text or body of work.
140. **extract_product_features**: Extracts and outputs a list of product features from the provided input in a bulleted format.
141. **extract_questions**: Extracts and outputs all questions asked by the interviewer in a conversation or interview.
142. **extract_recipe**: Extracts and outputs a recipe with a short meal description, ingredients with measurements, and preparation steps.
143. **extract_recommendations**: Extracts and outputs concise, practical recommendations from a given piece of content in a bulleted list.
144. **extract_references**: Extracts and outputs a bulleted list of references to art, stories, books, literature, and other sources from content.
145. **extract_skills**: Extracts and classifies skills from a job description into a table, separating each skill and classifying it as either hard or soft.
146. **extract_song_meaning**: Analyzes a song to provide a summary of its meaning, supported by detailed evidence from lyrics, artist commentary, and fan analysis.
147. **extract_sponsors**: Extracts and lists official sponsors and potential sponsors from a provided transcript.
148. **extract_videoid**: Extracts and outputs the video ID from any given URL.
149. **extract_wisdom**: Extracts surprising, insightful, and interesting information from text on topics like human flourishing, AI, learning, and more.
150. **extract_wisdom_agents**: Extracts valuable insights, ideas, quotes, and references from content, emphasizing topics like human flourishing, AI, learning, and technology.
151. **extract_wisdom_with_attribution**: Extracts insightful ideas and recommendations with speaker attribution for quotes, focusing on life wisdom and human flourishing.
152. **extract_wisdom_dm**: Extracts all valuable, insightful, and thought-provoking information from content, focusing on topics like human flourishing, AI, learning, and technology.
153. **extract_wisdom_nometa**: Extracts insights, ideas, quotes, habits, facts, references, and recommendations from content, focusing on human flourishing, AI, technology, and related topics.
154. **find_female_life_partner**: Analyzes criteria for finding a female life partner and provides clear, direct, and poetic descriptions.
155. **find_hidden_message**: Extracts overt and hidden political messages, justifications, audience actions, and a cynical analysis from content.
156. **find_logical_fallacies**: Identifies and analyzes fallacies in arguments, classifying them as formal or informal with detailed reasoning.
157. **fix_typos**: Proofreads and corrects typos, spelling, grammar, and punctuation errors in text.
158. **generate_code_rules**: Compile best-practice coding rules and guardrails for AI-assisted development workflows from the provided content.
159. **get_wow_per_minute**: Determines the wow-factor of content per minute based on surprise, novelty, insight, value, and wisdom, measuring how rewarding the content is for the viewer.
160. **greybeard_secure_prompt_engineer**: Creates secure, production-grade system prompts with NASA-style mission assurance, outputting hardened prompts, injection test suites, and evaluation rubrics.
161. **heal_person**: Develops a comprehensive plan for spiritual and mental healing based on psychological profiles, providing personalized recommendations for mental health improvement and overall life enhancement.
162. **humanize**: Rewrites AI-generated text to sound natural, conversational, and easy to understand, maintaining clarity and simplicity.
163. **identify_dsrp_distinctions**: Encourages creative, systems-based thinking by exploring distinctions, boundaries, and their implications, drawing on insights from prominent systems thinkers.
164. **identify_dsrp_perspectives**: Explores the concept of distinctions in systems thinking, focusing on how boundaries define ideas, influence understanding, and reveal or obscure insights.
165. **identify_dsrp_relationships**: Encourages exploration of connections, distinctions, and boundaries between ideas, inspired by systems thinkers to reveal new insights and patterns in complex systems.
166. **identify_dsrp_systems**: Encourages organizing ideas into systems of parts and wholes, inspired by systems thinkers to explore relationships and how changes in organization impact meaning and understanding.
167. **identify_job_stories**: Identifies key job stories or requirements for roles.
168. **improve_academic_writing**: Refines text into clear, concise academic language while improving grammar, coherence, and clarity, with a list of changes.
169. **improve_prompt**: Improves an LLM/AI prompt by applying expert prompt writing strategies for better results and clarity.
170. **improve_report_finding**: Improves a penetration test security finding by providing detailed descriptions, risks, recommendations, references, quotes, and a concise summary in markdown format.
171. **improve_writing**: Refines text by correcting grammar, enhancing style, improving clarity, and maintaining the original meaning. skills.
172. **judge_output**: Evaluates Honeycomb queries by judging their effectiveness, providing critiques and outcomes based on language nuances and analytics relevance.
173. **label_and_rate**: Labels content with up to 20 single-word tags and rates it based on idea count and relevance to human meaning, AI, and other related themes, assigning a tier (S, A, B, C, D) and a quality score.
174. **md_callout**: Classifies content and generates a markdown callout based on the provided text, selecting the most appropriate type.
175. **model_as_sherlock_freud**: Builds psychological models using detective reasoning and psychoanalytic insight to understand human behavior.
176. **official_pattern_template**: Template to use if you want to create new fabric patterns.
177. **predict_person_actions**: Predicts behavioral responses based on psychological profiles and challenges.
178. **prepare_7s_strategy**: Prepares a comprehensive briefing document from 7S's strategy capturing organizational profile, strategic elements, and market dynamics with clear, concise, and organized content.
179. **provide_guidance**: Provides psychological and life coaching advice, including analysis, recommendations, and potential diagnoses, with a compassionate and honest tone.
180. **rate_ai_response**: Rates the quality of AI responses by comparing them to top human expert performance, assigning a letter grade, reasoning, and providing a 1-100 score based on the evaluation.
181. **rate_ai_result**: Assesses the quality of AI/ML/LLM work by deeply analyzing content, instructions, and output, then rates performance based on multiple dimensions, including coverage, creativity, and interdisciplinary thinking.
182. **rate_content**: Labels content with up to 20 single-word tags and rates it based on idea count and relevance to human meaning, AI, and other related themes, assigning a tier (S, A, B, C, D) and a quality score.
183. **rate_value**: Produces the best possible output by deeply analyzing and understanding the input and its intended purpose.
184. **raw_query**: Fully digests and contemplates the input to produce the best possible result based on understanding the sender's intent.
185. **recommend_artists**: Recommends a personalized festival schedule with artists aligned to your favorite styles and interests, including rationale.
186. **recommend_pipeline_upgrades**: Optimizes vulnerability-checking pipelines by incorporating new information and improving their efficiency, with detailed explanations of changes.
187. **recommend_talkpanel_topics**: Produces a clean set of proposed talks or panel talking points for a person based on their interests and goals, formatted for submission to a conference organizer.
188. **recommend_yoga_practice**: Provides personalized yoga sequences, meditation guidance, and holistic lifestyle advice based on individual profiles.
189. **refine_design_document**: Refines a design document based on a design review by analyzing, mapping concepts, and implementing changes using valid Markdown.
190. **review_design**: Reviews and analyzes architecture design, focusing on clarity, component design, system integrations, security, performance, scalability, and data management.
191. **sanitize_broken_html_to_markdown**: Converts messy HTML into clean, properly formatted Markdown, applying custom styling and ensuring compatibility with Vite.
192. **suggest_pattern**: Suggests appropriate fabric patterns or commands based on user input, providing clear explanations and options for users.
193. **summarize**: Summarizes content into a 20-word sentence, main points, and takeaways, formatted with numbered lists in Markdown.
194. **summarize_board_meeting**: Creates formal meeting notes from board meeting transcripts for corporate governance documentation.
195. **summarize_debate**: Summarizes debates, identifies primary disagreement, extracts arguments, and provides analysis of evidence and argument strength to predict outcomes.
196. **summarize_git_changes**: Summarizes recent project updates from the last 7 days, focusing on key changes with enthusiasm.
197. **summarize_git_diff**: Summarizes and organizes Git diff changes with clear, succinct commit messages and bullet points.
198. **summarize_lecture**: Extracts relevant topics, definitions, and tools from lecture transcripts, providing structured summaries with timestamps and key takeaways.
199. **summarize_legislation**: Summarizes complex political proposals and legislation by analyzing key points, proposed changes, and providing balanced, positive, and cynical characterizations.
200. **summarize_meeting**: Analyzes meeting transcripts to extract a structured summary, including an overview, key points, tasks, decisions, challenges, timeline, references, and next steps.
201. **summarize_micro**: Summarizes content into a 20-word sentence, 3 main points, and 3 takeaways, formatted in clear, concise Markdown.
202. **summarize_newsletter**: Extracts the most meaningful, interesting, and useful content from a newsletter, summarizing key sections such as content, opinions, tools, companies, and follow-up items in clear, structured Markdown.
203. **summarize_paper**: Summarizes an academic paper by detailing its title, authors, technical approach, distinctive features, experimental setup, results, advantages, limitations, and conclusion in a clear, structured format using human-readable Markdown.
204. **summarize_prompt**: Summarizes AI chat prompts by describing the primary function, unique approach, and expected output in a concise paragraph. The summary is focused on the prompt's purpose without unnecessary details or formatting.
205. **summarize_pull-requests**: Summarizes pull requests for a coding project by providing a summary and listing the top PRs with human-readable descriptions.
206. **summarize_rpg_session**: Summarizes a role-playing game session by extracting key events, combat stats, character changes, quotes, and more.
207. **t_analyze_challenge_handling**: Provides 8-16 word bullet points evaluating how well challenges are being addressed, calling out any lack of effort.
208. **t_check_dunning_kruger**: Assess narratives for Dunning-Kruger patterns by contrasting self-perception with demonstrated competence and confidence cues.
209. **t_check_metrics**: Analyzes deep context from the TELOS file and input instruction, then provides a wisdom-based output while considering metrics and KPIs to assess recent improvements.
210. **t_create_h3_career**: Summarizes context and produces wisdom-based output by deeply analyzing both the TELOS File and the input instruction, considering the relationship between the two.
211. **t_create_opening_sentences**: Describes from TELOS file the person's identity, goals, and actions in 4 concise, 32-word bullet points, humbly.
212. **t_describe_life_outlook**: Describes from TELOS file a person's life outlook in 5 concise, 16-word bullet points.
213. **t_extract_intro_sentences**: Summarizes from TELOS file a person's identity, work, and current projects in 5 concise and grounded bullet points.
214. **t_extract_panel_topics**: Creates 5 panel ideas with titles and descriptions based on deep context from a TELOS file and input.
215. **t_find_blindspots**: Identify potential blindspots in thinking, frames, or models that may expose the individual to error or risk.
216. **t_find_negative_thinking**: Analyze a TELOS file and input to identify negative thinking in documents or journals, followed by tough love encouragement.
217. **t_find_neglected_goals**: Analyze a TELOS file and input instructions to identify goals or projects that have not been worked on recently.
218. **t_give_encouragement**: Analyze a TELOS file and input instructions to evaluate progress, provide encouragement, and offer recommendations for continued effort.
219. **t_red_team_thinking**: Analyze a TELOS file and input instructions to red-team thinking, models, and frames, then provide recommendations for improvement.
220. **t_threat_model_plans**: Analyze a TELOS file and input instructions to create threat models for a life plan and recommend improvements.
221. **t_visualize_mission_goals_projects**: Analyze a TELOS file and input instructions to create an ASCII art diagram illustrating the relationship of missions, goals, and projects.
222. **t_year_in_review**: Analyze a TELOS file to create insights about a person or entity, then summarize accomplishments and visualizations in bullet points.
223. **to_flashcards**: Create Anki flashcards from a given text, focusing on concise, optimized questions and answers without external context.
224. **transcribe_minutes**: Extracts (from meeting transcription) meeting minutes, identifying actionables, insightful ideas, decisions, challenges, and next steps in a structured format.
225. **translate**: Translates sentences or documentation into the specified language code while maintaining the original formatting and tone.
226. **tweet**: Provides a step-by-step guide on crafting engaging tweets with emojis, covering Twitter basics, account creation, features, and audience targeting.
227. **write_essay**: Writes essays in the style of a specified author, embodying their unique voice, vocabulary, and approach. Uses `author_name` variable.
228. **write_essay_pg**: Writes concise, clear essays in the style of Paul Graham, focusing on simplicity, clarity, and illumination of the provided topic.
229. **write_hackerone_report**: Generates concise, clear, and reproducible bug bounty reports, detailing vulnerability impact, steps to reproduce, and exploit details for triagers.
230. **write_latex**: Generates syntactically correct LaTeX code for a new.tex document, ensuring proper formatting and compatibility with pdflatex.
231. **write_micro_essay**: Writes concise, clear, and illuminating essays on the given topic in the style of Paul Graham.
232. **write_nuclei_template_rule**: Generates Nuclei YAML templates for detecting vulnerabilities using HTTP requests, matchers, extractors, and dynamic data extraction.
233. **write_pull-request**: Drafts detailed pull request descriptions, explaining changes, providing reasoning, and identifying potential bugs from the git diff command output.
234. **write_semgrep_rule**: Creates accurate and working Semgrep rules based on input, following syntax guidelines and specific language considerations.
235. **youtube_summary**: Create concise, timestamped Youtube video summaries that highlight key points.
54. **create_bd_issue**: Transform natural language descriptions into optimal bd create commands for issue tracking.
55. **create_coding_feature**: Generates secure and composable code features using modern technology and best practices from project specifications.
56. **create_coding_project**: Generate wireframes and starter code for any coding ideas that you have.
57. **create_command**: Helps determine the correct parameters and switches for penetration testing tools based on a brief description of the objective.
58. **create_conceptmap**: Transforms unstructured text or markdown content into an interactive HTML concept map using Vis.js by extracting key concepts and their logical relationships.
59. **create_cyber_summary**: Summarizes cybersecurity threats, vulnerabilities, incidents, and malware with a 25-word summary and categorized bullet points, after thoroughly analyzing and mapping the provided input.
60. **create_design_system**: Create comprehensive CSS design systems with tokens, typography, spacing, and components.
61. **create_design_document**: Creates a detailed design document for a system using the C4 model, addressing business and security postures, and including a system context diagram.
62. **create_diy**: Creates structured "Do It Yourself" tutorial patterns by analyzing prompts, organizing requirements, and providing step-by-step instructions in Markdown format.
63. **create_excalidraw_visualization**: Creates complex Excalidraw diagrams to visualize relationships between concepts and ideas in structured format.
64. **create_flash_cards**: Creates flashcards for key concepts, definitions, and terms with question-answer format for educational purposes.
65. **create_formal_email**: Crafts professional, clear, and respectful emails by analyzing context, tone, and purpose, ensuring proper structure and formatting.
66. **create_git_diff_commit**: Generates Git commands and commit messages for reflecting changes in a repository, using conventional commits and providing concise shell commands for updates.
67. **create_golden_rules**: Extract enforceable rules from codebases to prevent common mistakes and ensure consistency.
68. **create_graph_from_input**: Generates a CSV file with progress-over-time data for a security program, focusing on relevant metrics and KPIs.
69. **create_hormozi_offer**: Creates a customized business offer based on principles from Alex Hormozi's book, "$100M Offers."
70. **create_idea_compass**: Organizes and structures ideas by exploring their definition, evidence, sources, and related themes or consequences.
71. **create_investigation_visualization**: Creates detailed Graphviz visualizations of complex input, highlighting key aspects and providing clear, well-annotated diagrams for investigative analysis and conclusions.
72. **create_keynote**: Creates TED-style keynote presentations with a clear narrative, structured slides, and speaker notes, emphasizing impactful takeaways and cohesive flow.
73. **create_loe_document**: Creates detailed Level of Effort documents for estimating work effort, resources, and costs for tasks or projects.
74. **create_logo**: Creates simple, minimalist company logos without text, generating AI prompts for vector graphic logos based on input.
75. **create_markmap_visualization**: Transforms complex ideas into clear visualizations using MarkMap syntax, simplifying concepts into diagrams with relationships, boxes, arrows, and labels.
76. **create_mermaid_visualization**: Creates detailed, standalone visualizations of concepts using Mermaid (Markdown) syntax, ensuring clarity and coherence in diagrams.
77. **create_mermaid_visualization_for_github**: Creates standalone, detailed visualizations using Mermaid (Markdown) syntax to effectively explain complex concepts, ensuring clarity and precision.
78. **create_micro_summary**: Summarizes content into a concise, 20-word summary with main points and takeaways, formatted in Markdown.
79. **create_mnemonic_phrases**: Creates memorable mnemonic sentences from given words to aid in memory retention and learning.
80. **create_network_threat_landscape**: Analyzes open ports and services from a network scan and generates a comprehensive, insightful, and detailed security threat report in Markdown.
81. **create_newsletter_entry**: Condenses provided article text into a concise, objective, newsletter-style summary with a title in the style of Frontend Weekly.
82. **create_npc**: Generates a detailed D&D 5E NPC, including background, flaws, stats, appearance, personality, goals, and more in Markdown format.
83. **create_pattern**: Extracts, organizes, and formats LLM/AI prompts into structured sections, detailing the AI's role, instructions, output format, and any provided examples for clarity and accuracy.
84. **create_prd**: Creates a precise Product Requirements Document (PRD) in Markdown based on input.
85. **create_prediction_block**: Extracts and formats predictions from input into a structured Markdown block for a blog post.
86. **create_quiz**: Creates a three-phase reading plan based on an author or topic to help the user become significantly knowledgeable, including core, extended, and supplementary readings.
87. **create_reading_plan**: Generates review questions based on learning objectives from the input, adapted to the specified student level, and outputs them in a clear markdown format.
88. **create_recursive_outline**: Breaks down complex tasks or projects into manageable, hierarchical components with recursive outlining for clarity and simplicity.
89. **create_report_finding**: Creates a detailed, structured security finding report in markdown, including sections on Description, Risk, Recommendations, References, One-Sentence-Summary, and Quotes.
90. **create_rpg_summary**: Summarizes an in-person RPG session with key events, combat details, player stats, and role-playing highlights in a structured format.
91. **create_security_update**: Creates concise security updates for newsletters, covering stories, threats, advisories, vulnerabilities, and a summary of key issues.
92. **create_show_intro**: Creates compelling short intros for podcasts, summarizing key topics and themes discussed in the episode.
93. **create_sigma_rules**: Extracts Tactics, Techniques, and Procedures (TTPs) from security news and converts them into Sigma detection rules for host-based detections.
94. **create_story_about_people_interaction**: Analyze two personas, compare their dynamics, and craft a realistic, character-driven story from those insights.
95. **create_story_about_person**: Creates compelling, realistic short stories based on psychological profiles, showing how characters navigate everyday problems using strategies consistent with their personality traits.
96. **create_story_explanation**: Summarizes complex content in a clear, approachable story format that makes the concepts easy to understand.
97. **create_stride_threat_model**: Create a STRIDE-based threat model for a system design, identifying assets, trust boundaries, data flows, and prioritizing threats with mitigations.
98. **create_summary**: Summarizes content into a 20-word sentence, 10 main points (16 words max), and 5 key takeaways in Markdown format.
99. **create_tags**: Identifies at least 5 tags from text content for mind mapping tools, including authors and existing tags if present.
100. **create_threat_scenarios**: Identifies likely attack methods for any system by providing a narrative-based threat model, balancing risk and opportunity.
101. **create_ttrc_graph**: Creates a CSV file showing the progress of Time to Remediate Critical Vulnerabilities over time using given data.
102. **create_ttrc_narrative**: Creates a persuasive narrative highlighting progress in reducing the Time to Remediate Critical Vulnerabilities metric over time.
103. **create_upgrade_pack**: Extracts world model and task algorithm updates from content, providing beliefs about how the world works and task performance.
104. **create_user_story**: Writes concise and clear technical user stories for new features in complex software programs, formatted for all stakeholders.
105. **create_video_chapters**: Extracts interesting topics and timestamps from a transcript, providing concise summaries of key moments.
106. **create_visualization**: Transforms complex ideas into visualizations using intricate ASCII art, simplifying concepts where necessary.
107. **dialog_with_socrates**: Engages in deep, meaningful dialogues to explore and challenge beliefs using the Socratic method.
108. **enrich_blog_post**: Enhances Markdown blog files by applying instructions to improve structure, visuals, and readability for HTML rendering.
109. **explain_code**: Explains code, security tool output, configuration text, and answers questions based on the provided input.
110. **explain_docs**: Improves and restructures tool documentation into clear, concise instructions, including overviews, usage, use cases, and key features.
111. **explain_math**: Helps you understand mathematical concepts in a clear and engaging way.
112. **explain_project**: Summarizes project documentation into clear, concise sections covering the project, problem, solution, installation, usage, and examples.
113. **explain_terms**: Produces a glossary of advanced terms from content, providing a definition, analogy, and explanation of why each term matters.
114. **export_data_as_csv**: Extracts and outputs all data structures from the input in properly formatted CSV data.
115. **extract_algorithm_update_recommendations**: Extracts concise, practical algorithm update recommendations from the input and outputs them in a bulleted list.
116. **extract_all_quotes**: Extract all inspirational and educational quotes from content including podcasts and essays.
117. **extract_alpha**: Extracts the most novel and surprising ideas ("alpha") from content, inspired by information theory.
118. **extract_article_wisdom**: Extracts surprising, insightful, and interesting information from content, categorizing it into sections like summary, ideas, quotes, facts, references, and recommendations.
119. **extract_book_ideas**: Extracts and outputs 50 to 100 of the most surprising, insightful, and interesting ideas from a book's content.
120. **extract_book_recommendations**: Extracts and outputs 50 to 100 practical, actionable recommendations from a book's content.
121. **extract_bd_ideas**: Extract actionable ideas from content and transform into bd create commands.
122. **extract_business_ideas**: Extracts top business ideas from content and elaborates on the best 10 with unique differentiators.
123. **extract_characters**: Identify all characters (human and non-human), resolve their aliases and pronouns into canonical names, and produce detailed descriptions of each character's role, motivations, and interactions ranked by narrative importance.
124. **extract_controversial_ideas**: Extracts and outputs controversial statements and supporting quotes from the input in a structured Markdown list.
125. **extract_core_message**: Extracts and outputs a clear, concise sentence that articulates the core message of a given text or body of work.
126. **extract_ctf_writeup**: Extracts a short writeup from a warstory-like text about a cyber security engagement.
127. **extract_domains**: Extracts domains and URLs from content to identify sources used for articles, newsletters, and other publications.
128. **extract_extraordinary_claims**: Extracts and outputs a list of extraordinary claims from conversations, focusing on scientifically disputed or false statements.
129. **extract_ideas**: Extracts and outputs all the key ideas from input, presented as 15-word bullet points in Markdown.
130. **extract_insights**: Extracts and outputs the most powerful and insightful ideas from text, formatted as 16-word bullet points in the INSIGHTS section, also IDEAS section.
131. **extract_insights_dm**: Extracts and outputs all valuable insights and a concise summary of the content, including key points and topics discussed.
132. **extract_instructions**: Extracts clear, actionable step-by-step instructions and main objectives from instructional video transcripts, organizing them into a concise list.
133. **extract_jokes**: Extracts jokes from text content, presenting each joke with its punchline in separate bullet points.
134. **extract_latest_video**: Extracts the latest video URL from a YouTube RSS feed and outputs the URL only.
135. **extract_main_activities**: Extracts key events and activities from transcripts or logs, providing a summary of what happened.
136. **extract_main_idea**: Extracts the main idea and key recommendation from the input, summarizing them in 15-word sentences.
137. **extract_mcp_servers**: Identify and summarize Model Context Protocol (MCP) servers referenced in the input along with their key details.
138. **extract_most_redeeming_thing**: Extracts the most redeeming aspect from an input, summarizing it in a single 15-word sentence.
139. **extract_patterns**: Extracts and analyzes recurring, surprising, and insightful patterns from input, providing detailed analysis and advice for builders.
140. **extract_poc**: Extracts proof of concept URLs and validation methods from security reports, providing the URL and command to run.
141. **extract_predictions**: Extracts predictions from input, including specific details such as date, confidence level, and verification method.
142. **extract_primary_problem**: Extracts the primary problem with the world as presented in a given text or body of work.
143. **extract_primary_solution**: Extracts the primary solution for the world as presented in a given text or body of work.
144. **extract_product_features**: Extracts and outputs a list of product features from the provided input in a bulleted format.
145. **extract_questions**: Extracts and outputs all questions asked by the interviewer in a conversation or interview.
146. **extract_recipe**: Extracts and outputs a recipe with a short meal description, ingredients with measurements, and preparation steps.
147. **extract_recommendations**: Extracts and outputs concise, practical recommendations from a given piece of content in a bulleted list.
148. **extract_references**: Extracts and outputs a bulleted list of references to art, stories, books, literature, and other sources from content.
149. **extract_skills**: Extracts and classifies skills from a job description into a table, separating each skill and classifying it as either hard or soft.
150. **extract_song_meaning**: Analyzes a song to provide a summary of its meaning, supported by detailed evidence from lyrics, artist commentary, and fan analysis.
151. **extract_sponsors**: Extracts and lists official sponsors and potential sponsors from a provided transcript.
152. **extract_videoid**: Extracts and outputs the video ID from any given URL.
153. **extract_wisdom**: Extracts surprising, insightful, and interesting information from text on topics like human flourishing, AI, learning, and more.
154. **extract_wisdom_agents**: Extracts valuable insights, ideas, quotes, and references from content, emphasizing topics like human flourishing, AI, learning, and technology.
155. **extract_wisdom_with_attribution**: Extracts insightful ideas and recommendations with speaker attribution for quotes, focusing on life wisdom and human flourishing.
156. **extract_wisdom_dm**: Extracts all valuable, insightful, and thought-provoking information from content, focusing on topics like human flourishing, AI, learning, and technology.
157. **extract_wisdom_nometa**: Extracts insights, ideas, quotes, habits, facts, references, and recommendations from content, focusing on human flourishing, AI, technology, and related topics.
158. **find_female_life_partner**: Analyzes criteria for finding a female life partner and provides clear, direct, and poetic descriptions.
159. **find_hidden_message**: Extracts overt and hidden political messages, justifications, audience actions, and a cynical analysis from content.
160. **find_logical_fallacies**: Identifies and analyzes fallacies in arguments, classifying them as formal or informal with detailed reasoning.
161. **fix_typos**: Proofreads and corrects typos, spelling, grammar, and punctuation errors in text.
162. **generate_code_rules**: Compile best-practice coding rules and guardrails for AI-assisted development workflows from the provided content.
163. **get_wow_per_minute**: Determines the wow-factor of content per minute based on surprise, novelty, insight, value, and wisdom, measuring how rewarding the content is for the viewer.
164. **greybeard_secure_prompt_engineer**: Creates secure, production-grade system prompts with NASA-style mission assurance, outputting hardened prompts, injection test suites, and evaluation rubrics.
165. **heal_person**: Develops a comprehensive plan for spiritual and mental healing based on psychological profiles, providing personalized recommendations for mental health improvement and overall life enhancement.
166. **humanize**: Rewrites AI-generated text to sound natural, conversational, and easy to understand, maintaining clarity and simplicity.
167. **identify_dsrp_distinctions**: Encourages creative, systems-based thinking by exploring distinctions, boundaries, and their implications, drawing on insights from prominent systems thinkers.
168. **identify_dsrp_perspectives**: Explores the concept of distinctions in systems thinking, focusing on how boundaries define ideas, influence understanding, and reveal or obscure insights.
169. **identify_dsrp_relationships**: Encourages exploration of connections, distinctions, and boundaries between ideas, inspired by systems thinkers to reveal new insights and patterns in complex systems.
170. **identify_dsrp_systems**: Encourages organizing ideas into systems of parts and wholes, inspired by systems thinkers to explore relationships and how changes in organization impact meaning and understanding.
171. **identify_job_stories**: Identifies key job stories or requirements for roles.
172. **improve_academic_writing**: Refines text into clear, concise academic language while improving grammar, coherence, and clarity, with a list of changes.
173. **improve_prompt**: Improves an LLM/AI prompt by applying expert prompt writing strategies for better results and clarity.
174. **improve_report_finding**: Improves a penetration test security finding by providing detailed descriptions, risks, recommendations, references, quotes, and a concise summary in markdown format.
175. **improve_writing**: Refines text by correcting grammar, enhancing style, improving clarity, and maintaining the original meaning. skills.
176. **judge_output**: Evaluates Honeycomb queries by judging their effectiveness, providing critiques and outcomes based on language nuances and analytics relevance.
177. **label_and_rate**: Labels content with up to 20 single-word tags and rates it based on idea count and relevance to human meaning, AI, and other related themes, assigning a tier (S, A, B, C, D) and a quality score.
178. **md_callout**: Classifies content and generates a markdown callout based on the provided text, selecting the most appropriate type.
179. **model_as_sherlock_freud**: Builds psychological models using detective reasoning and psychoanalytic insight to understand human behavior.
180. **official_pattern_template**: Template to use if you want to create new fabric patterns.
181. **predict_person_actions**: Predicts behavioral responses based on psychological profiles and challenges.
182. **prepare_7s_strategy**: Prepares a comprehensive briefing document from 7S's strategy capturing organizational profile, strategic elements, and market dynamics with clear, concise, and organized content.
183. **provide_guidance**: Provides psychological and life coaching advice, including analysis, recommendations, and potential diagnoses, with a compassionate and honest tone.
184. **rate_ai_response**: Rates the quality of AI responses by comparing them to top human expert performance, assigning a letter grade, reasoning, and providing a 1-100 score based on the evaluation.
185. **rate_ai_result**: Assesses the quality of AI/ML/LLM work by deeply analyzing content, instructions, and output, then rates performance based on multiple dimensions, including coverage, creativity, and interdisciplinary thinking.
186. **rate_content**: Labels content with up to 20 single-word tags and rates it based on idea count and relevance to human meaning, AI, and other related themes, assigning a tier (S, A, B, C, D) and a quality score.
187. **rate_value**: Produces the best possible output by deeply analyzing and understanding the input and its intended purpose.
188. **raw_query**: Fully digests and contemplates the input to produce the best possible result based on understanding the sender's intent.
189. **recommend_artists**: Recommends a personalized festival schedule with artists aligned to your favorite styles and interests, including rationale.
190. **recommend_pipeline_upgrades**: Optimizes vulnerability-checking pipelines by incorporating new information and improving their efficiency, with detailed explanations of changes.
191. **recommend_talkpanel_topics**: Produces a clean set of proposed talks or panel talking points for a person based on their interests and goals, formatted for submission to a conference organizer.
192. **recommend_yoga_practice**: Provides personalized yoga sequences, meditation guidance, and holistic lifestyle advice based on individual profiles.
193. **refine_design_document**: Refines a design document based on a design review by analyzing, mapping concepts, and implementing changes using valid Markdown.
194. **review_design**: Reviews and analyzes architecture design, focusing on clarity, component design, system integrations, security, performance, scalability, and data management.
195. **review_code**: Performs a comprehensive code review, providing detailed feedback on correctness, security, and performance.
196. **sanitize_broken_html_to_markdown**: Converts messy HTML into clean, properly formatted Markdown, applying custom styling and ensuring compatibility with Vite.
197. **suggest_pattern**: Suggests appropriate fabric patterns or commands based on user input, providing clear explanations and options for users.
198. **suggest_gt_command**: Suggest optimal Gas Town (GT) commands based on user intent and task description.
199. **summarize**: Summarizes content into a 20-word sentence, main points, and takeaways, formatted with numbered lists in Markdown.
200. **summarize_board_meeting**: Creates formal meeting notes from board meeting transcripts for corporate governance documentation.
201. **summarize_debate**: Summarizes debates, identifies primary disagreement, extracts arguments, and provides analysis of evidence and argument strength to predict outcomes.
202. **summarize_git_changes**: Summarizes recent project updates from the last 7 days, focusing on key changes with enthusiasm.
203. **summarize_git_diff**: Summarizes and organizes Git diff changes with clear, succinct commit messages and bullet points.
204. **summarize_lecture**: Extracts relevant topics, definitions, and tools from lecture transcripts, providing structured summaries with timestamps and key takeaways.
205. **summarize_legislation**: Summarizes complex political proposals and legislation by analyzing key points, proposed changes, and providing balanced, positive, and cynical characterizations.
206. **summarize_meeting**: Analyzes meeting transcripts to extract a structured summary, including an overview, key points, tasks, decisions, challenges, timeline, references, and next steps.
207. **summarize_micro**: Summarizes content into a 20-word sentence, 3 main points, and 3 takeaways, formatted in clear, concise Markdown.
208. **summarize_newsletter**: Extracts the most meaningful, interesting, and useful content from a newsletter, summarizing key sections such as content, opinions, tools, companies, and follow-up items in clear, structured Markdown.
209. **summarize_paper**: Summarizes an academic paper by detailing its title, authors, technical approach, distinctive features, experimental setup, results, advantages, limitations, and conclusion in a clear, structured format using human-readable Markdown.
210. **summarize_prompt**: Summarizes AI chat prompts by describing the primary function, unique approach, and expected output in a concise paragraph. The summary is focused on the prompt's purpose without unnecessary details or formatting.
211. **summarize_pull-requests**: Summarizes pull requests for a coding project by providing a summary and listing the top PRs with human-readable descriptions.
212. **summarize_rpg_session**: Summarizes a role-playing game session by extracting key events, combat stats, character changes, quotes, and more.
213. **t_analyze_challenge_handling**: Provides 8-16 word bullet points evaluating how well challenges are being addressed, calling out any lack of effort.
214. **t_check_dunning_kruger**: Assess narratives for Dunning-Kruger patterns by contrasting self-perception with demonstrated competence and confidence cues.
215. **t_check_metrics**: Analyzes deep context from the TELOS file and input instruction, then provides a wisdom-based output while considering metrics and KPIs to assess recent improvements.
216. **t_create_h3_career**: Summarizes context and produces wisdom-based output by deeply analyzing both the TELOS File and the input instruction, considering the relationship between the two.
217. **t_create_opening_sentences**: Describes from TELOS file the person's identity, goals, and actions in 4 concise, 32-word bullet points, humbly.
218. **t_describe_life_outlook**: Describes from TELOS file a person's life outlook in 5 concise, 16-word bullet points.
219. **t_extract_intro_sentences**: Summarizes from TELOS file a person's identity, work, and current projects in 5 concise and grounded bullet points.
220. **t_extract_panel_topics**: Creates 5 panel ideas with titles and descriptions based on deep context from a TELOS file and input.
221. **t_find_blindspots**: Identify potential blindspots in thinking, frames, or models that may expose the individual to error or risk.
222. **t_find_negative_thinking**: Analyze a TELOS file and input to identify negative thinking in documents or journals, followed by tough love encouragement.
223. **t_find_neglected_goals**: Analyze a TELOS file and input instructions to identify goals or projects that have not been worked on recently.
224. **t_give_encouragement**: Analyze a TELOS file and input instructions to evaluate progress, provide encouragement, and offer recommendations for continued effort.
225. **t_red_team_thinking**: Analyze a TELOS file and input instructions to red-team thinking, models, and frames, then provide recommendations for improvement.
226. **t_threat_model_plans**: Analyze a TELOS file and input instructions to create threat models for a life plan and recommend improvements.
227. **t_visualize_mission_goals_projects**: Analyze a TELOS file and input instructions to create an ASCII art diagram illustrating the relationship of missions, goals, and projects.
228. **t_year_in_review**: Analyze a TELOS file to create insights about a person or entity, then summarize accomplishments and visualizations in bullet points.
229. **to_flashcards**: Create Anki flashcards from a given text, focusing on concise, optimized questions and answers without external context.
230. **transcribe_minutes**: Extracts (from meeting transcription) meeting minutes, identifying actionables, insightful ideas, decisions, challenges, and next steps in a structured format.
231. **translate**: Translates sentences or documentation into the specified language code while maintaining the original formatting and tone.
232. **tweet**: Provides a step-by-step guide on crafting engaging tweets with emojis, covering Twitter basics, account creation, features, and audience targeting.
233. **write_essay**: Writes essays in the style of a specified author, embodying their unique voice, vocabulary, and approach. Uses `author_name` variable.
234. **write_essay_pg**: Writes concise, clear essays in the style of Paul Graham, focusing on simplicity, clarity, and illumination of the provided topic.
235. **write_hackerone_report**: Generates concise, clear, and reproducible bug bounty reports, detailing vulnerability impact, steps to reproduce, and exploit details for triagers.
236. **write_latex**: Generates syntactically correct LaTeX code for a new.tex document, ensuring proper formatting and compatibility with pdflatex.
237. **write_micro_essay**: Writes concise, clear, and illuminating essays on the given topic in the style of Paul Graham.
238. **write_nuclei_template_rule**: Generates Nuclei YAML templates for detecting vulnerabilities using HTTP requests, matchers, extractors, and dynamic data extraction.
239. **write_pull-request**: Drafts detailed pull request descriptions, explaining changes, providing reasoning, and identifying potential bugs from the git diff command output.
240. **write_semgrep_rule**: Creates accurate and working Semgrep rules based on input, following syntax guidelines and specific language considerations.
241. **youtube_summary**: Create concise, timestamped Youtube video summaries that highlight key points.

View File

@@ -73,25 +73,25 @@ Match the request to one or more of these primary categories:
**AI**: ai, create_ai_jobs_analysis, create_art_prompt, create_pattern, create_prediction_block, extract_mcp_servers, extract_wisdom_agents, generate_code_rules, greybeard_secure_prompt_engineer, improve_prompt, judge_output, rate_ai_response, rate_ai_result, raw_query, suggest_pattern, summarize_prompt
**ANALYSIS**: ai, analyze_answers, analyze_bill, analyze_bill_short, analyze_candidates, analyze_cfp_submission, analyze_claims, analyze_comments, analyze_debate, analyze_discord_structure, analyze_email_headers, analyze_incident, analyze_interviewer_techniques, analyze_logs, analyze_malware, analyze_military_strategy, analyze_mistakes, analyze_paper, analyze_paper_simple, analyze_patent, analyze_personality, analyze_presentation, analyze_product_feedback, analyze_proposition, analyze_prose, analyze_prose_json, analyze_prose_pinker, analyze_risk, analyze_sales_call, analyze_spiritual_text, analyze_tech_impact, analyze_terraform_plan, analyze_threat_report, analyze_threat_report_cmds, analyze_threat_report_trends, apply_ul_tags, check_agreement, compare_and_contrast, concall_summary, create_ai_jobs_analysis, create_golden_rules, create_idea_compass, create_investigation_visualization, create_prediction_block, create_recursive_outline, create_story_about_people_interaction, create_tags, dialog_with_socrates, extract_main_idea, extract_predictions, find_hidden_message, find_logical_fallacies, get_wow_per_minute, identify_dsrp_distinctions, identify_dsrp_perspectives, identify_dsrp_relationships, identify_dsrp_systems, identify_job_stories, label_and_rate, model_as_sherlock_freud, predict_person_actions, prepare_7s_strategy, provide_guidance, rate_content, rate_value, recommend_artists, recommend_talkpanel_topics, review_design, summarize_board_meeting, t_analyze_challenge_handling, t_check_dunning_kruger, t_check_metrics, t_describe_life_outlook, t_extract_intro_sentences, t_extract_panel_topics, t_find_blindspots, t_find_negative_thinking, t_red_team_thinking, t_threat_model_plans, t_year_in_review, write_hackerone_report
**ANALYSIS**: ai, analyze_answers, analyze_bill, analyze_bill_short, analyze_candidates, analyze_cfp_submission, analyze_claims, analyze_comments, analyze_debate, analyze_discord_structure, analyze_email_headers, analyze_incident, analyze_interviewer_techniques, analyze_logs, analyze_malware, analyze_military_strategy, analyze_mistakes, analyze_paper, analyze_paper_simple, analyze_patent, analyze_personality, analyze_presentation, analyze_product_feedback, analyze_proposition, analyze_prose, analyze_prose_json, analyze_prose_pinker, analyze_risk, analyze_sales_call, analyze_spiritual_text, analyze_tech_impact, analyze_terraform_plan, analyze_threat_report, analyze_threat_report_cmds, analyze_threat_report_trends, apply_ul_tags, check_agreement, compare_and_contrast, concall_summary, create_ai_jobs_analysis, create_golden_rules, create_idea_compass, create_investigation_visualization, create_prediction_block, create_recursive_outline, create_story_about_people_interaction, create_tags, dialog_with_socrates, extract_bd_ideas, extract_main_idea, extract_predictions, find_hidden_message, find_logical_fallacies, get_wow_per_minute, identify_dsrp_distinctions, identify_dsrp_perspectives, identify_dsrp_relationships, identify_dsrp_systems, identify_job_stories, label_and_rate, model_as_sherlock_freud, predict_person_actions, prepare_7s_strategy, provide_guidance, rate_content, rate_value, recommend_artists, recommend_talkpanel_topics, review_design, suggest_gt_command, summarize_board_meeting, t_analyze_challenge_handling, t_check_dunning_kruger, t_check_metrics, t_describe_life_outlook, t_extract_intro_sentences, t_extract_panel_topics, t_find_blindspots, t_find_negative_thinking, t_red_team_thinking, t_threat_model_plans, t_year_in_review, write_hackerone_report
**BILL**: analyze_bill, analyze_bill_short
**BUSINESS**: analyze_discord_structure, check_agreement, concall_summary, create_ai_jobs_analysis, create_formal_email, create_hormozi_offer, create_loe_document, create_logo, create_newsletter_entry, create_prd, explain_project, extract_business_ideas, extract_characters, extract_product_features, extract_skills, extract_sponsors, identify_job_stories, prepare_7s_strategy, rate_value, t_check_metrics, t_create_h3_career, t_visualize_mission_goals_projects, t_year_in_review, transcribe_minutes
**BUSINESS**: analyze_discord_structure, check_agreement, concall_summary, create_ai_jobs_analysis, create_formal_email, create_hormozi_offer, create_loe_document, create_logo, create_newsletter_entry, create_prd, create_upgrade_pack, explain_project, extract_business_ideas, extract_characters, extract_product_features, extract_skills, extract_sponsors, identify_job_stories, prepare_7s_strategy, rate_value, t_check_metrics, t_create_h3_career, t_visualize_mission_goals_projects, t_year_in_review, transcribe_minutes
**CLASSIFICATION**: apply_ul_tags
**CONVERSION**: clean_text, convert_to_markdown, create_graph_from_input, export_data_as_csv, extract_videoid, humanize, md_callout, sanitize_broken_html_to_markdown, to_flashcards, transcribe_minutes, translate, tweet, write_latex
**CR THINKING**: capture_thinkers_work, create_idea_compass, create_markmap_visualization, dialog_with_socrates, extract_alpha, extract_controversial_ideas, extract_extraordinary_claims, extract_predictions, extract_primary_problem, extract_wisdom_nometa, find_hidden_message, find_logical_fallacies, summarize_debate, t_analyze_challenge_handling, t_check_dunning_kruger, t_find_blindspots, t_find_negative_thinking, t_find_neglected_goals, t_red_team_thinking
**CR THINKING**: capture_thinkers_work, create_idea_compass, create_markmap_visualization, create_upgrade_pack, dialog_with_socrates, extract_alpha, extract_controversial_ideas, extract_extraordinary_claims, extract_predictions, extract_primary_problem, extract_wisdom_nometa, find_hidden_message, find_logical_fallacies, summarize_debate, t_analyze_challenge_handling, t_check_dunning_kruger, t_find_blindspots, t_find_negative_thinking, t_find_neglected_goals, t_red_team_thinking
**CREATIVITY**: create_mnemonic_phrases, write_essay
**DEVELOPMENT**: agility_story, analyze_logs, analyze_prose_json, answer_interview_question, ask_secure_by_design_questions, ask_uncle_duke, coding_master, create_coding_feature, create_coding_project, create_command, create_design_document, create_design_system, create_git_diff_commit, create_golden_rules, create_loe_document, create_mermaid_visualization, create_mermaid_visualization_for_github, create_pattern, create_prd, create_sigma_rules, create_user_story, explain_code, explain_docs, explain_project, export_data_as_csv, extract_algorithm_update_recommendations, extract_mcp_servers, extract_poc, extract_product_features, generate_code_rules, identify_job_stories, improve_prompt, official_pattern_template, recommend_pipeline_upgrades, refine_design_document, review_code, review_design, sanitize_broken_html_to_markdown, suggest_pattern, summarize_git_changes, summarize_git_diff, summarize_pull-requests, write_nuclei_template_rule, write_pull-request, write_semgrep_rule
**DEVELOPMENT**: agility_story, analyze_logs, analyze_prose_json, answer_interview_question, ask_secure_by_design_questions, ask_uncle_duke, coding_master, create_bd_issue, create_coding_feature, create_coding_project, create_command, create_design_document, create_design_system, create_git_diff_commit, create_golden_rules, create_loe_document, create_mermaid_visualization, create_mermaid_visualization_for_github, create_pattern, create_prd, create_sigma_rules, create_user_story, explain_code, explain_docs, explain_project, export_data_as_csv, extract_algorithm_update_recommendations, extract_bd_ideas, extract_mcp_servers, extract_poc, extract_product_features, generate_code_rules, identify_job_stories, improve_prompt, official_pattern_template, recommend_pipeline_upgrades, refine_design_document, review_code, review_design, sanitize_broken_html_to_markdown, suggest_gt_command, suggest_pattern, summarize_git_changes, summarize_git_diff, summarize_pull-requests, write_nuclei_template_rule, write_pull-request, write_semgrep_rule
**DEVOPS**: analyze_terraform_plan
**EXTRACT**: analyze_comments, create_aphorisms, create_golden_rules, create_tags, create_video_chapters, extract_algorithm_update_recommendations, extract_alpha, extract_article_wisdom, extract_book_ideas, extract_book_recommendations, extract_business_ideas, extract_characters, extract_controversial_ideas, extract_core_message, extract_ctf_writeup, extract_domains, extract_extraordinary_claims, extract_ideas, extract_insights, extract_insights_dm, extract_instructions, extract_jokes, extract_latest_video, extract_main_activities, extract_main_idea, extract_mcp_servers, extract_most_redeeming_thing, extract_patterns, extract_poc, extract_predictions, extract_primary_problem, extract_primary_solution, extract_product_features, extract_questions, extract_recipe, extract_recommendations, extract_references, extract_skills, extract_song_meaning, extract_sponsors, extract_videoid, extract_wisdom, extract_wisdom_agents, extract_wisdom_dm, extract_wisdom_nometa, extract_wisdom_short, extract_wisdom_with_attribution, generate_code_rules, t_extract_intro_sentences, t_extract_panel_topics
**EXTRACT**: analyze_comments, create_aphorisms, create_golden_rules, create_tags, create_upgrade_pack, create_video_chapters, extract_algorithm_update_recommendations, extract_all_quotes, extract_alpha, extract_article_wisdom, extract_bd_ideas, extract_book_ideas, extract_book_recommendations, extract_business_ideas, extract_characters, extract_controversial_ideas, extract_core_message, extract_ctf_writeup, extract_domains, extract_extraordinary_claims, extract_ideas, extract_insights, extract_insights_dm, extract_instructions, extract_jokes, extract_latest_video, extract_main_activities, extract_main_idea, extract_mcp_servers, extract_most_redeeming_thing, extract_patterns, extract_poc, extract_predictions, extract_primary_problem, extract_primary_solution, extract_product_features, extract_questions, extract_recipe, extract_recommendations, extract_references, extract_skills, extract_song_meaning, extract_sponsors, extract_videoid, extract_wisdom, extract_wisdom_agents, extract_wisdom_dm, extract_wisdom_nometa, extract_wisdom_short, extract_wisdom_with_attribution, generate_code_rules, t_extract_intro_sentences, t_extract_panel_topics
**GAMING**: create_npc, create_rpg_summary, summarize_rpg_session

View File

@@ -120,6 +120,10 @@ Analyze user comments for sentiment, extract praise/criticism, and summarize rec
Analyze debates identifying arguments, agreements, and emotional intensity.
### analyze_discord_structure
Analyze Discord server structures for organizational issues, permissions, and optimization.
### analyze_interviewer_techniques
Study interviewer questions/methods to identify effective interview techniques.
@@ -212,6 +216,10 @@ Identify automation risks and career resilience strategies.
Develop positive mental frameworks for challenging situations.
### create_golden_rules
Extract enforceable rules from codebases to prevent common mistakes and ensure consistency.
### create_story_about_people_interaction
Analyze two personas, compare their dynamics, and craft a realistic, character-driven story from those insights.
@@ -232,6 +240,10 @@ Generate single-word tags for content categorization and mind mapping.
Distill the fundamental message into a single, impactful sentence.
### extract_bd_ideas
Extract actionable ideas from content and transform into bd create commands.
### extract_extraordinary_claims
Identify/extract claims contradicting scientific consensus.
@@ -344,6 +356,10 @@ Convert board meeting transcripts into formal meeting notes for corporate record
Summarize AI prompts to identify instructions and outputs.
### suggest_gt_command
Suggest optimal Gas Town (GT) commands based on user intent and task description.
### t_analyze_challenge_handling
Evaluate challenge handling by analyzing response strategies.
@@ -382,6 +398,10 @@ Generate annual reviews by analyzing achievements and learnings.
Compile relevant, attributed aphorisms from historical figures on topics.
### create_golden_rules
Extract enforceable rules from codebases to prevent common mistakes and ensure consistency.
### create_upgrade_pack
Extract world model updates/algorithms to improve decision-making.
@@ -398,6 +418,10 @@ Extract recommendations for improving algorithms, focusing on steps.
Extracts the most novel and surprising ideas ("alpha") from content, inspired by information theory.
### extract_all_quotes
Extract all inspirational and educational quotes from content including podcasts and essays.
### extract_article_wisdom
Extract wisdom from articles, organizing into actionable takeaways.
@@ -410,6 +434,10 @@ Extract novel ideas from books to inspire new projects.
Extract/prioritize practical advice from books.
### extract_bd_ideas
Extract actionable ideas from content and transform into bd create commands.
### extract_characters
Identify all characters (human and non-human), resolve their aliases and pronouns into canonical names, and produce detailed descriptions of each character's role, motivations, and interactions ranked by narrative importance.
@@ -490,10 +518,6 @@ Extract learnings from DMs, focusing on personal growth.
Extract pure wisdom from content without metadata.
### extract_wisdom_short
Extract condensed insightful ideas and recommendations focusing on life wisdom.
### extract_wisdom_with_attribution
Extract insightful ideas and recommendations with speaker attribution for quotes.
@@ -582,6 +606,10 @@ Transform content into academic papers using LaTeX layout.
Create step-by-step DIY tutorials with clear instructions and materials.
### create_design_system
Create comprehensive CSS design systems with tokens, typography, spacing, and components.
### create_formal_email
Compose professional emails with proper tone and structure.
@@ -688,6 +716,10 @@ Generate appropriate responses to technical interview questions.
Expert software dev. guidance focusing on Java, Spring, frontend, and best practices.
### create_bd_issue
Transform natural language descriptions into optimal bd create commands for issue tracking.
### coding_master
Explain coding concepts/languages for beginners
@@ -704,10 +736,18 @@ Design coding projects with clear architecture, steps, and best practices.
Create software architecture docs using C4 model.
### create_design_system
Create comprehensive CSS design systems with tokens, typography, spacing, and components.
### create_git_diff_commit
Generate clear git commit messages and commands for code changes.
### create_golden_rules
Extract enforceable rules from codebases to prevent common mistakes and ensure consistency.
### create_loe_document
Create detailed Level of Effort (LOE) estimation documents.
@@ -728,6 +768,10 @@ Analyze/explain code, security tool outputs, and configs.
Create project overviews with instructions and usage examples.
### extract_bd_ideas
Extract actionable ideas from content and transform into bd create commands.
### extract_poc
Extract/document proof-of-concept demos from technical content.
@@ -752,6 +796,10 @@ Performs a comprehensive code review, providing detailed feedback on correctness
Evaluate software designs for scalability and security.
### suggest_gt_command
Suggest optimal Gas Town (GT) commands based on user intent and task description.
### summarize_git_changes
Summarize git changes highlighting key modifications.
@@ -868,6 +916,10 @@ Create Semgrep rules for static code analysis.
## BUSINESS PATTERNS
### analyze_discord_structure
Analyze Discord server structures for organizational issues, permissions, and optimization.
### create_hormozi_offer
Create compelling business offers using Alex Hormozi's methodology.
@@ -912,6 +964,10 @@ Convert content into flashcard format for learning.
Transform unstructured text or markdown content into interactive HTML concept maps using Vis.js by extracting key concepts and their logical relationships.
### create_design_system
Create comprehensive CSS design systems with tokens, typography, spacing, and components.
### create_excalidraw_visualization
Create visualizations using Excalidraw.

View File

@@ -0,0 +1,127 @@
# Azure OpenAI Troubleshooting
This document describes a known issue with Azure OpenAI integration and its fix.
## Issue: DeploymentNotFound Error (404)
### Symptoms
When using Fabric with Azure OpenAI, you may encounter this error:
```
POST "https://{resource}.cognitiveservices.azure.com/openai/chat/completions?api-version=...": 404 Not Found
{
"code": "DeploymentNotFound",
"message": "The API deployment for this resource does not exist..."
}
```
### Root Cause
Azure OpenAI requires deployment names in the URL path:
```
✅ Correct: /openai/deployments/{deployment-name}/chat/completions
❌ Incorrect: /openai/chat/completions
```
The OpenAI Go SDK's `azure.WithEndpoint()` middleware has a bug in its URL transformation logic:
1. The SDK's `jsonRoutes` map expects paths like `/openai/chat/completions`
2. But the SDK actually sends paths like `/chat/completions` (without the `/openai/` prefix)
3. The `/openai/` prefix is included in the base URL, not the request path
4. This causes the route matching to **always fail**, so deployment names are never injected into the URL
### Technical Details
In the SDK's `azure/azure.go`:
```go
// SDK checks for these routes:
var jsonRoutes = map[string]bool{
"/openai/chat/completions": true, // Expects /openai/ prefix
// ...
}
// But actual request path is:
path := "chat/completions" // No /openai/ prefix!
```
The mismatch means `jsonRoutes[req.URL.Path]` never matches, and the deployment name transformation never happens.
## Fix
The fix in `internal/plugins/ai/azure/azure.go` adds custom middleware that:
1. Intercepts outgoing requests
2. Extracts the deployment name from the request body's `model` field
3. Transforms the URL path to include `/deployments/{name}/`
```go
// Transform: /chat/completions -> /openai/deployments/{name}/chat/completions
func azureDeploymentMiddleware(req *http.Request, next option.MiddlewareNext) (*http.Response, error) {
// Routes that need deployment name injection
deploymentRoutes := map[string]bool{
"/chat/completions": true,
"/completions": true,
"/embeddings": true,
"/audio/speech": true,
"/audio/transcriptions": true,
"/audio/translations": true,
"/images/generations": true,
}
// Extract deployment from body and transform URL...
}
```
## Additional Fix: StreamOptions Error
### Symptom
```
400 Bad Request
{
"message": "The 'stream_options' parameter is only allowed when 'stream' is enabled."
}
```
### Cause
The Chat Completions API was sending `stream_options` for all requests, but Azure only accepts this parameter when `stream: true` is also set.
### Fix
Moved `StreamOptions` to only be set for streaming requests in `internal/plugins/ai/openai/chat_completions.go`.
## Configuration
Ensure your Azure OpenAI configuration is correct:
```bash
# In ~/.config/fabric/.env
AZURE_API_KEY=your-api-key
AZURE_API_BASE_URL=https://{your-resource}.cognitiveservices.azure.com/
AZURE_DEPLOYMENTS=your-deployment-1,your-deployment-2 # Comma-separated deployment names
AZURE_API_VERSION=2024-12-01-preview # Optional, defaults to 2024-05-01-preview
```
**Note:** The deployment name is what you specified when deploying a model in Azure AI Foundry (formerly Azure OpenAI Studio), not the model name itself (e.g., `my-gpt4-deployment` rather than `gpt-4`).
## Verification
Test your Azure OpenAI setup:
```bash
fabric --model <your-deployment-name> --pattern summarize "Hello world"
```
Replace `<your-deployment-name>` with the actual deployment name from your Azure configuration.
You should see a successful response from your Azure OpenAI deployment.
## References
- GitHub Issue: [#1954](https://github.com/danielmiessler/fabric/issues/1954)
- Pull Request: [#1965](https://github.com/danielmiessler/fabric/pull/1965)
- [Azure OpenAI REST API Reference](https://learn.microsoft.com/en-us/azure/ai-services/openai/reference)

View File

@@ -1,13 +1,19 @@
package azure
import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
"net/url"
"strings"
"github.com/danielmiessler/fabric/internal/plugins"
"github.com/danielmiessler/fabric/internal/plugins/ai/openai"
openaiapi "github.com/openai/openai-go"
"github.com/openai/openai-go/azure"
"github.com/openai/openai-go/option"
)
func NewClient() (ret *Client) {
@@ -50,14 +56,90 @@ func (oi *Client) configure() error {
oi.ApiVersion.Value = apiVersion
}
// Build the Azure endpoint URL with /openai/ suffix
endpoint := strings.TrimSuffix(baseURL, "/") + "/openai/"
// Create the client with Azure authentication and custom middleware
// to fix the deployment URL path (workaround for SDK bug where
// jsonRoutes expects /openai/chat/completions but SDK uses /chat/completions)
client := openaiapi.NewClient(
azure.WithAPIKey(apiKey),
azure.WithEndpoint(baseURL, apiVersion),
option.WithBaseURL(endpoint),
option.WithQueryAdd("api-version", apiVersion),
option.WithMiddleware(azureDeploymentMiddleware),
)
oi.ApiClient = &client
return nil
}
// azureDeploymentMiddleware transforms Azure OpenAI API paths to include
// the deployment name. Azure requires URLs like:
// /openai/deployments/{deployment-name}/chat/completions
// but the SDK sends paths like /chat/completions
func azureDeploymentMiddleware(req *http.Request, next option.MiddlewareNext) (*http.Response, error) {
// Routes that need deployment name injection
deploymentRoutes := map[string]bool{
"/chat/completions": true,
"/completions": true,
"/embeddings": true,
"/audio/speech": true,
"/audio/transcriptions": true,
"/audio/translations": true,
"/images/generations": true,
}
path := req.URL.Path
// Remove /openai prefix if present (SDK may add it via base URL)
trimmedPath := strings.TrimPrefix(path, "/openai")
if !strings.HasPrefix(trimmedPath, "/") {
trimmedPath = "/" + trimmedPath
}
if deploymentRoutes[trimmedPath] {
// Extract model/deployment name from request body
deploymentName, err := extractDeploymentFromBody(req)
if err != nil {
return nil, fmt.Errorf("failed to extract deployment name: %w", err)
}
// Transform path: /chat/completions -> /deployments/{name}/chat/completions
newPath := "/openai/deployments/" + url.PathEscape(deploymentName) + trimmedPath
req.URL.Path = newPath
req.URL.RawPath = "" // Clear RawPath to ensure Path is used
}
return next(req)
}
// extractDeploymentFromBody reads the model field from the JSON request body
// and restores the body for subsequent use
func extractDeploymentFromBody(req *http.Request) (string, error) {
if req.Body == nil {
return "", fmt.Errorf("request body is nil")
}
bodyBytes, err := io.ReadAll(req.Body)
if err != nil {
return "", err
}
// Restore body for subsequent reads
req.Body = io.NopCloser(bytes.NewReader(bodyBytes))
var payload struct {
Model string `json:"model"`
}
if err := json.Unmarshal(bodyBytes, &payload); err != nil {
return "", err
}
if payload.Model == "" {
return "", fmt.Errorf("model field is empty or missing in request body")
}
return payload.Model, nil
}
func parseDeployments(value string) []string {
parts := strings.Split(value, ",")
var deployments []string

View File

@@ -35,6 +35,10 @@ func (o *Client) sendStreamChatCompletions(
defer close(channel)
req := o.buildChatCompletionParams(msgs, opts)
// Set StreamOptions only for streaming requests (required to get usage stats)
req.StreamOptions = openai.ChatCompletionStreamOptionsParam{
IncludeUsage: openai.Bool(true),
}
stream := o.ApiClient.Chat.Completions.NewStreaming(context.Background(), req)
for stream.Next() {
chunk := stream.Current()
@@ -82,9 +86,6 @@ func (o *Client) buildChatCompletionParams(
ret = openai.ChatCompletionNewParams{
Model: shared.ChatModel(opts.Model),
Messages: messages,
StreamOptions: openai.ChatCompletionStreamOptionsParam{
IncludeUsage: openai.Bool(true),
},
}
if !opts.Raw {

View File

@@ -1 +1 @@
"1.4.390"
"1.4.392"

View File

@@ -0,0 +1,4 @@
{
"python-envs.defaultEnvManager": "ms-python.python:system",
"python-envs.pythonProjects": []
}

View File

@@ -1979,6 +1979,37 @@
"DEVELOPMENT",
"EXTRACT"
]
},
{
"patternName": "create_bd_issue",
"description": "Transform natural language descriptions into optimal bd create commands for issue tracking.",
"tags": [
"DEVELOPMENT"
]
},
{
"patternName": "extract_all_quotes",
"description": "Extract all inspirational and educational quotes from content including podcasts and essays.",
"tags": [
"EXTRACT"
]
},
{
"patternName": "extract_bd_ideas",
"description": "Extract actionable ideas from content and transform into bd create commands.",
"tags": [
"EXTRACT",
"ANALYSIS",
"DEVELOPMENT"
]
},
{
"patternName": "suggest_gt_command",
"description": "Suggest optimal Gas Town (GT) commands based on user intent and task description.",
"tags": [
"DEVELOPMENT",
"ANALYSIS"
]
}
]
}

View File

@@ -955,6 +955,22 @@
{
"patternName": "create_golden_rules",
"pattern_extract": "# IDENTITY and PURPOSE You are an expert at extracting implicit rules and guidelines from codebases, documentation, or team practices. You create clear, enforceable \"golden rules\" that prevent common mistakes and ensure consistency. Golden rules are the non-negotiable standards that, if followed, prevent 80% of problems. # STEPS 1. Analyze the input for patterns, anti-patterns, and conventions 2. Identify implicit rules that are not documented 3. Extract explicit rules that are critical 4. Categorize by domain (security, style, process, etc.) 5. Prioritize by impact (critical > important > nice-to-have) 6. Write rules that are specific and testable # OUTPUT FORMAT ## Golden Rules: [Domain/Project Name] ### Critical Rules These MUST be followed. Violations cause significant problems. #### 1. [Rule Name] **Rule**: [Clear, specific statement] **Why**: [Consequence of violation] **Do**: ``` // Correct example ``` **Don't**: ``` // Incorrect example ``` **Test**: [How to verify compliance] --- #### 2. [Rule Name] ... ### Important Rules Should be followed. Violations cause friction or technical debt. #### 1. [Rule Name] ... ### Guidelines Best practices. Violations are acceptable with justification. #### 1. [Guideline Name] ... ### Quick Reference | Category | Rule | Priority | |----------|------|----------| | Security | [Short rule] | Critical | | Style | [Short rule] | Important | | Process | [Short rule] | Guideline | ### Checklist Pre-commit/deploy checklist derived from rules: - [ ] [Check 1] - [ ] [Check 2] - [ ] [Check 3] # OUTPUT INSTRUCTIONS - Rules must be specific and testable - Include both positive (Do) and negative (Don't) examples - Explain WHY each rule exists - Prioritize ruthlessly (fewer critical rules) - Make rules enforceable (can be checked automatically or in review) - Use consistent formatting - Keep rules under 2 sentences each # EXAMPLE RULE #### No Hardcoded Credentials **Rule**: Never commit API keys, passwords, or secrets to the repository. **Why**: Exposed credentials lead to security breaches and are nearly impossible to fully revoke once in git history. **Do**: ```typescript const apiKey = Deno.env.get(\"API_KEY\"); ``` **Don't**: ```typescript const apiKey = \"sk-abc123...\"; // NEVER DO THIS ``` **Test**: Run `git secrets --scan` or grep for common key patterns. # INPUT INPUT:"
},
{
"patternName": "create_bd_issue",
"pattern_extract": "# IDENTITY and PURPOSE You are an expert at transforming natural language issue descriptions into optimal `bd create` commands. You understand the bd (Beads) issue tracker deeply and always select the most appropriate flags based on the user's intent. Your goal is to produce a single, well-crafted `bd create` command that captures all the relevant details from the input while following bd best practices. # BD CREATE REFERENCE Available flags: - `--title \"string\"` or positional first arg: Issue title (imperative mood: \"Add...\", \"Fix...\", \"Update...\") - `-d, --description \"string\"`: Issue description (context, acceptance criteria, notes) - `-t, --type TYPE`: bug|feature|task|epic|chore|merge-request|molecule|gate|agent|role|rig|convoy|event (default: task) - `-p, --priority P0-P4`: P0=critical, P1=high, P2=normal (default), P3=low, P4=wishlist - `-l, --labels strings`: Comma-separated labels (e.g., ux,backend,docs) - `-a, --assignee string`: Who should work on this - `-e, --estimate int`: Time estimate in minutes - `--due string`: Due date (+6h, +1d, +2w, tomorrow, next monday, 2025-01-15) - `--defer string`: Hide until date (same formats as --due) - `--deps strings`: Dependencies (e.g., 'bd-20' or 'blocks:bd-15') - `--parent string`: Parent issue ID for hierarchical child - `--acceptance string`: Acceptance criteria - `--design string`: Design notes - `--notes string`: Additional notes - `--external-ref string`: External reference (e.g., 'gh-9', 'jira-ABC') - `--ephemeral`: Mark as ephemeral (not exported) - `--prefix string` or `--rig string`: Create in specific rig - `--repo string`: Target repository for issue Type-specific flags: - Molecules: `--mol-type swarm|patrol|work` - Agents: `--agent-rig string`, `--role-type polecat|crew|witness|refinery|mayor|deacon` - Events: `--event-actor string`, `--event-category string`, `--event-payload string`, `--event-target string` - Gates: `--waits-for string`, `--waits-for-gate all-children|any-children` # STEPS 1. Parse the input to understand: - What is being requested (the core action/fix/feature) - Any context or background - Urgency or priority signals - Technical domain (for labels) - Time-related constraints - Dependencies or blockers - Acceptance criteria 2. Determine the issue type: - bug: Something is broken - feature: New capability - task: Work that needs doing - epic: Large multi-part effort - chore: Maintenance/cleanup 3. Assess priority: - P0: Production down, security breach, data loss - P1: Major functionality broken, blocking release - P2: Standard work (default) - P3: Nice to have, can wait - P4: Someday/maybe, ideas 4. Select appropriate labels (limit to 1-4): - Domain: frontend, backend, api, db, infra, mobile - Category: ux, perf, security, docs, tech-debt - Size: quick-win, spike, refactor 5. Construct the optimal command: - Title: 3-8 words, imperative mood - Description: 1-3 sentences if complex - Only include flags that add value (skip defaults) # OUTPUT INSTRUCTIONS - Output ONLY the bd create command, nothing else - No markdown code blocks, no explanations, no warnings - Use double quotes for all string values - Escape any internal quotes with backslash - If description is short, use -d; if long, suggest --body-file - Prefer explicit type when not \"task\" - Only include priority when not P2 (default) - Only include labels when they add categorization value - Order flags: type, priority, labels, then others # EXAMPLES Input: \"We need to add dark mode to the settings page\" Output: bd"
},
{
"patternName": "extract_all_quotes",
"pattern_extract": "# 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"
},
{
"patternName": "extract_bd_ideas",
"pattern_extract": "# IDENTITY and PURPOSE You are an expert at extracting actionable ideas from content and transforming them into well-structured issue tracker commands. You analyze input text—meeting notes, brainstorms, articles, conversations, or any content—and identify concrete, actionable items that should be tracked as issues. You understand that good issues are: - Specific and actionable (not vague wishes) - Appropriately scoped (not too big, not too small) - Self-contained (understandable without reading the source) - Prioritized by impact and urgency Take a step back and think step-by-step about how to achieve the best possible results. # STEPS 1. Read the input content thoroughly, looking for: - Explicit tasks or action items mentioned - Problems that need solving - Ideas that could be implemented - Improvements or enhancements suggested - Bugs or issues reported - Features requested 2. For each potential issue, evaluate: - Is this actionable? (Skip vague wishes or opinions) - Is this appropriately scoped? (Break down large items) - What priority does this deserve? (P0=critical, P1=high, P2=normal, P3=low, P4=wishlist) - What type is it? (feature, bug, task, idea, improvement) - What labels apply? (e.g., ux, backend, docs, perf) 3. Transform each item into a bd create command with: - Clear, concise title (imperative mood: \"Add...\", \"Fix...\", \"Update...\") - Description providing context from the source - Appropriate priority - Relevant labels 4. Order results by priority (highest first) # OUTPUT SECTIONS ## SUMMARY A 2-3 sentence summary of what was analyzed and how many actionable items were found. ## ISSUES Output each issue as a `bd create` command, one per line, formatted for easy copy-paste execution. ## SKIPPED List any items from the input that were considered but not included, with brief reason (e.g., \"too vague\", \"not actionable\", \"duplicate of above\"). # OUTPUT INSTRUCTIONS - Output in Markdown format - Each bd command should be on its own line in a code block - Use this exact format for commands: ```bash bd create \"Title in imperative mood\" -d \"Description with context\" -p P2 -l label1,label2 ``` - Priorities: P0 (critical/blocking), P1 (high/important), P2 (normal), P3 (low), P4 (wishlist) - Common labels: bug, feature, task, idea, docs, ux, backend, frontend, perf, security, tech-debt - Titles should be 3-8 words, imperative mood (\"Add X\", \"Fix Y\", \"Update Z\") - Descriptions should be 1-3 sentences providing context - Do not include dependencies (--deps) unless explicitly stated in the source - Do not include estimates (--estimate) unless explicitly stated - Do not give warnings or notes outside the defined sections - Extract at least 3 ideas if possible, maximum 20 - Ensure each issue is distinct—no duplicates # EXAMPLE OUTPUT ## SUMMARY Analyzed meeting notes from product planning session. Found 7 actionable items ranging from critical bugs to wishlist features. ## ISSUES ```bash bd create \"Fix login timeout on mobile Safari\" -d \"Users report being logged out after 5 minutes on iOS Safari. Affects conversion flow.\" -p P1 -l bug,mobile,auth bd create \"Add dark mode toggle to settings\" -d \"Multiple user requests for dark mode."
},
{
"patternName": "suggest_gt_command",
"pattern_extract": "# IDENTITY You are an expert Gas Town (GT) assistant who knows every GT command intimately. Your role is to understand what the user wants to accomplish and suggest the exact GT command(s) to achieve it. You think like a patient mentor who: 1. Understands the user's intent, even when poorly expressed 2. Suggests the most direct command for the task 3. Provides context that prevents mistakes 4. Offers alternatives when multiple approaches exist # GT COMMAND REFERENCE ## Work Management Commands | Command | Purpose | Common Usage | |---------|---------|--------------| | `gt bead` | Bead (issue) management | `gt bead list`, `gt bead show <id>` | | `gt cat <bead>` | Display bead content | View issue details | | `gt close <bead>` | Close one or more beads | Mark work complete | | `gt commit` | Git commit with agent identity | Auto-attributes to current agent | | `gt convoy` | Track batches of work | `gt convoy list`, `gt convoy show <id>` | | `gt done` | Signal work ready for merge | Moves to merge queue | | `gt formula` | Manage workflow formulas | Reusable work templates | | `gt gate` | Gate coordination | Async work handoffs | | `gt handoff` | Hand off to fresh session | Continue work with new context | | `gt hook` | Show/attach work on your hook | See what you're working on | | `gt mq` | Merge queue operations | `gt mq list`, `gt mq status` | | `gt park` | Park work for async resumption | Pause without losing context | | `gt ready` | Show work ready across town | Find available work | | `gt release` | Release stuck in_progress issues | Unblock stuck work | | `gt resume` | Resume parked work | Continue from checkpoint | | `gt show <bead>` | Show bead details | Inspect any issue | | `gt sling <bead> <target>` | **THE unified work dispatch** | Assign work to agents | | `gt trail` | Show recent agent activity | Activity log | | `gt unsling` | Remove work from hook | Unassign work | ## Agent Management Commands | Command | Purpose | Common Usage | |---------|---------|--------------| | `gt agents` | Switch between agent sessions | Manage active agents | | `gt boot` | Manage Boot (Deacon watchdog) | Monitor Deacon health | | `gt deacon` | Manage the Deacon | Town-level watchdog | | `gt dog` | Manage dogs | Cross-rig infrastructure workers | | `gt mayor` | Manage the Mayor | `gt mayor status`, `gt mayor start/stop` | | `gt polecat` | Manage polecats | Ephemeral workers | | `gt refinery` | Manage the Refinery | Merge queue processor | | `gt role` | Show/manage agent role | Identity management | | `gt session` | Manage polecat sessions | Session lifecycle | | `gt witness` | Manage the Witness | Per-rig polecat health monitor | ## Communication Commands | Command | Purpose |"
}
]
}