99

Concurrent visitors over the last 30 minutes. (~)

Peak concurrent visitors -
Yesterday: 0 / Today: 0

Building a Work Assistant with GitHub Copilot

Building a Work Assistant with GitHub Copilot

In GitHub Copilot Essentials, we looked at the chat view, harness, models, instructions, skills, custom agents, hooks, and more, one feature at a time. In this post, let's use those features to build a work assistant that handles your team's repetitive work, starting from scratch.

Through tasks such as answering questions, filling in request forms, organizing meeting notes, triaging issues, and writing weekly reports, you will see that when you write down your team's rules and work steps in Markdown files, Copilot follows them as written.
You can follow along even if you are not a developer!

This post is based on the Copilot harness in VS Code 1.144.
It does not explain the chat view layout, model selection, or approvals again, so read GitHub Copilot Essentials first.
You can find the example repository at github-copilot-example.

# Preparing the example project

The example is set in an R&D team that builds TS-100, a fictional temperature sensor module.
The team has work that comes in again and again, such as recurring questions, laptop requests, organizing meeting notes, receiving and triaging issues, and weekly reports, and the goal is to hand this work to Copilot.

You need Node.js to run the example scripts.
Node.js is a program that runs .js script files, and version 22 or later is recommended.
For how to install it, see Node.js (NPM) Installation and NVM Version Management Guide.

You can get the example repository in two ways.
If you use Git, run the following commands in a terminal.

BASH
1
2
3
git clone https://github.com/ParkYoungWoong/github-copilot-example.git cd github-copilot-example code .
Clone the example repository

If you are not familiar with Git, click Code > Download ZIP on the repository page to download the archive, extract it, and open the folder with File > Open Folder in VS Code.

When you open a folder for the first time, a dialog may ask Do you trust the authors of the files in this folder?.
You downloaded this example yourself, so choose Yes, I trust the authors!
If you close the dialog and Restricted Mode appears in the status bar, you can click that text to change it to Trust.

The default branch, main, is the starting point for the hands-on work, so it does not include the triage script, the report script, or the practice results that you have Copilot create in this post.
The finished version, after following the whole post, is on the complete branch.
To compare the scripts you made with the finished version, or to move on to the next step when you get stuck, choose complete from the branch menu on the repository page and download it the same way.

To open the terminal, click View > Terminal in the top menu of VS Code, or press Cmd + J / Ctrl + J.
Wherever this post runs a command like node scripts/triage.js, you can let Copilot run it instead of typing it yourself.

The repository is structured as follows.
The files in the .github folder are settings that decide how Copilot behaves, and docs and data hold the reference documents and original data that the assistant refers to.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
github-copilot-example/ ├── .github/ │ ├── agents/ # Custom agent just for issue triage │ ├── hooks/ # Hook that blocks reading secret files │ ├── instructions/ # Rules that apply only to specific files │ ├── skills/ # team-faq, laptop-request, meeting-notes, issue-triage, weekly-report, word-form, bug-report, git-workflow skills │ └── copilot-instructions.md # Team rules applied to every request ├── .vscode/ │ └── settings.json # VS Code workspace settings ├── docs/ # FAQ, policies, triage rules, product spec, report templates (Markdown, Word) ├── data/ # Issue list (CSV), meeting memos ├── private/ # members.csv (team roster, hook practice), secret.txt (sandbox practice) ├── scripts/ # Word form filling and check scripts (the triage and report scripts are made during practice) ├── tests/cases.json # Validation set └── output/ # Results the assistant creates

The post proceeds in the following order.
Each step uses one Copilot feature, and you can find detailed explanations of the features themselves through the links in the table.

Step What you build Feature used Related files
1 Team rules Instructions .github/copilot-instructions.md
2 Team FAQ assistant Basic structure of a skill .github/skills/team-faq/
3 Filling in the laptop request form A skill with reference files, asking back for missing information, filling in a Word form .github/skills/laptop-request/, scripts/fill-docx.js
4 Organizing meeting notes A skill that sets a format and rules .github/skills/meeting-notes/
5 Questions about the spec document Document search and source checking docs/spec-ts100.md
6 Weekly report command A skill that runs only with /name .github/skills/weekly-report/
7 Bug report investigation plan Plan mode .github/skills/bug-report/
8 Issue triager Custom agents .github/agents/triage.agent.md
9 Issue triage table A triage script built from a rules document scripts/triage.js, docs/issue-rules.md
10 Automatic report generation Connecting skills and scripts, Word report form scripts/report.js, .github/skills/word-form/
11 Validation set and permissions Approval rules, hooks scripts/check.js, tests/cases.json, .github/hooks/
12 Putting it together Connecting the features so far in one repository docs/quality-checklist.md
13 Running it as a team A skill that handles Git work .github/skills/git-workflow/
14 Large-scale document search (advanced) Personal skill local-rag, local embedding model, vector DB github-copilot-local-rag repository

Building an assistant means leaving your rules and procedures in files so that you don't have to explain them every time.
Copilot reads four kinds of files from the repository's .github folder: instructions, skills, custom agents, and hooks.
The location and frontmatter fields of each file are summarized in Customization in the Essentials post.

# Instruction files

Instructions are rules that are automatically attached to every request.
Write here the things your team would otherwise have to say every time, such as the answer language, where to save results, files that must not be touched, and how to handle sensitive information.

The example's instruction file looks like this.

/.github/copilot-instructions.md
MARKDOWN
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# R&D Team Work Assistant Rules This repository is an example of handing the R&D team's repetitive work to GitHub Copilot. The rules below apply to every request. ## How to answer - Always answer in Korean. Write code comments in Korean too. - When you answer based on a document, also show which item of which file you referred to. - If no document supports the answer, do not guess. Say it is "not in the documents" and suggest checking with the person in charge. - If required information is missing, ask about all the missing items at once before starting the work. - After creating a result file, reread its content only once to check it, and do not repeatedly run separate check commands. ## File rules - Save generated results (forms, meeting notes, triage tables, reports) in the `output/` folder. - Documents in the `docs/` folder are reference documents. Do not modify them unless asked. - Do not edit Word forms (`.docx`) directly. Create a filled-in file in `output/` with `node scripts/fill-docx.js`. - Do not modify the original data in the `data/` folder. - Do not create or edit files that were not requested (README, test files, and so on). If one seems necessary, suggest it first. ## Code rules - Scripts use only built-in Node.js modules. Do not install external packages. - Triage logic follows `docs/issue-rules.md`. Do not make up criteria that are not in the rules. - Always leave the reason with each triage result. If you are not sure, mark it as undecided. ## Sensitive information - Do not write full names, employee IDs, contact details, or emails in results. Keep names as they appear in the original (`Kim OO`). - Before sending data to an external service or uploading it to the internet, check with the user first. - Do not read or print `.env` files or secret values.

Guidelines that help when you write instructions are summarized in GitHub Copilot Essentials.

Put rules that apply only to specific files in separate .instructions.md files in the .github/instructions folder.
They apply only when you work with files that match the pattern written in applyTo in the frontmatter.

/.github/instructions/scripts.instructions.md
MARKDOWN
1
2
3
4
5
6
7
8
9
10
11
--- name: Script writing rules description: Rules for creating or editing Node.js scripts in the scripts folder applyTo: "scripts/**/*.js" --- - Use ES module (`import`) syntax, and use only built-in modules such as `node:fs` and `node:path`. - Put the input and output file paths in constants at the top of the file. - When the run finishes, print a summary of the number of items processed and the result file path to the console. - If the input file is missing, explain what to run first and exit. - Add a one-line Korean comment to each function that says what it does.

You can check whether the instruction files were recognized on the Instructions page of the agent customization editor.
In the example, the two files above are shown.
If you are starting a new repository, you can also type /init in the chat to get a draft of instructions based on an analysis of the repository.

# Skills

A skill puts the steps and reference material for a specific task into one folder.
If instructions say "always do it this way," a skill is closer to "when this kind of request comes in, follow these steps."
Create a folder named after the skill under .github/skills, and put a SKILL.md file inside it.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
.github/skills/ ├── team-faq/ │ └── SKILL.md ├── laptop-request/ │ ├── SKILL.md │ └── form.docx # Word form the skill fills in ├── meeting-notes/ │ └── SKILL.md ├── issue-triage/ │ └── SKILL.md ├── weekly-report/ │ └── SKILL.md # Runs only when called with /weekly-report ├── word-form/ │ └── SKILL.md # Fills results into a Word form └── bug-report/ └── SKILL.md # Runs only when called with /bug-report

SKILL.md has two parts: the frontmatter and the body.
In the frontmatter, name is the identifier you use when you call the skill with /name, and description is what Copilot goes by to decide when to use this skill.
Use only lowercase letters, numbers, and hyphens in name, and make it the same as the folder name.

At first, Copilot reads only the name and description of every skill.
When a request matches a skill's description, it reads the body, and it reads files referenced in the body only when it actually needs them.
This is why the amount sent with each request does not grow much even when you have many skills.
That is why you should write "what it does" and "when to use it" specifically in the description.

When you type / in the chat, the repository's skills are shown with their descriptions, along with the built-in commands.
If you keep typing the start of a skill name, the list narrows down.

Skills shown in the slash list

# Team FAQ assistant

The first skill is an assistant that answers the questions team members ask again and again.
Its answers are based only on docs/faq.md, and it does not make up anything that is not in the document.

/.github/skills/team-faq/SKILL.md
MARKDOWN
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- name: team-faq description: Use when answering questions team members ask again and again, such as team rules, equipment booking, firmware releases, and work schedule requests, based on docs/faq.md. --- # Team FAQ assistant Answer team members' questions based on `docs/faq.md`. ## Steps 1. Read `docs/faq.md`. 1. Find the item closest to the question and answer with its content. 1. At the end of the answer, show the title of the item you referred to in the format `Source: docs/faq.md > item title`. ## Rules - Do not make up anything that is not in the FAQ. Say "This is not in the FAQ" and suggest checking with the part leader. - If a question spans several items, answer item by item. - Answer questions about procedures with an ordered list.

In Agent, type the skill name together with your question.

PROMPT
1
/team-faq If environmental chamber bookings overlap, who gets priority? And what is the maximum number of hours I can book?

Copilot reads the skill, answers item by item based on the FAQ document, and shows the source at the end.

Screen answering with sources based on the FAQ document

Try asking a question that is not in the FAQ, too.
If it answers that it is "not in the documents" and suggests checking with the person in charge, the skill is working as its rules say.

If you have time, add two or three questions your team actually gets often to docs/faq.md, and this time type only the question, without /team-faq.
You can check whether it answers with the new items without any change to the skill, and whether this skill is chosen based on its description (description) alone.

# Filling in the laptop request form

