com um clique
lint
Check code against Tinker plugin coding standards
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Check code against Tinker plugin coding standards
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
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.
Create a new Tinker plugin from the template
Review changed code for reuse, quality, and efficiency, then fix any issues found.
| name | lint |
| description | Check code against Tinker plugin coding standards |
| argument-hint | <plugin-name-or-file-path> |
Review a Tinker plugin's source code and report any violations of the project's coding standards defined in AGENTS.md.
plugin-name-or-file-path: plugin folder name (e.g. tinker-hash) or a specific file path to checkGo through each category below and report violations with file path and line number.
tinker- prefixToolbar.tsx)store.ts (lowercase)index.scssconst Toolbar = observer(...))Toolbar component that also imports Toolbar from another module), suffix the local component with Component (e.g. ToolbarComponent). This is intentional and should NOT be reported as a violation.class StoremakeAutoObservable(this)export default store (where const store = new Store())super() call in constructor#0fc25e, #e0e0e0, rgb(...)) in component files — exception: accent/brand colors defined inside theme.ts itself are allowedtheme.ts file that exports a tw object containing all theme-aware Tailwind class stringsdark: variant) must be defined in theme.ts and imported as tw.* tokens — they must NOT be inlined in component JSXimport { tw } from './theme' (or appropriate relative path)observer()lib/ directory)src/lib/src/utils/, src/helpers/store.ts that has no dependency on store state or MobX should be extracted to src/lib/. Candidates: pure functions, data transformation, algorithm helpers, API wrapperssrc/lib/index.ts as a catch-all. Name files by their purpose (e.g. util.ts, math.ts). When unsure of the name, use lib/util.tsany types — use proper types or union typessrc/renderer/ directory: extract to src/renderer/types.tssrc/renderer/ directory: extract to src/types.tspreload and renderer must be extracted to src/common/types.tsimport type { Foo } from './types'; export type { Foo } in an unrelated file is forbidden)t() from react-i18next, not hardcoded stringssrc/renderer/ directory: src/renderer/i18n/en-US.json, src/renderer/i18n/zh-CN.jsonsrc/renderer/ directory: src/i18n/en-US.json, src/i18n/zh-CN.json// Set loading state before this.isLoading = true)index.scss) should only be used for third-party library style overrideslucide-react for icons: import { Copy } from 'lucide-react'import Icon from '../assets/icon.svg?react'@radix-ui/* packages@radix-ui/*, lucide-react) must be listed under devDependencies in package.json, not dependenciespackage.json — only add dependencies that are specific to this pluginlicia utility library over hand-rolled implementations (e.g. use licia/map, licia/each, licia/isStr, licia/trim, etc.)import map from 'licia/map' (not import { map } from 'licia')liciaFor each violation found, output:
[Category] file/path:line — description of violation
Example:
[Theme] src/components/Toolbar.tsx:12 — hardcoded color `#0fc25e`, use tw.accent.bg instead
[Naming] src/components/toolbar.tsx — component file should be PascalCase: Toolbar.tsx
[Store] src/store.ts:5 — Store must not extend any base class, use plain class Store
[Comments] src/App.tsx:34 — comment in Chinese, must use English
If no violations are found, report: No violations found.
.ts, .tsx, .scss files under packages/<plugin-name>/src/. If a file path is given, check that file only.cd packages/<plugin-name> && npm run format
cd packages/<plugin-name> && npm run build
If the build fails, fix the errors, then re-run the build to confirm it succeeds.
cd packages/<plugin-name> && npx tsc --noEmit
IMPORTANT: Only fix errors in files that are tracked by git. Never touch files under references/ directories or any file listed in .gitignore — these are reference materials only.
If there are TypeScript errors, fix them, then re-run to confirm all errors are resolved.