Software intelligent development method and device, computer device and storage medium

CN122526544APending Publication Date: 2026-08-07SHANGHAI LUFAX FUND SALES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHANGHAI LUFAX FUND SALES CO LTD
Filing Date
2026-05-19
Publication Date
2026-08-07

AI Technical Summary

Technical Problem

[0004]本发明提供一种人工智能的软件智能开发方法、装置、计算机设备及介质,以解决相关技术在每次执行开发任务时需要智能编码工具重新扫描全部项目代码,增加了智能编码工具的上下文解析消耗和推理成本,进而导致代码生成效率较低的技术问题

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122526544A_ABST
    Figure CN122526544A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of artificial intelligence, and discloses a software intelligent development method and device, computer equipment and a storage medium, which comprise the following steps: in response to receiving an intelligent development instruction of a software development project, calling an intelligent coding tool to read a project structure index file and a style example index file of the software development project; using the intelligent coding tool, determining a target coding style corresponding to a development task in the intelligent development instruction according to the development task and the project structure index file; reading a target example file corresponding to the target coding style based on the style example index file and the target coding style; and generating a target development project suitable for the development task according to the target example file and the project structure index file. The application can be applied to the software project development and maintenance scene in the fields of financial technology and medical health, and can improve the project development efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of artificial intelligence technology, financial technology and medical health technology, and in particular to a software intelligent development method, apparatus, computer equipment and storage medium. Background Technology

[0002] With the widespread application of large language models and intelligent coding tools in software development, more and more companies are beginning to try using intelligent coding tools to perform tasks such as code generation.

[0003] In related technologies, intelligent coding tools typically need to understand the development context of software development projects and generate code based on contextual semantics. For example, in the development of electronic medical record systems in the healthcare field, when adding a medical indicator analysis function, an intelligent coding tool reads all the project code in the electronic medical record system, performs contextual semantic parsing, and then generates code to implement the medical indicator analysis function based on the contextual semantics. To ensure the accuracy of the generated code, the intelligent coding tool needs to rescan all the project code each time a development task is executed, increasing the context parsing overhead and reasoning cost of the intelligent coding tool, thus resulting in low code generation efficiency. Summary of the Invention

[0004] This invention provides an artificial intelligence software intelligent development method, apparatus, computer equipment, and medium to solve the technical problem that related technologies require intelligent coding tools to rescan all project code every time a development task is executed, which increases the context parsing consumption and reasoning cost of intelligent coding tools, thus leading to low code generation efficiency.

[0005] Firstly, a software intelligent development method is provided, including: In response to receiving intelligent development instructions for a software development project, the intelligent coding tool is invoked to read the project structure index file and style example index file of the software development project. Using intelligent coding tools, the target coding style corresponding to the development task is determined based on the development task and project structure index file in the intelligent development instructions; Based on the style example index file and the target encoding style, read the target example file corresponding to the target encoding style; Based on the target example file and project structure index file, generate a target development project adapted to the development task.

[0006] Secondly, a software intelligent development device is provided, comprising: The receiving module is used to respond to the intelligent development instructions received from the software development project by calling the intelligent coding tool to read the project structure index file and style example index file of the software development project; The determination module is used to determine the target coding style corresponding to the development task based on the development task and project structure index file in the intelligent development instructions, using intelligent coding tools; The reading module is used to read the target example file corresponding to the target encoding style based on the style example index file and the target encoding style. The generation module is used to generate a target development project adapted to the development task based on the target example file and the project structure index file.

[0007] Thirdly, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the above-described intelligent software development method.

[0008] Fourthly, a computer-readable storage medium is provided, which stores a computer program that, when executed by a processor, implements the steps of the above-described intelligent software development method.

