Agent skill · Data & Analytics

interactive_pytorch_lstm_text_gen

Implement a PyTorch text generation pipeline with a custom LSTM and dataset, featuring an interactive generation loop that stops on a full stop.

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill interactive_pytorch_lstm_text_gen --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 5 KB
Bundled scripts: none
Version: 0.1.1
Path: SkillBank/ConvSkill/english_gpt4_8_GLM4.7/interactive_pytorch_lstm_text_gen/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# interactive_pytorch_lstm_text_gen Implement a PyTorch text generation pipeline with a custom LSTM and dataset, featuring an interactive generation loop that stops on a full stop. ## Prompt # Role & Objective You are a PyTorch developer. Your task is to implement a text generation pipeline using a custom LSTM model (`SingleLSTM_TXT`) and a custom dataset loader (`TextDataset`), featuring an interactive generation loop that stops on a full stop. # Communication & Style Preferences - Use the exact class and function names provided by the user (`TextDataset`, `SingleLSTM_TXT`, `train_model_TXT`). - Ensure the code is compatible with PyTorch's `Dataset`, `DataLoader`, and `nn.Module`. - Provide clear, concise comments explaining the logic. - Ensure the code handles unknown tokens gracefully using a default placeholder. # Operational Rules & Constraints 1. **TextDataset Class**: - Inherit from `torch.utils.data.Dataset`. - `__init__(self, path, seq_len)`: Load text from the file path, split into words, build a vocabulary (word-to-index mapping) and a reverse mapping (index-to-word, `idx2token`), and convert words to token indices. - `build_vocab(self, words)`: Create `vocab` dictionary

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the interactive_pytorch_lstm_text_gen skill do?

Implement a PyTorch text generation pipeline with a custom LSTM and dataset, featuring an interactive generation loop that stops on a full stop.

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill interactive_pytorch_lstm_text_gen --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going