This is a submission for the GitHub Copilot CLI Challenge.
What I Built
I built cdoctor, a small CLI + CMake-based sample project designed to make C/C++ build/debug loops faster.
The idea: run one command, get:
- a clean build attempt
- a readable summary of warnings/errors
- a proposed minimal patch (diff)
- a re-run to confirm the fix
Demo
Repo: https://github.com/raungeguieia/cdoctor
Quick demo (copy/paste):
cmake -S . -B build
cmake --build build
./build/cdoctor --help
./build/cdoctor scan sample_project/src/warn.c
ctest --test-dir build --output-on-failure
My Experience with GitHub Copilot CLI
I used Copilot CLI in the terminal to:
- summarize compiler output into actionable steps
- propose patches for common C/CMake problems
- generate small functions/tests quickly (then I reviewed and adjusted)
Example prompts I used:
- “Given this CMake/clang error, propose the smallest fix as a git diff.”
- “Add directory recursion to scan all .c/.h files on macOS+Linux.”
- “Write a CTest smoke test for the CLI.”
Notes for Judges
- This is intentionally small and easy to run.
- The sample project includes an intentional warning to prove the pipeline works.
Top comments (0)