[0009] In the aforementioned intelligent software development method, apparatus, computer equipment, and storage medium, the server, upon receiving an intelligent development instruction for a software development project, invokes an intelligent coding tool to read the project structure index file and style example index file of the software development project. Using the intelligent coding tool, based on the development task in the intelligent development instruction and the project structure index file, the target coding style corresponding to the development task is determined. Based on the style example index file and the target coding style, the target example file corresponding to the target coding style is read. Based on the target example file and the project structure index file, a target development project adapted to the development task is generated. This invention, by pre-configuring the project structure index file and style example index file, provides the intelligent coding tool with project structure information and coding style examples, improving the efficiency of the intelligent coding tool in understanding the project structure of the software development project and the code generation efficiency of the development task. It eliminates the need to re-scan the project code for context semantic analysis each time development is performed, reducing the context analysis and inference time of the intelligent coding tool, thereby improving the project development efficiency of the software development project. Attached Figure Description

[0010] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0011] Figure 1 This is a schematic diagram of an application environment for a software intelligent development method according to an embodiment of the present invention; Figure 2 This is a flowchart illustrating a software intelligent development method according to an embodiment of the present invention; Figure 3 This is another flowchart illustrating the software intelligent development method in one embodiment of the present invention; Figure 4 This is a schematic diagram of the structure of a software intelligent development device in one embodiment of the present invention; Figure 5 This is a schematic diagram of the structure of a computer device according to an embodiment of the present invention; Figure 6 This is another structural schematic diagram of a computer device according to one embodiment of the present invention. Detailed Implementation

[0012] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0013] The intelligent software development method provided in this invention can be applied to, for example... Figure 1 In this application environment, the client can communicate with the server via a network. Upon receiving intelligent development instructions for a software development project, the server can invoke an intelligent coding tool to read the project structure index file and style example index file of the software development project. Using the intelligent coding tool, based on the development task in the intelligent development instructions and the project structure index file, it determines the target coding style corresponding to the development task. Based on the style example index file and the target coding style, it reads the target example file corresponding to the target coding style. Based on the target example file and the project structure index file, it generates a target development project adapted to the development task. This embodiment can provide project structure information and coding style examples to the intelligent coding tool by pre-configuring the project structure index file and style example index file. This improves the efficiency of the intelligent coding tool in understanding the project structure of the software development project and the code generation efficiency of the development task, eliminating the need for scanning the project code for global semantic understanding of the development task, thereby improving the project development efficiency of the software development project.

[0014] The client can be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. The server can be implemented using a standalone server or a server cluster consisting of multiple servers. The invention will now be described in detail through specific embodiments.

[0015] Please see Figure 2 As shown, Figure 2A flowchart illustrating the software intelligent development method provided in this embodiment of the invention includes the following steps: Step 101: In response to receiving the intelligent development instructions for the software development project, call the intelligent coding tool to read the project structure index file and style example index file of the software development project.

[0016] In some embodiments, the software development project can be an ongoing software engineering project, such as a Java backend project, a web management system, or a business application system, which can be developed using intelligent coding tools. Intelligent development instructions can be instructions generated when intelligent coding tools are needed for project development. These instructions can be issued manually, triggered by platform buttons, via API calls, or through script distribution, to invoke the intelligent coding tool and initiate an automated intelligent coding process, improving project development efficiency. Intelligent development instructions may include the name of the intelligent coding tool being invoked and the development task. Intelligent coding tools can be auxiliary development tools, such as AI tools, that can parse the intelligent development instructions input by developers and automatically generate code.

[0017] In some embodiments, the project structure index file can be a pre-generated index configuration file used to provide the project structure. It can be used to describe the directory hierarchy, package naming rules, hierarchical module division, storage paths and structural constraints of various project files in the software development project, so as to help intelligent coding tools quickly understand the project structure and serve as the structural basis for intelligent coding, thereby improving project development efficiency.

[0018] Correspondingly, the style example index file can be a pre-generated index configuration file used to provide examples of different coding styles. It can use a directory format to provide a mapping relationship between coding style identifiers and the storage paths of different coding style example files. This guides the intelligent coding tool to find the example files according to the storage paths of different coding style example files, assisting the intelligent coding tool in developing according to the code examples. This improves code generation efficiency while generating code that meets style requirements. Specifically, the coding style example files can be stored in a style example library. These files can record the corresponding code writing standards, class structure templates, comment formats, naming rules, coding paradigms, business code examples, etc., providing style templates for the intelligent coding tool.

