Skip to content

Commit 4231aab

Browse files
authored
Merge branch 'main' into feature/accessibility-expert-chat-mode
2 parents b0fae56 + 41566f3 commit 4231aab

File tree

62 files changed

+6182
-1480
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+6182
-1480
lines changed

.github/pull_request_template.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
- [ ] The file follows the required naming convention.
66
- [ ] The content is clearly structured and follows the example format.
77
- [ ] I have tested my instructions, prompt, or chat mode with GitHub Copilot.
8-
- [ ] I have run `node update-readme.js` and verified that `README.md` is up to date.
8+
- [ ] I have run `npm start` and verified that `README.md` is up to date.
99

1010
---
1111

@@ -20,6 +20,8 @@
2020
- [ ] New instruction file.
2121
- [ ] New prompt file.
2222
- [ ] New chat mode file.
23+
- [ ] New collection file.
24+
- [ ] Update to existing instruction, prompt, chat mode, or collection.
2325
- [ ] Other (please specify):
2426

2527
---

.github/workflows/contributors.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ jobs:
3131
PRIVATE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3232

3333
- name: Regenerate README
34-
run: node update-readme.js
34+
run: |
35+
npm install
36+
npm start
3537
3638
- name: Check for changes
3739
id: verify-changed-files

.github/workflows/validate-readme.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,14 @@ jobs:
2727
with:
2828
node-version: "20"
2929

30+
- name: Install dependencies
31+
run: npm install
32+
3033
- name: Validate collections
31-
run: node validate-collections.js
34+
run: npm run validate:collections
3235

3336
- name: Update README.md
34-
run: node update-readme.js
37+
run: npm start
3538

3639
- name: Check for file changes
3740
id: check-diff
@@ -64,9 +67,9 @@ jobs:
6467
message: |
6568
## ⚠️ Generated files need to be updated
6669
67-
The `update-readme.js` script detected changes that need to be made.
70+
The update script detected changes that need to be made.
6871
69-
Please run `node update-readme.js` locally and commit the changes before merging this PR.
72+
Please run `npm start` locally and commit the changes before merging this PR.
7073
7174
<details>
7275
<summary>View diff</summary>
@@ -79,5 +82,5 @@ jobs:
7982
- name: Fail workflow if files need updating
8083
if: steps.check-diff.outputs.status == 'failure'
8184
run: |
82-
echo "❌ Generated files need to be updated. Please run 'node update-readme.js' locally and commit the changes."
85+
echo "❌ Generated files need to be updated. Please run `npm start` locally and commit the changes."
8386
exit 1

.schemas/collection.schema.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@
5050
"path": {
5151
"type": "string",
5252
"description": "Relative path from repository root to the item file",
53-
"pattern": "^(prompts|instructions|chatmodes)\/[^\/]+\\.(prompt|instructions|chatmode)\\.md$",
53+
"pattern": "^(prompts|instructions|chatmodes|agents)/[^/]+\\.(prompt|instructions|chatmode|agent)\\.md$",
5454
"minLength": 1
5555
},
5656
"kind": {
5757
"type": "string",
5858
"description": "Type of the item",
59-
"enum": ["prompt", "instruction", "chat-mode"]
59+
"enum": ["prompt", "instruction", "chat-mode", "agent"]
6060
},
6161
"usage": {
6262
"type": "string",
@@ -81,6 +81,11 @@
8181
"type": "boolean",
8282
"description": "Whether to show collection badge on items",
8383
"default": false
84+
},
85+
"featured": {
86+
"type": "boolean",
87+
"description": "Whether this collection is featured on the main page",
88+
"default": false
8489
}
8590
}
8691
}

.vscode/settings.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
11
{
2-
"chat.modeFilesLocations": {
3-
"chatmodes": true
4-
},
5-
"chat.promptFilesLocations": {
6-
"prompts": true
7-
},
8-
"chat.instructionsFilesLocations": {
9-
"instructions": true
10-
},
112
"files.eol": "\n",
123
"files.insertFinalNewline": true,
134
"files.trimTrailingWhitespace": true,
@@ -22,5 +13,8 @@
2213
"*.chatmode.md": "markdown",
2314
"*.instructions.md": "markdown",
2415
"*.prompt.md": "markdown"
16+
},
17+
"yaml.schemas": {
18+
"./.schemas/collection.schema.json": "*.collection.yml"
2519
}
2620
}

.vscode/tasks.json

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,50 @@
11
{
22
"version": "2.0.0",
33
"tasks": [
4+
{
5+
"label": "npm install",
6+
"type": "shell",
7+
"command": "npm ci",
8+
"problemMatcher": [],
9+
"group": "build",
10+
"detail": "Installs all npm dependencies."
11+
},
412
{
513
"label": "generate-readme",
614
"type": "shell",
7-
"command": "node ${workspaceFolder}/update-readme.js",
15+
"command": "node ${workspaceFolder}/eng/update-readme.js",
816
"problemMatcher": [],
917
"group": {
1018
"kind": "build",
1119
"isDefault": true
1220
},
13-
"detail": "Generates the README.md file using update-readme.js script."
21+
"detail": "Generates the README.md file using update-readme.js script.",
22+
"dependsOn": "npm install"
1423
},
1524
{
1625
"label": "validate-collections",
1726
"type": "shell",
18-
"command": "node ${workspaceFolder}/validate-collections.js",
27+
"command": "node ${workspaceFolder}/eng/validate-collections.js",
1928
"problemMatcher": [],
2029
"group": "build",
21-
"detail": "Validates all collection manifest files."
30+
"detail": "Validates all collection manifest files.",
31+
"dependsOn": "npm install"
2232
},
2333
{
2434
"label": "create-collection",
2535
"type": "shell",
2636
"command": "node",
2737
"args": [
28-
"${workspaceFolder}/create-collection.js",
38+
"${workspaceFolder}/eng/create-collection.js",
2939
"--id",
3040
"${input:collectionId}",
3141
"--tags",
3242
"${input:tags}"
3343
],
3444
"problemMatcher": [],
3545
"group": "build",
36-
"detail": "Creates a new collection manifest template."
46+
"detail": "Creates a new collection manifest template.",
47+
"dependsOn": "npm install"
3748
}
3849
],
3950
"inputs": [

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ For full example of usage checkout edge-ai tasks collection:
183183
1. **Fork this repository**
184184
2. **Create a new branch** for your contribution
185185
3. **Add your instruction, prompt file, chatmode, or collection** following the guidelines above
186-
4. **Run the update script** (optional): `node update-readme.js` to update the README with your new file
186+
4. **Run the update script**: `npm start` to update the README with your new file (make sure you run `npm install` first if you haven't already)
187187
- A GitHub Actions workflow will verify that this step was performed correctly
188188
- If the README.md would be modified by running the script, the PR check will fail with a comment showing the required changes
189189
5. **Submit a pull request** with:

0 commit comments

Comments
 (0)