DEV Community

Shaik Bibi Jahera
Shaik Bibi Jahera

Posted on

I Was Scared of Copilot CLI β€” So I Built a Teacher For It πŸ€–

GitHub Copilot CLI Challenge Submission


I'll be honest.

GitHub Copilot CLI intimidated me.

The documentation felt technical.
The prompts looked like magic spells.
I didn’t know where to start.

So I did what any developer would do.

I built a tool to teach me β€” using Copilot CLI itself.


πŸš€ Introducing Copilot Coach

Copilot Coach is an interactive CLI that teaches GitHub Copilot through real-time feedback, prompt analysis, and personalized workflow suggestions.

Instead of reading documentation, you learn by doing.

It’s a hands-on training system for mastering Copilot CLI.


🎬 100-Second Demo

Watch here:
https://drive.google.com/file/d/1qFKFxj1SIpQqMqv6HSHeMFhqm5yoK4dC/view?usp=sharing


🧠 What Copilot Coach Does

1️⃣ Live Prompt Analyzer

Type any prompt β†’ get instant clarity feedback.

Example:

You type:
fix the bug

Copilot Coach responds:

Clarity Score: 3/10

Issues:

  • Too vague
  • No language specified
  • Missing context

Improved prompt:
Debug this Python error: [paste error] in code: [paste code]

It teaches how to communicate effectively with AI.


2️⃣ Git Workflow Analyzer (⭐ Killer Feature)

Copilot Coach scans your git commit history to understand your coding patterns.

Then it generates personalized Copilot workflows.

Example output:

Profile: Bug Hunter
Languages: Python, JavaScript

Recommended prompts:

  • Debug error messages faster
  • Review code for bugs
  • Add defensive error handling
  • Generate unit tests

Workflows are exported to:

MY_COPILOT_WORKFLOWS.md

This connects Copilot learning directly to your real projects.


3️⃣ Before vs After Prompt Teaching

Bad prompt:
make function

Good prompt:
Create a Python function that reverses a string

Seeing both instantly teaches better prompting.


4️⃣ AI Cheat Sheet Generator

Copilot Coach generates a reusable guide:

COPILOT_TIPS.md

Includes:

  • Code generation prompts
  • Debugging strategies
  • Refactoring templates
  • Testing prompts
  • Documentation helpers

You keep this forever as a Copilot reference.


5️⃣ Guided Mini-Project

The tool walks you through building a CLI Todo app step-by-step.

You learn by doing β€” not just reading.


πŸ€– How GitHub Copilot CLI Built This

Every major feature was created using Copilot CLI prompts.

Example prompt:
Create a Python function that analyzes prompts, scores clarity, detects issues, and suggests improvements.

Result:
Working analysis system generated in minutes.

Another prompt:
Analyze git commits and generate personalized workflow suggestions.

Result:
Full git integration logic.


⏱️ Impact of Copilot CLI

Without Copilot: ~8 hours
With Copilot: ~2 hours

Copilot CLI reduced development time by 75%.


🧠 What I Learned

1️⃣ Teaching a tool helps you master it
2️⃣ AI removes boilerplate, not creativity
3️⃣ Personalized guidance beats generic tutorials
4️⃣ Real-time feedback beats static documentation


πŸ”— Try It Yourself

GitHub repo:
https://github.com/jahera-shaik/copilot-coach

Run locally:

git clone https://github.com/jahera-shaik/copilot-coach
cd copilot-coach
pip install -r requirements.txt
python coach.py


πŸ† Built for the GitHub Copilot CLI Challenge

This project demonstrates:

  • Real Copilot CLI usage in feature development
  • A practical developer tool
  • A creative meta concept
  • Personalized workflow generation from git history

πŸ€– AI Tools Used (Full Transparency)

Primary Code Generation:

  • GitHub Copilot CLI (generated all Python code)

Strategic Assistance:

  • Claude (planning, structure, documentation)

My Contributions:

  • Conceived the concept
  • Designed all features
  • Wrote Copilot prompts
  • Tested and refined the system

❀️ Final Thought

I started intimidated by Copilot CLI.

I ended up building a teacher for it β€” using Copilot itself.

If this project helps you learn Copilot better,

⭐ consider starring the repo.


Built by: Bibi Jahera Shaik

Top comments (0)