[0019] In this way, in intelligent coding scenarios, intelligent coding tools can be invoked to directly parse the project structure index file and style example index file, assisting the intelligent coding tools in understanding the project structure and confirming the code coding style, without having to parse all the code in the project, effectively reducing the reasoning cost and time of the intelligent coding tools.

[0020] Step 102: Using intelligent coding tools, determine the target coding style corresponding to the development task based on the development task and project structure index file in the intelligent development instructions.

[0021] In some embodiments, the development task can be a specific development requirement described in the intelligent development instructions, such as adding a new business module, generating interface code, creating entity classes, modifying and completing code, etc. The target coding style can be a coding style automatically selected by the intelligent coding tool that is compatible with the software development project and the development task. For example, the intelligent coding tool parses the intelligent development instructions to extract the task characteristics of the development task, and then combines the project structure and project style of the project structure index file to automatically match the target coding style corresponding to the development task, so as to generate code according to that style.

[0022] Step 103: Based on the style example index file and the target encoding style, read the target example file corresponding to the target encoding style.

[0023] In some embodiments, the intelligent coding tool can extract the identifier of the target coding style, such as number, name tag, etc., read the style example index file, retrieve the storage path of the target example file corresponding to the style in the style example index file according to the identifier of the target coding style, read the target example file according to the path, use it as a code generation template, and generate code according to the structure, naming rules, comments, etc. in the example file, thereby reducing the reasoning time of the intelligent coding tool and the workload of manual code review, and thus improving project development efficiency.

[0024] Step 104: Generate a target development project adapted to the development task based on the target example file and the project structure index file.

[0025] The target code is the project code after the project version has been updated for the development task.

[0026] In some embodiments, an intelligent coding tool can be invoked to parse the project structure index file, determine the architecture rules of the software development project, such as directory hierarchy, sub-package rules, and storage paths of each code file, and parse the target example file to extract the code structure, writing format, etc.; then, based on the business functions of the development task and the code layering requirements in the architecture rules, the package path, subdirectories, etc. corresponding to the development task are automatically generated, the storage location of each type of code file is determined, and the target example file is used as a development template to reuse the class structure, method architecture, comment format, input and output parameter definitions, exception handling paradigm, etc. of the target example file. Based on the business attributes, business fields, functional logic, and other information of the development task, entity attributes are replaced and business logic processing methods are generated. Finally, the generated code files are integrated according to the project structure to generate a target development project adapted to the development task.

[0027] Compared to related technologies, this embodiment allows the intelligent coding tool to prioritize reading the project structure index file and style example index file corresponding to the software development project during intelligent development. It automatically selects the target coding style and, combined with the target example file and project structure index file corresponding to the coding style, generates a target development project adapted to the development task. By pre-configuring the project structure index file and style example index file, the intelligent coding tool is provided with project structure information and coding style examples. This improves the efficiency of the intelligent coding tool in understanding the project structure and generating code for the development task. It eliminates the need to rescan the project code for contextual semantic analysis each time development begins, reducing the context analysis and inference time of the intelligent coding tool and thus improving the overall project development efficiency.

[0028] Furthermore, to further illustrate the method of this embodiment, as follows: Figure 3 As shown, the steps may include the following: Step 201: Based on the source code of the software development project, extract the project structure information of the software development project and distinguish the code corresponding to different code modules in the software development project.

[0029] In some embodiments, AI tools can be used to scan the project files of a software development project to determine the file path, package name, class name, annotations, etc. of each project file. For example, scanning can start from the project root directory, identify modules at each level of the project, automatically extract project structure information, and distinguish the project code by layer according to each module.

[0030] Step 202: Perform structured summarization of the project structure information to generate a project structure index file.

[0031] Among them, the project structure index file is used to assist intelligent coding tools in identifying the project structure of software development projects and to provide intelligent coding tools with the main structure index function.

[0032] In some embodiments, AI tools can be used to summarize and organize project structure information to generate a project structure retrieval file adapted to software development projects. Alternatively, developers can directly write project structure index files based on the summarized project structure information.

[0033] For example, the project structure index file can be stored in a pre-defined folder (such as the project root directory) of the software development project to describe the project structure pattern, such as structure.md. By scanning the project directory, package paths, and class name information, the module division, package hierarchy, and type distribution in the software development project are structurally summarized. During the summarization process, the project structure information at the "directory-package-class name" level can be prioritized, such as module name, package name, fully qualified class name, and configuration file location, reducing the parsing and summarization process of detailed content such as method bodies, member variables, SQL details, and long comments in the code. This can effectively preserve the main information of the project structure, enabling AI tools to quickly determine the package location where a certain type of code should be placed, the main layering method of the project, and the typical naming pattern of existing modules, avoiding the increase in token consumption for AI tools due to detailed content recognition, significantly reducing the length of context content required for AI tools to understand the project, thereby improving the generation efficiency of the project structure index file and improving the efficiency of intelligent coding tools in understanding project structure information during subsequent development tasks.

[0034] For example, in a wealth management and investment system, each structural level can be identified based on the system's hierarchical structure relation words. Then, the project files corresponding to each structural level can be located, including information such as the package path, module, class, and configuration file of that file. For instance, files or classes ending in "controller" can be identified as the control layer, which can be used to provide interfaces related to wealth management products, assets, orders, and risk control, and to perform parameter validation and request distribution. Files or classes ending in "service" can be identified as the business service layer, which can be used to execute business logic such as wealth management subscription, redemption, return calculation, fund freezing, risk control judgment, and reconciliation and settlement.

[0035] It should be noted that the project structure index file and style example index file can be generated only once and reused in multiple development tasks without needing to be updated multiple times.

[0036] Step 203: Generate a style example index file based on the code and code development specifications corresponding to different code modules.

[0037] The style example index file is used to assist intelligent coding tools in generating code with different coding styles.

[0038] For example, a style example index file, such as demo.md, can be used to provide representative examples of various coding styles and can be stored in a pre-defined folder of the software development project (such as the project root directory). It does not simply copy the entire repository source code of the software development project, but rather automatically selects the most representative developed classes from each code type identified in structure.md, such as controller, service, repository / dao, entity / model, dto, mapper, config, adapter, handler, and security, as reference examples for that coding style. The selection of developed classes can be based on the project's code development standards, as well as rules such as package path clustering results, class name patterns, frequency of occurrence, and structural typicality. When generating similar code later, the style of the corresponding developed classes in demo.md can be prioritized for generation, thus maintaining consistency with the existing project in terms of naming, annotations, inheritance, hierarchy, and method organization.

[0039] Optionally, a demo generator can be created to parse the project source code library, automatically distinguish the code, and generate a style demo index file. The style demo index file can be updated based on feedback from the application effect of the target development project.

[0040] Step 204: In response to receiving the intelligent development instructions for the software development project, call the intelligent coding tool to read the project structure index file and style example index file of the software development project.

[0041] Specifically, the method in this embodiment can be applied to heterogeneous existing software development projects, and is suitable for intelligent development and maintenance scenarios with multiple microservices, numerous historical projects, and inconsistent project styles. It automatically generates lightweight index files for each project in advance: a project structure index file and a style example index file. Then, through global or project-level rule files and skill workflows, the intelligent coding tool is required to read the above index files first before performing development tasks such as code generation, code modification, file location judgment, package path lookup, and architecture analysis. This serves as the main context source for the development tasks, enabling the intelligent coding tool to understand the project structure and coding style. This eliminates the need for the intelligent coding tool to scan a large amount of source code to temporarily understand the project and identify the coding style in each task, significantly reducing invalid context reading, lowering inference costs, and improving response speed.

[0042] Optionally, step 204 may specifically include: in response to receiving the intelligent development instruction, using the intelligent coding tool to detect the project structure index file in the project root directory of the software development project; if the intelligent coding tool detects the project structure index file, reading the project structure information in the project structure index file, and reading the example storage path in the style example index file according to the task parsing result of the intelligent coding tool on the development task.

[0043] The project structure information may include the hierarchical architecture, sub-package paths, and module distribution of the software development project. It is used to describe the project's layered structure information, clarify the storage paths of project files for different code levels and business modules, and assist intelligent coding tools in identifying the development code level and integrating the code.

