The customized instruction system is the core feature that sets nanocoder apart from other AI programming tools, and its value is:
- Task templating: Standardize highly repetitive operations (e.g., test generation, code review)
- parametric design: Dynamic content replacement via {{parameter}} placeholders
- Team Sharing:: Commands in the .nanocoder/commands directory can be included in version control
Create a specific process for test generation instructions:
- In the project root directory, create the
.nanocoder/commands/test.md
file - Add YAML header definition metadata:
--- description: "单元测试生成指令" aliases: ["testing"] parameters: - name: "component" required: true ---
- Write instruction template content with details such as test coverage requirements
- pass (a bill or inspection etc)
/test component="ServiceName"
invoke an instruction
This answer comes from the articleNanocoder: code generation tool that runs in the local terminalThe