custom-code-management

Custom Code Management

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "custom-code-management" with this command: npx skills add webflow/webflow-skills/webflow-webflow-skills-custom-code-management

Custom Code Management

Concepts

Webflow custom code: register (store script) → apply (attach to site). Inline scripts only via MCP (max 10,000 chars).

Important note

ALWAYS use Webflow MCP tools for all operations: Use the following tools for all operations:

  • data_scripts_tool with actions list_registered_scripts / list_applied_scripts

  • List scripts

  • data_scripts_tool with action add_inline_site_script

  • Register inline script (no <script> tags)

  • data_scripts_tool with action delete_all_site_scripts

  • Remove ALL scripts (no selective delete)

  • data_sites_tool with action list_sites

  • List available sites

Instructions

View Scripts

  • Call data_sites_tool with action list_sites if needed, then call both list tools in parallel

  • Display registration and application status

Add Script

  • Gather: name, code, location (header/footer)

  • Validate: under 10,000 chars, no <script> tags

  • Preview with character count, require "add" to confirm

  • Call data_scripts_tool with action add_inline_site_script with displayName, sourceCode, version, location, canCopy

  • Remind user to publish

Remove Scripts

  • List current scripts

  • Warn: removes ALL scripts (no selective delete)

  • Require "delete all" to confirm

  • Remind user to publish

Constraints

  • Max 10,000 characters per script

  • Do NOT include <script> tags (Webflow adds them)

  • displayName + version must be unique

  • Site-level only (no page-specific via MCP)

  • Hosted scripts not available via MCP

Response Format

After adding a script, respond with the script name, location, and version. Suggest using the safe-publish skill to publish changes.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

webflow-code-component:deploy-guide

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

webflow-cli:designer-extension

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

webflow-code-component:convert-component

No summary provided by upstream source.

Repository SourceNeeds Review