Webiny skill creator

From webiny/webiny-js · View interactive version

Webiny skill creator is an AI agent skill from the GitHub repository webiny/webiny-js. Generate, refresh, and maintain Webiny MCP server skills from source documentation and codebase. Use this skill when you need to create new Webiny skills, update existing skills after framework changes, regenerate the entire skill library, or create a skill for a specific Webiny feature. Trigger thi

How to use this skill

Skill file

Webiny Skill Creator

This skill generates and maintains the set of skills served by the Webiny MCP server. It operates in two modes:

  1. Full regeneration -- Reads all source documentation and the codebase, then generates/updates the complete skill library.
  2. Single skill creation -- Creates or updates one skill for a specific Webiny feature.

Skill Output Format

Every skill lives in its own folder as <skill-name>/SKILL.md with YAML frontmatter. The MCP server recursively scans for SKILL.md files and auto-generates the catalog from front-matter metadata -- no README index is needed.

webiny/my-skills/
├── <skill-name>/
│   └── SKILL.md
├── <skill-name>/
│   └── SKILL.md
└── ...

Skill File Structure

Each <skill-name>/SKILL.md file follows this template:

---
name: webiny-<topic>
description: >
  What this skill covers and when to use it.
  Be specific about trigger phrases and developer intents.
  Err on the side of being "pushy" -- describe scenarios broadly
  so the MCP server surfaces this skill when relevant.
---

# Title

## TL;DR

One paragraph actionable summary.

## Pattern / Core Concept

The main code pattern with a generic template.

## Reference Tables

Tables for methods, properties, types, imports.

## Full Examples

2-3 complete, working code examples showing real use cases.

## Quick Reference

Import paths, interfaces, registration, deploy commands.

## Related Skills

Links to other skills that complement this one.

Writing Guidelines

These guidelines ensure skills are effective when served by the MCP server to AI agents:

  1. TL;DR first -- Every skill starts with a one-paragraph actionable summary. An agent should be able to read just this and know if the skill is relevant.
  1. Generic pattern before examples -- Show the abstract pattern template first, then concrete examples. This helps agents generalize rather than copy-paste.
  1. Complete, working code -- Every code block must be copy-paste ready. Include all imports, class definitions, and export statements. Never show partial snippets that require guessing.
  1. Reference tables for APIs -- Use markdown tables for method signatures, field types, validators, injectable services, etc. Tables are dense and scannable.
  1. Exact import paths -- Always show the full import path. Webiny uses feature-based imports (e.g., "webiny/api/cms/model" not "@webiny/api-headless-cms"). Getting the import wrong breaks everything.
  1. The universal DI pattern -- Every API extension uses createImplementation({ implementation, dependencies }). Reinforce this in every skill that covers an API extension type.
  1. Registration in webiny.config.tsx -- Always show how to register the extension. Include the JSX element and the src path convention.
  1. Deploy command -- Always end with which deploy command to run (yarn webiny deploy api, admin, or core).
  1. Related skills -- Cross-link to complementary skills. Developers rarely need just one skill.
  1. Description frontmatter -- The description field is the primary trigger mechanism. Include:

Source Documentation

When generating or updating skills, read from these sources in priority order:

1. Existing Skills (`<root>/packages/mcp/src/skills/`)

Read the current skills first to understand what exists and what needs updating.

2. Learn Webiny Lessons (`learn-webiny/content/lessons/`)

The tutorial content organized by topic:

| Directory | Topics Covered |

| ------------------------- | -------------------------------------------------------------------------------------- |

| foundation/ | Webiny overview, framework, apps, multi-tenancy, infrastructure |

| developing-with-webiny/ | Project structure, extensions, SDK overview, local dev, debugging, white-labeling |

| headless-cms/ | Content models, versioning, lifecycle events, reading/writing data, list customization |

| website-builder/ | Setup, editor components, theming, CMS integration |

| getting-started/ | Installation, CLI overview, deployment |

