用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/KrystianJonca/lnai --skill update-tool-plugin命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | update-tool-plugin |
| description | Update an existing LNAI tool plugin |
Guide for modifying an existing plugin to support new features or fix issues.
Search the official documentation for the target tool to understand:
All plugins are in packages/core/src/plugins/:
claude-code/ - Claude Codecursor/ - Cursor IDEcopilot/ - GitHub Copilotwindsurf/ - Windsurf IDEopencode/ - OpenCodegemini/ - Gemini CLIcodex/ - Codexexport() method to generate new output filesskipped in validate() if feature was previously skippedtransforms.ts for transformation logicexport() to match new format requirements# Run plugin-specific tests
pnpm test packages/core/src/plugins/<tool-name>/
# Run all tests
pnpm test
# Test against real project
lnai sync --dry-run -t <tool-name>
| File | Purpose |
|---|---|
index.ts | Main plugin implementation |
types.ts | Tool-specific type definitions |
transforms.ts | Format transformation functions |
../types.ts | Plugin interface definition |
../../utils/transforms.ts | Shared transform utilities |
// Mark feature as skipped (not supported)
skipped.push({
feature: "permissions",
reason: "Tool uses global permissions only",
});
// Add warning (supported but with caveats)
warnings.push({
message: "MCP servers require manual setup",
path: ["settings", "mcpServers"],
});
pnpm typecheck to verify typespnpm test to verify tests passlnai sync --dry-run to preview outputpackages/core/src/plugins/ as examplespackages/core/src/plugins/types.tspackages/core/src/utils/transforms.ts