技能创建与优化
skill-creator
创建或改进 Codewhale 技能。当用户想要创建新技能、更新现有技能,或需要指导判断某项能力应该做成技能还是 MCP、hooks、工具或插件脚手架时使用。
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 4.1w
- Forks
- 3.6k
01 前言 Front Matter
- name
- skill-creator
- metadata
- { "short-description": "Create Codewhale skills" }
- aliases-for
- create-skill
- description
- Create or improve codewhale skills. Use when the user wants a new skill, wants to update an existing skill, or needs guidance on when a skill should be a skill versus MCP, hooks, tools, or a plugin scaffold.
02 资源文件 33
- 其他.editorconfig212 B
- 其他.gitattributes204 B
- 参考文档.github/dependabot.yml145 B
- 参考文档.github/ISSUE_TEMPLATE/bug_report.md442 B
- 参考文档.github/ISSUE_TEMPLATE/feature_request.md322 B
- 参考文档.github/PULL_REQUEST_TEMPLATE.md345 B
- 参考文档.github/workflows/ci.yml1.0 KB
- 参考文档.github/workflows/release.yml1.1 KB
- 其他.gitignore129 B
- 参考文档AGENTS.md776 B
- 参考文档agents/openai.yaml233 B
- 资产文件assets/prompts/A股周度复盘prompt.md9.2 KB
- 资产文件assets/prompts/A股月度复盘prompt.md9.9 KB
- 资产文件assets/prompts/A股盘前prompt.md8.7 KB
- 资产文件assets/prompts/A股盘后prompt.md8.1 KB
- 资产文件assets/prompts/crypto-daily-brief-prompt.md19.6 KB
- 资产文件assets/prompts/crypto-monthly-review-prompt.md23.1 KB
- 资产文件assets/prompts/crypto-weekly-review-prompt.md19.5 KB
- 资产文件assets/prompts/us-monthly-review-prompt.md15.2 KB
- 资产文件assets/prompts/us-postmarket-prompt.md12.0 KB
- 资产文件assets/prompts/us-premarket-prompt.md10.9 KB
- 资产文件assets/prompts/us-weekly-review-prompt.md13.1 KB
- 参考文档CHANGELOG.md721 B
- 参考文档CONTRIBUTING.md2.1 KB
- 许可证LICENSE1.0 KB
- 资产文件media/market-brief-demo.gif5.1 MB
- 参考文档README.md5.4 KB
- 脚本scripts/check.py4.5 KB
- 脚本scripts/package_release.py3.0 KB
- 参考文档SECURITY.md680 B
- 参考文档SOURCE.md331 B
- 脚本tests/test_package.py3.2 KB
- 参考文档TRUST.auto.yaml2.0 KB
03 SKILL.md 正文
Skill Creator
Use this skill to create small, useful codewhale skills that match the runtime this repository actually ships.
What A Skill Is
A skill is a local folder with a SKILL.md file. Codewhale reads the skill name
and description during discovery, then loads the body only when the user or task
matches the skill.
Discovery paths, in precedence order:
<workspace>/.agents/skills<workspace>/skills<workspace>/.opencode/skills<workspace>/.claude/skills<workspace>/.cursor/skills<workspace>/.codewhale/skills~/.agents/skills~/.claude/skills~/.codewhale/skills
Use skills for model instructions, workflows, and lightweight conventions. Use
MCP for live external APIs or durable tools. Use hooks for automatic local
events. To distribute a skill through a plugin bundle, give the bundle a
plugin.json whose net.codewhale extension points skills.path at a
directory holding <name>/SKILL.md folders; each skill then loads namespaced
as <plugin>:<skill> after review, trust, and enablement. A bare SKILL.md
directory is discoverable on the skills paths above but is not a plugin
bundle and cannot be installed through /plugin install.
Minimum Shape
my-skill/
`-- SKILL.md
---
name: my-skill
description: Use when Codewhale should follow this specific workflow.
---
# My Skill
Instructions for the agent.
Frontmatter parsing is intentionally simple. Keep name and description as
plain single-line values. Use lower-case hyphen-case names.
Writing Rules
- Make the
descriptionaction-oriented and trigger-specific. It is the main signal Codewhale sees before loading the body. - Keep the body operational. Include what to do, what to avoid, and how to verify the result.
- Do not include general programming advice, marketing copy, or long background material.
- Move bulky details to
references/and mention exactly when to open them. - Add
scripts/only for deterministic helpers that are worth maintaining. - Add
assets/only for templates, fixtures, examples, or files reused by the workflow. - Do not assume scripts are safe to run. Community skill scripts require user intent and trust review.
Creation Workflow
- Define the skill boundary in one sentence.
- Decide whether a skill is the right surface:
- Instructional workflow: skill
- External service/API: MCP server plus an optional skill
- Repeated shell helper: local tool or script plus an optional skill
- Packaging multiple pieces: plugin scaffold plus skill/MCP activation notes
- Create
<skill-name>/SKILL.md. - Write frontmatter with
nameanddescription. - Write a concise body with:
- trigger and scope
- required inputs or assumptions
- step-by-step workflow
- validation checks
- safety notes
- Add companion files only when they reduce real complexity.
- Validate by loading the skill through
/skillsor by running the relevant skill discovery tests if editing this repository.
Updating Existing Skills
- Preserve the user's local intent. Avoid replacing a working skill wholesale unless the user asked for a rewrite.
- Tighten descriptions when the skill is under-triggering or over-triggering.
- Remove stale tool names, unavailable dependencies, and copied instructions from other agents that do not apply to codewhale.
- Keep examples short and directly tied to this runtime's commands and tools.
Validation Checklist
SKILL.mdstarts with---.namematches the directory name unless there is a deliberate reason.descriptionsays when to use the skill, not just what it is.- The body references only tools, commands, and paths that exist or are clearly optional.
- Any scripts or external-service steps explain credential and trust handling.
04 同仓库更多 Skills
editing-cordis-compositions
Use when creating, changing, or validating an agent preset or other Cordis composition for this harness, including deciding host versus preset placement and checking that an authored preset mounts.
cordis-plugin-development
Use when designing, reviewing, adding, enabling, disabling, installing, configuring, or debugging a plugin, bundle, feature, page, panel, tool, or MCP connection in the current Harness profile, including a shipped plugin that is disabled by default, and for any visual object, decoration, or widget request that names no other destination, which means an installed UI plugin rendered in the Harness Web UI.
cordis-composition-reference
Use when writing or reading a Cordis bundle patch or agent preset for this harness and you need the Loader YAML dialect (insert, override by id, group, disabled, isolate, !!js) or the list of installable Harness plugin packages and what each provides.
agent-experience
Use when writing or changing a model-facing tool definition (name, description, parameter schema, or its system-prompt section), and when designing skills, context loading, or multi-step workflows, to make information discoverable and use context efficiently.
GitHub PR 与议题队列审查
gh-find-prs
以只读方式梳理开放的 Codewhale PR 和议题队列:获取每一项,对照当前代码进行核查,并生成一份包含引用证据和应致谢对象的覆盖度与处置矩阵。
GitHub 议题创建
gh-file-issue
用于提交新的 Codewhale GitHub 议题:将 bug 或想法转化为结构良好、可执行的议题,包含复现步骤、验收标准、标签和里程碑。