You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/component-refactoring-flow.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ This document describes a 3-step AI-assisted component refactoring process for i
9
9
2.**Refactor Component** → Execute approved checklist items and implement changes
10
10
3.**Validate Component** → Verify improvements through contract comparison and scoring
11
11
12
-
The process includes two quality gates where human review and approval are required.
12
+
The process includes two quality gates where human review and approval are required. When refactoring involves Design System components, the process can leverage selective data retrieval to access only the specific component information needed (implementation, documentation, or stories).
13
13
14
14
## Prerequisites
15
15
@@ -159,6 +159,11 @@ At this point, all checklist items have been processed. You must review the refa
159
159
- Returns: contract path with component's public API, DOM structure, and styles
160
160
- Purpose: Establish baseline for validation comparison
161
161
162
+
-`get-ds-component-data` - Retrieves Design System component information when needed
163
+
- Parameters: `componentName`, `sections` (optional) - Array of sections to include: "implementation", "documentation", "stories", "all"
164
+
- Returns: Selective component data based on refactoring needs
165
+
- Purpose: Access DS component documentation and examples for proper implementation patterns
166
+
162
167
### Flow
163
168
164
169
> You don't need to manually perform any of the listed actions except providing the initial parameters.
Copy file name to clipboardExpand all lines: docs/tools.md
+26-6Lines changed: 26 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,23 @@ This document provides comprehensive guidance for AI agents working with Angular
45
45
46
46
### 📚 Component Information Tools
47
47
48
+
#### `list-ds-components`
49
+
**Purpose**: Lists all available Design System components in the project with their file paths and metadata
50
+
**AI Usage**: Discover available DS components before starting migration or analysis workflows
51
+
**Key Parameters**:
52
+
-`sections`: Array of sections to include - `"implementation"`, `"documentation"`, `"stories"`, or `"all"` (default: `["all"]`)
53
+
**Output**: Complete inventory of DS components with their implementation files, documentation files, stories files, and import paths
54
+
**Best Practice**: Use as the first step to understand the DS component landscape before targeted analysis
55
+
56
+
#### `get-ds-component-data`
57
+
**Purpose**: Returns comprehensive data for a specific DS component including implementation files, documentation files, stories files, and import path
58
+
**AI Usage**: Get detailed information about a specific component for analysis or migration planning
59
+
**Key Parameters**:
60
+
-`componentName`: DS component class name (e.g., `DsBadge`)
61
+
-`sections`: Array of sections to include - `"implementation"`, `"documentation"`, `"stories"`, or `"all"` (default: `["all"]`)
62
+
**Output**: Structured data with file paths for implementation, documentation, stories, and import information
63
+
**Best Practice**: Use selective sections to optimize performance when you only need specific types of files
64
+
48
65
#### `get-component-docs`
49
66
**Purpose**: Retrieves MDX documentation for DS components
50
67
**AI Usage**: Access official component documentation to understand proper usage patterns
@@ -127,16 +144,18 @@ This document provides comprehensive guidance for AI agents working with Angular
0 commit comments