During the Kaiyuan period, the talented woman Shen Huiyin knocked on the door of the Shangshu Province through the "female official examination" system, and became the first female official in the Tang Dynasty to be in charge of punishment. As soon as she took office, she discovered that Huanghuang's "Liu Dian of the Tang Dynasty" actually contained omissions in judging cases. Relying on the "logical syllogism" to study the law intensively, she skillfully crafted a "case deduction table" and used the technique of "document verification" in numerous documents to uncover the conspiracy of powerful officials to forge edicts. Faced with the criticism of "harem interfering in politics," she teamed up with like-minded female officials Pei Su'e and Laoshang Gong Cui to clarify powers and responsibilities based on the official system of "Tongdian" and promoted the establishment of the "Female Officials Supervision Department" to impeach internal servants for corruption with the sword of law. A palace reform that combined wisdom, law and courage began, and finally led to the "Yonghui Order for the Selection of Female Officials", which carved a bright mark for female bureaucrats in the majestic palace and strict official system.