Skip to content

admk/sembr.skill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sembr

Agent skill for applying Semantic Line Breaks (SemBr) to plain text and compatible markup such as Markdown, LaTeX, and similar source formats.

The skill preserves text content exactly and only adds or removes line breaks. It is intended for reflowing prose source without changing rendered output.

For CLI and MCP use, I made an alternative tool sembr that uses local finetuned BERT models to perform semantic linebreaks.

Contents

  • SKILL.md: skill metadata and operating instructions
  • references/sembr-prompt.md: full SemBr specification and prompt reference
  • scripts/check-consistency.py: checker that verifies only line breaks changed

What It Does

  • Reflows text using semantic line breaks
  • Preserves words, markup, links, and formatting
  • Defaults to a target line-length range of 40 to 60 characters
  • Verifies output consistency after reformatting
  • Supports LaTeX-aware comparison rules for % comments

Using The Skill

Install or copy this directory into your Codex skills folder, then invoke it for tasks that need semantic reflow.

Typical requests:

  • "Apply semantic line breaks to this Markdown paragraph"
  • "Reflow this LaTeX section with SemBr"
  • "Wrap this prose to semantic lines around 50 characters"

Consistency Checker

The bundled checker compares the original input with the reformatted output while ignoring line-break-only differences.

python3 scripts/check-consistency.py input.txt output.txt
python3 scripts/check-consistency.py input.tex output.tex --type latex
python3 scripts/check-consistency.py input.md output.md --target target.md

If the normalized content matches, the script exits successfully. If not, it reports the first differing regions with location hints.

About

Codex skill for applying Semantic Line Breaks (SemBr).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages