Prompt file imported from oakwood-commons/scafctl-plugin-auth-github (
.github/prompts/provider-review.prompt.md). Copyright stays with the author.
Provider Review
Review the current provider-related Go changes with extra focus on scafctl provider semantics.
Phase 1: Normal Go review
Complete the standard Go review workflow first.
Phase 2: Provider contract review
For each changed provider file, verify all of the following:
GetProviderDescriptoraccurately describes the implementation.- Capabilities match the behavior the provider actually supports.
OutputSchemasincludes an entry for every declared capability. Missing output schemas cause silent host registration failure.- Schema fields, required fields, and examples match runtime expectations.
- Output shape is stable and consistent with docs and tests.
Phase 3: Lifecycle review
- Unknown provider names are rejected consistently in all relevant methods.
DescribeWhatIfis side-effect free and matches execution intent.ConfigureProvideris used for host configuration rather than hidden globals.ExecuteProviderStreamis either correctly implemented or explicitly unsupported.ExtractDependenciesonly reports real dependencies.StopProvideris safe to call repeatedly.
Phase 4: Test review
- Tests cover happy path and unknown provider behavior.
- Tests cover nil, empty, or invalid input when relevant.
- Tests cover any new configuration-dependent logic.
- Tests would catch a mismatch between descriptor and implementation.
- Tests would catch a mismatch between
DescribeWhatIfandExecuteProvider.
Output format
Use severity levels: CRITICAL > HIGH > MEDIUM > LOW > INFO.
For each finding include:
- file
- line
- severity
- description
- suggested fix
End with a short summary stating whether provider behavior is coherent across descriptor, execution, WhatIf, and tests.