[0044] In some embodiments, an assisted development driver can be created to verify whether a project structure index file is stored in the project root directory of the software development project when a smart development instruction is received. If the project structure index file is detected in the project root directory, it means that the intelligent coding tool can be assisted in understanding the project structure based on the file. If the project structure index file is not detected in the project root directory, the file can be searched in other directories of the project. If the file is still not detected, an index file configuration prompt can be output to prompt the developer to configure a project structure index file for the project to improve project development and maintenance efficiency.

[0045] Optionally, the assisted development driver can serve as the rule and execution layer for interaction with the intelligent coding tool. It can be based on a global or project-level driver file, such as AGENTS.md, to drive the intelligent coding tool to verify the project structure index file before coding. For example, when the AI ​​tool executes development tasks in any software development project, if structure.md exists in the project root directory, it should immediately read that file and use it as the project structure information. When development tasks involve new file locations, package path selection, style imitation, module location, etc., it should further read demo.md based on the task parsing results. The intelligent coding process of "reading project structure information—locating code type—selecting style example—generating development code—writing back the index when necessary" is encapsulated through skills or automated workflows, driving the intelligent coding tool to execute development tasks according to this process. Through the mechanism of rule-driven loading, project structure indexing, and style example indexing, project content is transformed into a context that the intelligent coding tool can parse at low cost.

[0046] By using rule-driven files and intelligent coding processes, index files are elevated to a priority reading context source for intelligent development, enabling intelligent coding tools to quickly switch between different projects while maintaining project coding style.

[0047] Step 205: Using the intelligent coding tool, based on the project structure information of the class to be developed and the project structure index file corresponding to the task parsing results, select the target coding style corresponding to the development task from the style example index file.

[0048] In the target coding style, the developed classes and the classes to be developed are of the same type, and the target coding style is the coding style automatically selected by the intelligent coding tool; the task parsing results may include the classes to be developed, the business logic methods to be developed, the hierarchical position, related modules, etc.

[0049] In some embodiments, the task parsing results can be obtained by parsing the development task. Based on the task parsing and project structure information, the class to be developed can be determined. It can be compared with the developed classes in the style example index file. After determining the developed classes of the same type, the target coding style can be automatically selected from multiple style example files corresponding to the developed class as the coding style of the class to be developed. This provides coding templates and development specifications for intelligent coding tools, reduces problems such as code placement errors, package path errors, hierarchy errors, base class selection errors, and inconsistent coding styles, improves development efficiency, and ensures code standardization.

[0050] Optionally, the method in this embodiment may further include: identifying the project coding style of the target development project based on the code development specifications of the software development project; comparing the project coding style with the initial coding style of the source code; and if the project coding style is found to be inconsistent with the initial coding style, then redetermining the target coding style.

[0051] In some embodiments, after generating a target development project for a development task, the consistency between the project's coding style and the initial coding style of the software development project can be checked. If an inconsistency is detected, a specified example instruction can be sent to the intelligent editing tool, causing the tool to read the specified example file, regenerate the development code, and update the coding style, thus ensuring consistency and standardization of the coding style. Correspondingly, the style example file corresponding to the target coding style can also be updated.

[0052] Optionally, the target development project can also be validated for code location, package path, hierarchy, and base class selection to reduce code generation errors.

[0053] For example, a medical electronic medical record management system may include multiple functional modules such as patient file management, basic medical record recording, and patient follow-up reminders. These modules may be developed by different developers, resulting in inconsistent coding styles. To improve code standardization and facilitate system maintenance, intelligent editing tools or manual selection of the target coding style for the medical electronic medical record management system can be used to identify modules in each functional module that are inconsistent with the target coding style. The style example file corresponding to the target coding style can be read, and the inconsistent module code can be converted to the target coding style, thus unifying the coding style of the medical electronic medical record management system. In this way, when updating the coding style, it is not necessary to completely refactor the project specifications or maintain large-scale specification documents, reducing project maintenance costs and helping to improve system maintenance efficiency.

