Detects slow NLP patterns and suggests optimizations
/plugin marketplace add SpillwaveSolutions/spacy-nlp-agentic-skill/plugin install spacy-nlp@spacy-nlp-agentic-skillDetects inefficient patterns and provides optimizations.
# BAD
for text in texts:
nlp = spacy.load("en_core_web_sm")
doc = nlp(text)
# GOOD
nlp = spacy.load("en_core_web_sm")
for text in texts:
doc = nlp(text)
# BAD
for text in texts:
doc = nlp(text)
# GOOD
for doc in nlp.pipe(texts, batch_size=50):
process(doc)
# Only need NER? Disable the rest
nlp = spacy.load("en_core_web_sm",
disable=["parser", "tagger"])
| Technique | Speedup |
|---|---|
| Load once | 100-1000x |
| nlp.pipe() | 5-10x |
| Disable components | 2-3x |
| Multiprocessing | 2-4x |
Designs feature architectures by analyzing existing codebase patterns and conventions, then providing comprehensive implementation blueprints with specific files to create/modify, component designs, data flows, and build sequences