Skip to content

Commit f4e047a

Browse files
aRustyDevclaude
andcommitted
refactor: rename .scripts/ → cli/
The TypeScript tooling (2K+ files, 900+ tests, full CLI application) has outgrown the "scripts" name. Renamed to cli/ to honestly reflect what it is. All internal references updated. No import path changes needed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent fd4362c commit f4e047a

274 files changed

Lines changed: 983 additions & 1047 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/plans/.archive/agents-tool-improvement/phase/1-error-log-separation.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ Separate error records from the catalog into an append-only error log file. Cata
2727

2828
| Deliverable | Location | Format |
2929
|-------------|----------|--------|
30-
| Error log types + functions | `.scripts/lib/catalog.ts` | TypeScript |
31-
| Updated merge function | `.scripts/lib/catalog.ts` | TypeScript |
32-
| Updated errors CLI | `.scripts/commands/skill.ts` | TypeScript |
33-
| Error log tests | `.scripts/test/catalog-tier1.test.ts` | TypeScript |
30+
| Error log types + functions | `cli/lib/catalog.ts` | TypeScript |
31+
| Updated merge function | `cli/lib/catalog.ts` | TypeScript |
32+
| Updated errors CLI | `cli/commands/skill.ts` | TypeScript |
33+
| Error log tests | `cli/test/catalog-tier1.test.ts` | TypeScript |
3434
| Gitignore update | `context/skills/.gitignore` | Text |
3535

3636
## Files
@@ -39,9 +39,9 @@ Separate error records from the catalog into an append-only error log file. Cata
3939
- None (error log file created at runtime)
4040

4141
**Modify:**
42-
- `.scripts/lib/catalog.ts``ErrorRecord` type, error log functions, update `Tier1Result`, update `mergeTier1Results` signature and implementation
43-
- `.scripts/commands/skill.ts` — update `processBatch` to pass `errorLogPath` to merge, update `catalog errors` subcommand, add `--prune` flag
44-
- `.scripts/test/catalog-tier1.test.ts` — tests for error log append/read, merge success-clears-errors, merge failure-increments-attemptCount, merge routes errors to log
42+
- `cli/lib/catalog.ts``ErrorRecord` type, error log functions, update `Tier1Result`, update `mergeTier1Results` signature and implementation
43+
- `cli/commands/skill.ts` — update `processBatch` to pass `errorLogPath` to merge, update `catalog errors` subcommand, add `--prune` flag
44+
- `cli/test/catalog-tier1.test.ts` — tests for error log append/read, merge success-clears-errors, merge failure-increments-attemptCount, merge routes errors to log
4545
- `context/skills/.gitignore` — add `.catalog-errors.ndjson`
4646

4747
## Tasks

