validate-devproxy-sample
БесплатноБез исполняемых скриптовНе проверенThis skill should be used when the user asks to "validate a sample", "check my sample", "review before submitting", "verify sample structure", or needs to…
Об этом скилле
Validate Dev Proxy Sample
This skill guides validation of Dev Proxy samples to catch common mistakes before submission. Run through these checks to ensure the sample meets repository standards.
⚠️ MANDATORY: You MUST run
jsonckto validate all JSON files against their schemas. Do NOT skip this step or rely on VS Code's JSON validation alone — it misses errors that Dev Proxy will catch at runtime. Install jsonck first:npm install -g jsonck
Quick Validation Command
jsonck reads the $schema property from JSON files automatically, downloads remote schemas, and validates in one step — no temp files or manual schema wrangling needed.
# Validate all standalone config files at once
sample="samples/{sample-name}"
jsonck "$sample"/.devproxy/*.json
For structured output (useful in CI or scripts), add --json:
jsonck "$sample"/.devproxy/*.json --json
Note: Install jsonck first with npm install -g jsonck. Requires Node.js >= 20.
Validating Plugin Config Sections
Dev Proxy configs have embedded plugin config sections with their own $schema. Extract each section with jq and pipe to jsonck — it picks up the $schema from the piped JSON automatically:
sample="samples/{sample-name}"
f="$sample/.devproxy/devproxyrc.json"
# Find all config sections that have a $schema and validate each
jq -r '[keys[] as $k | select((.[$k] | type) == "object" and (.[$k]["$schema"] // null) != null) | $k] | .[]' "$f" | while read -r section; do
echo "Validating $section..."
jq ".\"$section\"" "$f" | jsonck - || echo "❌ FAILED: $section"
done
Validation Checklist
1. Directory Structure
Verify required files exist:
samples/{sample-name}/
├── .devproxy/
│ ├── devproxyrc.json ✓
│ └── [mocks.json, errors.json, etc.] (if needed)
├── README.md ✓
└── assets/
└── sample.json ✓
Important: All Dev Proxy config files go in .devproxy/ folder.
2. Schema Validation
Check: Every Dev Proxy config file has a $schema defined.
Required schemas:
- Main config file (
devproxyrc.json) must have$schema - Each plugin config section must have its own
$schema - Standalone data files (mocks, errors) must have
$schema
Exception: CRUD API data files don't require schemas.
Example of proper schema coverage:
{
"$schema": ".../rc.schema.json", // ✓ Main config schema
"plugins": [...],
"mockResponsePlugin": {
"$schema": ".../mockresponseplugin.schema.json", // ✓ Plugin config schema
"mocksFile": "mocks.json"
}
}
Check: All $schema URLs validate against their schemas. Run jsonck on all files and plugin config sections.
Common issues:
- Missing
$schemaon main config file - Missing
$schemaon plugin config sections - Wrong schema version (use MCP to get current)
- Wrong schema type:
mockresponseplugin.schema.json= plugin config (needsmocksFile)mockresponseplugin.mocksfile.schema.json= mock data (needsmocksarray)
body: nullnot allowed (usebody: "")- Missing required fields
3. Metadata Validation (assets/sample.json)
| Field | Check |
|---|---|
name |
Matches pnp-devproxy-{folder-name} |
source |
Is "pnp" |
url |
Matches https://github.com/pnp/proxy-samples/tree/main/samples/{folder-name} |
downloadUrl |
Matches https://pnp.github.io/download-partial/?url=... |
shortDescription |
Non-empty, describes the sample |
longDescription[0] |
Identical to shortDescription |
creationDateTime |
Format YYYY-MM-DD |
updateDateTime |
Format YYYY-MM-DD |
products |
Contains ["Dev Proxy"] |
SAMPLE ID |
Matches folder name |
PROXY VERSION |
Matches README badge version |
thumbnails[0].url |
Points to existing screenshot or has placeholder |
authors |
Has at least one author with gitHubAccount, name |
4. PRESET Metadata
Check: Is PRESET value correct?
"Yes"= Sample is reusable for other APIs (generic config)"No"= Sample is specific to a particular API or scenario
Common mistake: Setting PRESET to "Yes" just because it has a config file. Most samples should be "No".
5. README Validation
| Element | Check |
|---|---|
| Title | Descriptive, not technical |
| Summary | Explains what and why |
| Screenshot | Exists or has placeholder |
| Badge URL | Must use https://aka.ms/devproxy/badge/vX.X.X (not shields.io) |
| Badge version | Matches PROXY VERSION in sample.json |
| Contributors | GitHub profile links |
| Version history | Date matches updateDateTime in sample.json |
| Minimal path | Steps are complete and correct |
| Startup command | Correct (see below) |
| curl commands | Include -ikx http://127.0.0.1:8000 |
| Tracking pixel |  |
6. Startup Command Va
Установить validate-devproxy-sample в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл validate-devproxy-sample?
This skill should be used when the user asks to "validate a sample", "check my sample", "review before submitting", "verify sample structure", or needs to validate a Dev Proxy sample for correctness before submission.
Как установить скилл validate-devproxy-sample?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл validate-devproxy-sample запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic