Skip to content

v1.39.0: community scanner (#207) + dead plugin cleanup - #245

Merged
BaseInfinity merged 2 commits into
mainfrom
roadmap-207-community-scanner-rebased
Apr 25, 2026
Merged

v1.39.0: community scanner (#207) + dead plugin cleanup#245
BaseInfinity merged 2 commits into
mainfrom
roadmap-207-community-scanner-rebased

Conversation

@BaseInfinity

Copy link
Copy Markdown
Owner

Replaces #244 (stale rebase). Same content, fresh PR from rebased branch.

Summary

  • ROADMAP bug: setup/update don't detect 1M context window — autocompact defaults misconfigure 1M users #207: community feature-discovery scanner (tests/e2e/scan-community.sh) — extracts unknown /slash-command mentions from transcripts, dedupes against allowlist, emits JSON digest. CERTIFIED 10/10 round 3.
  • Update skill Step 7.7: dead plugin registration cleanup. /update-wizard now scans ~/.claude/settings.json for orphan registrations matching the allowlist (sdlc-wizard-local, sdlc-wizard-wrap), backs up settings with timestamp, removes via single jq pass. CERTIFIED 100/100 round 2. Fixes the UserPromptSubmit hook error: Plugin directory does not exist that fires on every prompt for users with stale local-marketplace registrations.
  • Version bump 1.38.0 → 1.39.0 across package.json, plugin.json, marketplace.json, SDLC.md, CLAUDE_CODE_SDLC_WIZARD.md.

Test plan

  • tests/test-community-scanner.sh — 14 tests (detection, allowlist, dedup, JSON shape, stdin, multi-file, sample context, long-line, case-insensitive, dash-leading filenames)
  • tests/test-update-skill-step-7-7.sh — Step 7.7 cleanup tests
  • Codex round 3 CERTIFIED on community scanner
  • Codex round 2 CERTIFIED on Step 7.7

Why a new PR

PR #244 was opened from roadmap-207-community-scanner before the rebase. After resolving conflicts and stacking the Step 7.7 cleanup on top, force-push was blocked. This PR ships the same content from the clean rebased branch.

Replaces the deleted CI scan-community job (per #231 Phase 3 plan)
with a maintainer-runnable offline scan. Extracts /[a-z][a-z0-9-]*
slash-command mentions from transcript text (Reddit / HN / Discord
exports), dedupes against tests/e2e/known-slash-commands.txt
allowlist, emits JSON digest of unknown candidates.

- tests/e2e/scan-community.sh: scanner script. Lowercases line
  before matching (case-insensitive); sample window is centered on
  the matched slash so long-line context isn't truncated; reads
  files via 'cat < "$arg"' so dash-leading filenames work.
- tests/e2e/known-slash-commands.txt: allowlist seeded with wizard
  skills, CC native commands, and common URL-path false positives.
  Plain text format with # comments; maintainer appends as new
  commands ship.
- tests/test-community-scanner.sh: 14 tests covering detection,
  allowlist filter (CC native + wizard skills), case-insensitive
  extraction, dedup + count, empty-input edge case, JSON shape,
  stdin input, multi-file aggregation, sample-context inclusion,
  long-line sample window, dash-leading filename.
- CLAUDE_CODE_SDLC_WIZARD.md: new "Community Feature-Discovery
  Scanner" subsection with maintainer procedure (capture transcripts
  → run scanner → triage `jq .candidates`).
- CHANGELOG, version bump 1.38.0 → 1.39.0 across package.json,
  plugin.json, marketplace.json, SDLC.md, CLAUDE_CODE_SDLC_WIZARD.md
  version comments, and skills/update/SKILL.md Step 3 example.

Codex 3-round review: round 1 6/10 NOT CERTIFIED (orphan tests not
in CI, case-sensitive extraction, sample truncation can drop slash,
stale 1.38.0 in update skill, dash-leading filename), round 2 8/10
NOT CERTIFIED (5 findings FIXED but git index UU pending), round 3
10/10 CERTIFIED.
When wizard-installed plugin marketplace dirs are renamed/disabled/
removed but the registration in ~/.claude/settings.json stays, every
CC session emits "UserPromptSubmit hook error: Plugin directory does
not exist". Discovered live in Stefan's session today after the v1.37.1
dual-channel dedupe naturally led to disabling the plugin wrap.

New Step 7.7 in /update-wizard:
- Exact wizard-owned marketplace allowlist (sdlc-wizard-local,
  sdlc-wizard-wrap) — no wildcard, prevents eating third-party
  sdlc-* prefixed plugins
- Detection requires source.source == "directory" AND typeof
  source.path === "string" before fs check (matches cli/init.js guard)
- Collects all dead pairs before prompting; single jq pass to drop
  all of them in one transaction
- Backup uses $(date +%Y%m%dT%H%M%S) so multiple cleanups same day
  don't overwrite each other
- Doesn't claim byte-for-byte preservation (jq normalizes); offers
  manual del() filter to users who care about exact diff
- Idempotent: re-run after cleanup is a no-op

Codex 2-round: round 1 6/10 (5 findings — broad wildcard, impossible
byte-for-byte claim, non-idempotent backup, singular cleanup wording,
missing type guard), round 2 100/100 CERTIFIED.
@github-actions

github-actions Bot commented Apr 25, 2026

Copy link
Copy Markdown
Contributor

Claude encountered an error —— View job


I'll analyze this and get back to you.

@BaseInfinity
BaseInfinity merged commit 940e5bb into main Apr 25, 2026
2 of 3 checks passed
@BaseInfinity
BaseInfinity deleted the roadmap-207-community-scanner-rebased branch April 25, 2026 19:30
BaseInfinity added a commit that referenced this pull request May 5, 2026
* feat(#207): community feature-discovery scanner — v1.39.0

Replaces the deleted CI scan-community job (per #231 Phase 3 plan)
with a maintainer-runnable offline scan. Extracts /[a-z][a-z0-9-]*
slash-command mentions from transcript text (Reddit / HN / Discord
exports), dedupes against tests/e2e/known-slash-commands.txt
allowlist, emits JSON digest of unknown candidates.

- tests/e2e/scan-community.sh: scanner script. Lowercases line
  before matching (case-insensitive); sample window is centered on
  the matched slash so long-line context isn't truncated; reads
  files via 'cat < "$arg"' so dash-leading filenames work.
- tests/e2e/known-slash-commands.txt: allowlist seeded with wizard
  skills, CC native commands, and common URL-path false positives.
  Plain text format with # comments; maintainer appends as new
  commands ship.
- tests/test-community-scanner.sh: 14 tests covering detection,
  allowlist filter (CC native + wizard skills), case-insensitive
  extraction, dedup + count, empty-input edge case, JSON shape,
  stdin input, multi-file aggregation, sample-context inclusion,
  long-line sample window, dash-leading filename.
- CLAUDE_CODE_SDLC_WIZARD.md: new "Community Feature-Discovery
  Scanner" subsection with maintainer procedure (capture transcripts
  → run scanner → triage `jq .candidates`).
- CHANGELOG, version bump 1.38.0 → 1.39.0 across package.json,
  plugin.json, marketplace.json, SDLC.md, CLAUDE_CODE_SDLC_WIZARD.md
  version comments, and skills/update/SKILL.md Step 3 example.

Codex 3-round review: round 1 6/10 NOT CERTIFIED (orphan tests not
in CI, case-sensitive extraction, sample truncation can drop slash,
stale 1.38.0 in update skill, dash-leading filename), round 2 8/10
NOT CERTIFIED (5 findings FIXED but git index UU pending), round 3
10/10 CERTIFIED.

* feat(update-skill): dead plugin registration cleanup (Step 7.7)

When wizard-installed plugin marketplace dirs are renamed/disabled/
removed but the registration in ~/.claude/settings.json stays, every
CC session emits "UserPromptSubmit hook error: Plugin directory does
not exist". Discovered live in Stefan's session today after the v1.37.1
dual-channel dedupe naturally led to disabling the plugin wrap.

New Step 7.7 in /update-wizard:
- Exact wizard-owned marketplace allowlist (sdlc-wizard-local,
  sdlc-wizard-wrap) — no wildcard, prevents eating third-party
  sdlc-* prefixed plugins
- Detection requires source.source == "directory" AND typeof
  source.path === "string" before fs check (matches cli/init.js guard)
- Collects all dead pairs before prompting; single jq pass to drop
  all of them in one transaction
- Backup uses $(date +%Y%m%dT%H%M%S) so multiple cleanups same day
  don't overwrite each other
- Doesn't claim byte-for-byte preservation (jq normalizes); offers
  manual del() filter to users who care about exact diff
- Idempotent: re-run after cleanup is a no-op

Codex 2-round: round 1 6/10 (5 findings — broad wildcard, impossible
byte-for-byte claim, non-idempotent backup, singular cleanup wording,
missing type guard), round 2 100/100 CERTIFIED.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant