backstage-frontend-plugin
БесплатноЗапускает вложенные скриптыНе проверенBuild Backstage frontend plugins with the New Frontend System: createFrontendPlugin, blueprints, routes, Utility APIs, testing. Use for pages, nav, entity…
Об этом скилле
Backstage Frontend Plugin (New Frontend System)
About This Skill
This skill provides specialized knowledge and workflows for building Backstage frontend plugins using the New Frontend System (NFS). It guides the development of UI features including pages, navigation items, entity cards/content, and shared Utility APIs.
What This Skill Provides
- Specialized workflows - Step-by-step procedures for creating and configuring frontend plugins
- Best practices - Production-ready patterns for lazy loading, error handling, permissions, and testing
- Golden path templates - Copy/paste code snippets for common plugin patterns
- Domain expertise - Backstage-specific knowledge about blueprints, routes, and the plugin system
When to Use This Skill
Use this skill when creating UI features for Backstage: pages, navigation items, entity cards/content, or shared Utility APIs.
Development Workflow
Phase 1: Planning and Research
1.1 Understand the Requirements
Before building a frontend plugin, clearly understand:
- What UI features are needed (pages, navigation, entity content, cards)
- What data the plugin will display or interact with
- Whether Utility APIs are needed for shared logic
- Integration points with other plugins (catalog, permissions, etc.)
1.2 Load Reference Documentation
Load reference files as needed based on the plugin requirements:
For Extension Development:
- 📋 Extension Blueprints Reference - Comprehensive guide to PageBlueprint, SubPageBlueprint, EntityContentBlueprint, ApiBlueprint, and app-level blueprints
For Utility API Development:
- 🔌 Utility APIs Reference - Creating and using Utility APIs for shared logic
For Testing:
- ✅ Testing Reference - Comprehensive testing guide for components, extensions, and APIs
Phase 2: Implementation
Follow the Golden Path workflow below for implementation, referring to reference files as needed.
Phase 3: Testing
After implementing the plugin:
- Load the ✅ Testing Reference
- Write comprehensive tests for:
- React components using
renderInTestAppwith theapisoption - Extensions using
createExtensionTester(...).reactElement() - Utility APIs with mocked dependencies
- React components using
- Run tests and achieve good coverage:
yarn backstage-cli package test --coverage --watchAll=false
Phase 4: Review and Polish
Before publishing:
- Run linting and structure checks
- Ensure all extensions are listed in the plugin's
extensionsarray - Verify lazy loading via dynamic imports in every
loader - Check permission-based visibility where appropriate
- Review the Common Pitfalls section below
Quick Facts
- Create a plugin with
yarn new→ selectfrontend-plugin; it generatesplugins/<pluginId>/already wired for the New Frontend System. - The plugin instance is built with
createFrontendPluginfrom@backstage/frontend-plugin-api. Export it as the default fromsrc/index.ts. - Functionality is provided via extensions (
PageBlueprint,SubPageBlueprint,ApiBlueprint,EntityContentBlueprint, etc.). Page content is always lazy-loaded using dynamic imports. - Define route references with
createRouteRef(usually insrc/routes.ts) and use them in blueprints. - Use Utility APIs for shared logic (
createApiRef+ApiBlueprint), consumed viauseApi. - Hooks (
useApi,useRouteRef) and built-in API refs (discoveryApiRef,fetchApiRef,identityApiRef,alertApiRef,errorApiRef,storageApiRef) should be imported from@backstage/frontend-plugin-apiin NFS code — they are still re-exported from@backstage/core-plugin-apibut that is the legacy import path. - The
dev/index.tsxentrypoint usescreateDevAppfrom@backstage/frontend-dev-utilsand is started viayarn startinside the plugin directory.
App integration patterns
- New Frontend System (preferred):
- Apps using
@backstage/frontend-defaultsauto-discover a plugin's extensions when the package is installed and listed as a feature. - Just install the plugin; routes declared by
PageBlueprintmount automatically and theirtitle/icondrive the sidebar.
- Apps using
- Legacy apps (compat path):
- Only relevant if your target app is still using
@backstage/app-defaultsand manualFlatRoutes. Most new work should target NFS.
- Only relevant if your target app is still using
Production Best Practices
Extensions and Routes
- Keep all
routeRefs insrc/routes.ts - Use
createSubRouteReffor nested paths - Export only the plugin (default from
src/index.ts) - Never export extensions/components from the package root
Lazy Loading and UX
PageBlueprint automatically wraps the loader with React Suspense and an error boundary — no need to add them yourself at the extension level. Just keep your loader as a dynamic import:
loader: () => impo
Установить backstage-frontend-plugin в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл backstage-frontend-plugin?
Build Backstage frontend plugins with the New Frontend System: createFrontendPlugin, blueprints, routes, Utility APIs, testing. Use for pages, nav, entity content, or cards.
Как установить скилл backstage-frontend-plugin?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл backstage-frontend-plugin запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic