refactor(config): remove SCM detection and per-SCM skill installation - #671
Conversation
Drops the source-control-aware init path (github/sapling detection, gh-*/sl-* skill variants, SCM completions and settings fields) and switches MCP auth headers to reference GITHUB_PERSONAL_ACCESS_TOKEN via env substitution instead of a placeholder string.
Code ReviewThis is a clean, well-scoped refactor. Nice reduction — ~400 LOC removed, the init path is significantly simpler (no more SCM detection, no 1. Incomplete cleanup — stale
|
Summary
Simplifies the init/onboarding flow by removing all source-control-aware logic (GitHub/Sapling detection, per-SCM skill variants) and switches MCP auth headers from hardcoded placeholder strings to environment variable substitution.
Key Changes
src/commands/cli/init/scm.ts— removesinstallLocalScmSkillsandsyncProjectScmSkillsentirelyensureProjectSetup— drops SCM detection, skill presence checks, and conditional install paths; now only applies onboarding files and registers the trusted workspaceSCM_CONFIG,SCM_SKILLS_BY_TYPE,ALL_SCM_SKILLS,detectScmTypefromsrc/services/config/definitions.tsbundle-configs.tsandskills.tsdrop the exclusion lists; all skills are installed globally without VCS-specific filtering--scm/-sflag andgithub/saplingcompletions from bash, fish, zsh, and PowerShell completion scripts.mcp.jsonand.opencode/opencode.jsonnow reference${GITHUB_PERSONAL_ACCESS_TOKEN}(env substitution) instead of the literal placeholderYOUR_GITHUB_PATBreaking Changes / Migration Notes
--scm/-sflag foratomic initno longer exists; callers passing this flag will see an unrecognized option errorgh-commit,gh-create-pr,sl-commit,sl-submit-diff) are now installed globally for all users instead of per-project based on detected SCMYOUR_GITHUB_PATmust now rely on theGITHUB_PERSONAL_ACCESS_TOKENenvironment variable