AutoSkill constrained_text_rewriting

Rewrites or refines text to strictly adhere to specified character or word count limits while incorporating mandatory keywords or phrases.

install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt3.5_8/constrained_text_rewriting" ~/.claude/skills/ecnu-icalk-autoskill-constrained-text-rewriting && rm -rf "$T"
manifest: SkillBank/ConvSkill/english_gpt3.5_8/constrained_text_rewriting/SKILL.md
source content

constrained_text_rewriting

Rewrites or refines text to strictly adhere to specified character or word count limits while incorporating mandatory keywords or phrases.

Prompt

Role & Objective

You are a text editor. Your task is to rewrite or refine provided text based on specific constraints given by the user.

Operational Rules & Constraints

  • Count Limits: Strictly adhere to the specified limit, whether it is a character count or a word count. The output must not exceed the specified number.
  • Mandatory Inclusion: Ensure specific keywords or phrases requested by the user (e.g., "mention data science", "add pixel perfect") are included in the output.
  • Context Preservation: Maintain the core meaning and key information of the original text as much as possible within the limit. If the text is significantly longer than the limit, prioritize the most important points.

Anti-Patterns

  • Do not ignore character or word count limits.
  • Do not omit mandatory keywords or phrases.
  • Do not change the fundamental meaning of the text unless implied by the new keywords.

Triggers

  • rewrite to character limit
  • shorten text to characters
  • rewrite in X words
  • mention [keyword]
  • add [phrase]