Skip to content

new skill adobe-illustrator-scripting#1448

Open
jhauga wants to merge 2 commits intogithub:stagedfrom
jhauga:skill-adobe-illustrator-scripting
Open

new skill adobe-illustrator-scripting#1448
jhauga wants to merge 2 commits intogithub:stagedfrom
jhauga:skill-adobe-illustrator-scripting

Conversation

@jhauga
Copy link
Copy Markdown
Contributor

@jhauga jhauga commented Apr 19, 2026

Pull Request Checklist

  • I have read and followed the CONTRIBUTING.md guidelines.
  • I have read and followed the Guidance for submissions involving paid services.
  • My contribution adds a new instruction, prompt, agent, skill, or workflow file in the correct directory.
  • The file follows the required naming convention.
  • The content is clearly structured and follows the example format.
  • I have tested my instructions, prompt, agent, skill, or workflow with GitHub Copilot.
  • I have run npm start and verified that README.md is up to date.
  • I am targeting the staged branch for this pull request.

Description

For full test results ctrl + click support-repo.

  • Agent: Local
  • Model: GPT-5.4
  • Number of Prompts: 4
  • Thinking Speed
    • Prompt 1 to 3: Medium
    • Prompt 4: xhigh
  • Post Edits: None

Prompt

Initial Prompt

adobe-illustrator-scripting Create a script that will:

1. Select the top-most nested element layer in the "Screenshots" layer
2. Scale the selection proportionally, but set the widht to 360px
3. Determine Artboard action by:
  - If the selection is within the boundaries of an artboard, then:
    - Resize the Artboard to the selection
  - Else:
    - Create a new Artboard
    - Navigate to new Artboard
    - Resize the Artboard to the selection
4. Conditional Step
  - If a nested element layer exist below the current selection, then:
    - Select next nested element layer below the current selection
    - Repeat steps 2 through 4 (*this step*)
  - Else:
    - Throw as "Script Complete" alert, and done

Call it - "image-sizing.jsx"

Post Prompts

All post prompts were essentially:

Ran #file:image-sizing.jsx and got:

     ```
     No nested element layers with artwork were found in "Screenshots"
     ```

There are nested layers, items, images, groups, etc. in "Screenshots".
"Screenshots" is the top most layer, and is organized like:

     ```
     - Screenshots
       - `<Image>`
       - `<Image>`
       - `<Image>`
       - `<Group>`
       - `<Image>`
       - `<Image>`
       - `<Group>`
       - etc...
     ```

Results

It worked. I can't exactly illustrate with an Illustrator file, but the
script helped me size the images for the insturctions included in file.md,
of the support repo.

Good because - apart from making the Illustrator scripting skill and script,
this would have taken me like 5 to 10 minutes to do. Now it is done in
5 to 10 seconds.


Type of Contribution

  • New instruction file.
  • New prompt file.
  • New agent file.
  • New plugin.
  • New skill file.
  • New agentic workflow.
  • Update to existing instruction, prompt, agent, plugin, skill, or workflow.
  • Other (please specify):

By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.

Copilot AI review requested due to automatic review settings April 19, 2026 21:55
@jhauga jhauga requested a review from aaronpowell as a code owner April 19, 2026 21:55
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 19, 2026

🔍 Skill Validator Results

⚠️ Warnings or advisories found

Scope Checked
Skills 1
Agents 1
Total 2
Severity Count
--- ---:
❌ Errors 0
⚠️ Warnings 2
ℹ️ Advisories 0

Summary

Level Finding
ℹ️ Found 1 skill(s)
ℹ️ [adobe-illustrator-scripting] 📊 adobe-illustrator-scripting: 5,832 BPE tokens [chars/4: 5,794] (comprehensive ✗), 64 sections, 26 code blocks
ℹ️ [adobe-illustrator-scripting] ⚠ Skill is 5,832 BPE tokens (chars/4 estimate: 5,794) — "comprehensive" skills hurt performance by 2.9pp on average. Consider splitting into 2–3 focused skills.
ℹ️ [adobe-illustrator-scripting] ⚠ No numbered workflow steps — agents follow sequenced procedures more reliably.
ℹ️ ✅ All checks passed (1 skill(s))
Full validator output ```text Found 1 skill(s) [adobe-illustrator-scripting] 📊 adobe-illustrator-scripting: 5,832 BPE tokens [chars/4: 5,794] (comprehensive ✗), 64 sections, 26 code blocks [adobe-illustrator-scripting] ⚠ Skill is 5,832 BPE tokens (chars/4 estimate: 5,794) — "comprehensive" skills hurt performance by 2.9pp on average. Consider splitting into 2–3 focused skills. [adobe-illustrator-scripting] ⚠ No numbered workflow steps — agents follow sequenced procedures more reliably. ✅ All checks passed (1 skill(s)) ```

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new Agent Skill for Adobe Illustrator ExtendScript/JSX automation, including bundled reference material and example scripts to support Illustrator scripting workflows in this repo’s skills/ catalog.

Changes:

  • Added skills/adobe-illustrator-scripting/SKILL.md with extended Illustrator scripting guidance.
  • Added bundled assets: a DOM quick reference and three runnable .jsx example scripts.
  • Registered the new skill in docs/README.skills.md (including bundled assets list).

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
skills/adobe-illustrator-scripting/SKILL.md New skill definition and full skill instructions/content.
skills/adobe-illustrator-scripting/references/object-model-quick-reference.md Added quick reference for Illustrator DOM hierarchy/constants.
skills/adobe-illustrator-scripting/scripts/find-replace-text.jsx Example script: find/replace across document text frames.
skills/adobe-illustrator-scripting/scripts/create-color-grid.jsx Example script: generate a colored rectangle grid in a new document.
skills/adobe-illustrator-scripting/scripts/batch-export-png.jsx Example script: export all open documents to PNG24 in a chosen folder.
docs/README.skills.md Added the new skill to the skills index table with bundled assets listed.

Comment thread skills/adobe-illustrator-scripting/references/object-model-quick-reference.md Outdated
Comment thread skills/adobe-illustrator-scripting/SKILL.md
Comment thread skills/adobe-illustrator-scripting/SKILL.md Outdated
Comment thread skills/adobe-illustrator-scripting/SKILL.md Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants