Foundation - Modularize Shell Script #116

Closed
opened 2026-04-03 11:13:46 +02:00 by shoko · 0 comments
Owner

Summary

Split the monolithic 1740-line kugetsu script into modular components.

Details

Create the following modules in skills/kugetsu/scripts/:

  • kugetsu-session.sh - Session create/fork/destroy logic
  • kugetsu-worktree.sh - Git worktree operations
  • kugetsu-config.sh - Config/env loading
  • kugetsu-log.sh - Structured logging
  • kugetsu-index.sh - Index.json read/write via JSON
  • kugetsu (main) - Thin dispatcher

Backport Compatible

This is an internal refactor. All external behavior must remain exactly the same.

Acceptance Criteria

  • All existing commands work exactly as before
  • Main script sources modules
  • Each module is independently testable
## Summary Split the monolithic 1740-line `kugetsu` script into modular components. ## Details Create the following modules in `skills/kugetsu/scripts/`: - `kugetsu-session.sh` - Session create/fork/destroy logic - `kugetsu-worktree.sh` - Git worktree operations - `kugetsu-config.sh` - Config/env loading - `kugetsu-log.sh` - Structured logging - `kugetsu-index.sh` - Index.json read/write via JSON - `kugetsu` (main) - Thin dispatcher ## Backport Compatible This is an internal refactor. All external behavior must remain exactly the same. ## Acceptance Criteria - [ ] All existing commands work exactly as before - [ ] Main script sources modules - [ ] Each module is independently testable
shoko added the backportfoundation labels 2026-04-03 11:18:13 +02:00
shoko added this to the v0.2.x milestone 2026-04-03 11:18:14 +02:00
shoko closed this issue 2026-04-05 12:58:48 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shoko/kugetsu#116