external/ag-shared/prompts/skills/plunker/SKILL.md
This guide covers working with Plunker for creating and sharing code examples.
Detect the product from the repository context:
ag-charts-community — read ag-charts-guide.mdag-grid-community — read ag-grid-guide.mdag-studio-core — read ag-studio-guide.mdRead the appropriate product guide before creating or modifying any plunker files. The guide contains the correct CDN URLs, HTML structure, package names, and styling.
Always create plunkers in vanilla JavaScript unless:
When given a framework example (e.g., Angular) for a bug:
Vanilla JS is preferred because it's simpler, loads faster, needs no build system, and most bugs reproduce without framework wrappers.
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
/plunkerskill 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.
PLNKR_DIR=$(mktemp -d /tmp/plnkr-new-XXXXXX)cp "<skill-base-directory>/assets/ag-example-styles.css" "$PLNKR_DIR/ag-example-styles.css"bash "<skill-base-directory>/plnkr.sh" upload "$PLNKR_DIR" --title "Example Title"
URL= — the shareable link.bash "<skill-base-directory>/plnkr.sh" download <plunk-id-or-url>
DIR= — the local directory.bash "<skill-base-directory>/plnkr.sh" upload "$DIR" --title "Modified: Original Title"
bash "<skill-base-directory>/plnkr.sh" download <id-or-url> [dir]| 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).
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.