Skip to content

Commit 0237991

Browse files
committed
feat(ci): add updating skill and weekly-update workflow
- Add updating skill for coordinating npm and checksum updates - Add updating-checksums skill for SHA-256 verification - Add weekly-update.yml workflow for automated dependency updates - Fix .gitignore to allow .claude/skills/ and .claude/commands/
1 parent 1fb7d0f commit 0237991

8 files changed

Lines changed: 2130 additions & 1 deletion

File tree

.claude/commands/quality-loop.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# quality-loop
2+
3+
Run comprehensive quality scan and automatic issue fixing loop for socket-cli.
4+
5+
## What it does
6+
7+
Executes an iterative quality improvement cycle:
8+
9+
1. Updates dependencies
10+
2. Cleans up repository (removes junk files)
11+
3. Validates code structure
12+
4. Runs specialized quality scans
13+
5. Fixes ALL issues found
14+
6. Commits fixes
15+
7. Repeats until zero issues or 5 iterations
16+
17+
## Usage
18+
19+
```bash
20+
/quality-loop
21+
```
22+
23+
## Scan types
24+
25+
- **critical** - Crashes, security, data corruption, auth handling
26+
- **logic** - Algorithm errors, edge cases, validation bugs
27+
- **cache** - Config/token caching correctness
28+
- **workflow** - Build scripts, CI/CD, cross-platform compatibility
29+
- **security** - GitHub Actions security, credential handling
30+
- **documentation** - Command examples, flag accuracy, API docs
31+
32+
## Process
33+
34+
The skill will:
35+
- Ask which scans to run (default: all)
36+
- Run dependency updates
37+
- Clean junk files with confirmation
38+
- Execute selected scans sequentially
39+
- Aggregate and deduplicate findings
40+
- Fix issues and commit changes
41+
- Repeat until clean or max iterations
42+
43+
## Exit conditions
44+
45+
- ✅ Success: Zero issues found
46+
- ⏹️ Stop: After 5 iterations (prevent infinite loops)
47+
48+
## Notes
49+
50+
- Commits fixes with proper git messages
51+
- Skips no issues (fixes architectural problems too)
52+
- Runs tests after each iteration
53+
- Reports progress and statistics
54+
55+
Use this command to maintain high code quality standards across socket-cli.

.claude/commands/sync-checksums.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
Sync SHA-256 checksums from GitHub releases to external-tools.json using the syncing-checksums skill.
2+
3+
## What it does
4+
5+
1. Fetches checksums.txt from GitHub releases (or computes from assets)
6+
2. Updates packages/cli/external-tools.json
7+
3. Validates JSON syntax
8+
4. Commits changes (if any)
9+
10+
## Tools synced
11+
12+
Only `github-release` type tools are synced:
13+
14+
- opengrep - OpenGrep SAST/code analysis engine
15+
- python - Python runtime from python-build-standalone
16+
- socket-patch - Socket Patch CLI (Rust binary)
17+
- sfw - Socket Firewall
18+
- trivy - Container vulnerability scanner
19+
- trufflehog - Secret detection
20+
21+
## Usage
22+
23+
```bash
24+
/sync-checksums
25+
```
26+
27+
## Manual commands
28+
29+
```bash
30+
# Sync all GitHub release tools
31+
node packages/cli/scripts/sync-checksums.mjs
32+
33+
# Sync specific tool
34+
node packages/cli/scripts/sync-checksums.mjs --tool=opengrep
35+
36+
# Dry run
37+
node packages/cli/scripts/sync-checksums.mjs --dry-run
38+
```

0 commit comments

Comments
 (0)