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: .claude/commands/api-lint-diff.md
+26-10Lines changed: 26 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Validate API issues using kube-api-linter with diff-aware analysis
4
4
5
5
# API Lint Diff
6
6
7
-
Validates API issues in `api/` directory using kube-api-linter with diff-aware analysis that distinguishes between NEW and PRE-EXISTING issues.
7
+
Validates API issues in `api/` directory using kube-api-linter with diff-aware analysis that distinguishes between FIXED, NEW, and PRE-EXISTING issues.
8
8
9
9
## Instructions for Claude AI
10
10
@@ -19,6 +19,7 @@ When this command is invoked, you MUST:
19
19
20
20
2.**Understand the shell script's output**:
21
21
-**False positives (IGNORED)**: Standard CRD scaffolding patterns that kube-api-linter incorrectly flags
22
+
-**FIXED issues (SUCCESS)**: Issues that existed in baseline but were resolved in current branch → Celebrate! 🎉
22
23
-**NEW issues (ERRORS)**: Introduced in current branch → MUST fix
23
24
-**PRE-EXISTING issues (WARNINGS)**: Existed before changes → Can fix separately
24
25
@@ -132,23 +133,38 @@ When this command is invoked, you MUST:
132
133
# API Lint Diff Analysis Report
133
134
134
135
**Generated:**[date]
135
-
**Baseline:** main branch
136
-
**Current:**[branch name]
136
+
**Baseline:** main branch (X issues)
137
+
**Current:**[branch name] (Y issues)
137
138
**Status:**[status icon and message based on logic below]
138
139
139
140
**Status Logic:**
140
-
- ✅ PASSED: 0 real issues (after filtering false positives)
141
+
- ✅ PASSED: 0 new issues (fixed issues are OK)
141
142
- ⚠️ WARN: 0 new issues but has pre-existing issues
142
143
- ❌ FAIL: Has new issues that must be fixed
143
144
144
145
## Executive Summary
145
-
- Total issues: X
146
-
- False positives (IGNORED): Y
147
-
- Real issues (NEED FIXING): Z
148
-
- NEW issues: N
149
-
- PRE-EXISTING issues: P
146
+
- Baseline issues: X
147
+
- Current issues: Y
148
+
-**FIXED**: F (issues resolved in this branch)
149
+
-**NEW**: N (issues introduced in this branch)
150
+
-**PRE-EXISTING**: P (issues that still remain)
151
+
- False positives (IGNORED): Z
150
152
151
-
## REAL ISSUES - FIXES NEEDED (Z issues)
153
+
## FIXED ISSUES (F issues)
154
+
155
+
[List of issues that were fixed in this branch - show the baseline line numbers]
156
+
157
+
## NEW ISSUES (N issues)
158
+
159
+
[List of issues introduced in this branch - these MUST be fixed]
160
+
161
+
## PRE-EXISTING ISSUES (P issues)
162
+
163
+
[List of issues that existed before and still exist - can be fixed separately]
0 commit comments