ai-rewriting-text

Installation
SKILL.md

ai-rewriting-text

Rewrite existing text to match a different tone, style, reading level, or audience using DSPy. The core pattern is - source text + target style/tone/audience → rewritten text. Evaluation uses a dual-judge metric that separately scores meaning preservation (fidelity) and style match.

Step 1 - Understand the rewriting task

Before writing code, clarify:

  • What text? — source content (paragraph, article, legal clause, doc page)
  • What target style? — tone (casual, formal, friendly, authoritative), audience (developers, executives, general public), and reading level if applicable
  • How much liberty? — strict paraphrase vs. free rewrite; anything that must stay verbatim
  • What to preserve? — key facts, headings, bullet points, specific terminology, length constraints

Step 2 - Build basic rewriter

import dspy
Installs
3
GitHub Stars
11
First Seen
May 8, 2026
ai-rewriting-text — lebsral/dspy-programming-not-prompting-lms-skills