[0054] This embodiment proposes a dual-index mechanism suitable for heterogeneous existing projects. It assists intelligent coding tools in understanding project structure and aligning coding styles. It compresses the entire source code content with high token consumption into project structure information and code examples with low token consumption, thus achieving a balance between project adaptation and cost control. It eliminates the need for a unified framework transformation of a large number of historical projects in an enterprise. It only requires automatic generation or minor maintenance of index files to continuously improve project maintenance quality. It can serve as a unified adaptation layer in intelligent coding scenarios, taking into account both scalability and maintenance efficiency.

[0055] Step 206: Based on the style example index file and the target encoding style, read the target example file corresponding to the target encoding style.

[0056] Optionally, step 206 may specifically include: identifying the target storage path corresponding to the target encoding style from the style example index file; and reading the target example file corresponding to the target encoding style from the style example library corresponding to the style example index file according to the target storage path.

[0057] In some embodiments, the style example index file may store the style identifiers and storage paths of multiple style example files in the style example library. When a target coding style is selected, the corresponding target storage path can be found based on the style identifier of the target coding style, and then the target example file can be read. This eliminates the need for the intelligent coding tool to search in a large database, quickly providing development examples for the intelligent coding tool and thus improving development efficiency.

[0058] Step 207: Generate a target development project adapted to the development task based on the target example file and the project structure index file.

[0059] Optionally, step 207 may specifically include: using an intelligent coding tool to generate development code corresponding to the class to be developed based on code examples of already developed classes; merging the development code into the source code of the software development project according to the project structure information to generate a target development project adapted to the development task.

[0060] In some embodiments, the intelligent coding tool can read and parse code examples of developed classes, extracting class structure, naming rules, method definitions, comment formats, layered writing styles, business logic paradigms, coding standards, etc., of the developed classes. Based on the task parsing results, it determines the business requirements, business fields, business modules, etc., corresponding to the development task, and then determines the class to be developed. Based on the project structure information, it determines other functions and modules called by the class to be developed. Based on this information, it automatically generates the development code corresponding to the development task. Furthermore, based on the directory hierarchy, package paths, storage locations of various types of code files, module affiliation, etc., in the project structure information, it determines the target hierarchy, target package path, target storage location, target module affiliation, etc., of the class to be developed. Based on this information, it writes the generated code files of the class to be developed into the corresponding project directory, integrates them into the source code of the software development project, and generates a target development project adapted to the development task to improve project functionality and optimize user experience.

[0061] In this way, this embodiment can perform structured summarization of project structure information, generate a project structure index file, and generate a style example index file based on the code and code development specifications corresponding to different code modules. This allows intelligent coding tools to prioritize reading the project structure index file and style example index file of the software development project, assisting the intelligent coding tools in quickly understanding the project structure and coding style. Furthermore, it performs consistency verification between the project coding style of the target development project and the initial coding style of the software development project, ensuring the consistency and standardization of coding style.

[0062] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0063] In one embodiment, a software intelligent development apparatus is provided, which corresponds one-to-one with the software intelligent development method described in the above embodiments. For example... Figure 4 As shown, the intelligent software development device includes a receiving module 31, a determining module 32, a reading module 33, and a generating module 34. Detailed descriptions of each functional module are as follows: The receiving module 31 is used to respond to the intelligent development instructions received from the software development project by calling the intelligent coding tool to read the project structure index file and style example index file of the software development project; Module 32 is used to determine the target coding style corresponding to the development task based on the development task and project structure index file in the intelligent development instructions using intelligent coding tools; The reading module 33 is used to read the target example file corresponding to the target encoding style based on the style example index file and the target encoding style; The generation module 34 is used to generate a target development project adapted to the development task based on the target example file and the project structure index file.

[0064] In one embodiment, the receiving module 31 is specifically used for: In response to receiving intelligent development instructions, the intelligent coding tool detects the project structure index file in the project root directory of the software development project. If the intelligent coding tool detects the project structure index file, it reads the project structure information from the project structure index file and, based on the task parsing results of the intelligent coding tool on the development task, reads the sample storage path from the style sample index file.

