Files
librefang-registry/workflows/learning-plan.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

87 lines
2.5 KiB
TOML

id = "learning-plan"
name = "Personalised Learning Plan"
description = "Assess current knowledge, identify gaps, and build a structured learning roadmap with resources and milestones."
category = "productivity"
tags = ["learning", "education", "planning", "productivity"]
[i18n.zh]
name = "个性化学习计划"
description = "评估当前知识水平,识别差距,构建带资源和里程碑的结构化学习路线图。"
[[parameters]]
name = "skill"
description = "The skill or subject to learn"
param_type = "string"
required = true
[[parameters]]
name = "current_level"
description = "Your current knowledge and experience with this topic"
param_type = "string"
required = false
default = "complete beginner"
[[parameters]]
name = "goal"
description = "What you want to be able to do once you've learned it"
param_type = "string"
required = false
default = "professional proficiency"
[[parameters]]
name = "time_available"
description = "Hours per week available for learning"
param_type = "string"
required = false
default = "5 hours per week"
[[steps]]
name = "gap_analysis"
prompt_template = """
You are an expert educator in {{skill}}. Analyse the learner's situation:
1. **Knowledge map** — the full topic broken into sub-skills and concepts
2. **Current position** — what they likely know given their stated level
3. **Target position** — what they need to know to reach their goal
4. **Critical gaps** — the 5 most important things to learn first
5. **Common pitfalls** — mistakes beginners make, concepts people find hardest
Skill: {{skill}}
Current level: {{current_level}}
Goal: {{goal}}
"""
[[steps]]
name = "roadmap"
prompt_template = """
Design a learning roadmap divided into phases. For each phase:
- Name and duration estimate
- Learning objectives (what they'll be able to do)
- Core concepts to master
- 3-5 specific resources (books, courses, docs, tutorials — real names where possible)
- Practice project or exercise
- How to know the phase is complete (milestone)
Time available: {{time_available}}
Gap analysis:
{{gap_analysis}}
"""
depends_on = ["gap_analysis"]
[[steps]]
name = "week1_plan"
prompt_template = """
Create a concrete day-by-day plan for the first week of learning. For each day:
- Specific topic to cover
- Exact resource to use (chapter, video, section)
- Time estimate
- Exercise or thing to build/practice
- End-of-day check: how to verify understanding
Assume {{time_available}} is available.
Roadmap:
{{roadmap}}
"""
depends_on = ["roadmap"]