# Find and Replace Text or Formatting

> Open Writer's Find and Replace dialog, fill the search and replacement fields or replacement formatting, run the replacement, and verify the replace count or changed document state.

- **Type:** Skill
- **Install:** `agentstack add skill-walterhu1015-mmskills-libreofficewriter-find-and-replace-text-or-formatting`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [walterhu1015](https://agentstack.voostack.com/s/walterhu1015)
- **Installs:** 0
- **Category:** [Search](https://agentstack.voostack.com/c/search)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [walterhu1015](https://github.com/walterhu1015)
- **Source:** https://github.com/walterhu1015/MMSkills/tree/main/skills_library/libreoffice_writer/LIBREOFFICEWRITER_Find_and_Replace_Text_or_Formatting

## Install

```sh
agentstack add skill-walterhu1015-mmskills-libreofficewriter-find-and-replace-text-or-formatting
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Find and Replace Text or Formatting

## When This Skill Applies

- The task explicitly needs repeated literal replacements or formatting replacement through Writer's Find and Replace surface.
- The task depends on the Find and Replace dialog, the replacement-formatting subdialog, or the replace-count confirmation message.
- This is the right skill for repeated-match replacement, not for a one-off direct edit on visible text.

## Preconditions

- The target document is already open.
- The search target, replacement text, or replacement formatting rule is already known.
- If the task later requires saving or exporting, finish the replacement first and then hand off to the save/export skill.

## Do Not Use

- Do not use this skill for simple selection-plus-toolbar edits such as changing one visible word to bold, subscript, or a new font.
- Do not promote this skill to the front of ordinary Writer tasks just because it could theoretically be used.
- If the task is primarily regex or pattern-class driven, prefer the regex specialist instead.

## Procedure

1. Open or confirm the main Find and Replace dialog.
Enter the find term and confirm the scope options only if the task actually needs them.

2. If the task changes formatting instead of literal text, open the replacement-formatting controls and set only the requested attribute.
Do not carry over stale formatting or selection-only options from previous attempts.

3. Run `Replace` or `Replace All` based on the task.
Use `Replace All` only when the whole-document scope is correct.

4. Verify before leaving the flow.
Check the replace-count message and, when formatting matters, also verify the changed document content on the page.
If the count looks wrong or the visible text did not change as intended, stay in the dialog and correct the scope or fields before moving on.

## Visual State Card Usage

- Detailed authoring cards live in `state_cards.json`.
- Runtime-facing cards live in `runtime_state_cards.json`.
- Load only the state whose `when_to_use` matches the current surface.
- Use the success-message card only after a replacement has actually been triggered.

## Common Failure Modes

- Running `Replace All` with the wrong scope because a stale option such as selection-only or match-case was left enabled.
- Trusting the replace-count message alone when the task also requires formatting verification on the document canvas.
- Using Find and Replace as a default selection aid on tasks that should stay on the main document surface.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [walterhu1015](https://github.com/walterhu1015)
- **Source:** [walterhu1015/MMSkills](https://github.com/walterhu1015/MMSkills)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-walterhu1015-mmskills-libreofficewriter-find-and-replace-text-or-formatting
- Seller: https://agentstack.voostack.com/s/walterhu1015
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