The second skill gathers the information it needs from the request, fills in a request form, and saves it as a file.
Company request forms usually come as a set Word form, so the result is also a Word file (.docx) with that form filled in, not Markdown.
The form is form.docx in the skill folder, and the policy it refers to is docs/laptop-policy.md.

Each place to fill in the form holds a field name in double curly braces, like {{Applicant}}.
If your team uses its own form, open it in Word, type the field names into its blanks, and save it.

Word request form with field names

A Word file is a format that compresses several XML files into one, so Copilot can't edit its content directly the way it edits Markdown.
So Copilot puts only the values to enter in the fields into a JSON file, and the form itself is filled in by running the example's scripts/fill-docx.js script.
The script uses only built-in Node.js modules, so there is nothing extra to install.
However, it can fill in only Word (.docx) forms, not Hangul (.hwp, .hwpx, a word processor widely used in Korea) forms.

If you give it only the form file, it shows the field names in the form in JSON format.
Copilot looks at this list and creates a value file with the same names.

BASH
1
2
3
4
5
6
7
8
9
node scripts/fill-docx.js .github/skills/laptop-request/form.docx ## Fields in the form: .github/skills/laptop-request/form.docx ## { ## "Date": "", ## "Applicant": "", ## "Department": "", ## ... ## "Justification attached": "" ## }

If you give it both the form file and a value file, it creates a Word file filled with the values, with the same name as the value file.
If a field is missing from the value file, it does not create the file and tells you the names of the missing fields.

BASH
1
2
3
node scripts/fill-docx.js .github/skills/laptop-request/form.docx output/laptop-request-김OO.json ## Form filled: output/laptop-request-김OO.docx ## form .github/skills/laptop-request/form.docx, 11 values

Include these two commands in the skill's steps.

/.github/skills/laptop-request/SKILL.md
MARKDOWN
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- name: laptop-request description: Use when you receive a request for a new laptop, a replacement, or a replacement for a broken one, to check the policy, fill in the Word request form, and save it in the output folder. --- # Fill in the laptop request form Gather the information needed from the user's request and fill in the Word form `form.docx` in this folder. ## Steps 1. Check who is eligible and the required items in `docs/laptop-policy.md`. 1. Find the required items below in the user's request. - Applicant name - Department (part) - Reason for the request (one of new hire, replacement, or broken) - Requested model (one of Standard 14-inch, Performance 16-inch, or Lightweight 13-inch) - When it is needed 1. If any item is missing, do not create the form. Ask about only the missing items, all at once. 1. Check the list of fields in the form with `node scripts/fill-docx.js .github/skills/laptop-request/form.docx`. 1. Fill in the values using the field names as they are, and save them as `output/laptop-request-<applicant>.json`. - Use today's date for Date, and write two or three sentences for Reason details. - In the check fields (Eligibility check, Required fields check, Justification attached), briefly write the result of checking the policy. - For fields that do not apply, write "N/A" instead of an empty string. 1. Run `node scripts/fill-docx.js .github/skills/laptop-request/form.docx output/laptop-request-<applicant>.json` to create the Word file. 1. Tell the user the path of the created file, along with anything that does not match the policy. ## Rules - If the reason is replacement and the laptop was issued less than 4 years ago, explain that it does not meet the policy. - Explain that the Performance 16-inch model requires a justification from the part leader. - Write the name exactly as the user gave it, and do not ask for an employee ID or contact details. - Do not edit `form.docx` directly, and leave the approval field empty.

Make a request with some information left out on purpose.

PROMPT
1
/laptop-request I'd like to request a laptop replacement. My name is Kim OO, and I'm in the Firmware Part.

Following the skill's steps, it reads the policy and asks about the missing items (requested model, when it is needed) all at once with question cards.
For items with choices, pick a number, write the rest in the input fields yourself, and click Submit.
The number of questions and how they are shown can vary a little each time you run it.

Screen asking about missing items with question cards

Choose Performance 16-inch for the requested model, and enter the following in the field for when it is needed.
If a separate field asking for the issue date appears, enter only the date in the needed-by field, and 2021-08-02 in the issue date field.

PROMPT
1
I need it by 2026-11-20. I got the laptop I'm using now on 2021-08-02.

It creates the value file, runs the script to save the Word file in the output folder, and tells you the result of the policy check.
If it asks for approval before running a terminal command, click Allow Once.

The created value file looks like this.
The wording of the values can vary a little each time you run it.
If a value needs a line break, write \n, and the line also breaks in the Word file.

/output/laptop-request-김OO.json
JSON
1
2
3
4
5
6
7
8
9
10
11
12
13
{ "Date": "2026-11-17", "Applicant": "Kim OO", "Department": "Firmware Part", "Reason": "Replacement", "Requested model": "Performance 16-inch", "Needed by": "2026-11-20", "Current device issued": "2021-08-02", "Reason details": "I am requesting a replacement for the laptop I am currently using. It was issued on 2021-08-02, and more than 4 years have passed since then, which meets the replacement criterion.\nI am requesting the Performance 16-inch model for firmware builds and debugging, and I would like to receive it by 2026-11-20.", "Eligibility check": "Eligible", "Required fields check": "All filled in", "Justification attached": "Required (not attached yet)" }

When you open output/laptop-request-김OO.docx in Word, the form looks the same as before, and only the fields are filled with values.
Because it is a performance model, the Justification attached field says a justification is needed, and the approval field is left empty for the part leader to sign.

Word request form filled with values

If you have time, build a skill for environmental chamber booking requests with the same structure.
Decide the required items (equipment, date and time, purpose), type field names such as {{Equipment}}, {{Date and time}}, and {{Purpose}} into a new Word document, and save it as form.docx in the skill folder.
For requests that break the booking rules in docs/faq.md (up to 4 hours at a time, at most 2 consecutive bookings), have it point this out when it saves the form.

# Organizing meeting notes and asking back

The third skill turns meeting memos into meeting notes, but it finds agenda items that are missing a decision, an owner, or a deadline and asks about them.
How it handles incomplete input is the key point of this skill.

/.github/skills/meeting-notes/SKILL.md
MARKDOWN
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- name: meeting-notes description: Use when turning meeting memos or conversations into meeting notes. Asks back if an agenda item, decision, owner, or deadline is missing. --- # Organize meeting notes Read the meeting memo and organize the decision, owner, and deadline for each agenda item. ## Steps 1. Find the agenda items in the memo and number them. 1. Fill in the following three things for each agenda item. - Decision - Owner - Deadline 1. Separately collect agenda items that have a decision but no owner or deadline, and agenda items that were only discussed with no decision. 1. If any item is missing, ask about them all at once in the format below before saving the meeting notes. > Items that need confirmation > - Item 2 (Environmental chamber booking rules): Owner, deadline > - Item 3 (Cold storage site visit): Decision 1. When you get the answers, complete the table and save it as `output/meeting-<meeting date>.md`. ## Meeting notes format (Meeting notes Markdown format omitted) ## Rules - Do not guess and fill in decisions or owners that are not in the memo. - Use attendee names exactly as written in the memo.
Meeting notes format section omitted

The example's meeting memo, data/meeting-2026-09-01.md, has no owners or deadlines at all.
When you run the skill, it first organizes the agenda items and then asks what is missing for each one.

PROMPT
1
/meeting-notes Turn the data/meeting-2026-09-01.md memo into meeting notes

The skill gives an example of the question format, but the Copilot harness often asks with question cards, as in the laptop request earlier.
Even if the format differs, the rule of gathering the missing items by agenda item and asking all at once is followed.

Screen asking back about missing items for each agenda item

Answer the question cards as follows.

Question Answer entered
Item 1 (Sensor value stuck at 0) Kim OO, September 5
Item 2 (Environmental chamber booking rules) Park OO, September 8
Item 3 (Cold storage communication dropout) We agreed to decide on the site visit at the next meeting. Owner Choi OO, September 8
Item 4 (Weekly report format) Lee OO, September 8

When you submit the answers, it completes the meeting notes and saves them.

Screen showing the completed and saved meeting notes

When you design the asking-back logic, you only need to decide the following three things.

What to decide The example's answer
Required items A decision, an owner, and a deadline for each agenda item
What to do when something is missing Don't save; gather only the missing items by agenda item and ask about them all at once
What not to guess Decisions and owners that are not in the memo are not filled in

If you list the required items in the skill body and show the asking-back format as an example, Copilot follows them.
It is also important to write that it should gather the questions and ask all at once instead of asking several times.
If users have to answer many times, there is less point in having an assistant.

From here up to 'Asking the knowledge base' is advanced content that handles team terms and previous meeting notes together.
If this is your first time following along, you can skip it and come back later.

Real meeting memos are less organized than the example above.
Abbreviations used only within the team get mixed in, and whether something decided last week is done is often mentioned in one short line and passed over.
The next meeting memo in the example repository is like that.

/data/meeting-2026-09-08.md
MARKDOWN
1
2
3
4
5
6
7
8
9
10
# R&D Team Weekly Meeting (2026-09-08) Attendees: Kim OO, Lee OO, Park OO, Choi OO - Of last week's 4 AIs, only the cold storage one is open, the other 3 close. - FW 2.3.1 value stuck at 0: RCA found a sensor init order problem. Kim OO may look at the 2.3.2 hotfix. - Chamber booking rules draft shared. To be finalized after PL review. - Opinions split on whether to visit the cold storage site. - Lee OO to upload DV2 sample EOL jig schedule v2 by next Friday. - Next meeting is September 15 at 10 AM.

If you organize this memo with the current skill, the following problems can occur.

  • It doesn't know that the AI in 4 AIs means action item, so instead of linking them to the previous meeting's agenda items, it organizes them as a separate agenda item called 'Last week's AI issue status'.
  • It writes the job title PL as the owner, or asks "Who is the PL?"
  • Abbreviations such as DV2 and RCA are left in the meeting notes as they are.
  • While applying your answers, it sometimes wrongly writes September 18, which is 'next Friday', as September 11.

This is because the model doesn't know the team's abbreviations or what was discussed in previous meetings.
Make the team terms into a glossary in the docs folder, not into a skill.
That way, the same glossary can also be used for weekly reports and issue triage, not only for meeting notes.

/docs/glossary.md
MARKDOWN
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Team Glossary Team terms that often appear in meeting memos and issues. In meeting notes and reports, spell them out with the meaning on the right. | Term | Meaning | Note | | --- | --- | --- | | AI | Action item. An agenda item whose owner and deadline were set at the previous meeting | Not artificial intelligence | | open, close | In progress, done | | | FW | Firmware | | | RCA | Root cause analysis | | | PL | Part leader | A job title, so do not use it as an owner | | DV2 | Design verification 2nd sample | | | Chamber | Environmental chamber | |

Then add rules for using the glossary and previous meeting notes to the end of the meeting notes skill.
The previous meeting notes are output/meeting-2026-09-01.md, which you created earlier.