.claude/plans/.archive/agents-tool-improvement/phase/2-mechanical-compute.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ Implement native TypeScript functions for mechanical analysis (content hash, wor
2424

2525
| Deliverable | Location | Format |
2626
|-------------|----------|--------|
27-
| 5 compute functions | `.scripts/lib/catalog.ts` | TypeScript |
28-
| Updated `DownloadResult` type | `.scripts/lib/catalog.ts` | TypeScript |
29-
| Compute function tests | `.scripts/test/catalog-tier1.test.ts` | TypeScript |
27+
| 5 compute functions | `cli/lib/catalog.ts` | TypeScript |
28+
| Updated `DownloadResult` type | `cli/lib/catalog.ts` | TypeScript |
29+
| Compute function tests | `cli/test/catalog-tier1.test.ts` | TypeScript |
3030

3131
## Files
3232

@@ -36,8 +36,8 @@ Implement native TypeScript functions for mechanical analysis (content hash, wor
3636

3737
**Modify:**
3838

39-
- `.scripts/lib/catalog.ts` — add 5 exported compute functions, expand `DownloadResult` type
40-
- `.scripts/test/catalog-tier1.test.ts` — tests for each compute function including edge cases (empty content, nonexistent dir, headings at various depths)
39+
- `cli/lib/catalog.ts` — add 5 exported compute functions, expand `DownloadResult` type
40+
- `cli/test/catalog-tier1.test.ts` — tests for each compute function including edge cases (empty content, nonexistent dir, headings at various depths)
4141

4242
## Tasks
4343

.claude/plans/.archive/agents-tool-improvement/phase/3-incremental-skip-retry.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,20 @@ Make `analyze` skip already-analyzed skills by default and add `--retry-errors`
2525

2626
| Deliverable | Location | Format |
2727
|-------------|----------|--------|
28-
| `filterForProcessing` function | `.scripts/lib/catalog.ts` | TypeScript |
29-
| Updated CLI args | `.scripts/commands/skill.ts` | TypeScript |
30-
| Progress output | `.scripts/commands/skill.ts` | TypeScript |
31-
| Filter tests | `.scripts/test/catalog-tier1.test.ts` | TypeScript |
28+
| `filterForProcessing` function | `cli/lib/catalog.ts` | TypeScript |
29+
| Updated CLI args | `cli/commands/skill.ts` | TypeScript |
30+
| Progress output | `cli/commands/skill.ts` | TypeScript |
31+
| Filter tests | `cli/test/catalog-tier1.test.ts` | TypeScript |
3232

3333
## Files
3434

3535
**Create:**
3636
- None
3737

3838
**Modify:**
39-
- `.scripts/lib/catalog.ts` — add `filterForProcessing` function
40-
- `.scripts/commands/skill.ts` — replace `filterAvailable` call with `filterForProcessing`, add `--retry-errors` flag, update progress output, update `--force` flag semantics
41-
- `.scripts/test/catalog-tier1.test.ts` — tests for all flag combinations and edge cases
39+
- `cli/lib/catalog.ts` — add `filterForProcessing` function
40+
- `cli/commands/skill.ts` — replace `filterAvailable` call with `filterForProcessing`, add `--retry-errors` flag, update progress output, update `--force` flag semantics
41+
- `cli/test/catalog-tier1.test.ts` — tests for all flag combinations and edge cases
4242

4343
## Tasks
4444

.claude/plans/.archive/agents-tool-improvement/phase/4-agent-prompt-integration.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ Wire the mechanical compute functions (Phase 2) into `preDownloadSkills`, reduce
2525

2626
| Deliverable | Location | Format |
2727
|-------------|----------|--------|
28-
| Updated `preDownloadSkills` | `.scripts/commands/skill.ts` | TypeScript |
29-
| Reduced agent prompt | `.scripts/commands/skill.ts` | TypeScript |
30-
| Updated merge logic in `processBatch` | `.scripts/commands/skill.ts` | TypeScript |
31-
| `validateBatchResults` function | `.scripts/lib/catalog.ts` | TypeScript |
32-
| Validation tests | `.scripts/test/catalog-tier1.test.ts` | TypeScript |
28+
| Updated `preDownloadSkills` | `cli/commands/skill.ts` | TypeScript |
29+
| Reduced agent prompt | `cli/commands/skill.ts` | TypeScript |
30+
| Updated merge logic in `processBatch` | `cli/commands/skill.ts` | TypeScript |
31+
| `validateBatchResults` function | `cli/lib/catalog.ts` | TypeScript |
32+
| Validation tests | `cli/test/catalog-tier1.test.ts` | TypeScript |
3333
| Integration test results | Manual test batch | NDJSON |
3434

3535
## Files
@@ -40,9 +40,9 @@ Wire the mechanical compute functions (Phase 2) into `preDownloadSkills`, reduce
4040

4141
**Modify:**
4242

43-
- `.scripts/lib/catalog.ts` — add `validateBatchResults` function
44-
- `.scripts/commands/skill.ts` — update `preDownloadSkills` to call compute functions, update manifest format, rewrite agent prompt, change `ALLOWED_TOOLS`, update `processBatch` merge logic and error routing, call `validateBatchResults` after merge
45-
- `.scripts/test/catalog-tier1.test.ts` — tests for validation function
43+
- `cli/lib/catalog.ts` — add `validateBatchResults` function
44+
- `cli/commands/skill.ts` — update `preDownloadSkills` to call compute functions, update manifest format, rewrite agent prompt, change `ALLOWED_TOOLS`, update `processBatch` merge logic and error routing, call `validateBatchResults` after merge
45+
- `cli/test/catalog-tier1.test.ts` — tests for validation function
4646

4747
## Tasks
4848

.claude/plans/.archive/agents-tool-improvement/phase/5-migration-validation.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ Implement the `catalog scrub` backfill command, run it to clean existing data, v
2929

3030
| Deliverable | Location | Format |
3131
|-------------|----------|--------|
32-
| `catalog scrub` subcommand | `.scripts/commands/skill.ts` | TypeScript |
33-
| Updated `catalog cleanup` | `.scripts/commands/skill.ts` | TypeScript |
34-
| Updated `catalog forks` | `.scripts/commands/skill.ts` | TypeScript |
35-
| Updated `catalog summary` | `.scripts/commands/skill.ts` | TypeScript |
32+
| `catalog scrub` subcommand | `cli/commands/skill.ts` | TypeScript |
33+
| Updated `catalog cleanup` | `cli/commands/skill.ts` | TypeScript |
34+
| Updated `catalog forks` | `cli/commands/skill.ts` | TypeScript |
35+
| Updated `catalog summary` | `cli/commands/skill.ts` | TypeScript |
3636
| Backfilled catalog | `context/skills/.catalog.ndjson` | NDJSON (gitignored) |
3737
| Backfilled error log | `context/skills/.catalog-errors.ndjson` | NDJSON (gitignored) |
3838
| Validation test batch output | Manual | Console output |
@@ -45,8 +45,8 @@ Implement the `catalog scrub` backfill command, run it to clean existing data, v
4545

4646
**Modify:**
4747

48-
- `.scripts/commands/skill.ts` — add `catalog scrub` subcommand, update `catalog cleanup`, `catalog forks`, and `catalog summary` for new data model
49-
- `.scripts/test/catalog-tier1.test.ts` — tests for scrub logic
48+
- `cli/commands/skill.ts` — add `catalog scrub` subcommand, update `catalog cleanup`, `catalog forks`, and `catalog summary` for new data model
49+
- `cli/test/catalog-tier1.test.ts` — tests for scrub logic
5050

5151
## Tasks
5252

@@ -114,7 +114,7 @@ Implement the `catalog scrub` backfill command, run it to clean existing data, v
114114
- [ ] Verify: `catalog summary` shows accurate counts with attemptCount distribution
115115
- [ ] Run test batch: `just agents skill catalog analyze --force --limit 1 --batch-size 5`
116116
- [ ] Verify test batch: real content hashes, no stale errors, attemptCount reset on success, `validateBatchResults` reports 0 issues
117-
- [ ] Run all tests: `cd .scripts && bun test`
117+
- [ ] Run all tests: `cd cli && bun test`
118118

119119
## Notes
120120

0 commit comments

Comments
 (0)