create_feature_workflow
Start a structured workflow to add new functionality with integrated testing, ensuring disciplined development practices through verification at each phase.
Instructions
Start a structured workflow for adding new functionality with integrated testing
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | Description of the feature to create | |
| context | No | Additional context (optional) |
Implementation Reference
- src/tools/createFeatureWorkflow.ts:43-55 (handler)The handler function that executes the create_feature_workflow tool. It calls executeWorkflow with workflowType set to 'feature' and passes the task and context.export async function handleCreateFeatureWorkflow( params: { task: string; context?: any }, sessionManager: SessionManager ) { return executeWorkflow( { task: params.task, workflowType: 'feature', context: params.context }, sessionManager ); }
- The input schema defining the parameters for the create_feature_workflow tool, including required 'task' and optional 'context'.inputSchema: { type: 'object', properties: { task: { type: 'string', description: 'Description of the feature to create' }, context: { type: 'object', description: 'Additional context (optional)', properties: { targetFiles: { type: 'array', items: { type: 'string' }, description: 'Files where the feature will be added' }, scope: { type: 'string', enum: ['file', 'directory', 'project'], description: 'The scope of the feature' }, requirements: { type: 'array', items: { type: 'string' }, description: 'Feature requirements and acceptance criteria' } } } }, required: ['task'] }
- src/index.ts:137-157 (registration)Registration of the tool in the server's tools list by including createFeatureWorkflowTool() in the tools array used for ListToolsRequestHandler.const tools = [ // Workflow entry points createRefactorWorkflowTool(), // Refactoring workflow createFeatureWorkflowTool(), // Feature creation workflow createTestWorkflowTool(), // Test writing workflow createTddWorkflowTool(), // TDD workflow createBuildCustomWorkflowTool(), // Custom workflow builder // Phase guidance tools ...createPhaseGuidanceTools(), // Handles both suggestive and directive modes createTestGuidanceTool(), // TEST phase guidance // Validation tools ...createValidationTools(), // Both validate_action and validate_phase_completion // Workflow management createUserInputRequiredTool(), // Escalation handling createWorkflowStatusTool(), // Workflow status createPhaseOutputTool(), // Phase output recording createDiscoverWorkflowToolsTool() // Tool discovery ];
- src/index.ts:234-240 (registration)Dispatch handler in the CallToolRequestSchema that routes calls to 'create_feature_workflow' to the handleCreateFeatureWorkflow function.case 'create_feature_workflow': return { content: [{ type: 'text', text: JSON.stringify(await handleCreateFeatureWorkflow(args as any, sessionManager), null, 2) }] };