Skip to content

Commit e67b437

Browse files
authored
Merge pull request #29 from microsoft/copilot/skill-npx-y-version-bump-20260514
Update skill npx usage and plugin versions
2 parents 04811f8 + 0b8c3dc commit e67b437

5 files changed

Lines changed: 26 additions & 22 deletions

File tree

.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "microsoft-events",
33
"description": "Connect your project to Microsoft Build and Ignite sessions — discover relevant talks, explore what's new for your stack, and plan next steps from your development environment.",
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"author": {
66
"name": "Microsoft"
77
},

.github/plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "microsoft-events",
33
"description": "Connect your project to Microsoft Build and Ignite sessions — discover relevant talks, explore what's new for your stack, and plan next steps from your development environment.",
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"author": {
66
"name": "Microsoft",
77
"url": "https://www.microsoft.com"

AGENTS.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@ The repo publishes plugin metadata for GitHub Copilot and Claude Code. Keep shar
1111
- `.mcp.json` — Microsoft Learn MCP endpoint config
1212
- `cli\` — source for the `@microsoft/events-cli` package used by the skill
1313

14-
**GitHub Copilot**`.github\plugin\plugin.json` is the Copilot marketplace manifest and points at the repo root.
15-
16-
**Claude Code**`.claude-plugin\plugin.json` defines the Claude Code plugin package; `.claude-plugin\marketplace.json` defines Claude Code marketplace publishing metadata.
14+
**Versioned plugin manifests**:
15+
- **GitHub Copilot**`.github\plugin\plugin.json` is the Copilot marketplace manifest and points at the repo root.
16+
- **Claude Code**`.claude-plugin\plugin.json` defines the Claude Code plugin package; `.claude-plugin\marketplace.json` defines Claude Code marketplace publishing metadata.
1717

1818
## Sync rules
1919

2020
- Event support is duplicated by design between the CLI and skill docs. When adding, removing, or renaming events, update `cli\src\config.ts`, the supported/default event guidance in `skills\microsoft-build\SKILL.md`, and affected tests/docs together.
2121
- Treat `skills\microsoft-build\SKILL.md` as the product contract for event-session behavior. For Build, Ignite, or event-session work: default "Build" to `build-2026`, get session metadata from the live catalog through `msevents` or the endpoint, get SDK/API facts from Microsoft Learn MCP, and never invent session IDs, speakers, schedules, or links.
22+
- Versioning gate: any meaningful `skills\microsoft-build\SKILL.md` change (agent behavior, commands/examples agents may follow, supported/default events, CLI/MCP/catalog usage, or user-facing workflow guidance) must bump both versioned plugin manifests to the same value; patch bumps are fine for guidance-only changes.
23+
- PR review gate: GitHub Copilot/code reviewers should flag meaningful `SKILL.md` changes without synced plugin version bumps, and any plugin version drift. Typo/format-only skill edits may skip the bump only when the PR explicitly says so.
2224
- Keep README install/client guidance aligned with plugin manifest, skill, MCP, or CLI behavior changes.
2325

2426
## CLI
@@ -38,6 +40,8 @@ npm run smoke:fixture
3840

3941
`npm run smoke:live` hits the live catalog; CI only runs it outside pull requests.
4042

43+
Note: The first time `npx @microsoft/events-cli` is run, it prompts for permission and can cause CLI tool calls to hang in AI agents. In all instructions or `SKILL.md`, prefer `npx -y @microsoft/events-cli` to include the `-y` flag.
44+
4145
## CLI behavior contracts
4246

4347
- Catalog data has inconsistent shapes: fields may be strings, `{ displayValue }` objects, arrays, or empty values. Normalize through the helpers in `cli\src\data\normalize.ts`; records without `sessionCode` are intentionally skipped.

cli/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ node --version
1717
### Option A: Run instantly with `npx` (no install)
1818

1919
```bash
20-
npx @microsoft/events-cli sessions --query "Microsoft Foundry"
20+
npx -y @microsoft/events-cli sessions --query "Microsoft Foundry"
2121
```
2222

2323
### Option B: Install globally

skills/microsoft-build/SKILL.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description: >-
1010
Learn MCP Server for docs.
1111
license: Apache-2.0
1212
compatibility: >-
13-
Prefers the msevents CLI (`npx @microsoft/events-cli`) for session catalog
13+
Prefers the msevents CLI (`npx -y @microsoft/events-cli`) for session catalog
1414
access — provides local search, caching, and multi-event support. Falls back
1515
to direct HTTP fetch if the CLI is not available. For documentation, prefers
1616
the Microsoft Learn MCP Server (https://learn.microsoft.com/api/mcp); if MCP
@@ -98,28 +98,28 @@ The msevents CLI fetches, caches, indexes, and searches the session catalog loca
9898

9999
```sh
100100
# Search by keyword
101-
npx @microsoft/events-cli sessions --query "Microsoft Foundry" --event build-2026 --json
101+
npx -y @microsoft/events-cli sessions --query "Microsoft Foundry" --event build-2026 --json
102102

103103
# Search by technology (matches product, tags, topic, languages, title, description)
104-
npx @microsoft/events-cli sessions --tech "Azure Cosmos DB" --event build-2026 --json
104+
npx -y @microsoft/events-cli sessions --tech "Azure Cosmos DB" --event build-2026 --json
105105

106106
# Search by speaker
107-
npx @microsoft/events-cli sessions --speaker "Scott Hanselman" --event build-2026 --json
107+
npx -y @microsoft/events-cli sessions --speaker "Scott Hanselman" --event build-2026 --json
108108

109109
# Combine filters
110-
npx @microsoft/events-cli sessions --tech "Microsoft Foundry" --speaker "Yina Arenas" --event build-2026 --json
110+
npx -y @microsoft/events-cli sessions --tech "Microsoft Foundry" --speaker "Yina Arenas" --event build-2026 --json
111111

112112
# Look up a specific session by code
113-
npx @microsoft/events-cli session BRK155 --json
113+
npx -y @microsoft/events-cli session BRK155 --json
114114

115115
# Refresh the cache
116-
npx @microsoft/events-cli refresh --event build-2026
116+
npx -y @microsoft/events-cli refresh --event build-2026
117117

118118
# Check cache status
119-
npx @microsoft/events-cli status
119+
npx -y @microsoft/events-cli status
120120
```
121121

122-
The CLI caches session data locally. On first use it fetches automatically — no explicit refresh needed. Use `--json` for structured output the agent can parse directly.
122+
The CLI caches session data locally. On first use it fetches automatically — no explicit refresh needed. Use `npx -y` so agents do not get stuck on npm's first-run install prompt. Use `--json` for structured output the agent can parse directly.
123123

124124
#### CLI reference
125125

@@ -211,7 +211,7 @@ The user wants to know what recent Microsoft updates are relevant to their proje
211211
3. If a recent event is active or recent, fetch the Book of News to discover announcements relevant to the inventory. This surfaces product launches, GA announcements, and preview features that may not yet appear in Learn what's-new pages or session titles.
212212
4. Query Learn MCP Server for recent what's-new pages, SDK updates, and migration guides for each identified dependency. Include any announcements discovered via the Book of News.
213213
5. Search for relevant sessions:
214-
- **With CLI**: Run `npx @microsoft/events-cli sessions --tech "[product]" --event build-2026 --json` for each major technology in the inventory
214+
- **With CLI**: Run `npx -y @microsoft/events-cli sessions --tech "[product]" --event build-2026 --json` for each major technology in the inventory
215215
- **Without CLI**: Fetch the catalog once and match against `product`, `topic`, `tags`, and `programmingLanguages` fields
216216
6. Present results:
217217
- Announcements: what was launched or updated, with links to docs and blog posts
@@ -248,7 +248,7 @@ The user wants a personalized event schedule based on their projects or interest
248248
1. If the user has a project open, scan tech stack (same as above)
249249
2. If no project is open, interview briefly (2-3 questions max): what they do, what technologies they use or want to learn, what they want from Build (solve a problem, learn something new, hands-on practice)
250250
3. Search for sessions:
251-
- **With CLI**: `npx @microsoft/events-cli sessions --tech "[product]" --event build-2026 --json` per technology, then `--query` for broader interest areas
251+
- **With CLI**: `npx -y @microsoft/events-cli sessions --tech "[product]" --event build-2026 --json` per technology, then `--query` for broader interest areas
252252
- **Without CLI**: Fetch the catalog and match manually
253253
4. Match sessions to the user's stack using product, topic, tags, languages, and description
254254
5. Present 3-5 sessions grouped by relevance tier:
@@ -284,7 +284,7 @@ The user saw a session and wants to start building with what was demonstrated.
284284

285285
1. **Ask where to create the project first** — don't assume. New directory, current directory, or a specific path.
286286
2. Look up the session:
287-
- **With CLI**: `npx @microsoft/events-cli session [ID] --event build-2026 --json`
287+
- **With CLI**: `npx -y @microsoft/events-cli session [ID] --event build-2026 --json`
288288
- **Without CLI**: Fetch the catalog and find by code or title
289289
3. Extract the technologies and products covered from the session metadata
290290
4. Check prerequisites: based on the session's tech stack, list what the user needs (Azure subscription, SDKs, runtimes, API keys). Ask if they have them before proceeding.
@@ -314,7 +314,7 @@ Open in VS Code? (y/n)
314314
The user wants to understand a specific session.
315315

316316
1. Look up the session:
317-
- **With CLI**: `npx @microsoft/events-cli session [ID] --event build-2026 --json`
317+
- **With CLI**: `npx -y @microsoft/events-cli session [ID] --event build-2026 --json`
318318
- **Without CLI**: Fetch the catalog and find by code or title
319319
2. Present: title, speakers, abstract, session type, level, time slot, location, related sessions
320320
3. If the session covers specific products or technologies, search Learn MCP for current docs on those topics
@@ -348,7 +348,7 @@ Learn how to design your database layer for AI-native applications and agents...
348348
The user just attended or watched a session and wants next steps.
349349

350350
1. Look up the session:
351-
- **With CLI**: `npx @microsoft/events-cli session [ID] --event build-2026 --json`
351+
- **With CLI**: `npx -y @microsoft/events-cli session [ID] --event build-2026 --json`
352352
- **Without CLI**: Fetch the catalog and find by code or title
353353
2. Check the `relatedSessionCodes` field first — use those if populated
354354
3. Build a response with up to three sections:
@@ -442,7 +442,7 @@ When the agent finds relevant documentation updates for the developer's stack, c
442442

443443
1. Take the product names and topics from the documentation results
444444
2. Search for matching sessions:
445-
- **With CLI**: `npx @microsoft/events-cli sessions --tech "[product]" --event build-2026 --json`
445+
- **With CLI**: `npx -y @microsoft/events-cli sessions --tech "[product]" --event build-2026 --json`
446446
- **Without CLI**: Match against catalog fields `product`, `topic`, `tags`, `solutionArea`
447447
3. Use announcement content as a bridge — if a what's-new page mentions a feature, search sessions covering that product area
448448
4. Present sessions alongside the documentation updates, not as a separate list
@@ -503,7 +503,7 @@ A good response from this skill:
503503
|----------|-----|
504504
| Microsoft Build | `https://build.microsoft.com/` |
505505
| Microsoft Ignite | `https://ignite.microsoft.com/` |
506-
| msevents CLI | `npx @microsoft/events-cli` |
506+
| msevents CLI | `npx -y @microsoft/events-cli` |
507507
| CLI source | `../../cli/` |
508508
| Build 2026 session catalog | `https://aka.ms/build2026-session-info` |
509509
| Build 2025 session catalog | `https://aka.ms/build2025-session-info` |

0 commit comments

Comments
 (0)