跳到正文
FunCoding

cleanup-unused-assets

Reduce plugin size by scanning resources/icons and removing unreferenced assets.

Star
2,019
分类
其他
许可证
BSD-3-Clause
最近提交
2026年12月2日

.agents/skills/cleanup-unused-assets/SKILL.md

在 GitHub 上查看

Skill: Unused Asset Cleanup

You are tasked with reducing plugin size by removing unused icons, images, and resources.

Objective

Reduce plugin size by removing unused icons, images, and resources.

Workflow Instructions

1. Baseline

  • Run ./gradlew test and ./gradlew verifyPlugin to ensure the project is stable.

2. Scan Assets

  • List all files in resources/icons and other asset directories.

3. Search Usages

  • Check if each asset is referenced in code or plugin.xml.

4. Remove

  • Delete assets with zero references.

5. Verify

  • Run ./gradlew buildPlugin and check that the plugin still loads correctly without missing resource exceptions.
  • Run ./gradlew testClasses, ./gradlew test and ./gradlew verifyPlugin to ensure no regressions.
  • Suggest manual test steps: Check code changes made and write test steps for a user to execute that trigger changed code paths. If needed, add logging statements to verify code paths successfully run.

6. Report & Review

  • Summarize assets removed.
  • Test Location: Explicitly state where in the IDE user should go to test changed functionality (e.g., "Go to Preferences > Languages & Frameworks > Flutter").
  • Action: Ask user to review deletions closely.
  • Do not commit or push.
  • Provide a suggested Git commit message (e.g., "Cleanup: Remove unused icon [Icon Name]").

相似的 Skill

claude-handoff

MAmattpocock/skills337k近 7 天新增 4,217 个 star

software-factory

MAmattpocock/skills337k近 7 天新增 4,217 个 star

agent-payment-x402

AFaffaan-m/ECC315k近 7 天新增 3,503 个 star

agent-self-evaluation

AFaffaan-m/ECC315k近 7 天新增 3,503 个 star

bengali-nlp

AFaffaan-m/ECC315k近 7 天新增 3,503 个 star

ponytail-gain

DIDietrichGebert/ponytail203k近 7 天新增 4,226 个 star