Section 01
【Introduction】Key Points of the LLM Code Smells Study
This article is based on the research paper 'LLM Code Smells: A Taxonomy and Detection Approach' published on arXiv in May 2026. The key points are as follows:
- Constructed a taxonomy of LLM code smells covering 9 common anti-patterns;
- Developed the static analysis tool SpecDetect4LLM, supporting multiple languages such as Python, JS/TS, Java;
- Scanned over 170,000 source files from 692 open-source projects and found that 73.5% of systems have LLM code smells;
- The tool's detection accuracy reaches 91.3%, providing a practical method to improve the quality of LLM integration. This study reveals the prevalent issues in LLM integration and is of great significance for ensuring the quality of AI-driven software systems.