Overview
pkg/cli/add_workflow_resolution.go is 1214 lines (largest non-test Go file in pkg/; threshold 800). No add_workflow_resolution_test.go exists.
Proposed splits
add_workflow_resolution.go (~350 LOC): ResolveWorkflows, spec parsing, workflow-spec resolution, bootstrap profile selection.
add_workflow_local_package.go (~420 LOC): resolveLocalRepositoryPackage*, manifest nodes, wildcard includes, installable normalization/validation.
add_workflow_package_assets.go (~200 LOC): skill/agent scanning, appendLocalRepositoryPackageWorkflowSpecs.
add_workflow_remote_package.go (~100 LOC): appendRepositoryPackageWorkflowSpecs, appendRepositoryPackageExtensionSpecs.
add_workflow_wildcard.go (~150 LOC): expandLocalWildcard*, checkWorkflowHasDispatchFromContent, resolveAddWorkflowSpecAndContent.
Tests
Add a test file per new file (>80% coverage): manifest/include resolution, path-escape validation, skill/agent scanning, wildcard expansion, bootstrap profile selection.
Acceptance Criteria
Priority: Medium · Effort: Medium
Generated by 🧹 Daily File Diet · copilot · auto · 21 AIC · ⌖ 0.732 AIC · ⊞ 10.6K · ◷
Overview
pkg/cli/add_workflow_resolution.gois 1214 lines (largest non-test Go file inpkg/; threshold 800). Noadd_workflow_resolution_test.goexists.Proposed splits
add_workflow_resolution.go(~350 LOC):ResolveWorkflows, spec parsing, workflow-spec resolution, bootstrap profile selection.add_workflow_local_package.go(~420 LOC):resolveLocalRepositoryPackage*, manifest nodes, wildcard includes, installable normalization/validation.add_workflow_package_assets.go(~200 LOC): skill/agent scanning,appendLocalRepositoryPackageWorkflowSpecs.add_workflow_remote_package.go(~100 LOC):appendRepositoryPackageWorkflowSpecs,appendRepositoryPackageExtensionSpecs.add_workflow_wildcard.go(~150 LOC):expandLocalWildcard*,checkWorkflowHasDispatchFromContent,resolveAddWorkflowSpecAndContent.Tests
Add a test file per new file (>80% coverage): manifest/include resolution, path-escape validation, skill/agent scanning, wildcard expansion, bootstrap profile selection.
Acceptance Criteria
make test-unit,make lint,make buildpassPriority: Medium · Effort: Medium