r/GithubCopilot • • 18d ago

Help/Doubt ❓ Are you using Prompts?

I struggle with the difference between skills and prompts.

How are you using both?

0 Upvotes

10 comments sorted by

6

u/Less_Somewhere_8201 18d ago

Essentially, if you have prompts you are using all the time, there's no downside to changing them to skills.

I will often have my agents suggest updates to the skills when they run into new findings as well as an extra tidbit.

1

u/xSilentKillx21 17d ago

Prompts are being deprecated in place of skills

1

u/user-captain 17d ago

Why is this?

2

u/xSilentKillx21 17d ago

No idea, it's what they decided. It looks like they already deprecated them. There's a way to migrate them into skills. That's what it says in the Agent customization window.

3

u/TheRealZambini 18d ago

I think you are supposed to convert them to skills now and think VS Code offers to do that if I remember correctly.

Also, prompts aren't a thing in the GitHub Copilot app, but they were in VS Code so if your stuff is in prompts, and you want to switch between the two, you have to point GitHub Copilot to it.

Skills package resuable procedures and expertise. You can also house scripts, templates, and instructions with skills to perform deterministic tasks. Prompts are more probablistic and results vary with the agent and reasoning level you are using.

Skills can get picked up by the agent automatically but prompts don't.

3

u/Adventurous_Dish3569 18d ago

i switched to skills last month and my code generation feels more consistent, like the agent actually remembers the pattern now instead of guessing each time.

3

u/andlewis Full Stack Dev 🌐 18d ago

You only need one. “Make no mistakes”. Everything else is just details.

3

u/WordWithinTheWord 18d ago

A prompt is an invocation. A skill is a reusable prompt.

1

u/AutoModerator 18d ago

Hello /u/user-captain. Looks like you have posted a query. Once your query is resolved, please reply the solution comment with "!solved" to help everyone else know the solution and mark the post as solved.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Hollow1838 17d ago edited 17d ago

I use skills, instructions and prompts. A prompt is usually the entry point, the issue with only prompting is that if your agent lacks context it will spend a lot of time trying to figure out what you are trying to achieve and often fail.

To give context to your agent you use instructions and skills, instructions can be set by repository, by workspace and globally, by default it loads the global one, then the one where you open copilot-cli and finally conditionally load a repository instructions if it goes there.

Skills are basically conditionally loaded instructions, depending of what you ask in your prompt it will basically lookup your skills and load the useful ones.

Use cases:

Global: things you always want in your context

Workspace: things you always want in your context only when working in a specific workspace

Repository: things that are specific to a repository

Skill: things that help your agent to complete a specific task and that you don't want to be loaded in your context all the time

If you want to go next level, you can also work with sub-agents, your agent prepares a prompt with smaller context that is dispatched to a sub-agent. Another thing is that sub-agents can also load skills.