SS

serverpod/skills

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

27 stars 质量 61 趋势 15BSD-3-Clause

一个用于管理Dart技能的CLI。

概览

一个CLI可以将Dart和Flutter包依赖中的AI代理技能直接导入你的IDE。 注:Dart团队正在开发基于Dart的MCP服务器的类似解决方案。该服务器发布后,我们将提供脚本,将你的技能转换为Dart的新格式。该软件包随后要么采用Dart MCP标准来传递技能,要么被弃用(假设MCP解决方案同样具备能力)。 Dart 包可以发布包含 Agent Skills 的技能/目录,这些结构化指令教 AI 编码助手如何有效使用该软件包。技能 CLI 会在你的依赖树中找到这些技能并安装到 IDE,这样 AI 助手就能更好地理解你的技术栈。 如果你想讨论或贡献技能包,请加入Serverpod Discord服务器的 #skills 频道。 当你向项目添加Dart包时,你的AI编码助手根本不知道如何正确使用它。

概述(AI 翻译)

一个CLI可以将Dart和Flutter包依赖中的AI代理技能直接导入你的IDE。

注:Dart团队正在基于Dart的MCP服务器开发类似解决方案。该服务器发布后,我们将提供脚本,将你的技能转换为Dart的新格式。该软件包将要么采用Dart MCP标准来传递技能,要么被弃用(假设MCP解决方案同样具备能力)。

Dart软件包可以发送一个包含代理技能的skills/目录,这些指令是结构化的指令,教AI编码助手如何有效使用该软件包。skills CLI会在你的依赖树中找到这些技能并安装到IDE中,以便你的AI助手更好地理解你的技术栈。

如果你想讨论或贡献skills包,请加入Serverpod Discord服务器的#skills频道。

问题所在

当你向项目添加Dart包时,你的AI编码助手根本不知道如何正确使用它。它猜测API,发明模式,并幻觉出不存在的方法。你最终不得不把文档复制粘贴到聊天里,编写自定义规则,或者反复修正AI。

解决方案

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Skills

A CLI that brings AI agent skills from your Dart and Flutter package dependencies directly into your IDE.

Note: The Dart team is working on a similar solution based on Dart’s MCP server. When that is released, we will provide scripts to convert your skills to Dart’s new format. This package will then either adopt the Dart MCP standard for delivering skills or be deprecated (assuming the MCP solution is equally capable).

Dart packages can ship a skills/ directory containing Agent Skills, structured instructions that teach AI coding assistants how to use the package effectively. The skills CLI finds those skills in your dependency tree and installs them into your IDE so your AI assistant better understands your stack.

If you want to discuss or contribute to the skills package, please join the #skills channel on the Serverpod Discord server.

The problem

When you add a Dart package to your project, your AI coding assistant has no idea how to use it properly. It guesses APIs, invents patterns, and hallucinates methods that don’t exist. You end up copy-pasting documentation into chat, writing custom rules, or correcting the AI over and over.

The solution

Package authors ship skills alongside their code. You run one command, and your AI assistant knows how to work with every package in your project.

skills get

That’s it. Your AI assistant now has context-aware instructions for every dependency that provides skills.

Installation

Activate the CLI globally:

dart pub global activate skills

Make sure ~/.pub-cache/bin is on your PATH (instructions).

Quick start

Navigate to the root of your Dart or Flutter project and run:

# Install skills from all dependencies
skills get

# Install skills from a specific package
skills get serverpod

# List installed skills
skills list

# Remove skills for packages no longer in your dependency tree
skills prune

# Remove all managed skills
skills remove

# Remove skills from one package
skills remove serverpod

The CLI will automatically run pub get if needed, scan your dependency packages for skills/ directories, and install them in the right location for your IDE. If you are using a monorepo, skills will locate your different packages and get the skills for all of them.

If git is installed, skills get also fetches skills from GitHub registries (see GitHub registries below). Skills that come from a Dart package in your dependency tree always take precedence over registry skills for that same package, allowing package maintainers to override the skills in the registry.

Pruning removed dependencies

在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add serverpod/skills
新手?先看 mcpskill.org 教程 →