Increasing the proportion of photovoltaic (PV) electricity in power systems is effective for achieving carbon neutrality. However, PV electricity is unstable and random, and direct connection to the grid reduces power quality and jeopardizes grid security. Herein, a scenario-based optimized sizing and management strategy for a rural PV-battery system is proposed for a village in Central China. The goal of this power system is not only to meet its own electricity demand without other energy supplies, but also to smoothly feed electricity into the grid. In this study, the possibility of applying the optimization strategies and evaluation methods of power plants in the design of rural power systems is explored. The PV power model, battery charging and discharging model, and farmer's energy use model are established respectively, and the constraints are combined with the nodal power balance principle, and then solved by simulated annealing algorithm with economy and grid interaction smoothness as the objective function. For optimal component sizing, this study considered various scenarios with different types of farmers, seasons, and weather to ensure that the performance of the objective function can be satisfied at any time throughout the year. This study proposed the objective function and evaluation index for smooth interaction with the grid for the first time. The simulation results showed that the required PV and battery capacities differed depending on farmer type, owing to different seasonal electrical loads and weather conditions. Compared to traditional PV-battery systems, the proposed system improves the smoothness of interaction with the grid by 87 %, while reducing transformer expansion pressure by approximately 50 kW. Therefore, based on rational capacity selection and optimization strategies, it is possible for a rural power system to become a virtual power plant.