/.github/skills/meeting-notes/SKILL.md
MARKDOWN
1
2
3
4
5
6
7
8
## Team terms and previous meetings - Find every abbreviation in the memo, check it against `docs/glossary.md`, and spell it out with the glossary meaning. Leave abbreviations that are not in the glossary as they are, and collect them under 'Abbreviations to add to the glossary' at the end of the meeting notes. - Find the most recent meeting notes in `output/`, and organize whether each previous agenda item is done or in progress in a 'Previous agenda items' table. - If the memo's done or in-progress wording does not match the agenda content, or you can't tell which agenda item it refers to, ask about it together with the other missing items before saving. - Do not move unconfirmed expressions such as 'may look at', 'after review', or 'opinions split' into decisions or owners. - Do not use job titles that are not people's names (such as PL) as owners. - Calculate deadlines like 'next Friday' from the meeting date, and also write the original wording in parentheses. Example: September 18 (next Friday)
Content added to the end of the skill

The last two lines are rules added after seeing the problems above.
Checking the results and turning what was wrong into rules is how you refine a skill.

Send the same request again.

PROMPT
1
/meeting-notes Turn the data/meeting-2026-09-08.md memo into meeting notes

This time, it reads the glossary and the previous meeting notes too, and asks only about the agenda items whose owners are not confirmed.

1
2
3
4
Items that need confirmation - Item 1 (Firmware 2.3.2 hotfix): Please decide whether to go ahead. If so, also tell me the owner and the deadline. "Kim OO may look at" in the memo can't be recorded as a confirmed decision. - Item 2 (Environmental chamber booking rules): I confirmed that it will be finalized after the part leader (job title) reviews it. Please tell me who will own it and the deadline. - Item 3 (Customer's cold storage site visit): Please tell me the decision on whether to visit.
Example of what it asks back
Question Answer entered
Item 1 Go ahead with the hotfix, Kim OO, September 11
Item 2 Park OO, September 15
Item 3 Decide at the next meeting, Choi OO, September 15

When you submit the answers, it saves the meeting notes, including the status of the previous agenda items and the abbreviations that are not in the glossary.

/output/meeting-2026-09-08.md
MARKDOWN
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Meeting Notes (2026-09-08) Attendees: Kim OO, Lee OO, Park OO, Choi OO | No. | Agenda item | Decision | Owner | Deadline | | --- | --- | --- | --- | --- | | 1 | Sensor value stuck at 0 on the mass production line after the firmware 2.3.1 release | Root cause analysis found a sensor initialization order problem, so we decided to go ahead with the firmware 2.3.2 hotfix | Kim OO | September 11 | | 2 | Environmental chamber booking rules | Decided to finalize the draft after the part leader reviews it | Park OO | September 15 | | 3 | Site visit for the customer's cold storage communication dropout | Decided to decide on the site visit at the next meeting | Choi OO | September 15 | | 4 | Design verification 2nd sample EOL jig schedule | Decided to upload schedule v2 | Lee OO | September 18 (next Friday) | ## Previous agenda items | Agenda item | Status | | --- | --- | | Sensor value stuck at 0 on the mass production line after the firmware 2.3.1 release | Done | | Environmental chamber booking rules | Done | | Customer's cold storage communication dropout | In progress | | Weekly report format | Done | ## Needs confirmation - None ## Next meeting - September 15, 10 AM ## Abbreviations to add to the glossary - EOL
What to check Basic skill Skill with the glossary and previous meetings
4 AIs A separate agenda item called 'Last week's AI issue status' The status of the 4 items in the previous agenda items table
PL Writes it as the owner, or asks who the PL is Since it is a job title, asks for the name of the person who will own it
DV2, RCA Left as they are Spelled out as design verification 2nd sample and root cause analysis
EOL Left as it is Marked as an abbreviation to add to the glossary
next Friday Sometimes written wrongly as September 11 September 18 (next Friday)

Even with the same memo, what it asks and when it saves can vary a little each time you run it.
For example, the memo says only the cold storage item is in progress, but the chamber booking rules are still under review, so it sometimes says the two don't match and asks once more about the status of previous agenda item 2.
So after you change a skill, run it two or three times with the same memo and compare the results.

Write only abbreviations and their general meanings in the team glossary.
Do not put information that must not leave the company, such as project code names, customer names, and internal product specifications, into the glossary.
This is because the glossary is a document committed to the repository that the whole team and Copilot read together.

# Asking the knowledge base

Having it answer based on the team's reference documents is the most basic use of an assistant.
When Copilot gets a question, it finds related documents with search tools, reads the parts it found, and answers based on their content.
This way of finding and using documents first, before answering, is called Retrieval-Augmented Generation (RAG).

When Copilot looks for documents, it mainly uses the following two kinds of search.

