Skip to content

Commit 5d4c38a

Browse files
Document using external prompt datasets with Copilot CLI
extending the use of copilot cli with hugging face datasets. ya boy be doin shit
1 parent 2d0948f commit 5d4c38a

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

README.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,31 @@ Install globally with npm:
4444
npm install -g @github/copilot
4545
```
4646

47+
#### Windows PowerShell execution policy
48+
49+
If you see `running scripts is disabled on this system` when running the `npm` command in PowerShell, update your execution
50+
policy for the current user before retrying the install:
51+
52+
```powershell
53+
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
54+
npm install -g @github/copilot
55+
```
56+
57+
Alternatively, you can start a PowerShell session with a temporary bypass:
58+
59+
```powershell
60+
powershell -ExecutionPolicy Bypass -Command "npm install -g @github/copilot"
61+
```
62+
63+
Or run the Windows command-shell shim directly without changing the policy:
64+
65+
```powershell
66+
& (Get-Command npm).Source install -g @github/copilot
67+
```
68+
69+
See [about Execution Policies](https://go.microsoft.com/fwlink/?LinkID=135170) for more details about how PowerShell governs
70+
script execution.
71+
4772
### Launching the CLI
4873

4974
```bash
@@ -73,6 +98,45 @@ Each time you submit a prompt to GitHub Copilot CLI, your monthly quota of premi
7398

7499
For more information about how to use the GitHub Copilot CLI, see [our official documentation](https://docs.github.com/copilot/concepts/agents/about-copilot-cli).
75100

101+
### Working with non-GitHub assistants
102+
103+
The CLI is a thin shell around GitHub's Copilot coding agent, so you can choose
104+
from every model that the agent exposes — including GPT-5 and Claude Sonnet —
105+
without leaving your terminal. To switch between them, run `/model` inside a
106+
session and pick the assistant that best matches the task you're working on.
107+
108+
If you maintain prompt libraries or research corpora outside GitHub, you can
109+
still bring that context into a CLI conversation. Use the `@` mention shortcut
110+
to attach any local file (text, Markdown, JSON, etc.) so the agent has the
111+
material you want it to reference while it plans or writes code. This makes it
112+
easy to reuse the same assets you would normally feed into ChatGPT or Claude.
113+
114+
#### Example: referencing a Hugging Face dataset of prompts
115+
116+
If you want to keep the curated prompts from the
117+
[`fka/awesome-chatgpt-prompts`](https://huggingface.co/datasets/fka/awesome-chatgpt-prompts)
118+
dataset close at hand, export them into a local note and attach that note in
119+
your Copilot CLI sessions:
120+
121+
```bash
122+
pip install datasets
123+
124+
python - <<'PY'
125+
from datasets import load_dataset
126+
127+
dataset = load_dataset("fka/awesome-chatgpt-prompts")
128+
129+
with open("awesome-chatgpt-prompts.md", "w", encoding="utf-8") as handle:
130+
for row in dataset["train"]:
131+
handle.write(f"### {row['act']}\n\n{row['prompt']}\n\n")
132+
PY
133+
```
134+
135+
Once the file exists, launch `copilot` from the same directory and add the note
136+
to your message with `@awesome-chatgpt-prompts.md`. The agent will ingest the
137+
prompt catalog alongside your repository context so you can remix those ideas in
138+
your workflow.
139+
76140

77141
## 📢 Feedback and Participation
78142

0 commit comments

Comments
 (0)