3. Legacy Skills (`skills-bak/`)

The previous generation of skills. Good reference for structure and patterns but may have outdated imports or APIs.

4. Webiny Codebase (`webiny/`)

The actual development instance:

| Path | What to Look At |

| ------------------- | -------------------------------------------------------------- |

| webiny.config.tsx | Real extension registration examples |

| extensions/ | Working extension implementations |

| ai-context/ | Core features reference with import paths and type definitions |

| packages/ | Package source code for verifying APIs |

5. Webiny AI Context (`webiny/ai-context/`)

Contains core-features-reference.md with verified import paths and type definitions for:

This is the most reliable source for import paths and interfaces.

Full Regeneration Workflow

When asked to regenerate all skills:

  1. Inventory current skills -- Read webiny/my-skills/ to see what exists.
  1. Read source documentation -- Use subagents to read in parallel:
  1. Identify gaps -- Compare source content against existing skills. Look for:
  1. Generate/update skills -- Write each skill following the format above. For each skill:
  1. Verify consistency -- Check that:

Single Skill Creation Workflow

When asked to create a skill for a specific feature:

  1. Understand the feature -- Ask the developer:
  1. Research -- Read relevant source files:
  1. Draft the skill -- Create <skill-name>/SKILL.md following the structure above.
  1. Review with developer -- Present the skill for feedback before finalizing.

Current Skill Library

The following skills should exist in webiny/my-skills/:

| Skill Folder | Covers |

| ------------------------------------ | --------------------------------------------------------- |

| project-structure/SKILL.md | Project layout, webiny.config.tsx, extension registration |

| content-models/SKILL.md | ModelFactory, fields, validators, layout |

| custom-graphql-api/SKILL.md | GraphQLSchemaFactory, resolvers, DI |

| lifecycle-events/SKILL.md | CMS entry hooks, security events |

| admin-ui-extensions/SKILL.md | White-labeling, custom columns, forms, Lexical |

| infrastructure-extensions/SKILL.md | Pulumi handlers, declarative infra components |

| cli-extensions/SKILL.md | CliCommandFactory, custom CLI commands |

| dependency-injection/SKILL.md | Universal DI pattern, injectable services |

| webiny-sdk/SKILL.md | External app integration, Result pattern |

| website-builder/SKILL.md | Editor components, theming, CMS integration |

| local-development/SKILL.md | Deploy, watch, environments, debugging |

When to Add New Skills

Add a new skill when:

Naming Convention

MCP Server Integration

Skills are served via the Webiny MCP server:

// .mcp.json
{
  "mcpServers": {
    "webiny": {
      "command": "npx",
      "args": ["webiny", "mcp-server", "--additional-skills", "./my-skills"]
    }
  }
}

The MCP server exposes two tools:

Agents call list_webiny_skills first to find relevant skills, then get_webiny_skill to load the full content before writing code.

Suggestions for MCP Server Enhancement

Beyond skills, consider these additional inputs for the MCP server to improve developer experience:

1. Live Schema Context

Expose the actual content models defined in the project (from webiny.config.tsx and extensions/) so agents know what models exist, their fields, and relationships without having to read source files.

2. Extension Registry

Provide a tool that lists all registered extensions (API, Admin, Infra, CLI) with their file paths and types. This helps agents understand what's already built.

3. Environment Info

Expose yarn webiny info output (API URLs, Admin URL, CloudFront endpoint) as an MCP tool so agents can configure SDK clients or test endpoints without running CLI commands.

4. GraphQL Schema Introspection

Expose the auto-generated GraphQL schema so agents can see exact query/mutation signatures, field types, and filter options for each content model.

5. Code Templates

Bundle scaffolding templates for common patterns (new model, new hook, new GraphQL schema, new editor component) that agents can use as starting points, reducing the chance of structural errors.

6. Validation Tool

An MCP tool that validates extension code before deployment -- checking import paths, DI dependency order, and webiny.config.tsx registration. Catches errors before yarn webiny deploy.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.