بنقرة واحدة
simplify
Review changed code for reuse, quality, and efficiency, then fix any issues found.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Review changed code for reuse, quality, and efficiency, then fix any issues found.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Add MCP tools to a Tinker plugin so agents can automate it via tinker call / tinker mcp. Use when the user asks to add MCP, registerMcp, mcp.tools, or make a plugin callable from the CLI.
Check code against Tinker plugin coding standards
Create a new Tinker plugin from the template
استنادا إلى تصنيف SOC المهني
| name | simplify |
| description | Review changed code for reuse, quality, and efficiency, then fix any issues found. |
| argument-hint | <plugin-name-or-file-path> |
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-bilibili-downloader) 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 falsesrc/**/i18n/locales/*.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
[i18n] src/i18n/locales/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 packages/<plugin-name>/src/src/**/i18n/locales/), then grep all .ts/.tsx files for t('key') calls. Any key not found in any call is unused.