Przejdź do treści
Biblioteka skilli
Programowanie · Automatyzacja

upgrade-devproxy-sample

/upgrade-devproxy-sample

Aktualizuje istniejące przykłady Dev Proxy do nowej wersji, wraz ze zaktualizowanymi schematami i dokumentacją.

Autor
pnp ↗
Repozytorium
proxy-samples ↗
Licencja
MIT
Ostatnia zmiana repozytorium
03.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
5
Przestarzałość

Brak sygnałów. Repozytorium zmienione 03.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Aktualizuje istniejące przykłady Dev Proxy do nowej wersji, wraz ze zaktualizowanymi schematami i dokumentacją.

Wyzwalacze z opisu

upgrade a sampleupdate to new Dev Proxy versionbump the versionupdate schemas
Oryginalny opis (EN)

This skill should be used when the user asks to "upgrade a sample", "update to new Dev Proxy version", "bump the version", "update schemas", or needs to upgrade existing Dev Proxy samples to a new version with updated schemas and documentation.

Jak działa

  1. Before Starting
  2. Files to Update
  3. Step 1: Update Configuration Files
  4. Step 2: Update Metadata (assets/sample.json)
  5. Step 3: Update README.md
  6. Step 4: Validate Changes
  7. Batch Upgrade Multiple Samples
  8. Checklist
  9. Quick Reference
Sekcje z nagłówków SKILL.md, w oryginale · 177 linii, 567 słów
Podgląd SKILL.md
---
name: upgrade-devproxy-sample
description: This skill should be used when the user asks to "upgrade a sample", "update to new Dev Proxy version", "bump the version", "update schemas", or needs to upgrade existing Dev Proxy samples to a new version with updated schemas and documentation.
---

# Upgrade Dev Proxy Sample

This skill guides upgrading existing Dev Proxy samples to a new version, ensuring all schemas, metadata, and documentation are properly updated.

## Before Starting

Use Dev Proxy MCP tools to:
- Get the current/target schema version
- Check for any breaking changes in schemas
- Understand new requirements

## Files to Update

Every upgrade must update these locations:

1. **All config JSON files** - Schema URLs
2. **assets/sample.json** - `PROXY VERSION` and `updateDateTime`
3. **README.md** - Badge and version history table

## Step 1: Update Configuration Files

### Find All Config Files

Dev Proxy config files are in `.devproxy/` folder:
```bash
grep -r "dev-proxy/main/schemas" samples/{sample-name}/.devproxy/ --include="*.json"
```

### Update Schema URLs

Change version in `$schema` URLs:

**Before:**
```json
{
  "$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/rc.schema.json"
}
```

**After:**
```json
{
  "$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v2.0.0/rc.schema.json"
}
```

### Schema Types to Update

Different files use different schemas:
- `devproxyrc.json` → `rc.schema.json`
- Mock response files → `mockresponseplugin.mocksfile.schema.json`
- Error files → `genericrandomerrorplugin.errorsfile.schema.json`
- Plugin configs → `{pluginname}.schema.json`

**Important**: Match schema type to file purpose:
- `.schema.json` = plugin configuration (has `mocksFile`, `errorsFile` properties)
- `.mocksfile.schema.json` = actual mock data (has `mocks` array)
- `.errorsfile.schema.json` = actual error data (has `errors` array)

### Don't Forget Plugin Config Sections

Dev Proxy configs often have **embedded plugin config sections** with their own `$schema`:

```json
{
  "$schema": ".../rc.schema.json",
  "plugins": [...],
  "languageModelFailurePlugin": {
    "$schema": ".../languagemodelfailureplugin.schema.json",  // ← Update this too!
    "failures": [...]
  }
}
```

Update ALL `$schema` URLs in the file, not just the top-level one.

## Step 2: Update Metadata (assets/sample.json)

Update two fields:

