К основному содержанию
скилл CX Codex

svelte-mcp-feedback — скилл для Claude Code: установка

Скилл svelte-mcp-feedback для Claude Code замечает исправленные ошибки Svelte и SvelteKit и готовит данные для autofixer. Срабатывает после правки, а не при первичной реализации.

MIT 102 установок ★ 344 обновлён 2026-10-23

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add sveltejs/ai-tools --skill svelte-mcp-feedback -a claude-code
Открыть на GitHub

Что делает svelte-mcp-feedback

Скилл svelte-mcp-feedback превращает исправленную агентом ошибку Svelte или SvelteKit в отчёт для MCP autofixer. Он применяет правку, выделяет правило, сокращает пример до минимального воспроизведения и описывает ожидаемое исправление.

Если MCP доступен, скилл проверяет документацию и запускает svelte-autofixer на ошибочном примере, когда тип файла поддерживается. Для нового отчёта он ищет похожие issues в sveltejs/ai-tools, а затем создаёт issue через GitHub CLI с --repo sveltejs/ai-tools. Если gh недоступен или не авторизован, используется URL-форма GitHub. Личные предпочтения и несвязанные баги не запускают этот сценарий.

Какие задачи решает

  • выделить повторяемую ошибку Svelte из исправления пользователя
  • свести исправленный код к минимальному воспроизведению
  • проверить, пропустил ли проблему svelte-autofixer
  • найти дубликат issue в sveltejs/ai-tools
  • создать отчёт для Svelte MCP

Примеры запросов агенту

  • Я исправил ошибку в .svelte-компоненте. Найди обобщаемый случай и подготовь issue для autofixer.
  • После этой правки в +page.ts проверь, есть ли пробел в диагностике Svelte MCP.
  • Сократи ошибку в hooks.server.ts, проверь её через svelte-autofixer и создай отчёт без дубликата.

Как установить svelte-mcp-feedback

1Через Skills CLI (Vercel)

npx skills add sveltejs/ai-tools --skill svelte-mcp-feedback -a claude-code

2Вручную: положить файлы

~/.claude/skills/svelte-mcp-feedback/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/svelte-mcp-feedback/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о svelte-mcp-feedback

Как установить svelte-mcp-feedback в Claude Code?

Выполните npx skills add sveltejs/ai-tools --skill svelte-mcp-feedback -a claude-code. Файл скилла появится в ~/.claude/skills/svelte-mcp-feedback/SKILL.md.

Что делает svelte-mcp-feedback?

Он запускается после исправления ошибки Svelte или SvelteKit, формирует минимальное воспроизведение, проверяет поведение autofixer и помогает открыть issue в sveltejs/ai-tools.

Что нужно для работы svelte-mcp-feedback?

Для проверки нужен доступный svelte-autofixer, если он поддерживает тип файла. Для создания issue нужен установленный и авторизованный GitHub CLI gh; при сбое используется браузерная форма GitHub.

Исходный текст

SKILL.md · MIT
---
name: svelte-mcp-feedback
description: Report Svelte MCP autofixer opportunities when the user corrects a Svelte or SvelteKit mistake the agent made. Use after corrections to .svelte components, .svelte.ts/.svelte.js modules, or SvelteKit features where a reusable check or fix could prevent the mistake. Do not trigger for initial implementation requests, unrelated bugs, or personal style preferences.
---

# Svelte MCP feedback

Turn a user-corrected mistake into actionable feedback for the Svelte MCP autofixer in `sveltejs/ai-tools`.

## 1. Identify the autofixer opportunity

Use the conversation and the code you just worked on to identify:

- The incorrect code you produced and the user's correction.
- The Svelte or SvelteKit rule that explains the correction.
- A reusable code pattern the MCP could detect, and the fix or suggestion it could provide.

Include SvelteKit JavaScript/TypeScript files such as `+page.ts`, `+layout.server.ts`, `+server.ts`, `hooks.server.ts`, and `svelte.config.js`; feedback is not limited to `.svelte` files.

Only proceed if there is a concrete, generalizable Svelte/SvelteKit mistake. A changed product requirement, a personal naming preference, or an unrelated application bug does not justify an autofixer issue. If the correction is ambiguous, clarify it while continuing the user's task.

Apply the user's correction and complete the requested work. Reporting feedback should not leave the original mistake unfixed.

## 2. Capture a minimal reproduction

Reduce the before/after code to the smallest example that preserves the mistake. Use generic names and sample data instead of copying unrelated project code, credentials, or conversation history.

If the Svelte MCP is available, check its relevant documentation and run `svelte-autofixer` on the incorrect example when it supports that file type. Record whether it missed the issue, suggested an incorrect fix, or already reported the issue and you overlooked it. Do not claim the tool missed something without checking its output. If the tool is unavailable or does not support the file type, say so; a proposed new rule can still be useful.

