Skip to content

Commit 48aff84

Browse files
committed
docs: remove deleted template references
1 parent 36bc392 commit 48aff84

13 files changed

Lines changed: 11 additions & 3527 deletions

AGENTS.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ Agents must NOT:
292292

293293
**Agent Priority: Use templates first when creating workflows**
294294

295-
flowsh includes a comprehensive template system with 14 production-ready workflows. Agents should **always start with templates** rather than creating workflows from scratch.
295+
flowsh includes a comprehensive template system with 8 production-ready workflows. Agents should **always start with templates** rather than creating workflows from scratch.
296296

297297
**Template Discovery:**
298298

@@ -305,12 +305,10 @@ flowsh init --help # Same as above
305305

306306
- **Enhanced (4)**: Simple, ready-to-use templates
307307
- `ai-to-telegram-simple`, `data-pipeline-simple`, `ai-to-telegram`, `data-pipeline`
308-
- **Advanced (10)**: Complex workflows by subcategory
309-
- `ai-workflows/`: `ai-chat-memory`, `multi-stage-ai-workflows`
310-
- `content-distribution/`: `content-moderation`, `multi-format-distribution`, `scheduled-content-generation`
311-
- `data-processing/`: `data-validation-cleanup`, `parallel-processing-aggregation`
312-
- `devops-automation/`: `automated-testing-monitoring`
313-
- `meta-workflows/`: `interactive-workflow-builder`
308+
- **Advanced (4)**: Complex workflows by subcategory
309+
- `ai-workflows/`: `ai-chat-memory`
310+
- `content-distribution/`: `content-moderation`
311+
- `data-processing/`: `data-validation-cleanup`
314312
- `reliability/`: `circuit-breaker`
315313

316314
**Template Usage Pattern for Agents:**

PRPs/FLOWSH_INIT_COMMAND_20250107.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ class TemplateDiscovery {
6060
// Support multiple lookup formats:
6161
// - circuit-breaker-template
6262
// - circuit-breaker
63-
// - automated-testing-monitoring-template
6463
}
6564

