원클릭으로
dck-build-fix
Use when AHKFlowApp build, test, format, compiler, migration, or lint errors need diagnosis and repair.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use when AHKFlowApp build, test, format, compiler, migration, or lint errors need diagnosis and repair.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Use when creating, removing, or troubleshooting AHKFlowApp git worktrees across Claude Code, Codex, or Copilot.
Use when optimizing AHKFlowApp agent workflow, worktrees, planning, verification loops, context budget, or tool usage.
Use when verifying AHKFlowApp build, tests, formatting, diagnostics, security, or readiness before commit, push, or PR.
Compact the current conversation into a handoff document for another agent to pick up.
Use to scan .NET code for performance anti-patterns across async, memory, strings, collections, LINQ, regex, and I/O.
Use to evaluate assertion depth and diversity across a test suite and flag assertion-free, shallow, or tautological tests.
| name | dck-build-fix |
| description | Use when AHKFlowApp build, test, format, compiler, migration, or lint errors need diagnosis and repair. |
Use a bounded fix loop, not open-ended guessing.
Report each iteration briefly: Iteration 2/5: fixed missing use-case registration; 3 compiler errors remain.
dotnet build AHKFlowApp.slnx --configuration Release --no-restore
If assets are missing in a fresh checkout, run dotnet restore AHKFlowApp.slnx, then rebuild.
Roslyn MCP tools are useful when available:
get_diagnostics
find_symbol
find_references
get_project_graph
| Code | Meaning | Fix |
|---|---|---|
| CS0246 / CS0234 | Type or namespace missing | Add using, project reference, or package |
| CS0103 | Name does not exist | Check scope, typo, or missing field/parameter |
| CS1061 | Member missing | Verify actual type and API surface |
| CS0161 | Not all code paths return | Return a typed result on every path |
| CS8618 | Non-nullable uninitialized | Initialize or make construction explicit |
| CS0115 | Bad override | Match base signature or remove override |
| CS0535 | Interface member missing | Implement the required member |
Runtime DI error:
Unable to resolve service for IUseCaseHandler<CreateHotstringCommand, Result<HotstringDto>>
Fix registration in Application DI:
services.AddUseCase<CreateHotstringCommand, Result<HotstringDto>, CreateHotstringCommandHandler>();
Handlers implement IUseCaseHandler<TRequest,TResult>:
internal sealed class CreateHotstringHandler(AppDbContext db)
: IUseCaseHandler<CreateHotstringCommand, Result<HotstringDto>>
{
public async Task<Result<HotstringDto>> ExecuteAsync(
CreateHotstringCommand request,
CancellationToken cancellationToken)
{
await db.SaveChangesAsync(cancellationToken);
return Result.Success(dto);
}
}
Do not reintroduce IMediator, IRequest, IRequestHandler, or Handle(...).
Use real paths:
dotnet ef migrations add <Name> --project src/Backend/AHKFlowApp.Infrastructure --startup-project src/Backend/AHKFlowApp.API
If project.assets.json is missing, restore first. If AppDbContext cannot be created, inspect API configuration and design-time startup errors rather than adding a repository layer.
Because the repo root has both AHKFlowApp.slnx and AHKFlowApp.csproj, target the solution explicitly:
dotnet format AHKFlowApp.slnx --verify-no-changes
dotnet format AHKFlowApp.slnx
Line-ending drift after adding files is common; run format, then verify again.
Use the test-fix loop:
dotnet test tests/AHKFlowApp.API.Tests --configuration Release --filter "FullyQualifiedName~HealthControllerTests"
catch (Exception) blocks to hide failures.--no-verify.| State | Action |
|---|---|
| Error count reaches zero | Run affected tests |
| Same errors repeat | Stop and report STUCK with evidence |
| Error count increases | Revert iteration and report REGRESSION |
| SDK/tooling missing | Restore/install only the missing prerequisite |
| Tests fail after build fix | Start bounded test-fix loop |