Skip to content
Back to skills

Textgenrnn

ASecurity

"Routes agents through textgenrnn generation, training, and

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
ai-agentspythonbashapibackend

Works with

  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 20 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill textgenrnn --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Textgenrnn?

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

Security grade badge for Textgenrnn
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-textgenrnn/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-textgenrnn)

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
---
name: textgenrnn
description: "Routes agents through textgenrnn generation, training, and
  embedding-analysis workflows for pretrained samples, custom text generation,
  fine-tuning, context labels, and similarity checks."
disable-model-invocation: true
metadata:
  disco-role: operating
license: NOASSERTION
---

# textgenrnn

Use this skill for the `textgenrnn` Python package itself. It is a small Keras/TensorFlow text-generation library centered on one public class, `textgenrnn`, plus a few helper functions in `textgenrnn.utils`.

If the request is about a different TensorFlow project, a transformer LLM stack, or generic Keras internals, route elsewhere. If the request is about this package, use the route map below.

## Before you begin

1. Read [`references/repo-provenance.md`](references/repo-provenance.md) when you need to check whether this skill still matches the repository checkout.
2. Use a compatible runtime. The verified stack for this repository is Python 3.11 with TensorFlow/Keras 2.15.x, `numpy 1.26.4`, `scikit-learn`, `h5py`, `tqdm`, and a setuptools version that still exposes `pkg_resources`.
3. Install the package with `pip install textgenrnn` for the published distribution, or validate a local checkout with an editable install inside a compatible environment.
4. Run a minimal import check before deeper work:

```bash
python -c "from textgenrnn import textgenrnn; print(textgenrnn.__name__)"
```

5. If import or model-load behavior looks suspicious, run [`scripts/check_textgenrnn_env.py`](scripts/check_textgenrnn_env.py) first.
6. There is no CLI entry point in this repository. Use Python APIs or the bundled helper scripts.

## Route map

### [generation](sub-skills/generation/SKILL.md)
Use this route for pretrained generation, custom weight loading, temperature/prefix control, interactive next-token selection, writing generated text to files, saving/loading weights, and model synthesis across multiple `textgenrnn` instances.

### [training](sub-skills/training/SKILL.md)
Use this route for `train_on_texts`, `train_new_model`, `train_from_file`, `train_from_largetext_file`, context labels, word-level training, scratch-model creation, and tiny smoke-training checks.

### [embedding-analysis](sub-skills/embedding-analysis/SKILL.md)
Use this route for `encode_text_vectors`, PCA/t-SNE coordinates, and `similarity` ranking tasks.

## Shared references

- [`references/installation-and-compatibility.md`](references/installation-and-compatibility.md) explains the verified install stack and the TensorFlow/Keras/setuptools compatibility boundary.
- [`references/model-overview.md`](references/model-overview.md) summarizes the architecture, default config, model artifacts, and raw vector shape.
- [`references/troubleshooting.md`](references/troubleshooting.md) covers cross-cutting import, model-load, output-file, and backend warnings.
- [`scripts/check_textgenrnn_env.py`](scripts/check_textgenrnn_env.py) is a safe environment diagnostic and optional short generation smoke.

## Quick path selection

- Ask for `generation` when the user wants to load a model, complete a prompt, generate samples, or save generated text.
- Ask for `training` when the user wants to feed new data, fine-tune, train from a file, or create a scratch model.
- Ask for `embedding-analysis` when the user wants vectors, similarity scores, or visualization coordinates.

## Minimal package facts

- Public import: `from textgenrnn import textgenrnn`
- Public package version in this repository: `2.0.0`
- Default pretrained assets ship as bundled `textgenrnn_weights.hdf5` and `textgenrnn_vocab.json` files inside the package.
- CPU workflows are valid. CUDA/GPU is optional acceleration for training, not a requirement for the selected workflows.

## When to read the bundled helper script

Use [`scripts/check_textgenrnn_env.py`](scripts/check_textgenrnn_env.py) when the user asks whether the installed package can import, whether the environment exposes the expected TensorFlow backend, or whether a quick generation smoke works before moving on to the route-specific sub-skill.

Files in this skill

  • SKILL.md4 KB
  • references/installation-and-compatibility.md2.7 KB
  • references/model-overview.md2.7 KB
  • references/repo-provenance.md1.8 KB
  • references/repo-routing-metadata.json425 B
  • references/troubleshooting.md3.2 KB
  • scripts/check_textgenrnn_env.py7 KB
  • sub-skills/embedding-analysis/SKILL.md5.9 KB
  • sub-skills/embedding-analysis/references/api-reference.md6.1 KB
  • sub-skills/embedding-analysis/references/troubleshooting.md5.7 KB
  • sub-skills/embedding-analysis/references/workflows.md5.7 KB
  • sub-skills/embedding-analysis/scripts/smoke_encode.py6.8 KB
  • sub-skills/generation/SKILL.md7 KB
  • sub-skills/generation/references/api-reference.md6.2 KB
  • sub-skills/generation/references/troubleshooting.md5 KB
  • sub-skills/generation/references/workflows.md6.6 KB
  • sub-skills/generation/scripts/smoke_generate.py6.4 KB
  • sub-skills/training/SKILL.md4.9 KB
  • sub-skills/training/references/api-reference.md4.1 KB
  • sub-skills/training/references/data-formats.md3.4 KB

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.