code-example-validation
Validate documentation code examples by executing them against the documented version, checking dependencies, setup, security, output, cleanup, platform…
от Dadmin88★ 52 звезды на GitHub
Установить code-example-validation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Code Example Validation
Use when documentation includes code or commands readers are expected to copy, adapt, or trust.
Procedure
- Identify the language, runtime, dependency versions, product or API version, environment, and prerequisites the example claims to support.
- Start from a clean or representative workspace and follow setup exactly as a reader would.
- Run the example without undocumented files, environment variables, credentials, global packages, or local services.
- Verify output, side effects, error handling, cleanup, and whether the example demonstrates the behavior the surrounding prose claims.
- Check imports, types, deprecated APIs, configuration, permissions, platform-specific syntax, and dependency pinning or installation instructions.
- Replace real secrets, personal data, destructive commands, and unsafe defaults with explicit placeholders or safe examples.
- Test important variants or failures only where the documentation promises they work; keep the primary example minimal.
- Record the validated environment and update or remove examples that cannot be maintained reliably.
Decision rules
- Copyable code should actually run.
- Hidden author setup is a documentation defect.
- Examples should teach the supported interface, not a deprecated shortcut.
- Safe placeholders must be obviously non-secret and explained where replacement is required.
Quality gate
The example is validated when a reader can reproduce it from documented prerequisites on a supported environment, the observed result matches the text, current APIs and dependencies are used, security or cleanup surprises are absent, and hidden local assumptions have been eliminated.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл code-example-validation?
Validate documentation code examples by executing them against the documented version, checking dependencies, setup, security, output, cleanup, platform assumptions, and consistency with current APIs.
Как установить скилл code-example-validation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл code-example-validation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…