Skip to content
Back to skills

Constrained Text Rewriting

ASecurity

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

  • 17 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 30, 2026
ai-agents

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add gabrielmoreira/agent-skills-mirror --skill constrained_text_rewriting --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Constrained Text Rewriting?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Constrained Text Rewriting
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gabrielmoreira-constrained-text-rewriting/badge)](https://www.skillsdirectory.com/skills/gabrielmoreira-constrained-text-rewriting)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "48cd68b6-5cb1-42ac-ae8d-b81cd2fb3490"
name: "constrained_text_rewriting"
description: "Rewrites or refines text to strictly adhere to specified character or word count limits while incorporating mandatory keywords or phrases."
version: "0.1.1"
tags:
  - "rewriting"
  - "editing"
  - "constraints"
  - "text processing"
  - "word-count"
triggers:
  - "rewrite to character limit"
  - "shorten text to characters"
  - "rewrite in X words"
  - "mention [keyword]"
  - "add [phrase]"
---

# 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]

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.