Skip to content

Clean up matcha maps remnants (Supabase, dead code) #12

Closed

Description

@admarble

Problem

There are remnants from the matcha maps project that need cleanup:

Dead Code

  • src/lib/workflow/execute-issues.ts - imports non-existent modules
  • src/lib/workflow/cli-args.ts - excluded from build
  • src/lib/workflow/logger.ts - excluded from build
  • These are explicitly excluded in tsconfig.json but still in repo

Supabase References

Files referencing Supabase that need updating:

  • templates/hooks/pre-tool.sh - references supabase queries
  • templates/hooks/post-tool.sh - logs supabase queries
  • templates/skills/exec/SKILL.md - references mcp__supabase__* tools
  • templates/skills/loop/SKILL.md - references mcp__supabase__*
  • templates/skills/fullsolve/SKILL.md - references mcp__supabase__*
  • templates/skills/testgen/SKILL.md - references mcp__supabase__*
  • templates/skills/reflect/SKILL.md - references mcp__supabase__*
  • templates/skills/reflect/scripts/workflow-queries.ts - full supabase queries
  • templates/skills/qa/scripts/quality-checks.sh - supabase-specific checks
  • templates/skills/qa/references/code-review-checklist.md - supabase patterns
  • templates/skills/security-review/references/security-checklists.md - supabase examples

Tasks

  • Remove or fix execute-issues.ts and related files
  • Update tsconfig.json exclude list
  • Remove/generalize Supabase references in skills
  • Remove Supabase-specific quality checks
  • Update hooks to remove supabase logging
  • Clean up reflect/scripts/workflow-queries.ts

Decision

The logging functionality will be replaced with local JSON logging (see related issue).

Priority

High - affects all new users who install sequant

Activity

  1. added
    enhancement
    on Jan 9, 2026
  2. admarble commented on Jan 11, 2026

    @admarble
    ContributorAuthor

    📋 Plan Review (Phase 1 Complete)

    Current Status Analysis

    Already cleaned up (per CHANGELOG.md v1.2.0):

    • ✅ Supabase references removed from all templates/skills/ SKILL.md files
    • ✅ templates/hooks/ - no Supabase references
    • ✅ templates/skills/reflect/scripts/workflow-queries.ts - removed from templates

    Remaining cleanup needed:

    File Lines Status
    src/lib/workflow/execute-issues.ts 568 Dead code - excluded from build
    src/lib/workflow/cli-args.ts 274 Dead code - excluded from build
    src/lib/workflow/logger.ts 343 Dead code - excluded from build
    .claude/skills/reflect/scripts/workflow-queries.ts 166 Local project file (not distributed)

    Acceptance Criteria

    AC-1: Remove dead workflow code files

    Verification: npm run build succeeds after deletion

    AC-2: Clean tsconfig.json exclude list

    Verification: Build still works after removing exclusions

    AC-3: Remove local workflow-queries.ts

    Verification: /reflect skill still functions

    AC-4: Verify no Supabase references in templates

    Verification: ✅ Already verified - grep -ri "supabase" templates/ returns 0 matches


    Implementation Plan

    Phase 1: Safety Check

    1. Verify no active imports of excluded files

    Phase 2: Remove Dead Code

    1. Delete src/lib/workflow/{execute-issues,cli-args,logger}.ts
    2. Update tsconfig.json (remove exclusions)

    Phase 3: Clean Local Files

    1. Delete .claude/skills/reflect/scripts/workflow-queries.ts

    Phase 4: Verification

    1. Run npm run build and npm test

    Assumptions to Validate

    • No runtime imports exist for these files
    • Files are not executed via npx tsx directly

    Recommended Workflow

    Phases: exec → qa
    Quality Loop: disabled

    Reasoning: Straightforward cleanup with clear scope. Files are already excluded from build - just need deletion and verification.


    🤖 Generated with Claude Code /spec

  3. added a commit that references this issue on Jan 11, 2026
  4. admarble commented on Jan 11, 2026

    @admarble
    ContributorAuthor

    🚀 Implementation Complete (Phase 2)

    AC Coverage Summary

    AC Status Notes
    AC-1: Remove dead workflow code files ✅ Satisfied Deleted execute-issues.ts, cli-args.ts, logger.ts
    AC-2: Clean tsconfig.json exclude list ✅ Satisfied Removed exclusions for deleted files
    AC-3: Remove local workflow-queries.ts ✅ Satisfied Deleted file and empty scripts directory
    AC-4: Verify no Supabase references in templates ✅ Already satisfied Confirmed with grep -ri "supabase" templates/

    Key Files Changed

    • src/lib/workflow/execute-issues.ts - Deleted (568 lines)
    • src/lib/workflow/cli-args.ts - Deleted (274 lines)
    • src/lib/workflow/logger.ts - Deleted (343 lines)
    • .claude/skills/reflect/scripts/workflow-queries.ts - Deleted (166 lines)
    • tsconfig.json - Cleaned exclusion list

    Total: ~1350 lines of dead code removed

    Verification Results

    • ✅ npm run build - Success
    • ✅ npm test - 281 tests passed
    • ✅ No Supabase references in templates

    PR Status

    Created: #62


    🤖 Generated with Claude Code /exec

  5. admarble commented on Jan 11, 2026

    @admarble
    ContributorAuthor

    🔍 QA Review Complete (Phase 3)

    AC Coverage

    AC Description Status Notes
    AC-1 Remove dead workflow code files ✅ MET Deleted execute-issues.ts, cli-args.ts, logger.ts (1,188 lines)
    AC-2 Clean tsconfig.json exclude list ✅ MET Removed exclusions for deleted files
    AC-3 Remove local workflow-queries.ts ✅ MET Deleted file (165 lines), scripts directory removed
    AC-4 Verify no Supabase references in templates ✅ MET Confirmed - 0 matches

    Coverage: 4/4 AC items fully met


    Quality Metrics

    Metric Value Status
    Type issues (any) 0 ✅ OK
    Deleted tests 0 ✅ OK
    Files changed 5 ✅ OK
    Lines added +1 -
    Lines deleted -1,354 -

    Code Review

    Strengths:

    • Clean surgical removal of dead code with no collateral impact
    • Build and 281 tests pass
    • No remaining references to deleted files
    • tsconfig.json properly cleaned

    Issues: None


    Verdict: ✅ READY_FOR_MERGE

    All acceptance criteria are fully met. This is a clean deletion of dead code that was already excluded from build. No functional changes, no risk.


    🤖 Generated with Claude Code /qa

  6. added
    ready-for-review
    on Jan 11, 2026
  7. added a commit that references this issue on Jan 11, 2026
  8. added a commit that references this issue on Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementready-for-review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions