跳到正文
cccskills
免费在 GitHub 公开

builtin-skills

Add or edit skills bundled with Crush, following guidance on file placement, required metadata, compile-time embedding, and discovery tests. It also explains how built-in skills are loaded and how user skills override them.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Use when creating a new builtin skill for Crush, editing an existing builtin skill (internal/skills/builtin/), or when the user needs to understand how the embedded skill system works.

查看安装方法

适用场景

  • Adding a skill bundled with Crush
  • Editing an existing built-in skill
  • Understanding skill discovery and overrides
  • Adding a test for built-in skill discovery

包含的文件(1)

  • SKILL.md1.8 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Builtin Skills

Crush embeds skills directly into the binary via internal/skills/builtin/. These are always available without user configuration.

How It Works

  • Each skill lives in internal/skills/builtin/<skill-name>/SKILL.md.
  • The tree is embedded at compile time via //go:embed builtin/* in internal/skills/embed.go.
  • DiscoverBuiltin() walks the embedded FS, parses each SKILL.md, and sets paths with the crush://skills/ prefix (e.g., crush://skills/jq/SKILL.md).
  • The View tool resolves crush:// paths from the embedded FS, not disk.
  • User skills with the same name override builtins (last occurrence wins in Deduplicate()).

Adding a New Builtin Skill

  1. Create internal/skills/builtin/<skill-name>/SKILL.md with YAML frontmatter (name, description) and markdown instructions. The directory name must match the name field.
  2. No extra wiring needed — //go:embed builtin/* picks up new directories automatically.
  3. Add a test assertion in TestDiscoverBuiltin in internal/skills/skills_test.go to verify discovery.
  4. Build and test: go build . && go test ./internal/skills/...

Existing Builtin Skills

SkillDirectoryDescription
crush-configbuiltin/crush-config/Crush configuration help
crush-hooksbuiltin/crush-hooks/Authoring, configuring and debugging hooks
jqbuiltin/jq/jq JSON processor usage guide

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Configure Crush with Bash or JSON files to choose AI providers and models, connect external tools, set permissions, and adjust behavior. Understand how project and global settings combine when customizing your working environment.

中文简介正在准备中。当前显示英语简介。

  • Set up AI providers and model selections
  • Connect MCP servers and language servers
  • Configure tool permissions and execution hooks
charmbracelet/crush2.9万2026年10月21日 更新

Create, configure, and troubleshoot Crush hooks, commands that run before tool execution. Use them to block or approve calls, rewrite tool input, or add context for the agent, with guidance on configuration and troubleshooting.

中文简介正在准备中。当前显示英语简介。

  • Blocking destructive shell commands
  • Automatically approving read-only tools
  • Adding editing reminders for the agent
charmbracelet/crush2.9万2026年10月21日 更新

jq

免费

Extract fields, filter records, and reshape JSON from API responses, configuration files, or logs using Crush’s built-in jq. Get help writing and debugging transformations, constructing new JSON, and formatting output for other commands.

中文简介正在准备中。当前显示英语简介。

  • Extract selected fields from API responses
  • Filter JSON arrays by conditions
  • Reshape configuration data or construct JSON
charmbracelet/crush2.9万2026年10月21日 更新

Add or modify commands handled inside Crush's embedded shell before they reach the operating system. The guidance covers command routing, input and output streams, exit codes, and cancellation so commands work with pipes, redirection, and hook timeouts.

中文简介正在准备中。当前显示英语简介。

  • Adding a command to Crush's embedded shell
  • Modifying an existing built-in command
  • Supporting pipes and output redirection
charmbracelet/crush2.9万2026年10月21日 更新

查看 charmbracelet 的全部技能

报告此技能的问题