---
name: words
description: 'Text games and transforms -- palindromes, ROT13, Wordle solving. Tools: is-palindrome, rot13, solve-wordle. Use when a request needs any of these; each tool''s own trigger is in SKILL.md.'
compatibility: 'Requires fragletc and Docker. Hermetic: no network access.'
metadata:
  tags: computation
  tools: is-palindrome.py, rot13.py, solve-wordle.java
---

# Words

Text games and transforms -- palindromes, ROT13, Wordle solving.

Every tool below is one executable file beside this `SKILL.md`, in the directory the commands below call `<skill-dir>`. Run it directly. Two host requirements: [`fragletc`](https://github.com/ofthemachine/fraglet) (`curl -fsSL https://raw.githubusercontent.com/ofthemachine/fraglet/main/install.sh | sh && fragletc version`) and Docker; the image, parameters, outputs and network reach are declared in the file itself. Before running a tool, print its contract:

```sh
<skill-dir>/is-palindrome.py --fraglet-help
```

Parameters are passed as `-p name=value` (a `file` parameter takes a host path); declared outputs are copied out with `--output <name>[=<host path>]`. A missing required parameter fails host-side with exit 2 before any container starts; otherwise the tool's own exit code is the run's. A declared output not named with `--output` is produced and discarded (a stderr note says what you could have copied). Add `--receipt run.json` (or set `FRAGLETC_RECEIPT_DIR`) to record the run: the receipt carries the tool's `procedure_hash`, image digest, parameters, and every input and output by content hash, and `receipt/attest.py` can verify it later without re-running anything.

## Tools

### `is-palindrome.py`

Check whether text is a palindrome, ignoring case, spaces, and punctuation. Pure computation, no network.

Use when the user asks whether a word or phrase is a palindrome.

```sh
<skill-dir>/is-palindrome.py -p text="<text>"
```

Parameters:
- `text` (string, required) — Text to check

Outputs:
- stdout

Runs in `ofthemachine/python3@sha256:a015b4f9f0e7c1648f8fcd4164f6a296dd3c9189404f88f333a9764d08d13522`; hermetic — `network=none`; a run is a pure function of its inputs and safe to memoize.

### `rot13.py`

ROT13 a string (its own inverse -- run it twice to get the original back). Pure computation, no network.

Use when the user asks to ROT13 encode or decode text.

```sh
<skill-dir>/rot13.py -p text="<text>"
```

Parameters:
- `text` (string, required) — Text to encode or decode

Outputs:
- stdout

Runs in `ofthemachine/python3@sha256:a015b4f9f0e7c1648f8fcd4164f6a296dd3c9189404f88f333a9764d08d13522`; hermetic — `network=none`; a run is a pure function of its inputs and safe to memoize.

### `solve-wordle.java`

Filter possible 5-letter Wordle answers given one or more guess+feedback rounds, using 100hellos/java's real wordalytica fluent WordSet API and word list (not a reimplementation). clues is "guess:result|guess:result|...", each result a 5-char G/Y/X string matching that guess letter-for-letter (G=green/correct spot, Y=yellow/wrong spot, X=gray/absent), e.g. "crane:GYXXX|mount:XXGXY". Report the raw colors you see -- this tool does the Wordle-logic-to-predicate translation, not you.

Use when the user is solving a Wordle and reports the colours from one or more guesses.

```sh
<skill-dir>/solve-wordle.java -p clues="<clues>"
```

Parameters:
- `clues` (string, required) — guess:result rounds joined by |; result is 5 chars of G/Y/X, e.g. crane:GYXXX|mount:XXGXY

Outputs:
- stdout

Runs in `100hellos/java@sha256:2b8b7b5817381f6d9460e2b4a124ad5f0ca01d668d4db084690a45939831b909`; hermetic — `network=none`; a run is a pure function of its inputs and safe to memoize.
