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
chore: sync skills + emit-schema scripts from socket-repo-template@563fd6a
Refresh:
- `.claude/skills/quality-scan/SKILL.md` — junior-dev-friendly
rewrite of the quality-scan skill from socket-repo-template.
- `.claude/skills/updating/SKILL.md` — same, for the updating
skill.
- `scripts/{xport,socket-repo-template}-emit-schema.mts` — both
emitters now `pnpm exec oxfmt` their output so the emitted
schema matches what oxfmt produces. Without this, every fleet
repo that re-emits would flag the schema as drifted on
`pnpm run check --all`.
- `xport.schema.json` + `socket-repo-template-schema.json` — re-
emitted with the formatter applied.
All synced byte-identical from socket-repo-template via
sync-scaffolding.
description: Runs comprehensive quality scans across the codebase using specialized agents to identify critical bugs, logic errors, caching issues, and workflow problems. Use when improving code quality, before releases, or investigating issues.
3
+
description: Scans the codebase for bugs, logic errors, caching issues, and workflow problems using specialized agents. Use when preparing for release, investigating quality issues, or running pre-merge checks.
2.**Update Dependencies** — `pnpm run update`; continue even if it fails.
27
-
3.**Install External Tools** — See `_shared/security-tools.md` for zizmor; use `pnpm run setup`.
28
-
4.**Repository Cleanup** — Glob for junk files (SCREAMING_TEXT.md, temp files, editor backups); confirm before deletion.
29
-
5.**Structural Validation** — `pnpm run check`; report errors as Critical findings.
30
-
6.**Determine Scan Scope** — Ask user: all scans, critical only, or custom selection. CI mode runs all automatically.
31
-
7.**Execute Scans** — Spawn agents sequentially via Agent tool using prompts from [reference.md](reference.md). Apply `agents/code-reviewer.md` rules for code scans, `agents/security-reviewer.md` for security scans.
32
-
8.**Aggregate Findings** — Deduplicate across scans, sort by severity then scan type.
33
-
9.**Generate Report** — Summary table by severity + scan type, display to user.
34
-
10.**Fix All Issues** — Apply fixes from Critical to Low; read each file before editing.
35
-
11.**Run Tests** — `pnpm test`; revert and exit iteration on failure.
36
-
12.**Commit Fixes** — Stage and commit with summary of fixed issue counts.
37
-
13.**Iteration Decision** — Zero issues = done; otherwise loop back to Phase 7.
38
-
39
-
## Available Scans
40
-
41
-
See [reference.md](reference.md) for detailed agent prompts. Scan types:
42
-
43
-
-**critical** — Crashes, security vulnerabilities, resource leaks, data corruption
44
-
-**logic** — Algorithm errors, edge cases, type guards, off-by-one errors
-**Git commit failure**: Display error, ask user to resolve.
10
+
Perform comprehensive quality analysis across the codebase using specialized agents. Clean up junk files first, then scan and generate a prioritized report with actionable fixes.
11
+
12
+
## Scan Types
13
+
14
+
1.**critical** - Crashes, security vulnerabilities, resource leaks, data corruption
15
+
2.**logic** - Algorithm errors, edge cases, type guards, off-by-one errors
Agent prompts for each scan type are in `reference.md`.
24
+
25
+
## Process
26
+
27
+
### Phase 1: Validate Environment
28
+
29
+
```bash
30
+
git status
31
+
```
32
+
33
+
Warn about uncommitted changes but continue (scanning is read-only).
34
+
35
+
### Phase 2: Update Dependencies
36
+
37
+
```bash
38
+
pnpm run update
39
+
```
40
+
41
+
Only update the current repository. Continue even if update fails.
42
+
43
+
### Phase 3: Install zizmor
44
+
45
+
Install zizmor for GitHub Actions security scanning, respecting the soak window — pnpm-workspace.yaml `minimumReleaseAge` in minutes, default 10080 (= 7 days). Query GitHub releases, find the latest stable release older than the threshold, and install via pipx/uvx. Skip the security scan if no release meets the soak requirement.
46
+
47
+
### Phase 4: Repository Cleanup
48
+
49
+
Find and remove junk files (with user confirmation via AskUserQuestion):
50
+
- SCREAMING_TEXT.md files outside `.claude/` and `docs/`
Report errors as Critical findings. Warnings are Low findings.
62
+
63
+
### Phase 6: Determine Scan Scope
64
+
65
+
Ask user which scans to run using AskUserQuestion (multiSelect). Default: all scans.
66
+
67
+
### Phase 7: Execute Scans
68
+
69
+
For each enabled scan type, spawn a Task agent with the corresponding prompt from `reference.md`. Run sequentially in priority order: critical, logic, cache, workflow, then others.
70
+
71
+
Each agent reports findings as:
72
+
- File: path:line
73
+
- Issue, Severity, Pattern, Trigger, Fix, Impact
74
+
75
+
### Phase 8: Aggregate and Report
76
+
77
+
- Deduplicate findings across scan types
78
+
- Sort by severity: Critical > High > Medium > Low
79
+
- Generate markdown report with file:line references, suggested fixes, and coverage metrics
80
+
- Offer to save to `reports/quality-scan-YYYY-MM-DD.md`
81
+
82
+
### Phase 9: Summary
83
+
84
+
Report final metrics: dependency updates, structural validation results, cleanup stats, scan counts, and total findings by severity.
description: Updates all npm dependencies to their latest versions. Triggers when user asks to "update dependencies", "update packages", or prepare for a release.
3
+
description: Umbrella update skill for a Socket fleet repo. Runs `pnpm run update` (npm), validates `xport.json` via `pnpm run xport` (if present), optionally bumps submodules, and checks workflow SHA pins. Use when asked to update dependencies, sync upstreams, or prepare for a release.
0 commit comments