plunker

This guide covers working with Plunker for creating and sharing code examples.

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 "plunker" with this command: npx skills add ag-grid/ag-charts/ag-grid-ag-charts-plunker

Plunker Guide

This guide covers working with Plunker for creating and sharing code examples.

Product Detection

Detect the product from the repository context:

  • AG Charts: repos containing ag-charts-community — read ag-charts-guide.md

  • AG Grid: repos containing ag-grid-community — read ag-grid-guide.md

  • AG Studio: repos containing ag-studio-core — read ag-studio-guide.md

Read the appropriate product guide before creating or modifying any plunker files. The guide contains the correct CDN URLs, HTML structure, package names, and styling.

Framework Preference

Always create plunkers in vanilla JavaScript unless:

  • The user explicitly requests a specific framework (Angular, React, Vue)

  • The bug/feature is framework-specific and cannot be reproduced in vanilla JS

When given a framework example (e.g., Angular) for a bug:

  • Convert it to vanilla JS before using or creating a repro

  • Only keep the framework version if the issue is framework-specific

Vanilla JS is preferred because it's simpler, loads faster, needs no build system, and most bugs reproduce without framework wrappers.

Plan Mode

When creating a plan that involves building or modifying a plunker, the plan must explicitly state that the /plunker skill will be invoked before writing any files. Do not assume the skill will be used implicitly — name it directly, e.g.:

"Invoke /plunker skill to load the product guide before writing any files."

This ensures the implementation step uses the correct CDN URLs, CSS, and API patterns from the skill guide rather than relying on training data.

Workflows

Create a New Plunker

  • Create a working directory: PLNKR_DIR=$(mktemp -d /tmp/plnkr-new-XXXXXX)

  • Copy the CSS asset: cp "<skill-base-directory>/assets/ag-example-styles.css" "$PLNKR_DIR/ag-example-styles.css"

  • Write remaining files per the product-specific guide (index.html, main.js, package.json, etc.)

  • Upload: bash "<skill-base-directory>/plnkr.sh" upload "$PLNKR_DIR" --title "Example Title"

  • Parse output for URL= — the shareable link.

Fork/Modify an Existing Plunker

  • Download: bash "<skill-base-directory>/plnkr.sh" download <plunk-id-or-url>

  • Parse output for DIR= — the local directory.

  • Read and modify files using standard file tools.

  • Upload modified version: bash "<skill-base-directory>/plnkr.sh" upload "$DIR" --title "Modified: Original Title"

Read-Only Inspection

  • Download: bash "<skill-base-directory>/plnkr.sh" download <id-or-url> [dir]

  • Read files from the output directory.

Script Reference

Command Args Output

download

<id-or-url> [output-dir]

DIR= , ID= , DESCRIPTION= , FILES=

upload

<dir> [--title T] [--tags a,b]

ID= , URL=

Errors: ERROR=<message> on stderr, exit code 1.

--title /--tags default to values from .plnkr-meta.json (written by download).

API Notes

  • No true fork endpoint — "fork" = download + modify + upload as new.

  • Access tokens are short-lived JWTs; the script manages them internally.

  • Only the plunk creator can update (using the private token from creation).

Product-Specific Guide

Use the Product Detection section above to identify which guide to read. Each guide contains the exact HTML structure, CDN URLs, package.json format, and product-specific patterns.

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

code-fixup

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

code-cleanup

No summary provided by upstream source.

Repository SourceNeeds Review
General

estimate-jira

No summary provided by upstream source.

Repository SourceNeeds Review
General

sync-ag-shared

No summary provided by upstream source.

Repository SourceNeeds Review