If an existing diagnostic already clearly covers the correction, follow it instead of opening a new-rule request. Report only a concrete gap, such as an unclear diagnostic, a wrong suggested fix, or a missed case.

Prepare a title like `Autofixer: detect <incorrect pattern>` and a Markdown body with:

1. **Summary** — the mistake and why it matters.
2. **Incorrect code** — a fenced minimal example with the relevant filename/file type.
3. **User correction / expected code** — the corrected example and a brief explanation.
4. **Proposed detection and fix** — the recognizable pattern, suggested transformation or guidance, and cases where a fix would be ambiguous.
5. **Current MCP behavior** — the actual relevant output, or explicitly "not checked" with the reason.
6. **Environment** — Svelte, SvelteKit, MCP, and model versions when known; do not invent missing versions.

The report is ready when a maintainer can understand the pattern and expected outcome without access to the original project.

## 3. Open the issue

Use GitHub CLI when it is installed and authenticated. Check with `gh --version` and `gh auth status`. Always specify `--repo sveltejs/ai-tools` so the issue does not go to the user's project repository.

Search for an existing report of the same pattern:

```sh
gh issue list --repo sveltejs/ai-tools --state all --search '<pattern keywords>' --limit 20
```

Read likely matches with `gh issue view <number> --repo sveltejs/ai-tools`. If an issue already describes the same reproduction and expected fix, share its link instead of filing a duplicate. If a closed issue was supposedly fixed but your example still fails, describe that regression and link the old issue in the new report.

Write the issue body to a temporary Markdown file using a file-writing tool or a quoted heredoc. Pass the title as a safely quoted argument and use `--body-file` so code snippets and backticks are not interpreted by the shell:

```sh
gh issue create --repo sveltejs/ai-tools --title 'Autofixer: detect <incorrect pattern>' --body-file '<temporary-body-file>'
```

Capture and share the returned issue URL. Do not guess labels or assignees. If creation fails, report the failure and use the browser fallback. If the result is uncertain (for example, a network timeout after submission), check for the issue before retrying.

### Browser fallback

If `gh` is unavailable, unauthenticated, or unable to create the issue, build a URL for:

```text
https://github.com/sveltejs/ai-tools/issues/new?title=<encoded-title>&body=<encoded-body>
```

Encode each query value with `encodeURIComponent`, `URLSearchParams`, or an equivalent URL encoder; do not interpolate raw Markdown into the URL. Open it using an available browser tool or the platform URL opener (`open` on macOS, `xdg-open` on Linux, or `Start-Process` in PowerShell). This opens the new-issue form with the draft filled in for the user to submit.

If the full report makes the URL too long, prefill the title and a short summary, and provide the full Markdown body for the user to paste. If no browser can be opened, provide the clickable prefilled URL and the body in the response.

Distinguish the outcome: either give the URL of the created/existing issue, or say that the draft form is ready and the user still needs to submit it. Then return to the user's original task.

© sveltejs · MIT · sveltejs/ai-tools

Похожие скиллы

Все скиллы по теме «Фронтенд и UI» →
svelte Mindrally Инструкция для ИИ-агентов по разработке на Svelte 5 и SvelteKit с рунами, сниппетами, SSR и правилами миграции со Svelte 4. CX Codex +1 806установок svelte-optimize davila7 Команда svelte-optimize превращает Claude Code в ассистента по оптимизации проектов на Svelte и SvelteKit. Она помогает сократить размер бандла и устранить задержки при рендеринге. CX Codex +1 149установок svelte-storybook-migrate davila7 Команда svelte-storybook-migrate обновляет Storybook в проектах на Svelte: переводит сборку на фреймворк @storybook/sveltekit и адаптирует истории под синтаксис Svelte CSF v5 со сниппетами. CX Codex +1 118установок svelte-stinger Legion Code Inc. Скилл svelte-stinger для Claude Code помогает писать на Svelte 5 и SvelteKit 2, выбирать $derived вместо $effect и переходить с Svelte 4. CX Codex +1 ★ 96звёзд репо svelte-wasp-drone Legion Code Inc. Субагент svelte-wasp-drone специализируется на синтаксисе Svelte 5 и среде SvelteKit 2. Помогает переписать код со Svelte 4, настроить руны и разобрать серверные функции загрузки. CX Codex ★ 96звёзд репо svelte-llm-mcp khromov MCP-сервер svelte-llm-mcp отдаёт ассистенту документацию Svelte 5 и SvelteKit по запросу: два инструмента поверх удалённого HTTP-эндпоинта. CX Codex +1 910установок

Из того же набора4

Спонсоры проекта

Компании, которые помогают держать аналитику открытой