Search How it finds things Index
Text search Finds files that contain the words in the question Not needed
Semantic search (#codebase) Finds parts with a similar meaning even when the words differ Needed

The index needed for semantic search (Semantic Index) is managed automatically by Copilot, and you can check its status in Codebase Semantic Index in the Copilot menu in the status bar.
Whether you can use the index depends on where the repository is hosted and on your company's policy.
In a repository with only a few documents, like the example, it finds what it needs with text search and file reading alone, even without an index.

Switch the agent to Ask and ask a question about the spec document.
Also ask which document it referred to.

PROMPT
1
What are the measurement range, accuracy, and operating temperature of TS-100? Please also tell me which item of which document you referred to.

When you expand the step list at the top of the response, you can see the files it actually read, and each value in the answer comes with the item it referred to.
You can also see that it picked the matching skill (team-faq) on its own, checked the FAQ first, and then read the spec document.

Screen searching the repository and answering with sources

Always check the answer against the original.
The example's docs/spec-ts100.md gives the measurement range as -40 to 125 degrees Celsius and the operating temperature as -40 to 85 degrees Celsius, and if the values and referenced items in the response match these, it passes.
When you check, confirm the following three things.

  • Are the numbers and units exactly the same as in the original?
  • Do the file and item shown as the source actually exist?
  • Does it answer "it's not in the documents" to questions that are not in the documents?

Making up plausible content that is not in the documents is called hallucination.
Writing "Do not guess when there is no basis" in the instruction file and having it attach sources to its answers is the simplest way to reduce hallucination.

If you have time, ask a question that can only be answered by looking at two items together.
For example, if you ask "Can I install TS-100 in a 100-degree Celsius environment?", you can check whether it answers by telling the measurement range (up to 125 degrees) apart from the operating temperature (up to 85 degrees).

If there are very many documents, or they are in a shared folder outside the repository, searching the repository alone may not be enough.
For documents that are not Markdown, such as PDF and Excel files, the simplest way is to convert them to Markdown and put them in the docs folder, and if you have an internal search service, you can connect it with MCP.
How to build RAG yourself on your PC when there are many documents is covered at the end in Local RAG.

# Skills you call yourself

The skills so far could be picked and used by Copilot on its own after it looked at the request.
But for work that a person has to start at a set time, like a weekly report, it is a problem if Copilot runs it on its own.
In that case, add disable-model-invocation: true to the skill's frontmatter so that it runs only when you call it with /name.
This is the role that prompt files played in earlier versions.

/.github/skills/weekly-report/SKILL.md
MARKDOWN
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- name: weekly-report description: Creates a weekly report from the triage table. Use only when the user calls /weekly-report. argument-hint: Report period or points to highlight disable-model-invocation: true --- # Write the weekly report Read the `output/triage-result.md` triage table and write a weekly report in exactly the format of `docs/report-template.md`. - Report period: Use the period written after the command. If there is none, use this week. Write it as one line, `Report period: ...`, right below the report title. - If the triage table does not exist, run `node scripts/triage.js` first. - Result file: `output/weekly-report-YYYY-MM-DD.md` (the date it was written) ## Rules - Do not change the heading order or table format of the template. - For high-priority items, fill in the owner according to the owner assignment rules in `docs/issue-rules.md`. - For undecided items, write in one line what to ask the reporter again. - Do not make up anything that is not in the triage table.

For the frontmatter fields, including argument-hint, and how the text you type after the name is passed along, see GitHub Copilot Essentials.
You will run the report example later in Automating reports.

# Planning first

For work that needs investigation first, like a bug report, use plan mode together with a skill.
Plan mode investigates the repository without changing files and then writes up a plan as a document.

/.github/skills/bug-report/SKILL.md
MARKDOWN
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- name: bug-report description: Makes an investigation plan first, before writing up one issue as a bug report. Use only when the user calls /bug-report. argument-hint: Issue number or symptom disable-model-invocation: true --- # Bug report investigation plan You are about to write up the issue (number or symptom) given after the command as a bug report. Do not write the report right away. First make an investigation plan in the order below. 1. In `data/issues.csv`, check the issue's title, description, and received date. 1. In `docs/spec-ts100.md`, find the spec items related to the symptom (operating range, interface, firmware version). 1. Check whether `docs/faq.md` has a similar procedure or a known fix. 1. List the reproduction conditions, the scope of impact, and the questions to check. In the plan, write which files you will read and why, and what information is still missing.

Click Interactive below the input box, change it to Plan, and run the skill with the issue number.

PROMPT
1
/bug-report Issue 4

It reads the issue list, the spec document, and the FAQ in turn, and if something needs to be decided, such as the scope of the investigation, it first asks with question cards.
When you submit the answers, it writes up the plan and shows a plan review card above the input box.

Investigation plan written up by plan mode, and the review card

Button Behavior
Implement with Autopilot Approves the plan and keeps going on its own until it is done
Arrow, Implement Plan Approves the plan and runs it in the current session, asking for input and approval for each action
Arrow, Approve Plan Only Approves the plan without running it
Reject Does not accept the plan

The purpose of this step is only to check the investigation plan, so click the arrow and choose Approve Plan Only.
The biggest button runs the plan right away, so don't click it.
Depending on the versions of VS Code and the Korean language pack, the button names may appear in Korean.

In the Korean UI, the title of this card appears as 요금제 검토 ('rate plan review'), an awkward translation of the English Review Plan, and it is actually the plan review card.

Click Open Full Plan to open the plan as a document in the editor.
It lists, step by step, which files it read and why and what it still doesn't know, so you can see exactly how the agent works through the problem.
If there is something to fix, write it in the card's feedback field and click Submit Feedback, and it refines the plan again.

Investigation plan opened as a document in the editor

The plan document is saved in the session folder, not in the repository.
If you want to use it to explain the bug report procedure to your team, open the document and save it as a separate file.

# Custom agents

Custom agents are dedicated agents with a set role and a set of tools they can use.
If you narrow the role, as in "an owner who only triages and doesn't touch files," the results are more stable, and you also prevent files from being edited by mistake.
If you create one as an .agent.md file in the .github/agents folder, it appears in the agent menu.

/.github/agents/triage.agent.md
MARKDOWN
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- name: Issue Triage description: Reads the issue list and only triages it according to the rules in docs/issue-rules.md. Does not modify files. --- You are the R&D team's issue triager. You only triage, and you do not create or edit files. ## Triage steps 1. Read `docs/issue-rules.md` and check the criteria for type, priority, and undecided. 1. Compare the issue the user gave (or a specific number in `data/issues.csv`) against the rules. 1. Answer with the result in the table format below. | ID | Type | Priority | Status | Reason | | --- | --- | --- | --- | --- | ## What to follow - Do not triage by criteria that are not in the rules. If it is unclear, leave it undecided and write why. - In the Reason column, write exactly which keyword or condition it matched. - If an owner needs to be assigned, follow the owner assignment table in the rules document.

Choose Issue Triage from the agent menu, and paste in a newly received issue.

PROMPT
1
Please triage a newly received issue. ID 13, Title: Dashboard freezes on a white screen after login, Description: When I log in with the customer demo account, it freezes on a white screen. It happens every time, and other accounts are fine. Received: 2026-10-23

It reads the rules document and answers with the triage result and the reason in table format.
The Reason column shows exactly which keyword made it a bug and why its priority is High.

Result of the custom agent triaging by the rules

If you add a tools field to the frontmatter, you can limit the tools it uses to a list.
For example, if you keep only reading and search, as in tools: ['read', 'search'], this agent can't edit files or run commands.
Tool names can differ by harness, so after you set them, check that it actually does only what you want.

If you have time, switch the agent menu back to Agent and ask "Use the Issue Triage agent as a subagent to triage issue 4 in data/issues.csv."
You can see in the work steps that the main agent hands the triage to a subagent and gets back only the result.

# Triaging data

Now hand off triaging the whole issue list at once.
For this kind of work, defining the rules in a document and building and running a script that follows those rules is better than having Copilot triage everything directly each time.
The same input always gives the same result, it uses no credits, and when the rules change, you only need to update the document and the script.

How the issue list becomes a triage table and a report

# Input data

The example's input is data/issues.csv.
It has five columns (ID, title, description, reporter, and received date), and the type and priority are not filled in yet.
If you save a sheet from Excel with Save As > CSV UTF-8, you can create a file in the same format.

/data/issues.csv
1
2
3
4
id,title,description,reporter,received 1,Sensor value stuck at 0 after firmware 2.3 update,After updating unit 3 on the mass production line to firmware 2.3.1 the temperature value keeps showing 0. It is normal again after rolling back to 2.2.4.,Kim OO,2026-08-31 2,Request to add department name to report output,Please add the department name to the top of the weekly report.,Lee OO,2026-08-31 3,Inquiry about calibration procedure,I would like to ask what the calibration procedure is for newly received TS-100 modules.,Park OO,2026-09-01
First few lines

Among the 12 issues, there is problem data put in on purpose.
They are issue 6, whose description is only "Please check.", issue 9, which has no reproduction conditions, and issue 10, whose received date is 2026-13-40.
How the triage logic handles items like these is the key point of this step.

# Triage rules

First define the rules in a document that people read.
The script should be nothing more than this document turned into code, and the script must not make decisions that are not in the document.

/docs/issue-rules.md
MARKDOWN
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Issue Triage Rules ## Type Find the keywords below in the title and description to set the type. If it matches several types, the type higher in the table takes priority. | Type | Keywords | | --- | --- | | Bug | error, fail, freeze, dropout, stuck, not working, does not work, spike, spiking, broken, full, expired, loss | | Feature request | add, support, improve, option | | Question | inquiry, how to, how do, procedure | | Other | None of the keywords above | ## Priority | Priority | Condition | | --- | --- | | High | A bug whose title or description contains one of mass production, customer, entire, data loss, or safety | | Medium | Other bugs | | Low | Feature request, question, other | ## Undecided and flagged items | Situation | Handling | Note | | --- | --- | --- | | Description shorter than 15 characters | Undecided | Insufficient detail | | Type is Other | Undecided | Unknown type | | A bug whose description contains one of sometimes, not sure, or irregular | Undecided | No repro conditions | | Received date is not in YYYY-MM-DD format or is not a real date | Triage proceeds | Invalid date format | | Received date is later than today | Triage proceeds | Future date | ## Owner assignment | Condition | Owner | | --- | --- | | Priority High | Part leader | | Bug | Development part | | Feature request | Planning part | | Question | Tech support part | | Undecided | Ask the reporter to confirm again |

Items without enough basis are not forced into a decision but left undecided.
Items with odd values are triaged, but they are flagged in the note so that a person checks them.
Only when these two exits are in the rules from the start does the assistant stop pretending to know what it doesn't know.

# Triage script

Have Copilot write the script.
In Agent, attach the rules document and the input file (with + or # in the input box) and ask as follows.

PROMPT
1
2
3
4
5
Based on docs/issue-rules.md and data/issues.csv, create scripts/triage.js that reads the issue list and sets the type, priority, status (triaged or undecided), and note according to the rules document. Save the results as output/triage-result.csv and output/triage-result.md (summary table, triage results table, undecided list, flagged list, triage reasons table), and print only a summary of the counts to the console. Use only built-in Node.js modules with no external packages, and for each triage, leave the reason showing which keyword or condition it matched. Export the parseCsv function that scripts/check.js uses under that name, and match the column names of the result CSV to the names check.js reads. Don't create or edit any files other than scripts/triage.js.

Because the instruction file and the rules in scripts.instructions.md apply together, you may get a script that uses only built-in modules and has Korean comments.
The fourth line is there because the check script (scripts/check.js) uses the triage script's function and result file, and without the last line, it sometimes creates test files you didn't ask for or edits the README.
The finished version is on the complete branch of the example repository, so compare it with what you made.
It's fine if you can't read code.
Just check that the keyword table in the rules document was carried over as is into the lists at the top of the script.

/scripts/triage.js
JS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Type keywords. The type higher in the list takes priority. const TYPE_RULES = [ { type: 'Bug', keywords: ['error', 'fail', 'freeze', 'dropout', 'stuck', 'not working', 'does not work', 'spike', 'spiking', 'broken', 'full', 'expired', 'loss'] }, { type: 'Feature request', keywords: ['add', 'support', 'improve', 'option'] }, { type: 'Question', keywords: ['inquiry', 'how to', 'how do', 'procedure'] } ] // A bug with any of these keywords is high priority. const HIGH_KEYWORDS = ['mass production', 'customer', 'entire', 'data loss', 'safety'] // Expressions that mean a bug has no reproduction conditions. const UNCLEAR_KEYWORDS = ['sometimes', 'not sure', 'irregular'] // A description shorter than this is undecided for insufficient detail. const MIN_LENGTH = 15 /** Triages one issue. */ export function triage(issue, today = new Date()) { const text = `${issue.title} ${issue.description}` const notes = [] const { type, reason: typeReason } = judgeType(text) const { priority, reason: priorityReason } = judgePriority(type, text) let status = 'Triaged' if (issue.description.length < MIN_LENGTH) { status = 'Undecided' notes.push('Insufficient detail') } else if (type === 'Other') { status = 'Undecided' notes.push('Unknown type') } else if (type === 'Bug' && includesAny(issue.description, UNCLEAR_KEYWORDS)) { status = 'Undecided' notes.push('No repro conditions') } const dateNote = checkDate(issue.received, today) if (dateNote) notes.push(dateNote) return { id: issue.id, title: issue.title, reporter: issue.reporter, received: issue.received, type: status === 'Triaged' ? type : '', priority: status === 'Triaged' ? priority : '', status, note: notes.join(', '), reason: status === 'Triaged' ? `${typeReason}, ${priorityReason}` : notes[0] } }
Constants carried over from the rules, and part of the triage function

You can also run it directly in the terminal.

BASH
1
2
3
4
node scripts/triage.js ## Triage done: 12 issues ## High 3, Medium 2, Low 5, Undecided 2, Flagged 1 ## Result files: output/triage-result.md, output/triage-result.csv

# Triage skill

Instead of typing the command every time, create one more skill that also handles running the script and summarizing the results.

/.github/skills/issue-triage/SKILL.md
MARKDOWN
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- name: issue-triage description: Use when triaging the whole issue list and creating a triage table. Runs scripts/triage.js and organizes the undecided items. --- # Triage the issue list Triage the issues in `data/issues.csv` according to the rules in `docs/issue-rules.md`. ## Steps 1. Read `docs/issue-rules.md` and check that the rules have not changed. 1. Run `node scripts/triage.js` in the terminal. 1. Read `output/triage-result.md` and answer with a summary of the following. - The total count and the count for each priority - The list of high-priority items - The list of undecided items, and what to ask each reporter 1. If the user asks to change the rules, update `docs/issue-rules.md` and the keyword lists in `scripts/triage.js` together. ## Rules - Do not change the script results on your own. If a result looks wrong, explain the problem in the rules or the data. - Quote the triage reason exactly as it appears in the Reason column of the triage table.
PROMPT
1
/issue-triage Please triage the issue list

It checks the rules document, asks for approval to run the script, and when you allow it, reads the result file and summarizes it.
For each undecided item, it also notes what to ask the reporter.

Screen running the triage script and organizing the undecided items

Here is part of the resulting triage table.
Undecided items have an empty type and priority, and the reason is left in the note.

/output/triage-result.md
MARKDOWN
1
2
3
4
5
6
7
8
| ID | Title | Type | Priority | Status | Note | | --- | --- | --- | --- | --- | --- | | 1 | Sensor value stuck at 0 after firmware 2.3 update | Bug | High | Triaged | | | 5 | Log files make the disk full | Bug | Medium | Triaged | | | 6 | Please check | | | Undecided | Insufficient detail | | 9 | Measured values sometimes spike | | | Undecided | No repro conditions | | 10 | Firmware download link expired | Bug | Medium | Triaged | Invalid date format | | 11 | Backup script failure risks data loss | Bug | High | Triaged | |
Part of the triage results table

# Automating reports

When triage is done, what remains is notifying the owners and making a report.
For recurring reports, set a template first, and leave filling in the template to a script or a skill.

The report template is in docs/report-template.md.
If you fix the order of the headings and the columns of the tables, you get a report in the same shape every week.

/docs/report-template.md
MARKDOWN
1
2
3
4
5
6
7
8
# Issue Triage Report (YYYY-MM-DD) ## Summary ## High priority (notify immediately) ## Undecided (ask again) ## Flagged ## Who to notify ## Next actions
Template structure

Set the notification items as a table of conditions and recipients.
The example uses the owner assignment table in the rules document as is, so high-priority items are reported to the part leader immediately, and the reporters of undecided items are asked to confirm again.

In the same way as the triage script, have Copilot write scripts/report.js too.

PROMPT
1
2
3
Based on docs/report-template.md and docs/issue-rules.md, create scripts/report.js that reads output/triage-result.csv and creates output/report-YYYY-MM-DD.md (the date it runs) in exactly the template format. Follow the owner assignment table in the rules document for owners, and in Next actions, write one line of what to do for each high-priority item and each undecided item. Don't create or edit any files other than scripts/report.js.
BASH
1
2
3
node scripts/report.js ## Report created: output/report-2026-10-23.md ## High 3, Undecided 2, Flagged 1
Output with the finished version

A script follows a set format exactly, but it is not good at writing sentences, such as "what to ask again" for undecided items.
Leave those parts to the /weekly-report skill you made earlier.

PROMPT
1
/weekly-report fourth week of October

It reads the triage table, the template, and the rules document and makes the report.
When you open the report it made, the notes for undecided items contain, in full sentences, what to ask the reporters.

Chat that made the weekly report, and the result file

If your team also has a set Word form for reports, make a Word file the same way as the laptop request form.
The example's docs/report-template.docx is a Word form with the same structure as docs/report-template.md.

In a report, the number of table rows changes every week.
So if you type field names in the 'list.column' format, like {{High.ID}} and {{High.Title}}, in one table row, that row repeats as many times as there are items in the High array of the value file.
If the array is empty, only one row with 'N/A' is left.
If you type only {{Next actions}} in a paragraph and give an array as its value, that paragraph repeats as many times as there are items.

Word report form with a table whose rows repeat

Write the steps for moving results into a Word form as the word-form skill.
Even for work that doesn't start in Word like a request form, you can turn results made in Markdown into Word whenever you need to.

/.github/skills/word-form/SKILL.md
MARKDOWN
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- name: word-form description: Use when filling results you made (reports, meeting notes, request forms) into the team's Word (.docx) form and saving them as a Word file. Use for requests like "in Word", "as a Word form", or "as docx". --- # Fill in a Word form Move Markdown results, or content organized in the conversation, into the team's Word form. Do not change the form's look. Fill in only the `{{field name}}` places. ## Form locations | Result | Form | | --- | --- | | Weekly report | `docs/report-template.docx` | | Laptop request form | `.github/skills/laptop-request/form.docx` | If the result is not in the list, ask the user which form to use. ## Steps 1. Run `node scripts/fill-docx.js <form.docx>` to check the list of fields in the form (the JSON skeleton). 1. Read the source result, fill in the values using the field names as they are, and save them as `output/<source file name>.json`. - For array fields (`[]`), put in the source's table rows or list items one by one. If there are none, leave an empty array. - Write numbers as text too (`"12"`). 1. Run `node scripts/fill-docx.js <form.docx> output/<source file name>.json`. 1. Tell the user the path of the created Word file. ## Rules - Do not make up anything that is not in the source. Ask the user about fields whose values you can't find. - If the script reports missing fields, add those fields to the value file and run it again. - Do not edit the form file (.docx) directly. People fill in the signature and approval fields.

Ask it to turn the weekly report you made earlier into Word.

PROMPT
1
/word-form Turn the weekly report you just made into the Word form

When you call the skill directly with /word-form, Copilot checks the list of fields in the form, moves the report's tables and lists into the value file, and then runs the script.
The results are saved in the output folder as .json and .docx files with the same name as the source report.
The table rows grow to match the number of items in the report.

Word file filled with the weekly report

If you want to make the report at the same time every week, you can schedule the request with Automations in the Agents window, which gathers and manages agent sessions separately.
An automation that runs on your computer needs the computer and VS Code to be running at the scheduled time, while a cloud automation that runs on GitHub works even when your computer is off.
Both methods are covered in GitHub Copilot Work Automation in Practice.

The step of actually sending notifications by email or messenger is not included in the example.
Actions that send something outside should be done by a person after reviewing the report, or connected with MCP, but always with an approval step.

If you have time, add a skill that drafts the notifications.
Write in the skill that it saves what to tell the part leader for high-priority items and the questions to ask reporters again for undecided items in output/notify-draft-YYYY-MM-DD.md, and that a person does the sending.

# Validation and permissions

Before sharing the assistant with your team, check two things.
They are whether set inputs give set results, and whether you have stopped the assistant from doing things it must not do.

# Validation set

A validation set is a list that pairs inputs with expected results.
Don't include only normal cases. Include boundary cases and cases that should fail, too.

/tests/cases.json
JSON
1
2
3
4
5
6
7
8
9
10
11
[ { "id": "1", "group": "normal", "status": "Triaged", "type": "Bug", "priority": "High" }, { "id": "2", "group": "normal", "status": "Triaged", "type": "Feature request", "priority": "Low" }, { "id": "3", "group": "normal", "status": "Triaged", "type": "Question", "priority": "Low" }, { "id": "4", "group": "normal", "status": "Triaged", "type": "Bug", "priority": "High" }, { "id": "5", "group": "boundary", "status": "Triaged", "type": "Bug", "priority": "Medium" }, { "id": "10", "group": "boundary", "status": "Triaged", "type": "Bug", "priority": "Medium", "note": "Invalid date format" }, { "id": "11", "group": "boundary", "status": "Triaged", "type": "Bug", "priority": "High" }, { "id": "6", "group": "fail", "status": "Undecided", "note": "Insufficient detail" }, { "id": "9", "group": "fail", "status": "Undecided", "note": "No repro conditions" } ]
Group Meaning Example
Normal Input where the rules clearly apply A mass production line bug is High
Boundary Input on the edge of the rules Issue 10, whose received date is odd but which still has to be triaged
Fail Input that must not be triaged Issue 6, whose description is too short, and issue 9, which has no reproduction conditions

scripts/check.js compares the triage results with the validation set and classifies the mismatches.
It reads the triage result file (output/triage-result.csv), so after you change the rules or the script, run node scripts/triage.js first.

BASH
1
2
3
4
5
6
7
8
9
node scripts/check.js ## ID Group Expected Result Verdict ## 1 normal Triaged Bug High Triaged Bug High match ## 2 normal Triaged Feature request Low Triaged Feature request Low match ## ... ## 6 fail Undecided Insufficient detail Undecided Insufficient detail match ## 9 fail Undecided No repro conditions Undecided No repro conditions match ## ## Checked 9: match 9

Classify mismatches by what you are trying to filter out.
In this example, the targets to filter out are issues that must not be triaged because they lack enough basis.

Verdict Meaning
False alarm Filtered out an item that didn't need to be. An issue that should be triaged was left undecided
Miss Missed an item that should have been filtered out. An issue that should have been left undecided was triaged anyway
Misjudged Triaged, but the type or priority is different

If you run the triage script and this script in turn each time you change the rules, you can see right away whether the changed rules broke other cases.
For example, without the "No repro conditions" rule, issue 9 would be triaged as a bug and become a miss.
Looking at mismatches like these and adding rules is how you design the edge conditions.
You can also grow the cases by asking Copilot "Suggest three more boundary cases for the validation set."
You can see false alarms and misses actually shown, with rules removed on purpose, in the judgment checks of GitHub Copilot Work Automation in Practice.

From here up to 'Permission levels' is advanced content that adds team terms to the triage rules and checks the results.
It includes checking the results of a changed script, so it is easier to follow if you have development experience, and if this is your first time, you can just read the result tables and move on.
Four files change during this practice: data/issues.csv, tests/cases.json, docs/issue-rules.md, and scripts/triage.js.
Before you start, ask Copilot "Copy these four files to a backup folder," and when you are done, ask "Restore the four files from the backup folder and delete the backup folder."
If you restore the whole folder, the meeting notes skill rules and results you made earlier are lost too, so restore only these four files.

The example's keyword table is made only of common words.
Real team issues include terms the team uses, and even the same word can mean different things depending on the context.
Add the following 4 issues to the end of data/issues.csv.

/data/issues.csv
1
2
3
4
13,Watchdog reset occurs,It restarts with a watchdog reset about 30 seconds after booting. The same symptom appears on all 3 test modules.,Cho OO,2026-09-04 14,Brownout recorded repeatedly,When the supply voltage falls to around 3.0V brownouts are recorded repeatedly. It is normal at 3.3V.,Moon OO,2026-09-04 15,Communication dropout not reproduced,I retested the UART dropout reported last week and it did not reproduce. Can we close it?,Bae OO,2026-09-04 16,Improve error message wording,Please improve the wording of the error messages on the customer guide screen so they are easier to read.,Baek OO,2026-09-04
4 lines added to the end

The watchdog resets and brownouts (resets caused by low supply voltage) in issues 13 and 14 are bugs, but they are team terms that are not in the keyword table.
Issue 15 has 'dropout', but it is a question asking whether an issue that did not reproduce can be closed, and issue 16 has 'error' and 'customer', but it is a feature request to change the wording on a screen.
Add the expected results to the end of the validation set array.
Be careful not to forget the comma at the end of the item before them.

/tests/cases.json
JSON
1
2
3
4
{ "id": "13", "group": "team term", "status": "Triaged", "type": "Bug", "priority": "Medium" }, { "id": "14", "group": "team term", "status": "Triaged", "type": "Bug", "priority": "Medium" }, { "id": "15", "group": "context", "status": "Triaged", "type": "Question", "priority": "Low" }, { "id": "16", "group": "context", "status": "Triaged", "type": "Feature request", "priority": "Low" }
4 items added to the end of the array

When you run the triage and the check, all 4 newly added issues are mismatched.

BASH
1
2
3
4
5
6
7
8
9
10
node scripts/triage.js node scripts/check.js ## ID Group Expected Result Verdict ## ... ## 13 team term Triaged Bug Medium Undecided Unknown type false alarm ## 14 team term Triaged Bug Medium Undecided Unknown type false alarm ## 15 context Triaged Question Low Triaged Bug Medium misjudged ## 16 context Triaged Feature request Low Triaged Bug High misjudged ## ## Checked 13: match 9, false alarm 2, misjudged 2

Issue 16 became High because it has 'customer', so as it is, a request to change on-screen wording would be reported to the part leader immediately.
Ask Copilot to fix the rules document first and then update the script to match.

PROMPT
1
2
3
4
5
I added 13-16 to tests/cases.json, and 4 of them don't match in node scripts/check.js. 13 and 14 are because our team terms (watchdog reset, brownout) aren't in the rules, and 15 and 16 are misjudged because only the keywords were checked and the context was missed. Fix docs/issue-rules.md first and then update scripts/triage.js so that all 13 match without breaking the existing 9. Don't change the expected values in tests/cases.json, and don't add exceptions for specific numbers or titles. After fixing, check with node scripts/triage.js and node scripts/check.js.

To keep it from passing the check by changing the expected values or treating only specific numbers as exceptions, the request also says what not to do.
Copilot may add 'watchdog reset' and 'brownout' to the bug keywords, and update the rules document and the script so that context rules such as 'a question about closing a symptom that did not reproduce' or 'a request to improve messages or wording' are applied before the keywords.
How it fixes them can differ each time you run it, so check that the validation result after the fix has all 13 matching.

So were the rules fixed correctly?
This time, add 5 issues that were not in the validation set and check.

/data/issues.csv
1
2
3
4
5
17,WDT reset repeats,It restarts with a WDT reset right after booting. The same symptom appears on 2 test modules.,Ga OO,2026-09-07 18,How to set the watchdog time,I would like to know how to change the watchdog timer time.,Na OO,2026-09-07 19,Confirmed no brownout,We tested the modified power circuit for 8 hours and a brownout never occurred. Sharing the results.,Da OO,2026-09-07 20,Error message text cut off,On the diagnostics screen the error message text is cut off in the middle so the code number can't be read.,Ra OO,2026-09-07 21,Dropout not reproduced but value stuck,The UART dropout did not reproduce but under the same conditions the sensor value is stuck at 0.,Ma OO,2026-09-07
5 lines added to the end
/tests/cases.json
JSON
1
2
3
4
5
{ "id": "17", "group": "new case", "status": "Triaged", "type": "Bug", "priority": "Medium" }, { "id": "18", "group": "new case", "status": "Triaged", "type": "Question", "priority": "Low" }, { "id": "19", "group": "new case", "status": "Undecided", "note": "Unknown type" }, { "id": "20", "group": "new case", "status": "Triaged", "type": "Bug", "priority": "Medium" }, { "id": "21", "group": "new case", "status": "Triaged", "type": "Bug", "priority": "Medium" }
5 items added to the end of the array
BASH
1
2
3
4
5
6
7
8
9
10
11
node scripts/triage.js node scripts/check.js ## ID Group Expected Result Verdict ## ... ## 17 new case Triaged Bug Medium Undecided Unknown type false alarm ## 18 new case Triaged Question Low Triaged Question Low match ## 19 new case Undecided Unknown type Triaged Bug Medium miss ## 20 new case Triaged Bug Medium Triaged Bug Medium match ## 21 new case Triaged Bug Medium Triaged Bug Medium match ## ## Checked 18: match 16, false alarm 1, miss 1

Results can differ depending on how the rules were fixed, but issues 17 and 19 are likely to be mismatched.

  • WDT in issue 17 is short for watchdog timer. It means the same thing, but the keyword table has only 'watchdog reset', so it became undecided.
  • Issue 19 shares the result that no brownout occurred, but it was triaged as a bug just because of the word 'brownout'.

Rules fixed to fit the validation set like this can get only the validation set's cases right and be wrong on inputs they haven't seen before.
This is called overfitting.
When you fix rules, also check the following.

  • Separately from the validation set you used to fix the rules, keep a few unseen cases on the side. It is even better if a coworker, not the person who fixed the rules, writes them in the wording of real work.
  • After fixing the rules, check again with the unseen cases. Move the cases that fail there into the validation set, and make new unseen cases.
  • Put different spellings with the same meaning, like issue 17, into the team glossary from earlier, and have the rules document refer to the glossary.
  • Negative expressions like issue 19 are hard to handle fully with keywords. If there are expressions such as 'did not occur' or 'never occurred', it is safer to leave the issue undecided so that a person checks it.

Keyword rules can't get every sentence right.
What matters is using the validation set to check whether a wrong result is left undecided or ends up in the report as a wrong triage.

# Permission levels

The things an assistant can do have a growing impact in this order: read, write, run, and send outside.
The bigger the permission, the earlier you put an approval step, and anything that sends something outside should happen only after a person checks it directly.

Permission levels and approval steps

Here is how to adjust these levels in VS Code.

Permission How to adjust it
Read, search Allowed without approval by default. Specific files can be blocked with a hook
Write Edits inside the project folder are saved without approval. Review them as session changes and revert with Start Over. Edit tools can be excluded in a custom agent's tools
Run Approval for each command. Manage the allow list with the chat.tools.terminal.autoApprove setting
Send outside MCP server trust and authentication approval. Add a "check first" rule to the instructions

If you run scripts under node scripts/ over and over, as in the example, you can set just that command to be auto-approved.
For how to set it up, see GitHub Copilot Essentials.

# Sensitive information

Work data easily gets mixed with names, contact details, and customer information.
The example applies the following principles, split across the data preparation step, the instruction file, and hooks.

  • Prepare the original data with names already masked, like Kim OO. This is more reliable than having the assistant mask them.
  • State in the instructions what must not go into results (full names, employee IDs, contact details, emails).
  • Block reading files that contain secret values, such as .env, with a hook, and also add them to .gitignore.
  • For tasks that send data outside, have the instructions say to "check with the user first."

Even if you write "Do not read .env files" in the instructions, it is only advice passed to the model.
If the model misses the rule, or the user asks "Read it anyway," the file can still be read.
Copilot has no option like Claude Code's permissions.deny setting that denies reading specific files with a single setting.
You can specify files with Content exclusion in the GitHub repository settings, but it is only for Business and Enterprise plans, and in VS Code it applies only to inline suggestions and chat questions, not to agent tasks.

To add another layer of blocking for agent tasks, use hooks.
A hook is a script that runs at set points, such as right before and right after Copilot calls a tool, and you register it in a JSON file in the .github/hooks folder.
If a preToolUse hook, which runs right before a tool call, outputs a deny decision, that tool call is canceled, and the reason written with it is passed to the model.

This hook is already registered in the example repository.
.github/hooks/protect-secrets.json registers protect-secrets.js to run right before every tool call, and this script outputs a deny decision if the tool's arguments contain a path to block.
The full contents of both files and how the script works are explained in GitHub Copilot Essentials.
In this example, the paths to block are listed in the BLOCKED array at the top of the script, the same way you would in .gitignore.

JS
1
2
3
4
5
6
const BLOCKED = [ '.env*', // .env, .env.local, .env.production '*.pem', // Certificates and private keys 'secrets/**', // All files in the secrets folder 'private/members.csv', // Team member roster ]
The list of paths to block in protect-secrets.js

It checks not only the paths given to file read tools but also paths in terminal commands, so requests that try to get around it through the terminal, such as cat .env, are also blocked.
However, because it compares the text of paths, a request can get through if it moves to the folder first and uses only the file name, as in cd private && cat members.csv, or builds the path inside a script.
Think of hooks as a safety net that reduces mistakes. The surest way is to keep secret values outside the folders the agent works with from the start.

If you actually ask it to print .env, the model usually refuses first, before calling a tool, because of the .env rule in the instructions.
The instructions and the hook block it in two layers.
Check how the hook works with another path in the list.
The example repository's private/members.csv is a team member roster that lists the real names, employee IDs, and emails of the team members whose names are masked as Kim OO in the issue list and meeting notes.
All the values are fake, but assume it is a file the work assistant must not read or copy into its results.

PROMPT
1
Open private/members.csv and tell me what fields it has.

When the model calls a tool to read the file, the tool output shows Denied by preToolUse hook and the reason the script wrote, and the file's contents are not passed to the model.

Screen where the hook blocked a tool call that reads the team member roster

If you have time, add data/customers/** to the BLOCKED list, create a fake file in that folder, and ask about its contents.
Check that both file reading and the terminal cat command are denied.

Hooks block only the tools that Copilot calls on its own, so the contents of files you attach yourself or have open in the editor are passed without going through hooks.
Do not send requests while a secret file is open in the editor.

Copilot sends your requests to GitHub's servers to create responses.
Data that must not leave the company under company policy should not be put in the repository in the first place.

# Putting it together

When you connect what you've built so far in one repository, it becomes your team's work assistant.
Knowledge (reference documents and search), triage (rules and scripts), and reporting (templates and skills) are split into separate files, and Copilot picks what it needs depending on the request.

Work assistant that connects knowledge, triage, and reporting

If you run the whole flow at once, the order is as follows.

  1. In Ask, ask about the spec or policies and check the sources.
  2. In Agent, make a triage table with /issue-triage and check the undecided items.
  3. Make a report with /weekly-report and review its content in the output folder.
  4. Run the validation set with node scripts/check.js to check that the rules still hold.
  5. Turn the report into the Word form with /word-form and hand it to the owner.

Before sharing, check the items in docs/quality-checklist.md yourself.
They are split into five areas (answer quality, asking back, triage, reporting, and safety), and if even one item fails, don't share it.

/docs/quality-checklist.md
MARKDOWN
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
## Answer quality - [ ] Does it answer 3 FAQ questions with sources (file, item) attached? - [ ] Does it answer "not in the documents" to questions that are not in the FAQ? - [ ] Does it answer spec questions with the same numbers as `docs/spec-ts100.md`? ## Asking back - [ ] In a laptop request, if a required item is missing, does it ask instead of creating the form? - [ ] In meeting notes, does it collect agenda items missing an owner or deadline and ask about them? - [ ] Does it ask about the missing items all at once instead of asking several times? ## Safety - [ ] Are full names, employee IDs, and contact details kept out of results? - [ ] Are tools that send data outside never run without approval? - [ ] Does it avoid reading secret files such as `.env`?
Excerpt

When you roll it out to a department, fill in docs/adoption-plan-template.md and use it as a guide document.
It organizes the scope, preparation, how to use it, limits and cautions, and how to run it in tables and lists.
In particular, it is a good idea to clearly write the limits from the start: "The assistant does not make decisions that are not in the rules documents, and its results are drafts that people review."

To adapt it to your own team, we recommend the following order.

  1. Replace the documents in the docs folder with your team's actual policies and FAQ.
  2. Type {{field name}} into the blanks of the Word forms your team uses, and replace form.docx and docs/report-template.docx with them.
  3. Match the column names in data/issues.csv to the format your team uses, and change the keywords in docs/issue-rules.md to your team's terms.
  4. Ask Copilot, "The rules document changed, so update triage.js and the validation set to match."
  5. Run node scripts/triage.js and node scripts/check.js in turn, and refine the rules and validation set until everything ends in a match.
  6. Once it passes the checklist, push it to your team's remote repository to share it with your team.

# Running it as a team

An assistant is not something you build once and are done with.
When policies change, you have to update the reference documents, and when triage is wrong, the rules and validation set, and the changes have to reach every team member.
Since several people edit the same files, you need version control that records who changed what and when, and lets you revert when needed.

# Version control

Use Git for version control, and create the remote repository that the team shares on GitHub.
These are the terms used in this section.

Term Meaning
Remote repository The GitHub repository the team shares
Commit Saving changes as one version along with a description
Push Applying the commits on your computer to the remote repository
Pull Bringing commits that other team members pushed to your computer
Branch A workspace for managing changes separately without affecting the default branch (main)
Pull request A feature for asking coworkers to review a branch's changes before merging them into the default branch. PR for short
Conflict A state where two people changed the same part of the same file differently, so a person has to decide which to keep

For installing Git and detailed usage, see Git/GitHub Installation and Usage Guide.
If you are using Git for the first time, it is simpler to hand the work to the github-workflow skill instead of installing Git, signing in to GitHub, and creating a repository one by one.
With this skill, Copilot checks what is installed and signed in on your computer, installs only the missing tools, and then carries on through creating the repository and pushing.

First, install the skill in the VS Code terminal.
It is a personal skill installed in your home folder, so once it is installed, you can use it in any project.
So that you can use the same skill in Claude Code as well as Copilot, also specify claude-code.

BASH
1
npx skills add ParkYoungWoong/skills --skill github-workflow -g -a github-copilot claude-code -y

Next, open the folder you want to turn into a repository in VS Code and ask Copilot.

PROMPT
1
Upload this folder to a GitHub repository.

When Copilot shows the current state and its plan, approve it.
After that, just follow the instructions for the steps you must approve yourself in the browser, such as signing in with your GitHub account, and a private repository is created and the folder's files are pushed.
Files that contain secret information, such as .env, are left out of the commit.

github-workflow is a general-purpose skill for setting up the Git environment and a repository for the first time, while git-workflow, which you build below, is a skill that pulls, commits, and pushes in a prepared repository following this team's work order and check rules.
If your Git environment is already set up, you can skip github-workflow.

In this post, you don't type Git commands yourself. Instead, you turn the order of pulling, committing, pushing, and resolving conflicts into a skill and hand it to Copilot.

Always create your team's remote repository as private.
This is because it contains reference documents and work data.

# Git skill

So that team members who are not familiar with Git work in the same order, write the order and the forbidden commands in a skill.

/.github/skills/git-workflow/SKILL.md
MARKDOWN
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
--- name: git-workflow description: Use when connecting a remote repository, pulling, committing, or pushing changes, creating a pull request, or resolving conflicts. --- # Git work order ## Connect a remote repository 1. Ask the user for the remote repository URL. 1. If this folder is not a Git repository, run `git init -b main`. 1. If there is no `origin`, add the URL given as `origin`. If one already exists, do not change it, and tell the user the registered URL. 1. If the remote repository already has commits, do not push. Instead, tell the user to clone that repository into a new folder. 1. If the remote repository is empty, push the first commit to the `main` branch. Include every file not in `.gitignore` in the first commit, and show the list of files to commit and get approval. ## Pull 1. If already tracked files have uncommitted changes, say so first and ask whether to commit them. If there are only untracked files, such as newly created results, go ahead with the pull. 1. Run `git pull --no-rebase`. 1. Summarize each newly pulled commit in one line, focusing on the author and the changes. 1. If `data/` or `docs/issue-rules.md` changed, run `node scripts/triage.js` again. ## Commit and push 1. Check the changes with `git status` and `git diff` and summarize them. 1. Run the 'Pull' steps above first. 1. Run `node scripts/triage.js` and `node scripts/check.js`. If even one does not match, do not commit, and report the results. 1. Suggest a commit message, get approval along with the list of files to commit, and then commit. 1. If the changes include files that change how the assistant behaves (`docs/`, `.github/`, `scripts/`, `tests/`), push to a branch named in the `update/YYYY-MM-DD-description` format, and tell the user the pull request creation URL shown in the push result. 1. If only results (`output/`) and original data (`data/`) changed, push to the `main` branch. 1. If you pushed to an `update/` branch, switch back with `git switch main`, and tell the user to pull after the pull request is merged. ## Resolve conflicts 1. Do not decide on your own which side to keep. Stop. 1. For each conflicted file, show the local changes and the remote repository's changes side by side, and explain what is different. 1. When the user decides what to keep, edit the file as decided, run `node scripts/check.js` again, and then commit. ## Rules - Do not run commands that erase commit history or files, such as `git push --force`, `git reset --hard`, and `git clean`. - Do not force-add files listed in `.gitignore` with `git add -f`.

Since disable-model-invocation is not set, Copilot can use this skill based on its description even if you just ask "Commit and push."
However, order matters in Git work, so in this post you call it directly with /git-workflow.
Pushing is a command that changes the remote repository, so git push is not added to the terminal auto-approval list, so that it asks for approval every time.
How to exclude specific commands from auto-approval is covered in GitHub Copilot Essentials.

The folder where you cloned the example repository contains a .git folder with the example repository's commit history and remote repository URL.
Your team's assistant starts with a new history, so first delete this folder in the terminal to reset the Git history.
A folder you downloaded as a ZIP has no .git folder, so skip this step.

BASH
1
rm -rf .git
macOS, Linux
POWERSHELL
1
Remove-Item -Recurse -Force .git
Windows PowerShell

Next, create a new private repository on GitHub, and connect the folder you have worked in so far to the remote repository.
When you create the repository, don't choose options such as adding a README file, so that it is created empty.

PROMPT
1
/git-workflow Connect the current project to the remote repository.

When it asks for the remote repository URL, enter the URL you copied from the GitHub repository page.
It creates a new Git repository, connects the URL you entered as origin, and then pushes the first commit to the main branch.

Other team members clone your team's remote repository instead of the example repository.
Since it is a private repository, the simplest way is to run Git: Clone from the Command Palette (Cmd + Shift + P / Ctrl + Shift + P), sign in with your GitHub account, and choose the repository.

From then on, pull when you start work, and commit and push when you finish.

PROMPT
1
/git-workflow Get the latest changes from the remote repository and apply them.
PROMPT
1
/git-workflow I added an equipment return question to docs/faq.md. Commit/push

When you ask it to commit and push, it summarizes the changes, pulls, checks the validation set, and then shows the commit message and the list of files to commit and asks for approval.
Because the docs/ folder changed, it pushes to a new branch and tells you the pull request creation URL.

The coworker reviewing the pull request checks that the changed documents and rules are correct, tests the relevant items in docs/quality-checklist.md themselves, and then merges it.
If there are many changes, you can get a summary with /review from Code and security review to help with the review.

The example's results include the meeting date, the applicant, or the creation date in their file names, so even when several team members make them separately, they don't overwrite each other's files and build up by date.
Other team members only need to pull to see all the previous meeting notes and reports.
The triage table (output/triage-result.*) can be recreated at any time from the original data and the triage script, so it is in .gitignore, and you recreate it with /issue-triage when needed.
The private/ folder, which holds practice files with personal information such as the team roster, is also in .gitignore, so it is not uploaded to your team's remote repository.

The skill's steps and rules are instructions passed to the model, so the results can vary a little each time you run it.
Always check the file list and the commit message shown before pushing, and then approve.

# Applying feedback

When the assistant gives a wrong answer in real work, don't just correct it in the chat and move on. Fix the files.
Corrections made in the chat last only for that session, but fixed files apply to every team member who pulls.

What was wrong File to fix
Answers about the FAQ, policies, or spec The relevant document in the docs/ folder
Issue triage Triage rules, triage script, validation set
Abbreviations not spelled out in meeting notes docs/glossary.md
Answer style or result format The instruction file or the relevant skill

If a triage was wrong, it is important to add that issue and its correct triage to the validation set.
Cases added to the validation set are checked by node scripts/check.js from then on, no matter who changes the rules, so if the same mistake happens again, you find out right away, before committing.
Assume the following issue came in this week.

/data/issues.csv
1
22,Measurement halted by poor jig contact,When a module is inserted into the EOL jig the measurement stops partway because of poor contact.,Ba OO,2026-09-14
1 line added to the end

Because 'halted' and 'stops' are not in the keyword table, the triage script may leave this issue undecided as an unknown type.
It is actually a bug where the measurement stops, so add the correct triage to the validation set and ask Copilot to fix the rules.

PROMPT
1
2
3
4
Issue 22, which I added to data/issues.csv, came out as undecided, but it's actually a bug with Medium priority. Add the expected result for this case to tests/cases.json, and update the keywords in the triage rules and the triage script together. Keep checking until node scripts/check.js shows everything matching. Check with all of data/issues.csv that the new keywords don't turn existing questions or feature requests into bugs, and show me the keywords you added in a table.

When the validation set fully matches, commit and push the changed files.

PROMPT
1
/git-workflow Commit and push the fix for the triage of issue 22.

Because the rules and the validation set, which change how the assistant behaves, were changed, it pushes to a new branch and tells you the pull request creation URL.
When a coworker reviews and merges it, other team members also use an assistant that triages by the same rules once they pull.

If the team member who found a wrong answer can't easily fix it themselves, they pass three things to the person in charge: what they entered, the assistant's answer, and the correct answer.
Who takes these requests and fixes them, and how often to review the validation set, is written in the 'Operation' table of docs/adoption-plan-template.md.

It is a small setup made of a few files and two or three scripts, but it has all the basic structure of an assistant: it answers based on documents, asks back about what it doesn't know, triages by the rules, and reports in a set format.

How to automate one real task from start to finish with this structure continues in GitHub Copilot Work Automation in Practice.
Using test log judgment, graph reports, and Jira defect filing as examples, it covers how to split work into steps, checking judgments, connecting internal systems, and security.

# Local RAG

This section is advanced content that you don't need for following the example.
It covers how to turn documents into RAG directly on your PC when your team has thousands of documents or keeps them in a shared folder outside the repository.

The example in Asking the knowledge base had only a few documents, so Copilot found the answers with text search and file reading alone.
When documents grow to thousands, it gets hard to find the right part just from files that contain the same words as the question, and depending on company policy, you may not be able to use the semantic search index.
In that case, build an index that turns the meaning of documents into numbers directly on your PC, find only the parts close in meaning to the question, and pass them to Copilot.

The flow of retrieval-augmented generation

  • Chunking: Cut documents into chunks by paragraph or heading.
  • Embedding and indexing: Turn the meaning of each chunk into a vector of numbers and store it. Sentences with the same meaning become vectors that are close together.
  • Search: Turn the question into a vector the same way, and find the closest chunks.
  • Context injection: Pass the chunks it found to the model along with the question, so that it makes an answer with a basis.

# Components

This section uses a personal skill called local-rag and the rag command that the skill runs.
A personal skill is a skill kept in your home folder rather than in a repository, so once you make it, you can use it in any project you open.
One folder turned into RAG is called a collection, and each collection gets one vector DB file.

Component Name and location What it does
Personal skill local-rag, ~/.agents/skills/local-rag/SKILL.md Takes requests and runs them with the rag command
rag command bin/ in the kit folder Indexes, searches, updates, moves, lists, and removes folders
Vector DB indexes/<collection>.db in the kit folder, sqlite-vec Stores vectors and finds chunks close to the question
Embedding model embeddinggemma:300m on Ollama (default) Turns document chunks and questions into vectors

The embedding model and the vector DB both run on your PC, so document content is not sent outside while documents are turned into vectors.
No files are created in the source folder, so you can turn even a shared folder you have no write permission for into RAG.
You can check where personal skills go in Customization in the Essentials post.
During installation, the same skill is also put into ~/.claude/skills and ~/.copilot/skills, so you can use it the same way in other AI tools such as Claude Code and Copilot CLI.

The default model, Google's embeddinggemma:300m, is a small model of about 620MB, so it can run on the CPU alone, even on a PC without a GPU.
Indexing speed varies a lot depending on the PC's CPU and GPU, so the speed of that PC is measured during installation, and the estimated time is shown before RAG is built.
Only the first indexing takes long. After that, only changed files are processed again.

You can also switch to other models with similar search quality.

Model Made by Size Features
embeddinggemma:300m Google (US) About 620MB Default model. Fast indexing
qwen3-embedding:0.6b Alibaba (China) About 640MB Previous default model. Long documents are not cut off
snowflake-arctic-embed2:568m Snowflake (US) About 1.2GB Search quality similar to the default model. Based on bge-m3 from China's BAAI

Search quality was compared using 18 Korean documents and 43 questions.
Ask during installation, like "Install it with the Qwen3 model," or after installation, like /local-rag Switch to the Qwen3 model.
A collection is searched with the model used to create it, so even if you switch models, you can keep using existing collections as they are.

# Installation

This setup is prepared in finished form in a separate repository, github-copilot-local-rag.
The folder you download the repository into becomes the installation folder of the RAG tool as is, and this post calls it the kit folder.
For installation, checks, moving to another PC, and similar work, just open the kit folder in VS Code and ask Copilot.
Copilot reads AGENTS.md in the kit folder and follows its steps.
For tools like Claude Code that don't read AGENTS.md directly, a CLAUDE.md that loads the same document is also included.

1
2
3
4
5
6
7
8
9
10
11
github-copilot-local-rag/ ├── README.md # Order of use ├── AGENTS.md # Installation, offline transfer, and check steps that Copilot follows ├── CLAUDE.md # One line that makes Claude Code read AGENTS.md ├── models.json # Embedding models you can choose ├── rag.py, bin/ # rag command ├── setup/kit.py # Installation helper ├── skill/local-rag/ # Skill source copied to your home folder during installation ├── offline/ # Materials for bringing it into an internal network (filled in during preparation) ├── tests/selftest.py # Self-test └── 1-setup.md to 4-check-quality.md # Files for building the same setup yourself with prompts

Your PC needs Python installed, and if Ollama is missing, it is installed during installation.
The same way as the example repository, click Code > Download ZIP on the repository page to download the archive and extract it.
The extracted github-copilot-local-rag-main folder is the kit folder.

Don't put the kit folder inside a sync folder such as OneDrive or iCloud Drive, or inside another project folder such as the example repository. Put it under your home folder.
During installation, Copilot checks the location first, and if it isn't suitable, it suggests copying the folder to your home folder.
If you moved the kit folder after installation, open the moved folder and ask for the installation again.

Open the kit folder with File > Open Folder in VS Code, keep the agent set to Agent, and ask as follows.

PROMPT
1
Install it

Copilot finds Python, shows the installation plan first, points out the items that change PC settings, and asks whether it may go ahead.
When you answer "Go ahead," it installs in the following order and runs a self-test at the end.
During installation, a '로컬 RAG 설치' (Local RAG installation) screen opens in the browser and shows which step it is on and how far it has progressed.

  1. Creates a Python virtual environment in the kit folder and installs sqlite-vec.
  2. Installs Ollama and the embedding model (default embeddinggemma:300m) if they are missing.
  3. Measures this PC's embedding speed and saves it in config.json.
  4. Registers the rag command in PATH, and makes it findable right away in the VS Code window that is open now.
  5. Puts the local-rag skill in the personal skill folders in your home folder (~/.agents/skills and others).
  6. Adds the read-only rag commands (search, list, scan, and --dry-run, which previews the update scope) to the VS Code user settings so that they run without approval.

rag index, which builds an index, and rag remove, which removes a collection, are left out of auto-approval, so with the default permission (Manual permissions), they ask for approval each time they run.
When installation is done, open another project and type / in a new chat.
If local-rag appears in the list, you are ready. If it doesn't, quit VS Code completely and open it again.

Installing Ollama fresh needs 4GB or more of extra space on Windows.
If installation or downloads are blocked on the company network, it tells you the blocked address and an alternative, and stops.
If you want to build the same setup yourself with prompts, ask "Create the build-it-yourself folder" in the kit folder, and in the created folder, attach the files in order, starting from 1-setup.md.

# Bringing it into an internal network

For PCs on an internal network with no internet access, download the installation materials in advance and bring them in on an external drive.
Once you bring it in and install it, you can use it again in any project inside the internal network.

  1. Connect an external drive to a PC with internet access, open the kit folder, and ask something like "Pack it for offline transfer on the E drive." When it asks about the operating system of the internal PC and the embedding model to use, answer.
  2. Copilot downloads about 2.5GB, including the Ollama installer, the embedding model, and the Python installer for Windows, copies it to the local-rag folder on the external drive, and checks the copied files. Nothing is installed on this PC.
  3. Bring in only the local-rag folder on the external drive. What it contains is written in 반입 안내.txt (transfer guide) in that folder.
  4. On the internal PC, open that folder in VS Code and ask "Install it." Copilot copies the folder to your home folder and then installs without the internet.

Build the index fresh on the internal PC from internal documents.
Even on the internal network, Copilot must be able to connect to GitHub, but indexing and embedding work only inside the PC.

# Usage

Once installation is done, you can use the local-rag skill in any project.
If you mention RAG or a collection in your request, Copilot sometimes uses the skill on its own after reading its description, but in this post you call it directly by typing your request after /local-rag, so that the results are easier to predict.

First, tell it which folder to turn into RAG.
For a folder inside the project you have open, type only its name, like docs. For a folder elsewhere, type the full path.

PROMPT
1
/local-rag Turn all the files in the docs folder into RAG.
Turn a folder into RAG

The skill is written to first check the number of target files, their size, and the estimated time, and to treat your request to build it as confirmation and build the index right away.
It asks first only when the targets include files that may contain secret information, and even if the estimated time is long, it doesn't ask and waits until it finishes.
Even if Copilot comes back early while waiting and runs the same command again, the indexing doesn't run twice, and it continues showing the progress and result of the running job.
Indexing saves each file as it finishes, so if it stops partway, making the same request again skips the finished files and continues.

The collection name is set in the form 'project-folder-hash' (for example, github-copilot-example-docs-3f9a).
The hash is made from the folder's path, so even if another project has a docs folder with the same name, the names don't overlap.
Even when you refer to it by folder name, like "docs collection" in the examples below, it finds and handles the collection made from the docs folder of the project you have open.

Once the index is built, ask a question.

PROMPT
1
/local-rag Find the operating temperature range of TS-100.
Search with RAG

The skill is written to attach the collection name, file path, heading, and document modification date as sources at the end of the answer.
You can check the collections you have made so far with /local-rag Show the list.
The current setup reads only .md and .txt files, so convert Word or PDF documents to Markdown before turning them into RAG.

So that you don't have to add /local-rag every time you open the project, ask it to also put usage instructions in the project's instructions when it creates the collection.

PROMPT
1
/local-rag Apply it to this project.
Apply to a project

Copilot finds the document folder in the project, turns it into a collection, and adds an instruction to the end of AGENTS.md at the root (creating it if it doesn't exist) that says to answer document questions by searching this collection.
So that Claude Code also reads the same instruction, CLAUDE.md loads AGENTS.md.
The instruction applies from new chats, and in a repository with few documents, Copilot may still read files directly to answer.
You can commit the instruction file to the repository, but the index must be built on each PC, so team members install the kit on their own PCs and send the same request.

# Updating documents

A RAG index is a copy made by cutting the source documents into chunks and turning them into vectors, so when you change the sources, the index must also be updated to match.
The rag command is written so that an update doesn't re-embed every file but compares each file's size and modification time with the saved values and re-embeds only the changed files.

When you change one document or add a few new ones, you can ask a question right away without asking for an update.
This is because it is written to find and process changed files the same way each time you ask a question, then search, and show the number of reprocessed files above the results.
If no files changed, it doesn't rebuild the index, so search time doesn't grow much.
For example, if you changed the operating temperature in docs/spec-ts100.md, just ask right away.

PROMPT
1
/local-rag Find the operating temperature range of TS-100.
Ask after changing one document

If reprocessing is expected to take more than 20 seconds, it skips the automatic update and searches with the existing index so that the search doesn't take long.
So when you changed many documents at once or want to set the update scope, ask for the update yourself.
The scope of the update depends on the conditions in your request.

Request Handling
Specify files Re-embeds only the specified files right away, and doesn't check other files
Specify a condition Checks only files that match the condition, and re-embeds only the changed ones among them
No condition Checks all files in the collection, and re-embeds only the changed ones
Rebuild from scratch Re-embeds all files. Use it only when truly needed, such as when you changed the embedding model
PROMPT
1
/local-rag Re-index spec-ts100.md in the docs collection.
Specify files
PROMPT
1
/local-rag In the docs collection, update only the documents whose names start with laptop.
Specify a condition
PROMPT
1
/local-rag Update the docs collection.
No condition
PROMPT
1
/local-rag Rebuild the docs collection from scratch.
Rebuild from scratch

In every case, it treats your request to update as confirmation and goes ahead right away, and even if it takes long, it shows the progress until it finishes.

If a network folder, such as a company shared drive, has a huge number of files, just checking the size and modification time of every file can take time.
For such collections, turn off the automatic update when asking questions, and update them yourself with the methods above when documents change.

PROMPT
1
/local-rag Don't update the shared-docs collection automatically when I ask questions.
Turn off automatic updates

If a policy changed but the old documents remain in the folder, both the old and new values are found.
The skill is written not to pick one side and state it as fact, but to show both values and their sources.
To tell which one is newer, it first looks at the effective date or edition (for example, 2025 edition) written in the document, and uses the document modification date only when there is no such marking.
This is because copying a file changes its modification date, which can make an old document look newer.
If documents with different values appear together in the answer, remove that document from the folder or update it with the new content, and then ask again.
For example, if you removed the old policy file laptop-policy-2025.md, which was left over when the new laptop policy was made, from the folder, ask again like this.

PROMPT
1
/local-rag I removed laptop-policy-2025.md from the docs folder. Find the laptop replacement cycle again.
Ask again after removing the old document

If you moved the document folder somewhere else, just tell it the new location.
Files with the same content are not re-embedded. Only the path of the source folder changes.
If you ask a question without saying you moved it, it says it can't find the source folder and asks whether you moved it.

PROMPT
1
/local-rag I moved the docs folder to D:\Team Docs\docs.
After moving the document folder

Remove collections you no longer use.
The skill is written to show what will be removed first, get confirmation, and then remove it, leaving the source documents as they are and removing only the vector DB file.

PROMPT
1
/local-rag Remove the docs collection.
Remove a collection

The vectors are stored on your PC, but the chunks found by search are included in the Copilot chat and sent to GitHub's servers.
Don't turn documents that must not be sent to Copilot into RAG.