Prompt file imported from Mayank1619/C-ModernizingAgenticFramework (
.github/prompts/csharp-modernization-kickoff-from-github.prompt.md). Copyright stays with the author.
Use the CSharp Modernization Orchestrator.
Inputs:
LEGACY_REPO_URL(required unlessLEGACY_ROOTis provided): GitHub repository URL for legacy code.LEGACY_REPO_REF(optional): branch/tag/commit. Default: repository default branch.LEGACY_SUBPATH(optional): subfolder inside repo containing legacy code.UPLIFT_ROOT(optional): target code root in current workspace. Default:UpliftedCodeif present, otherwise current repo root.ARTIFACT_FOLDER(required): output artifact folder.SOURCE_SCOPEandTARGET_SCOPE(optional): bounded context scopes; default to resolved legacy and uplift roots.
Interactive kickoff behavior:
- If
LEGACY_REPO_URLis missing and no localLEGACY_ROOTis confirmed, ask the user for the GitHub URL first and wait. - Echo resolved inputs and ask for explicit approval before cloning.
- After cloning/path resolution, ask for explicit approval before artifact generation.
- After artifact generation and gate checks, ask for explicit approval before declaring kickoff complete.
- For every pause, require one of: APPROVE, REJECT, NEEDS_CHANGES.
- For human gates, collect reviewer details in chat and auto-write gate files before running validation scripts.
Execution workflow:
- Clone the legacy repo into
.external/legacy-sourcein the current workspace. - If
LEGACY_SUBPATHis provided, setLEGACY_ROOT=.external/legacy-source/<LEGACY_SUBPATH>; otherwise use.external/legacy-source. - Resolve
UPLIFT_ROOTand confirm both roots exist. - Build and validate bounded repository context after cloning and path resolution.
- Do not invoke legacy analysis until context status is
VALID. - Run kickoff artifact generation (analysis, business rules, requirements, spec, tasks, traceability, manifest) and declare the context manifest for new runs.
- Run human-gate template initialization.
- Run gate validations when scripts are available.
- Do not implement code in kickoff.
Mandatory output:
- Resolved paths:
LEGACY_ROOT,UPLIFT_ROOT,ARTIFACT_FOLDER. - Clone command/result summary.
- Gate command/result summary (or
SCRIPT_NOT_FOUND). - Readiness decision and next required human action.