```json
{
  "metadata": [
    { "key": "PROXY VERSION", "value": "v2.0.0" }
  ],
  "updateDateTime": "2026-01-18"
}
```

**Rules:**
- Date format: `YYYY-MM-DD` (not ISO timestamp)
- Preserve all other formatting (use sed for surgical changes)
- For pre-release samples (not yet merged), also update `creationDateTime`

## Step 3: Update README.md

### Update Compatibility Badge

**Before:**
```markdown
![Dev Proxy v1.0.0](https://aka.ms/devproxy/badge/v1.0.0)
```

**After:**
```markdown
![Dev Proxy v2.0.0](https://aka.ms/devproxy/badge/v2.0.0)
```

### Update Version History Table

**For samples already in main** (add new version):
```markdown
Version|Date|Comments
-------|----|--------
1.1|January 18, 2026|Updated to Dev Proxy v2.0.0
1.0|December 15, 2025|Initial release
```

**For pre-release samples** (update v1.0 date):
```markdown
Version|Date|Comments
-------|----|--------
1.0|January 18, 2026|Initial release
```

## Step 4: Validate Changes

Use the **validate-devproxy-sample** skill to verify:
- All `$schema` URLs are valid
- Plugin config sections have schemas
- No schema validation errors
- Dates are consistent

## Batch Upgrade Multiple Samples

To upgrade all samples to a new version:

```bash
# Find all files with old schema version (in .devproxy folders)
grep -rl "schemas/v1.0.0" samples/*/.devproxy/ --include="*.json"

# Update schemas (example with sed)
find samples/*/.devproxy -name "*.json" -exec grep -l "schemas/v1.0.0" {} \; | \
  xargs sed -i '' 's|schemas/v1.0.0|schemas/v2.0.0|g'
```

Then manually update each sample's:
- `assets/sample.json` dates and version
- `README.md` badge and version history

## Checklist

For each sample being upgraded:

- [ ] All `$schema` URLs updated (including plugin config sections)
- [ ] `PROXY VERSION` updated in `assets/sample.json`
- [ ] `updateDateTime` updated (YYYY-MM-DD format)
- [ ] README badge updated
- [ ] Version history entry added/updated
- [ ] Run **validate-devproxy-sample** skill to verify

## Quick Reference

### Schema URL Pattern
```
https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/{version}/{schema-file}
```

### Common Schema Files
| File Type | Schema |
|-----------|--------|
| Main config | `rc.schema.json` |
| Mock responses | `mockresponseplugin.mocksfile.schema.json` |
| Random errors | `genericrandomerrorplugin.errorsfile.schema.json` |
| Rate limiting | `ratelimitingplugin.schema.json` |

Wersje

W bazie nie ma innych skilli o nazwie upgrade-devproxy-sample.

Migawka bazy z 13.11.2026 · wersja paczki c75aa949d31a (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100create-devproxy-sample
    Tworzy nowy przykład Dev Proxy z poprawną strukturą, plikami konfiguracji, metadanymi i README.
  • 100validate-devproxy-sample
    Waliduje przykład Dev Proxy pod kątem poprawności i struktury przed zgłoszeniem.
  • 100dependency-upgrade
    Aktualizuje zależność, framework lub środowisko do nowej wersji, zwłaszcza głównej, z obsługą zmian łamiących kompatybilność oraz przestarzałych funkcji.
  • 95vendor-update
    Aktualizuje zależności Go i Node.js w repozytorium i synchronizuje wersje narzędzi z plikiem wersji.
  • 100sample-review
    Ocenia istniejące przykłady kodu pod kątem poprawności, możliwości uruchomienia i wygody dla programisty, który z nich korzysta.
  • 100dependency-upgrade
    Aktualizuje bibliotekę Pythona lub JS: znajduje ostatnią bezpieczną wersję, czyta changelog, ocenia wpływ na podstawie użycia w repozytorium, wykonuje upgrade i tworzy PR z oceną.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.