[0065] In one embodiment, the determining module 32 is specifically used for: Using intelligent coding tools, based on the project structure information of the class to be developed and the project structure index file corresponding to the task parsing results, the target coding style corresponding to the development task is selected from the style example index file. In the target coding style, the developed class and the class to be developed are of the same type.

[0066] In one embodiment, the generation module 34 is specifically used for: Using intelligent coding tools, development code for the class to be developed is generated based on code examples of already developed classes; Based on the project structure information, the development code is merged into the source code of the software development project to generate a target development project adapted to the development task.

[0067] In one embodiment, the determining module 32 is further configured to: Identify the coding style of the target development project based on the code development standards of the software development project. Compare the project's coding style with the initial coding style of the software development project; If the project's coding style is found to be inconsistent with the initial coding style, the target coding style will be redefined.

[0068] In one embodiment, the generation module 34 is further configured to: Based on the source code of a software development project, extract the project structure information of the software development project and distinguish the code corresponding to different code modules in the software development project; The project structure information is structured and summarized to generate a project structure index file, which is used to assist intelligent coding tools in identifying the project structure of software development projects. Based on the code and code development standards corresponding to different code modules, a style example index file is generated. The style example index file is used to assist the intelligent coding tool in generating code with different coding styles.

[0069] In one embodiment, the reading module 33 is specifically used for: Identify the target storage path corresponding to the target coding style from the style example index file; According to the target storage path, read the target example file corresponding to the target encoding style from the style example library corresponding to the style example index file.

[0070] This invention provides a software intelligent development device that, when using intelligent coding tools to intelligently develop software projects, allows the intelligent coding tool to prioritize reading the project structure index file and style example index file corresponding to the software development project, automatically select the target coding style, and combine the target example file and project structure index file corresponding to the coding style to generate a target development project adapted to the development task. By pre-configuring the project structure index file and style example index file, the device provides the intelligent coding tool with project structure information and coding style examples, improving the efficiency of the intelligent coding tool in understanding the project structure of the software development project and the code generation efficiency of the development task. It eliminates the need to rescan the project code for context semantic parsing each time development begins, reducing the context parsing and inference time of the intelligent coding tool, thereby improving the project development efficiency of the software development project.

[0071] Specific limitations regarding the software intelligent development device can be found in the limitations of the intelligent question-answering method described above, and will not be repeated here. Each module in the aforementioned software intelligent development device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0072] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 5As shown, the computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile and / or volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The network interface is used to communicate with external clients via a network connection. When the computer program is executed by the processor, it implements the functions or steps of a software intelligent development method on the server side.

[0073] In one embodiment, a computer device is provided, which may be a client, and its internal structure diagram may be as follows: Figure 6 As shown, the computer device includes a processor, memory, network interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The network interface is used to communicate with an external server via a network connection. When the computer program is executed by the processor, it implements the functions or steps of a software intelligent development method on the client side. In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to perform the following steps: In response to receiving intelligent development instructions for a software development project, the intelligent coding tool is invoked to read the project structure index file and style example index file of the software development project. Using intelligent coding tools, the target coding style corresponding to the development task is determined based on the development task and project structure index file in the intelligent development instructions; Based on the style example index file and the target encoding style, read the target example file corresponding to the target encoding style; Based on the target example file and project structure index file, generate a target development project adapted to the development task.

[0074] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor: In response to receiving intelligent development instructions for a software development project, the intelligent coding tool is invoked to read the project structure index file and style example index file of the software development project. Using intelligent coding tools, the target coding style corresponding to the development task is determined based on the development task and project structure index file in the intelligent development instructions; Based on the style example index file and the target encoding style, read the target example file corresponding to the target encoding style; Based on the target example file and project structure index file, generate a target development project adapted to the development task.

[0075] It should be noted that the functions or steps that can be implemented by the computer-readable storage medium or computer device described above can be referred to the relevant descriptions on the server side and client side in the foregoing method embodiments. To avoid repetition, they will not be described one by one here.

