nexus-agents 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,124 @@
1
+ # Feature Implementation Workflow Template
2
+ # End-to-end feature development from planning to review
3
+ #
4
+ # Usage:
5
+ # Provide feature description and optional constraints.
6
+ # Workflow handles planning, implementation, testing, docs, and review.
7
+
8
+ name: feature-implementation
9
+ version: '1.0.0'
10
+ description: |
11
+ Complete feature implementation workflow from design to review.
12
+ Follows a structured approach: plan, implement, test, document, review.
13
+ Ensures quality through automated testing and code review.
14
+
15
+ inputs:
16
+ - name: feature
17
+ type: string
18
+ description: Feature description and requirements
19
+ required: true
20
+
21
+ - name: targetFiles
22
+ type: array
23
+ description: Target files to modify or create
24
+ required: false
25
+
26
+ - name: testingStrategy
27
+ type: string
28
+ description: Testing approach (unit, integration, e2e, all)
29
+ default: unit
30
+
31
+ - name: generateDocs
32
+ type: boolean
33
+ description: Whether to generate documentation
34
+ default: true
35
+
36
+ steps:
37
+ # Step 1: Architecture planning
38
+ - id: plan
39
+ agent: architecture_expert
40
+ action: design_feature
41
+ description: |
42
+ Creates implementation plan including:
43
+ - Component architecture design
44
+ - Interface definitions
45
+ - Integration points
46
+ - Implementation order
47
+ inputs:
48
+ feature: ${{ inputs.feature }}
49
+ targetFiles: ${{ inputs.targetFiles }}
50
+ timeout: 120000
51
+
52
+ # Step 2: Code implementation
53
+ - id: implement
54
+ agent: code_expert
55
+ action: implement_feature
56
+ description: |
57
+ Implements the feature following the plan:
58
+ - Creates/modifies source files
59
+ - Follows coding standards
60
+ - Adds inline documentation
61
+ inputs:
62
+ plan: ${{ steps.plan.output }}
63
+ feature: ${{ inputs.feature }}
64
+ targetFiles: ${{ inputs.targetFiles }}
65
+ dependsOn:
66
+ - plan
67
+ timeout: 180000
68
+ retries: 2
69
+
70
+ # Step 3: Test generation
71
+ - id: test
72
+ agent: testing_expert
73
+ action: generate_tests
74
+ description: |
75
+ Generates comprehensive tests:
76
+ - Unit tests for new functions
77
+ - Integration tests for interfaces
78
+ - Edge case coverage
79
+ inputs:
80
+ implementation: ${{ steps.implement.output }}
81
+ strategy: ${{ inputs.testingStrategy }}
82
+ feature: ${{ inputs.feature }}
83
+ dependsOn:
84
+ - implement
85
+ timeout: 120000
86
+
87
+ # Step 4: Documentation (conditional)
88
+ - id: document
89
+ agent: documentation_expert
90
+ action: generate_documentation
91
+ description: |
92
+ Creates/updates documentation:
93
+ - API documentation
94
+ - Usage examples
95
+ - README updates
96
+ inputs:
97
+ implementation: ${{ steps.implement.output }}
98
+ tests: ${{ steps.test.output }}
99
+ feature: ${{ inputs.feature }}
100
+ dependsOn:
101
+ - test
102
+ condition: ${{ inputs.generateDocs == true }}
103
+ timeout: 90000
104
+
105
+ # Step 5: Final code review
106
+ - id: review
107
+ agent: code_expert
108
+ action: review_implementation
109
+ description: |
110
+ Final quality review:
111
+ - Verify plan adherence
112
+ - Check code quality
113
+ - Validate test coverage
114
+ - Confirm documentation accuracy
115
+ inputs:
116
+ plan: ${{ steps.plan.output }}
117
+ implementation: ${{ steps.implement.output }}
118
+ tests: ${{ steps.test.output }}
119
+ documentation: ${{ steps.document.output }}
120
+ dependsOn:
121
+ - document
122
+ timeout: 90000
123
+
124
+ timeout: 600000