plugins/skills/simplify/SKILL.md
Review changed code for reuse, quality, and efficiency, then fix any issues found.
npx skillsauth add liriliri/tinker simplifyInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Review a Tinker plugin's source code for redundant, dead, or duplicated code, then fix all issues found.
plugin-name-or-file-path: plugin folder name (e.g. tinker-hash) or one or more specific file pathsRead all target files and check for the following categories of redundancy:
return, throw, or breakswitch cases that can never execute given the existing logic (e.g. a handler registered before a special-case check that already covers the same path)true or always false.ts, .tsx) under src/ that are never imported by any other file in the plugin.ts/.tsx file in the plugin contains an import statement pointing to itmain.tsx, index.ts) and type-only files (types.ts) are exempt from this checksrc/i18n/*.json that are never referenced via t('key') anywhere in the plugin's .ts/.tsx filesen-US.json and zh-CN.json) — a key is unused only if it is absent from all t() calls across the entire plugin sourceFor each issue found, output:
[Category] file/path:line — description
Example:
[Unused] src/lib/constants.ts:40 — SUPPORTED_EXTENSIONS is exported but never imported
[Dead Code] src/lib/ffmpegArgs.ts:22 — case 'gif' in getVideoCodecArgs is unreachable; caller handles gif before invoking this function
[Duplicate Logic] src/components/MediaList.tsx:50,158 — handleContextMenu is identical in ImageCard and MediaRow; extract to a shared hook
[Duplicate Type] src/components/MediaList.tsx:43,151 — MediaItemProps and MediaRowProps are identical; remove one
[Unreferenced] src/components/EditProviderDialog.tsx — file is never imported by any other file in the plugin; delete it
[i18n] src/i18n/en-US.json:12 — key "outputDir" is defined but never used via t()
If no issues are found, report: No redundancies found.
.ts, .tsx, and .json files under <plugin-name>/src/.ts/.tsx file under src/ against all import statements in the plugin — any file not imported by any other file (excluding entry points and types.ts) is unreferenced and should be deleted..ts/.tsx files for t('key') calls. Any key not found in any call is unused.tools
Debug Tinker plugins with agent-browser. Use when the user needs to open, inspect, interact with, restart, or close a plugin in the running Tinker Electron app.
tools
Check code against Tinker plugin coding standards
tools
Create a new Tinker plugin from the template
tools
Extract a npm dependency into the shared vendor bundle