create-extension
БесплатноЗапускает вложенные скриптыНе проверенCreate AiderDesk extensions by setting up extension files, defining metadata, implementing Extension interface methods, and updating documentation. Use when…
от magiksoft★ 1 486 звёзд на GitHubОб этом скилле
Extension Creator
Create AiderDesk extensions that extend functionality through events, commands, tools, agents, and modes.
When to Use
Use this skill when:
- Building a new AiderDesk extension
- Creating extension commands, tools, or event handlers
- Implementing the Extension interface
- Setting up extension metadata and documentation
Do not use when:
- Simply activating an existing extension
- Making general code changes unrelated to extensions
- Running tests or builds
Rules
Rule: Choose installation target first
When: Starting extension creation
Then: Ask the user where to install the extension
If: Working inside the AiderDesk project (the current project is the aider-desk repository)
Then: Offer three options:
- Current Project — Install to
.aider-desk/extensions/in the current project (project-scoped) - Global — Install to
~/.aider-desk/extensions/(available in all projects) - In-Repo — Create inside
packages/extensions/extensions/(ships with AiderDesk app)
If: Working outside the AiderDesk project
Then: Offer two options:
- Current Project — Install to
.aider-desk/extensions/in the current project (project-scoped) - Global — Install to
~/.aider-desk/extensions/(available in all projects)
Must: Wait for user's choice before proceeding. The chosen target determines the entire workflow.
Reference: references/install-targets.md for full details on each target.
Rule: Follow the correct flow for the chosen target
When: User has chosen an installation target
If: Target is Current Project or Global
Then: Follow the Project / Global Flow:
- Determine extension type (single-file or folder)
- Create extension file(s) in the target directory (
.aider-desk/extensions/or~/.aider-desk/extensions/) - Implement Extension interface methods
- Export metadata and default class
- Verify the extension loads (auto-discovered, no registry needed)
If: Target is In-Repo
Then: Follow the In-Repo Flow:
- Determine extension type (single-file or folder)
- Create extension file(s) in
packages/extensions/extensions/ - Implement Extension interface methods
- Export metadata and default class
- Register in
packages/extensions/extensions.json - Document in
docs-site/docs/extensions/extensions-gallery.md - Install npm dependencies if folder extension
- Verify with type checking
Rule: Determine extension type
When: Creating extension files (after target is chosen)
Then: Check if extension needs npm dependencies or multiple files
If: Extension needs dependencies or multiple files
Then: Create folder extension
If: Extension is simple with no dependencies
Then: Create single-file extension
Rule: Implement Extension interface
When: Creating extension file
Then: Implement required methods from Extension interface
Must: Define static metadata property on the class with name, version, description, author, capabilities
Must: Export class as default (e.g., export default class MyExtension implements Extension)
Never: Use @/ imports in extension files
Rule: Integrate custom providers with the host contract
When: Registering an LLM provider, especially one wrapping an external coding-agent SDK/server
Then: Read external-agent-providers.md and the current ExtensionProviderStrategy in packages/common/src/extensions.ts before implementation
Must: Keep the complete positional createLlm contract: profile, model, settings, projectDir, toolSet?, systemPrompt?, providerMetadata?, tlsRegistrar?, sessionId?, approveTool?. Providers can omit unused trailing arguments.
Must: Use the optional ProviderToolApprovalHandler for native-tool decisions, mapping tool names/inputs to Power schemas. Reject native execution if the callback is absent; do not replace the shared autonomy, approval settings, bash patterns and veto hooks with unconditional questions.
Must: Keep one execution owner, preserve original UI tool-result shapes, and deduplicate continuation replays. Separate persistent native sessions from transient processes/bridges, and scope parent/subagent conversations independently.
Must: Tell the user when the extension requires core changes, document native execution limitations, and verify against the matching core build. Extension reload or renderer refresh cannot update an older main process.
Rule: Add UI components when needed
When: Extension needs to display UI elements in task page placements
Then: Implement getUIComponents() method
Must: Return array of UIComponentDefinition objects with id, placement, jsx
Must: Define components as JSX strings or load from .jsx files
If: Component needs data
Установить create-extension в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл create-extension?
Create AiderDesk extensions by setting up extension files, defining metadata, implementing Extension interface methods, and updating documentation. Use when building a new extension, creating extension commands, tools, or event handlers.
Как установить скилл create-extension?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл create-extension запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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