@clipboard-health/ai-rules 2.6.1 → 2.6.2
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.
- package/package.json +1 -1
- package/skills/cognito-user-analysis/SKILL.md +7 -7
- package/skills/cognito-user-analysis/docs/analysis-workflow.md +3 -3
- package/skills/cognito-user-analysis/docs/fix-workflow.md +2 -2
- package/skills/cognito-user-analysis/docs/setup.md +2 -2
- package/skills/simplify/SKILL.md +0 -2
- package/skills/unresolved-pr-comments/SKILL.md +1 -1
package/package.json
CHANGED
|
@@ -26,24 +26,24 @@ Analyze and fix duplicate Cognito users in clipboard-production by comparing aga
|
|
|
26
26
|
SKILL_DIR="<path-to-this-skill>"
|
|
27
27
|
|
|
28
28
|
# 1. Verify prerequisites
|
|
29
|
-
scripts/check-prerequisites.sh
|
|
29
|
+
"${CLAUDE_PLUGIN_ROOT:-.agents}/skills/cognito-user-analysis/scripts/check-prerequisites.sh"
|
|
30
30
|
|
|
31
31
|
# 2. Create input file (one sub per line)
|
|
32
32
|
echo "68e1e380-d0c1-7028-4256-3361fd833080" > subs.txt
|
|
33
33
|
|
|
34
34
|
# 3. Pipeline: lookup → find duplicates → analyze → fix
|
|
35
|
-
scripts/cognito-lookup.sh subs.txt results.csv
|
|
36
|
-
scripts/cognito-find-duplicates.sh results.csv duplicates.csv
|
|
37
|
-
scripts/cognito-analyze-duplicates.sh duplicates.csv analysis.csv
|
|
35
|
+
"${CLAUDE_PLUGIN_ROOT:-.agents}/skills/cognito-user-analysis/scripts/cognito-lookup.sh" subs.txt results.csv
|
|
36
|
+
"${CLAUDE_PLUGIN_ROOT:-.agents}/skills/cognito-user-analysis/scripts/cognito-find-duplicates.sh" results.csv duplicates.csv
|
|
37
|
+
"${CLAUDE_PLUGIN_ROOT:-.agents}/skills/cognito-user-analysis/scripts/cognito-analyze-duplicates.sh" duplicates.csv analysis.csv
|
|
38
38
|
|
|
39
39
|
# 4. Review analysis.csv, then fix (ALWAYS dry-run first!)
|
|
40
|
-
scripts/cognito-fix-duplicates.sh analysis.csv --dry-run
|
|
41
|
-
scripts/cognito-fix-duplicates.sh analysis.csv
|
|
40
|
+
"${CLAUDE_PLUGIN_ROOT:-.agents}/skills/cognito-user-analysis/scripts/cognito-fix-duplicates.sh" analysis.csv --dry-run
|
|
41
|
+
"${CLAUDE_PLUGIN_ROOT:-.agents}/skills/cognito-user-analysis/scripts/cognito-fix-duplicates.sh" analysis.csv
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
## Prerequisites
|
|
45
45
|
|
|
46
|
-
Run `scripts/check-prerequisites.sh` to verify. Requirements:
|
|
46
|
+
Run `"${CLAUDE_PLUGIN_ROOT:-.agents}/skills/cognito-user-analysis/scripts/check-prerequisites.sh"` to verify. Requirements:
|
|
47
47
|
|
|
48
48
|
| Requirement | Setup |
|
|
49
49
|
| ------------------------------------- | ----------------------------------------------------------- |
|
|
@@ -5,7 +5,7 @@ Pipeline: `subs.txt → lookup → find-duplicates → analyze → analysis.csv`
|
|
|
5
5
|
## Step 1: Lookup Users
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
scripts/cognito-lookup.sh <input_file> [output_file]
|
|
8
|
+
"${CLAUDE_PLUGIN_ROOT:-.agents}/skills/cognito-user-analysis/scripts/cognito-lookup.sh" <input_file> [output_file]
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
Converts Cognito subs to user details. Run `--help` for all options.
|
|
@@ -16,7 +16,7 @@ Converts Cognito subs to user details. Run `--help` for all options.
|
|
|
16
16
|
## Step 2: Find Duplicates
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
scripts/cognito-find-duplicates.sh <results_csv> [output_file]
|
|
19
|
+
"${CLAUDE_PLUGIN_ROOT:-.agents}/skills/cognito-user-analysis/scripts/cognito-find-duplicates.sh" <results_csv> [output_file]
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
Searches for other accounts sharing phone or email. Run `--help` for all options.
|
|
@@ -26,7 +26,7 @@ Searches for other accounts sharing phone or email. Run `--help` for all options
|
|
|
26
26
|
## Step 3: Analyze Duplicates
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
|
-
scripts/cognito-analyze-duplicates.sh <duplicates_csv> [output_file]
|
|
29
|
+
"${CLAUDE_PLUGIN_ROOT:-.agents}/skills/cognito-user-analysis/scripts/cognito-analyze-duplicates.sh" <duplicates_csv> [output_file]
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
Compares each duplicate against backend API. Run `--help` for all options.
|
|
@@ -5,7 +5,7 @@ Execute fixes after reviewing `analysis.csv`.
|
|
|
5
5
|
## Always Dry-Run First
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
scripts/cognito-fix-duplicates.sh analysis.csv --dry-run
|
|
8
|
+
"${CLAUDE_PLUGIN_ROOT:-.agents}/skills/cognito-user-analysis/scripts/cognito-fix-duplicates.sh" analysis.csv --dry-run
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
Review output to confirm correct users will be deleted/updated.
|
|
@@ -13,7 +13,7 @@ Review output to confirm correct users will be deleted/updated.
|
|
|
13
13
|
## Execute
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
scripts/cognito-fix-duplicates.sh analysis.csv
|
|
16
|
+
"${CLAUDE_PLUGIN_ROOT:-.agents}/skills/cognito-user-analysis/scripts/cognito-fix-duplicates.sh" analysis.csv
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
Run `--help` for all options.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
## Quick Check
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
|
-
scripts/check-prerequisites.sh
|
|
6
|
+
"${CLAUDE_PLUGIN_ROOT:-.agents}/skills/cognito-user-analysis/scripts/check-prerequisites.sh"
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
This validates all requirements and shows how to fix failures.
|
|
@@ -60,7 +60,7 @@ aws cognito-idp list-user-pools \
|
|
|
60
60
|
Pass the pool ID as a parameter to override the default:
|
|
61
61
|
|
|
62
62
|
```bash
|
|
63
|
-
scripts/cognito-lookup.sh subs.txt results.csv cbh-staging-platform us-west-2_XXXXX
|
|
63
|
+
"${CLAUDE_PLUGIN_ROOT:-.agents}/skills/cognito-user-analysis/scripts/cognito-lookup.sh" subs.txt results.csv cbh-staging-platform us-west-2_XXXXX
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
## Troubleshooting
|
package/skills/simplify/SKILL.md
CHANGED
|
@@ -13,7 +13,7 @@ Fetch and analyze unresolved review comments from a GitHub pull request.
|
|
|
13
13
|
Run the script to fetch PR comment data:
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
node scripts/unresolvedPrComments.ts [pr-number]
|
|
16
|
+
node "${CLAUDE_PLUGIN_ROOT:-.agents}/skills/unresolved-pr-comments/scripts/unresolvedPrComments.ts" [pr-number]
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
If no PR number is provided, it uses the PR associated with the current branch.
|