external/ag-shared/prompts/skills/batch-plunkers/SKILL.md
Create multiple Plunker examples in parallel. Each sub-agent follows the /plunker skill workflow; the main thread orchestrates and collects results.
Usage:
/batch-plunkers AG-16727
/batch-plunkers "Create 3 examples showing grouped bar nulls with skipNullBars"
/batch-plunkers (then provide a spec table when prompted)
Determine the input mode and extract individual Plunker assignments.
Use Atlassian MCP to read the ticket. Extract acceptance criteria from the description. Each AC becomes one Plunker assignment. The assignment text is the AC verbatim plus any relevant context from the ticket description (API name, feature being tested, etc.).
Parse the user's natural language into discrete Plunker assignments. Ask the user to confirm the breakdown before proceeding.
User provides a markdown table with columns #, Title, Description. Use as-is.
In ALL modes, present the assignment list to the user for confirmation before proceeding:
I found N acceptance criteria. Here are the Plunker assignments:
1. [AC text] → Plunker: [brief plan]
2. [AC text] → Plunker: [brief plan]
...
Proceed? (Y/adjust)
Wait for user confirmation. Do NOT launch sub-agents until confirmed.
Read all *-guide.md files in the sibling plunker skill directory (../plunker/). These contain the product-specific file templates, CDN URLs, styling requirements, and common issues. Also read .rulesync/skills/example/ag-charts/chart-construction.md and .rulesync/skills/example/ag-charts/enterprise-features.md for chart construction patterns and enterprise/community feature matrix. The guide content will be included in each sub-agent prompt.
Ask the user which CDN to use (staging vs versioned). Then resolve enterprise vs community for each individual assignment — not as a blanket setting. Use the "Enterprise-Only Features" table in the product guide to determine this:
Record the resolved CDN URL for each assignment so sub-agents don't waste time discovering this themselves.
Launch one general-purpose Task sub-agent per assignment, all in a single message so they run concurrently. Use run_in_background: true on each.
Each sub-agent prompt MUST include:
plnkr.shURL= lineSub-agent prompt template:
Create a Plunker for the following assignment:
**Assignment #{PLUNKER_NUMBER}:** {ASSIGNMENT}
**CDN URL:** {RESOLVED_CDN_URL}
**Package:** {PACKAGE_NAME}
{FEATURE_CONTEXT}
## Instructions
1. Create a working directory: `PLNKR_DIR=$(mktemp -d /tmp/plnkr-batch-{PLUNKER_NUMBER}-XXXXXX)`
2. If the assignment involves non-trivial APIs, verify them against `packages/ag-charts-types/src` before writing files
3. Write all files per the product guide below (index.html, main.js, ag-example-styles.css, package.json, and optionally data.js)
4. Upload: `bash "{ABSOLUTE_PATH_TO_PLNKR_SH}" upload "$PLNKR_DIR" --title "{TITLE}" --tags "ag-charts,qa"`
5. Report the URL= line from the upload output
**IMPORTANT:** The product guide and upload command are provided below — do NOT spend tool calls re-reading the guide files, SKILL.md, or plnkr.sh.
## Product Guide
{GUIDE_CONTENT}
## Chart Construction Patterns
{CHART_CONSTRUCTION_CONTENT}
## Enterprise Features
{ENTERPRISE_FEATURES_CONTENT}
Wait for all sub-agents to complete before proceeding to Step 3.
Present results as a markdown table:
| # | Title | AC | URL | Status |
|---|-------|----|-----|--------|
| 1 | ... | AC-1 | https://plnkr.co/edit/... | OK |
| 2 | ... | AC-2 | https://plnkr.co/edit/... | OK |
| 3 | ... | AC-3 | - | FAILED: [reason] |
If any failed, suggest re-running with just the failed assignments by providing the exact /batch-plunkers invocation or spec table.
plnkr.sh. The main thread only orchestrates and collects results.plnkr.sh manages access tokens internally per invocation. No shared token setup needed.