6665
getHierarchicalDisplay(): HierarchicalTemplates {

PRPs/INITIAL_FLOWSH_INIT.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ flowsh init ai-to-telegram-simple my-bot.yaml
8383
flowsh init circuit-breaker workflows/resilient-api.yaml
8484

8585
# Create workflow from advanced template
86-
flowsh init automated-testing-monitoring ci-pipeline.yaml
86+
flowsh init ai-chat-memory chat-session.yaml
8787
```
8888

8989
**Expected Output Format:**
@@ -106,20 +106,12 @@ Available templates:
106106
advanced:
107107
ai-workflows:
108108
- ai-chat-memory-template
109-
- multi-stage-ai-workflows-template
110109
reliability:
111110
- circuit-breaker-template
112-
devops-automation:
113-
- automated-testing-monitoring-template
114111
content-distribution:
115112
- content-moderation-template
116-
- multi-format-distribution-template
117-
- scheduled-content-generation-template
118113
data-processing:
119114
- data-validation-cleanup-template
120-
- parallel-processing-aggregation-template
121-
meta-workflows:
122-
- interactive-workflow-builder-template
123115
```
124116

125117
**Error Handling Examples:**

PRPs/PHASE2_create_advanced_templates.md

Lines changed: 0 additions & 150 deletions
Original file line numberDiff line numberDiff line change
@@ -287,156 +287,6 @@ graph:
287287
**History Size:** ${#updated_history} characters
288288
```
289289
290-
### Example 3: Multi-Format Content Distribution Template
291-
292-
```yaml
293-
# multi-format-distribution-template.yaml
294-
metadata:
295-
template_name: 'Multi-Channel Content Distribution'
296-
category: 'content-distribution'
297-
intent_keywords:
298-
[
299-
'multi channel',
300-
'content distribution',
301-
'social media',
302-
'cross platform',
303-
'content syndication',
304-
]
305-
success_rate: 73
306-
deployment_time: '9 minutes'
307-
complexity_level: 'advanced'
308-
309-
skill_guidance:
310-
variable_flow_pattern: 'source_content → [format_a, format_b, format_c] → [channel_a, channel_b, channel_c]'
311-
parallel_execution: 'format transformations run concurrently'
312-
distribution_strategy: 'channel-specific optimization'
313-
314-
workflow:
315-
name: 'Multi-Format Content Distribution'
316-
description: 'Generate content and distribute across multiple channels with format optimization'
317-
318-
variables:
319-
content_topic: 'workflow automation best practices'
320-
content_style: 'professional'
321-
322-
graph:
323-
nodes:
324-
- id: 'generate_source_content'
325-
type: 'llm'
326-
data:
327-
title: 'Generate Source Content'
328-
model: { name: 'gpt-4' }
329-
prompt: |
330-
Create comprehensive content about: ${content_topic}
331-
332-
Style: ${content_style}
333-
Length: 800-1000 words
334-
Format: Well-structured with clear sections
335-
336-
This content will be adapted for multiple channels, so make it informative and engaging.
337-
338-
# Parallel format transformations
339-
- id: 'format_for_twitter'
340-
type: 'template-transform'
341-
data:
342-
title: 'Format for Twitter Thread'
343-
template: |
344-
🧵 Thread: ${content_topic}
345-
346-
{{#split llm_content 280}}
347-
{{thread_number}}/{{total_threads}} {{content_chunk}}
348-
349-
{{#if is_last}}#WorkflowAutomation #Productivity{{/if}}
350-
{{/split}}
351-
output_variable: 'twitter_content'
352-
353-
- id: 'format_for_linkedin'
354-
type: 'template-transform'
355-
data:
356-
title: 'Format for LinkedIn Post'
357-
template: |
358-
🚀 **${content_topic}**
359-
360-
${llm_content:0:1200}
361-
362-
Key takeaways in comments 👇
363-
364-
#WorkflowAutomation #Productivity #AI #Automation
365-
output_variable: 'linkedin_content'
366-
367-
- id: 'format_for_email'
368-
type: 'template-transform'
369-
data:
370-
title: 'Format for Email Newsletter'
371-
template: |
372-
Subject: ${content_topic} - Weekly Insights
373-
374-
<!DOCTYPE html>
375-
<html>
376-
<body>
377-
<h1>${content_topic}</h1>
378-
<div>${llm_content}</div>
379-
<p>Best regards,<br>Your Automation Team</p>
380-
</body>
381-
</html>
382-
output_variable: 'email_content'
383-
384-
# Parallel distribution
385-
- id: 'distribute_to_telegram'
386-
type: 'telegram'
387-
data:
388-
message: '${twitter_content}'
389-
parse_mode: 'HTML'
390-
391-
- id: 'post_to_webhook'
392-
type: 'http-request'
393-
data:
394-
title: 'Post to LinkedIn via Webhook'
395-
url: '${LINKEDIN_WEBHOOK_URL}'
396-
method: 'POST'
397-
headers:
398-
Content-Type: 'application/json'
399-
body: |
400-
{
401-
"platform": "linkedin",
402-
"content": "${linkedin_content}",
403-
"schedule": "immediate"
404-
}
405-
406-
- id: 'send_email'
407-
type: 'http-request'
408-
data:
409-
title: 'Send Email Newsletter'
410-
url: '${EMAIL_API_ENDPOINT}'
411-
method: 'POST'
412-
headers:
413-
Authorization: 'Bearer ${EMAIL_API_TOKEN}'
414-
body: |
415-
{
416-
"to": "${EMAIL_LIST_ID}",
417-
"subject": "${content_topic} - Weekly Insights",
418-
"html": "${email_content}"
419-
}
420-
421-
- id: 'distribution_summary'
422-
type: 'answer'
423-
data:
424-
title: 'Multi-Channel Distribution Complete'
425-
answer: |
426-
📢 **Content Distribution Summary**
427-
428-
**Source Topic:** ${content_topic}
429-
**Content Generated:** ${#llm_content} characters
430-
431-
**Distribution Channels:**
432-
✅ Twitter: ${#twitter_content} characters (thread format)
433-
✅ LinkedIn: ${#linkedin_content} characters (professional format)
434-
✅ Email: HTML newsletter sent to ${EMAIL_LIST_ID}
435-
✅ Telegram: Posted to channel
436-
437-
**Distribution Status:** All channels updated successfully
438-
```
439-
440290
## DOCUMENTATION:
441291
442292
### Technical Foundation References

PRPs/fix-template-variable-initialization-systematic.md

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
**Current Failures**:
88

99
- `content-moderation-template.yaml`: `PROFANITY_WORDS: unbound variable` (line 553)
10-
- `multi-format-distribution-template.yaml`: `email_content: unbound variable` (line 1096)
11-
- `scheduled-content-generation-template.yaml`: `MAIN_CONTENT: unbound variable` (line 582)
1210
- `circuit-breaker-template.yaml`: `PRIMARY_SUCCESS: unbound variable` (line 479)
1311

1412
**Root Cause**: Templates use extensive `environment_variables` sections that declare variables for template processing, but the actual shell script generation doesn't properly initialize these as global shell variables before they're used in code node bash blocks.
@@ -171,22 +169,6 @@ IMPORTANT: Execute every task in order, top to bottom. Each task is atomic and i
171169
- **GOTCHA**: Keep template functionality but reduce variable complexity
172170
- **VALIDATE**: `cd /home/tom/workspace/ai/made/workspace/flowsh && flowsh validate templates/advanced/content-distribution/content-moderation-template.yaml`
173171

174-
### SIMPLIFY templates/advanced/content-distribution/multi-format-distribution-template.yaml
175-
176-
- **IMPLEMENT**: Similar simplification to content-moderation template
177-
- **PATTERN**: Essential variables only, local variables for single-use cases
178-
- **REMOVE**: Unnecessary environment variable declarations
179-
- **GOTCHA**: Maintain template's educational value while reducing complexity
180-
- **VALIDATE**: `cd /home/tom/workspace/ai/made/workspace/flowsh && flowsh validate templates/advanced/content-distribution/multi-format-distribution-template.yaml`
181-
182-
### SIMPLIFY templates/advanced/content-distribution/scheduled-content-generation-template.yaml
183-
184-
- **IMPLEMENT**: Reduce variable complexity similar to other templates
185-
- **PATTERN**: Simple environment_variables section with clear defaults
186-
- **REMOVE**: Over-engineered variable processing
187-
- **GOTCHA**: Focus on showing node functionality rather than variable processing
188-
- **VALIDATE**: `cd /home/tom/workspace/ai/made/workspace/flowsh && flowsh validate templates/advanced/content-distribution/scheduled-content-generation-template.yaml`
189-
190172
### SIMPLIFY templates/advanced/reliability/circuit-breaker-template.yaml
191173

192174
- **IMPLEMENT**: Simplify circuit breaker template variables
@@ -273,17 +255,13 @@ cd /home/tom/workspace/ai/made/workspace/flowsh && npm test -- --grep "shell.*ge
273255

274256
```bash
275257
cd /home/tom/workspace/ai/made/workspace/flowsh && flowsh validate templates/advanced/content-distribution/content-moderation-template.yaml
276-
cd /home/tom/workspace/ai/made/workspace/flowsh && flowsh validate templates/advanced/content-distribution/multi-format-distribution-template.yaml
277-
cd /home/tom/workspace/ai/made/workspace/flowsh && flowsh validate templates/advanced/content-distribution/scheduled-content-generation-template.yaml
278258
cd /home/tom/workspace/ai/made/workspace/flowsh && flowsh validate templates/advanced/reliability/circuit-breaker-template.yaml
279259
```
280260

281261
### Level 4: Compilation Testing
282262

283263
```bash
284264
cd /home/tom/workspace/ai/made/workspace/flowsh && flowsh compile templates/advanced/content-distribution/content-moderation-template.yaml >/dev/null
285-
cd /home/tom/workspace/ai/made/workspace/flowsh && flowsh compile templates/advanced/content-distribution/multi-format-distribution-template.yaml >/dev/null
286-
cd /home/tom/workspace/ai/made/workspace/flowsh && flowsh compile templates/advanced/content-distribution/scheduled-content-generation-template.yaml >/dev/null
287265
cd /home/tom/workspace/ai/made/workspace/flowsh && flowsh compile templates/advanced/reliability/circuit-breaker-template.yaml >/dev/null
288266
```
289267

@@ -297,7 +275,7 @@ cd /home/tom/workspace/ai/made/workspace/flowsh && timeout 900 make qa
297275

298276
## ACCEPTANCE CRITERIA
299277

300-
- [ ] All 4 failing templates now pass compilation and execution
278+
- [ ] All failing templates now pass compilation and execution
301279
- [ ] No "unbound variable" errors in any template
302280
- [ ] Templates are simplified to focus on node functionality rather than variable complexity
303281
- [ ] All unit tests pass with enhanced variable handling

PRPs/opencode-poem-telegram-template-prp-20250109.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ Create a new flowsh template called "opencode-poem-telegram" that combines OpenC
3232

3333
1. **`ai-to-telegram-simple.yaml`** - For Telegram integration patterns and environment validation
3434
2. **`simple-workflow.yaml`** - For opencode agent node usage pattern
35-
3. **`multi-stage-ai-workflows-template.yaml`** - For creative content generation structure
3635

3736
### Expected Output Example:
3837

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,10 @@ flowsh init --help
137137
- `ai-to-telegram` - Production-ready AI content generation
138138
- `data-pipeline` - Advanced data processing pipeline
139139

140-
- **Advanced (10 templates)** - Complex workflows organized by use case:
141-
- **AI Workflows**: `ai-chat-memory`, `multi-stage-ai-workflows`
142-
- **Content Distribution**: `content-moderation`, `multi-format-distribution`, `scheduled-content-generation`
143-
- **Data Processing**: `data-validation-cleanup`, `parallel-processing-aggregation`
144-
- **DevOps**: `automated-testing-monitoring`
145-
- **Meta**: `interactive-workflow-builder`
140+
- **Advanced (4 templates)** - Complex workflows organized by use case:
141+
- **AI Workflows**: `ai-chat-memory`
142+
- **Content Distribution**: `content-moderation`
143+
- **Data Processing**: `data-validation-cleanup`
146144
- **Reliability**: `circuit-breaker`
147145

148146
### compile

0 commit comments

Comments
 (0)