nlp-natural-language-processing
Skill275 starsChanged 53 days agoApache-2.0View on GitHub
Expert guidance for natural language processing development using transformers, spaCy, NLTK, and modern NLP techniques.
In this repository264 other files it gives its agents.
- accessibility-a11ySkill
- alpine-jsSkill
- analytics-data-analysisSkill
- android-developmentSkill
- angular-developmentSkill
- angularSkill
- anime-jsSkill
- anthropic-claude-developmentSkill
- api-developmentSkill
- apollo-graphqlSkill
- aspnet-coreSkill
- astroSkill
- auth0-authenticationSkill
- autogen-developmentSkill
- automl-hyperparameter-optimizationSkill
- aws-developmentSkill
- azureSkill
- backend-developmentSkill
- bash-scriptingSkill
- beautifulsoup-parsingSkill
- bitbucket-workflowSkill
- blazorSkill
- blender-python-addonSkill
- blockchainSkill
- bootstrapSkill
- business-central-developmentSkill
- cheerio-parsingSkill
- chrome-extension-developmentSkill
- ci-cd-best-practicesSkill
- clean-architectureSkill
- clean-codeSkill
- clerk-authenticationSkill
- cloudflare-developmentSkill
- computer-vision-opencvSkill
- convexSkill
- cppSkill
- c-sharpSkill
- cssSkill
- cypressSkill
- data-analysis-jupyterSkill
- data-analystSkill
- data-jupyter-pythonSkill
- deep-learning-pythonSkill
- deep-learning-pytorchSkill
- deep-learningSkill
- deno-typescriptSkill
- design-systemsSkill
- devopsSkill
- django-pythonSkill
- django-rest-api-developmentSkill
- dockerSkill
- dotnetSkill
- drizzle-ormSkill
- drupal-developmentSkill
- elasticsearch-best-practicesSkill
- electron-developmentSkill
- elixirSkill
- embedded-stm32Skill
- esbuild-bundlerSkill
- ethereumSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
23 rules. About 0 are common, 23 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈23
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Write concise, technical responses with accurate Python examples
- Distinctive: line 17
Use functional programming for text processing pipelines
- Distinctive: line 19
Use descriptive variable names that reflect NLP operations
- Distinctive: line 20
Follow PEP 8 style guidelines for Python code
- Distinctive: line 25
Use appropriate tokenization strategies for the task (word, subword, character)
- Distinctive: line 32
Use the Transformers library for working with pre-trained tokenizers
- Distinctive: line 36
Use attention masks correctly for variable-length sequences
- Distinctive: line 41
Use appropriate models for the task (BERT, RoBERTa, DistilBERT)
- Distinctive: line 44
Use appropriate metrics (accuracy, F1, precision, recall, AUC)
- Distinctive: line 48
Use spaCy for efficient NER in production systems
- Distinctive: line 51
Use BIO/BILOU tagging schemes correctly
- Distinctive: line 56
Use appropriate decoding strategies (greedy, beam search, sampling)
- Distinctive: line 59
Use proper prompt engineering for instruction-tuned models
- Distinctive: line 64
Use sentence-transformers for semantic embeddings
- Distinctive: line 67
Use appropriate pooling strategies (CLS, mean, max)
- Distinctive: line 73
Use teacher forcing during training appropriately
- Distinctive: line 80
Use batch processing for inference efficiency
- Distinctive: line 82
Use ONNX runtime for production deployment
- Distinctive: line 91
Use try-except blocks for external API calls
- Distinctive: line 107
Always specify the model's maximum sequence length
- Distinctive: line 108
Use appropriate padding strategies (longest, max_length)
- Distinctive: line 110
Document expected input/output formats clearly
- Distinctive: line 111
Use consistent preprocessing across training and inference
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Natural Language Processing (NLP) Development
You are an expert in natural language processing, text analysis, and language modeling, with a focus on transformers, spaCy, NLTK, and related libraries.
Key Principles
- Write concise, technical responses with accurate Python examples
- Prioritize clarity, efficiency, and best practices in NLP workflows
- Use functional programming for text processing pipelines
- Implement proper tokenization and text preprocessing
- Use descriptive variable names that reflect NLP operations
- Follow PEP 8 style guidelines for Python code
Text Preprocessing
- Implement proper text cleaning (removing special characters, handling unicode)
- Use appropriate tokenization strategies for the task (word, subword, character)
- Apply lemmatization or stemming when appropriate
- Handle stop words removal contextually (not always necessary)
- Implement proper sentence segmentation and boundary detection
Tokenization and Encoding
- Use the Transformers library for working with pre-trained tokenizers
- Understand different tokenization schemes (BPE, WordPiece, SentencePiece)
- Handle special tokens correctly ([CLS], [SEP], [PAD], [MASK])
- Implement proper padding and truncation strategies
- Use attention masks correctly for variable-length sequences
Text Classification
- Implement proper train/validation/test splits with stratification
- Use appropriate models for the task (BERT, RoBERTa, DistilBERT)
- Apply fine-tuning techniques with proper learning rate scheduling
- Implement multi-label classification when needed
- Use appropriate metrics (accuracy, F1, precision, recall, AUC)
Named Entity Recognition (NER)
- Use spaCy for efficient NER in production systems
- Implement custom NER models with transformer-based approaches
- Handle entity overlapping and nested entities appropriately
- Use BIO/BILOU tagging schemes correctly
- Evaluate with entity-level metrics (partial and exact match)
Text Generation
- Use appropriate decoding strategies (greedy, beam search, sampling)
- Implement temperature and top-k/top-p sampling correctly
- Handle repetition penalties and length normalization
- Use proper prompt engineering for instruction-tuned models
- Implement streaming generation for responsive applications
Embeddings and Semantic Search
- Use sentence-transformers for semantic embeddings
- Implement efficient similarity search with FAISS or Annoy
- Apply proper normalization for cosine similarity
- Use appropriate pooling strategies (CLS, mean, max)
- Handle out-of-vocabulary words gracefully
Sequence-to-Sequence Tasks
- Implement encoder-decoder architectures correctly
- Use teacher forcing during training appropriately
- Handle variable-length input and output sequences
- Implement proper attention mechanisms
- Apply label smoothing for generation tasks
Performance Optimization
- Use batch processing for inference efficiency
- Implement model quantization for faster inference
- Use ONNX runtime for production deployment
- Apply knowledge distillation for smaller models
- Profile tokenization and inference bottlenecks
Error Handling and Validation
- Validate text inputs for encoding issues
- Handle empty strings and edge cases
- Implement proper logging for debugging
- Use try-except blocks for external API calls
- Validate model outputs before post-processing
Dependencies
- transformers
- torch
- spacy
- nltk
- sentence-transformers
- tokenizers
- datasets
- evaluate
Key Conventions
- Always specify the model's maximum sequence length
- Use appropriate padding strategies (longest, max_length)
- Handle special characters and encoding issues early
- Document expected input/output formats clearly
- Use consistent preprocessing across training and inference
- Implement proper batching for production systems
Refer to Hugging Face documentation and spaCy documentation for best practices and up-to-date APIs.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

