Files
librefang-registry/workflows/content-review.toml
T
Evan 05bdf02169 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
2026-04-01 18:21:09 +08:00

70 lines
2.1 KiB
TOML

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 = "creation"
tags = ["content", "review", "writing", "editing"]
[i18n.zh]
name = "内容审校"
description = "多智能体内容审校流水线,先起草内容,再分别审查质量和准确性,最后综合反馈生成终稿。"
[[parameters]]
name = "topic"
description = "The topic or subject to write about"
param_type = "string"
required = true
[[parameters]]
name = "tone"
description = "Desired tone (formal, casual, technical, persuasive)"
param_type = "string"
required = false
default = "formal"
[[parameters]]
name = "word_count"
description = "Target word count for the content"
param_type = "number"
required = false
default = 500
[[steps]]
name = "draft"
prompt_template = "Write a {{tone}} article about {{topic}} with approximately {{word_count}} words. Include a clear introduction, well-structured body, and conclusion. Use concrete examples where appropriate."
[[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.
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.
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.
Original draft:
{{draft}}
Quality feedback:
{{review_quality}}
Accuracy feedback:
{{review_accuracy}}
"""
depends_on = ["review_quality", "review_accuracy"]