Files
librefang-registry/workflows/competitor-analysis.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

79 lines
2.1 KiB
TOML

id = "competitor-analysis"
name = "Competitor Analysis"
description = "Research competitors, map their strengths and weaknesses, and produce a strategic positioning report."
category = "business"
tags = ["strategy", "market", "competitive", "business"]
[i18n.zh]
name = "竞品分析"
description = "调研竞争对手,梳理其优劣势,输出战略定位报告。"
[[parameters]]
name = "product"
description = "Your product or business and its target market"
param_type = "string"
required = true
[[parameters]]
name = "competitors"
description = "List of competitors to analyse (names or URLs)"
param_type = "string"
required = true
[[steps]]
name = "competitor_profiles"
prompt_template = """
You are a market analyst. For each competitor listed, create a profile:
- Core product and value proposition
- Target customer segment
- Pricing model and tiers
- Key features and differentiators
- Known weaknesses or complaints (from reviews, forums)
- Go-to-market strategy
- Estimated market share or traction signals
Our product: {{product}}
Competitors: {{competitors}}
"""
[[steps]]
name = "swot_comparison"
prompt_template = """
Perform a comparative SWOT analysis:
1. For each competitor: their Strengths, Weaknesses, Opportunities they exploit, Threats they face
2. Our position relative to each on: product depth, pricing, UX, distribution, brand
3. Whitespace — what pain points do all competitors fail to address?
Competitor profiles:
{{competitor_profiles}}
"""
depends_on = ["competitor_profiles"]
[[steps]]
name = "strategy_report"
prompt_template = """
Write a strategic positioning report:
## Market Landscape
Summary of the competitive field.
## Our Differentiation
Where we win, where we are at parity, where we lag.
## Attack Vectors
3 specific opportunities to take share from each competitor.
## Defensive Priorities
What strengths to reinforce before competitors close the gap.
## Recommended Positioning Statement
One sentence that clearly differentiates us from all listed competitors.
## 90-Day Action Items
Top 5 concrete actions sorted by impact.
SWOT comparison:
{{swot_comparison}}
"""
depends_on = ["swot_comparison"]