Agent Skills › iamcheyan/oc › sample-skill

sample-skill

GitHub

用于演示 opencode 本地 SKILL.md 的标准结构和最小化工作流,帮助用户理解技能定义格式及加载方式。

.opencode/skills/sample-skill/SKILL.md iamcheyan/oc

Trigger Scenarios

用户请求示例技能 询问 SKILL.md 结构 展示技能模板

Install

npx skills add iamcheyan/oc --skill sample-skill -g -y
More Options

Non-standard path

npx skills add https://github.com/iamcheyan/oc/tree/main/.opencode/skills/sample-skill -g -y

Use without installing

npx skills use iamcheyan/oc@sample-skill

指定 Agent (Claude Code)

npx skills add iamcheyan/oc --skill sample-skill -a claude-code -g -y

安装 repo 全部 skill

npx skills add iamcheyan/oc --all -g -y

预览 repo 内 skill

npx skills add iamcheyan/oc --list

SKILL.md

Frontmatter
{
    "name": "sample-skill",
    "description": "Use when the user says sample skill, skill demo, or asks how an opencode SKILL.md should be structured; demonstrates a tiny project-local skill with practical assistant workflow guidance."
}

Sample Skill

This is a minimal project-local opencode skill. It exists as a reference for how a skill is structured and as a tiny reusable workflow the assistant can load when the user asks for a skill example.

When To Use

  • Use when the user asks for a sample skill or skill template.
  • Use when demonstrating the required SKILL.md frontmatter and body format.
  • Do not use for unrelated coding tasks just because a skill exists.

Workflow

  • Confirm the specific outcome the user wants if the request is ambiguous.
  • Inspect the relevant files before changing anything.
  • Make the smallest correct change.
  • Verify the result with a focused read, typecheck, test, or other lightweight check when available.
  • Summarize the changed files and any required restart or reload step.

Example Response Style

When this skill is relevant, keep responses direct and actionable:

I created a project-local skill at .opencode/skills/sample-skill/SKILL.md.
Restart opencode for the new skill to be discovered by future sessions.

Version History

  • d9b4ce8 Current 2026-10-18 23:22

Same Skill Collection

.opencode/skills/opencode-dev/SKILL.md
.opencode/skills/rtl-aware-development/SKILL.md
packages/opencode-vim/skills/git-master/SKILL.md
packages/opencode-vim/skills/git-workflow/SKILL.md
packages/plugins/figma/skills/figma-code-connect/SKILL.md
packages/plugins/figma/skills/figma-create-new-file/SKILL.md
packages/plugins/figma/skills/figma-generative-plugins/SKILL.md
packages/plugins/figma/skills/figma-implement-motion/SKILL.md
packages/plugins/figma/skills/figma-shaders/SKILL.md
packages/plugins/figma/skills/figma-use-figjam/SKILL.md
packages/plugins/figma/skills/figma-use-motion/SKILL.md
packages/plugins/figma/skills/figma-use-slides/SKILL.md
.opencode/skills/app-e2e-tests/SKILL.md
.opencode/skills/component-tests/SKILL.md
.opencode/skills/effect/SKILL.md
.opencode/skills/tui-tests/SKILL.md
.opencode/skills/unit-tests/SKILL.md
packages/plugins/figma/skills/figma-design-to-code/SKILL.md
packages/plugins/figma/skills/figma-generate-design/SKILL.md
packages/plugins/figma/skills/figma-generate-diagram/SKILL.md
packages/plugins/figma/skills/figma-generate-library/SKILL.md
packages/plugins/figma/skills/figma-swiftui/SKILL.md
packages/plugins/figma/skills/figma-use/SKILL.md

Metadata

Files
0
Version
d9b4ce8
Hash
3b7caeed
Indexed
2026-10-18 23:22

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-21 02:49
浙ICP备14020137号-1