Clothing matching refers to the coordination of style, color, etc. to achieve a decent and generous effect. With the development of artificial intelligence, increasing research efforts have been dedicated to complementary garment collocation as matching clothes to make a suitable outfit has become a daily headache for many people. However, existing studies neglect rules regarding clothing matching, which are based on the knowledge accumulated in the fashion domain and are implicitly transmitted and ambiguous. Towards this end, this article proposes an expert system based on domain knowledge implemented using the Prolog program to realize rule-guided clothing collocation. The article constructs clothing matching rules from four essential clothing attributes: season, type, style, and color, and uses Prolog syntax for knowledge representation. For the formulated facts and rules, the reasoning machine iteratively matches the user's instructions with the system knowledge to reason out suitable matching suggestions. In this study we built a website as a man-machine interface to facilitate friendly interaction and set season, type, style, and color sub-options to match clothing and satisfy user preferences. The system validation based on standard metrics (precision, recall, F1-measure) achieves results above 81%. The main contribution is that the system could match clothes more accurately according to the likes and requirements of users. After comparing with other research, the system is expected to provide suggestions or references for people to choose style and dressing.