[0076] Those skilled in the art will understand that implementing all or part of the processes in the above embodiments can be accomplished by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided by this invention can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0077] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0078] It should be noted that if any AI models, software tools, or components not belonging to this company appear in the embodiments of this invention, they are merely illustrative examples and do not represent actual use. All user personal information involved in the embodiments of this invention is authorized (with the knowledge and consent) by the relevant parties or fully authorized by all parties, and the executing entity may obtain it through various legal and compliant means. The collection, storage, use, processing, transmission, provision, and disclosure of the information, data, and signals involved all comply with relevant laws and regulations and do not violate public order and good morals.

[0079] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.

Claims

1. A software intelligent development method, characterized in that, include: In response to receiving intelligent development instructions for a software development project, the intelligent coding tool is invoked to read the project structure index file and style example index file of the software development project. Using the intelligent coding tool, the target coding style corresponding to the development task is determined based on the development task in the intelligent development instruction and the project structure index file; Based on the style example index file and the target encoding style, read the target example file corresponding to the target encoding style; Based on the target example file and the project structure index file, a target development project adapted to the development task is generated.

2. The software intelligent development method as described in claim 1, characterized in that, The response to receiving intelligent development instructions for a software development project, including calling an intelligent coding tool to read the project structure index file and style example index file of the software development project, includes: In response to receiving the intelligent development instruction, the intelligent coding tool is used to detect the project structure index file in the project root directory of the software development project; If the intelligent coding tool detects the project structure index file, it reads the project structure information from the project structure index file and, based on the task parsing result of the intelligent coding tool for the development task, reads the example storage path from the style example index file.

3. The software intelligent development method as described in claim 2, characterized in that, The step of using the intelligent coding tool to determine the target coding style corresponding to the development task based on the development task in the intelligent development instruction and the project structure index file includes: Using the intelligent coding tool, based on the class to be developed corresponding to the task parsing result and the project structure information of the project structure index file, the target coding style corresponding to the development task is selected from the style example index file, wherein the developed class and the class to be developed in the target coding style are of the same type.

4. The software intelligent development method as described in claim 3, characterized in that, The step of generating a target development project adapted to the development task based on the target example file and the project structure index file includes: Using the intelligent coding tool, development code corresponding to the class to be developed is generated based on the code examples of the already developed class; Based on the project structure information, the development code is merged into the source code of the software development project to generate a target development project adapted to the development task.

5. The software intelligent development method as described in claim 4, characterized in that, The method further includes: Based on the code development specifications of the software development project, identify the project coding style of the target development project; Compare the coding style of the project with the initial coding style of the software development project; If the project's coding style is found to be inconsistent with the initial coding style, the target coding style is then redefined.

6. The software intelligent development method as described in claim 5, characterized in that, Before invoking the intelligent coding tool to read the project structure index file and style example index file of the software development project in response to receiving the intelligent development instruction of the software development project, the method further includes: Based on the source code of the software development project, extract the project structure information of the software development project, and distinguish the code corresponding to different code modules in the software development project; The project structure information is structurally summarized and processed to generate a project structure index file, which is used to assist the intelligent coding tool in identifying the project structure of the software development project. Based on the code corresponding to the different code modules and the code development specifications, a style example index file is generated. The style example index file is used to assist the intelligent coding tool in generating code with different coding styles.

7. The software intelligent development method as described in claim 1, characterized in that, The step of reading the target example file corresponding to the target encoding style based on the style example index file and the target encoding style includes: Identify the target storage path corresponding to the target encoding style from the style example index file; According to the target storage path, read the target example file corresponding to the target encoding style from the style example library corresponding to the style example index file.

8. A software intelligent development device, characterized in that, include: The receiving module is used to respond to receiving intelligent development instructions for a software development project by calling an intelligent coding tool to read the project structure index file and style example index file of the software development project. The determination module is used to determine the target coding style corresponding to the development task based on the development task in the intelligent development instruction and the project structure index file using the intelligent coding tool; The reading module is used to read the target example file corresponding to the target encoding style based on the style example index file and the target encoding style; The generation module is used to generate a target development project adapted to the development task based on the target example file and the project structure index file.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the software intelligent development method as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the software intelligent development method as described in any one of claims 1 to 7.