feat(workflows): expand template library from 9 to 22 + multiline string cleanup (#36)
* feat(workflows): add 13 workflow templates across engineering, business, and productivity Engineering: - bug-triage: reproduce path → root cause → fix plan - api-design: resource model → endpoints → OpenAPI spec - incident-postmortem: timeline → RCA → full postmortem report - test-generation: code analysis → edge cases → full test suite - refactor-plan: smell analysis → prioritised opportunities → migration plan Business: - competitor-analysis: profiles → SWOT → strategy report - product-spec: problem definition → user stories → full PRD - market-research: landscape → segments → research report Productivity/Thinking: - meeting-summary: raw notes → structured summary → follow-up email - decision-matrix: criteria → weighted scoring → recommendation memo - learning-plan: gap analysis → roadmap → week-1 day-by-day plan - job-application: job analysis → tailored resume → cover letter → interview prep - blog-post: research → outline → draft → SEO optimisation Closes #1912 on librefang/librefang * fix(workflows): overhaul existing 9 templates - data-pipeline: redesigned — original 'extract from URL' step was broken (LLMs cannot fetch URLs); replaced with paste-data approach (profile → clean_transform → analyse) with analysis_goal parameter - translate-polish: added target_language and register parameters; added back-translation step for accuracy verification - weekly-report: added team/audience parameters, richer extraction step, added Metrics and Notes sections - content-pipeline: added audience/tone parameters, added outline step between research and writing - content-review: fix category 'content' → 'creation' - customer-support: fix category 'support' → 'business' * style(workflows): convert all prompt_template strings to TOML multiline syntax Replace \n escape sequences with real newlines using triple-quote multiline strings ("""...""") across all 22 workflow templates. No content changes — formatting only. * style(hands): replace \n escape in reddit writer format example with multiline code block
This commit is contained in:
23 files changed
+1500
-64
No files matched your search
@@ -1,7 +1,7 @@
|
||||
id = "content-review"
|
||||
name = "Content Review"
|
||||
description = "Multi-agent content review pipeline that drafts, reviews for quality and accuracy, then produces a final edited version incorporating feedback."
|
||||
category = "content"
|
||||
category = "creation"
|
||||
tags = ["content", "review", "writing", "editing"]
|
||||
|
||||
[i18n.zh]
|
||||
@@ -34,15 +34,36 @@ prompt_template = "Write a {{tone}} article about {{topic}} with approximately {
|
||||
|
||||
[[steps]]
|
||||
name = "review_quality"
|
||||
prompt_template = "Review the following draft for writing quality. Evaluate clarity, coherence, grammar, tone consistency (target: {{tone}}), and overall readability. Provide specific, actionable feedback with line-level suggestions.\n\nDraft:\n{{draft}}"
|
||||
prompt_template = """
|
||||
Review the following draft for writing quality. Evaluate clarity, coherence, grammar, tone consistency (target: {{tone}}), and overall readability. Provide specific, actionable feedback with line-level suggestions.
|
||||
|
||||
Draft:
|
||||
{{draft}}
|
||||
"""
|
||||
depends_on = ["draft"]
|
||||
|
||||
[[steps]]
|
||||
name = "review_accuracy"
|
||||
prompt_template = "Review the following draft for factual accuracy and logical consistency. Flag any claims that appear unsupported, statistics that need citation, logical fallacies, or misleading statements. List each issue with a suggested correction.\n\nDraft:\n{{draft}}"
|
||||
prompt_template = """
|
||||
Review the following draft for factual accuracy and logical consistency. Flag any claims that appear unsupported, statistics that need citation, logical fallacies, or misleading statements. List each issue with a suggested correction.
|
||||
|
||||
Draft:
|
||||
{{draft}}
|
||||
"""
|
||||
depends_on = ["draft"]
|
||||
|
||||
[[steps]]
|
||||
name = "final_edit"
|
||||
prompt_template = "Produce a final edited version of the draft below, incorporating the quality and accuracy feedback. Preserve the original voice and intent while addressing all identified issues.\n\nOriginal draft:\n{{draft}}\n\nQuality feedback:\n{{review_quality}}\n\nAccuracy feedback:\n{{review_accuracy}}"
|
||||
prompt_template = """
|
||||
Produce a final edited version of the draft below, incorporating the quality and accuracy feedback. Preserve the original voice and intent while addressing all identified issues.
|
||||
|
||||
Original draft:
|
||||
{{draft}}
|
||||
|
||||
Quality feedback:
|
||||
{{review_quality}}
|
||||
|
||||
Accuracy feedback:
|
||||
{{review_accuracy}}
|
||||
"""
|
||||
depends_on = ["review_quality", "review_accuracy"]
|
||||
Reference in new issue
Block a user