kakas
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.

      Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Explore these features while you wait
      Complete general settings
      Bookmark and like published notes
      Write a few more notes
      Complete general settings
      Write a few more notes
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    ## How to Create an Agent Skill** *A step-by-step guide using Copilot CLI* --- ## What is an Agent Skill? Agent Skill 就是寫給 AI 看的 **SOP** 傳統 SOP 是寫給「人」執行的作業流程,Agent Skill 就是寫給「AI Agent」執行的版本。 透過 `SKILL.md` 檔案告訴 Agent:何時啟動、如何一步步完成任務。 --- ## SOP vs Agent Skill 對照 | 傳統 SOP | Agent Skill | |----------|-------------| | 適用情境 | `description`(何時觸發)| | 執行步驟 | `## Steps`(怎麼做)| | 注意事項 | `## When NOT to Use` | | 需要的工具/資源 | `## Tools` | --- ## 三大組成元件 | 元件 | 說明 | |------|------| | `SKILL.md` | Markdown 指令文件,定義技能的行為與觸發條件 | | `description` | 同時說明用途與觸發時機,Agent 讀取後決定是否啟用 | | `Instructions` | 步驟式操作流程,Agent 逐步執行以完成目標 | --- ## Why Build Agent Skills? **四大優勢** **01 自動化重複工作** 將日常任務(報告、彙整、轉換格式)封裝成技能,一鍵完成。 **02 知識可重用** 撰寫一次即可在整個團隊或組織中共享,避免重複造輪子。 **03 精準觸發** description 中清楚定義使用情境,確保 Agent 在正確時機啟用正確技能。 **04 模組化擴充** 技能可疊加組合,讓 Agent 處理更複雜、多步驟的任務。 --- ## Prerequisites & Setup **安裝步驟** **Step 01 — 安裝 Copilot CLI** ```bash brew install copilot-cli ``` **Step 02 — 登入** ```bash copilot login ``` **Step 03 — 確認環境** ```bash copilot --version ``` --- ## 先安裝 skill-creator 在開始寫 Skill 之前,建議先安裝 **skill-creator**——一個專門幫你建立、優化、測試 Skill 的 Agent Skill。 **為什麼先裝?** > 用 AI 來幫你寫給 AI 看的 SOP。 skill-creator 可以協助你: - 把需求或 SOP 直接轉成 `SKILL.md` - 優化 `description` 讓觸發更精準 - 對 Skill 進行效能評估(evals) **Step 1 — 安裝 skill-creator** ``` add skill, name: skill-creator, source: https://github.com/anthropics/skills/tree/main/skills/skill-creator ``` > 來源:[github.com/anthropics/skills](https://github.com/anthropics/skills/tree/main/skills/skill-creator) **Step 2 — 開始建立 Skill** ``` /skill-creator create a new skill, name: my-skill, <這邊填寫你的需求 or SOP> ``` --- ## SKILL.md – File Structure **真實範例:`create-confident-test-cases`** ```markdown --- name: create-confident-test-cases description: "Design high-quality RSpec test cases through structured AI-developer conversation. Usage: /create-confident-test-cases [JIRA-ID]. Use when the user asks to write tests, design test cases, create specs, add test coverage, or mentions testing for any feature or bug fix. Also triggers on phrases like 'what should I test', 'help me think about test scenarios', 'review my test coverage'..." --- # Create Confident Test Cases ## Usage /create-confident-test-cases OA-12345 # Fetch from Jira /create-confident-test-cases # Describe manually ## Goal Help developers design test cases they can trust... ## Workflow ### Step 1: Gather requirements ### Step 2: Clarifying questions ### Step 3: Design test scenarios ... ``` **四大區塊說明** | 區塊 | 說明 | |------|------| | Front Matter | `name` + `description` — description 同時定義用途與所有觸發情境 | | Usage | 說明如何呼叫此技能,以及支援的參數格式 | | Goal | 說明這份 SOP 的目標,對應 SOP 的「目的」 | | Workflow / Steps | 具體的執行步驟,Agent 會依序完成每個動作 | > **重點**:`description` 裡列出所有可能觸發的關鍵字與情境(中英文、各種說法) --- ## Best Practices **建議做法(Do)** - 一個技能只做一件事(單一職責,SOP 的基本原則) - `description` 涵蓋常見同義詞與觸發情境 - 步驟描述精確、可執行(假設讀者是第一次看到這份 SOP) - 加入 `## When NOT to Use` 段落,定義邊界 - 版本控管 `SKILL.md`(用 Git) **避免做法(Don't)** - 不要把多個不相關功能塞在同一技能 - 不要省略或寫太短的 `description`(這是觸發的關鍵) - 不要使用模糊的步驟描述 - 不要忽略測試就直接部署 --- ## Live Demo – 實作範例 **真實案例:用 skill-creator 建立 `create-confident-test-cases`** > 不需要自己建資料夾、不需要手寫 SKILL.md。 > 透過 skill-creator 與 AI 對話,讓 AI 幫你寫出 Skill。 **Step 1 — 告訴 skill-creator 你的需求或 SOP** ``` create a new skill, name: create-confident-test-cases, 我想設計一個幫助開發者寫高品質 RSpec 測試的 Skill。 流程是: 1. 從 Jira ticket 或開發者描述收集需求 2. 透過提問釐清邊界條件 3. 平行從三種用戶視角設計測試情境 4. 合併去重後請開發者 review 5. 交付驗收清單 ``` **Step 2 — 與 AI 互動確認細節** skill-creator 會根據你的描述: - 產出 `SKILL.md` 草稿 - 詢問觸發情境、邊界條件等細節 - 優化 `description` 讓觸發更精準 **Step 3 — 測試並持續迭代** ``` /create-confident-test-cases OA-12345 ``` Skill 寫好後不是終點,而是迭代的開始: ``` 測試 → 跟 AI 討論不足之處 → AI 修改 Skill → 測試 → ... ``` 也可以用 skill-creator 的 **eval** 功能自動評估 Skill 的品質: ``` /skill-creator eval skill create-confident-test-cases ``` eval 會測試 Skill 的觸發準確度與執行品質,幫你找出需要改進的地方。 - 發現觸發不準確?告訴 skill-creator,它會優化 `description` - 步驟有缺漏?描述給 AI,它會補充 SOP 內容 - Skill 越用越好,跟 SOP 一樣需要持續維護與改版 --- ## Summary & Key Takeaways **五大重點回顧** 1. **Agent Skill = AI 版的 SOP** — 會寫 SOP 就能設計 Agent Skill 2. `description` 同時定義用途與觸發時機,沒有獨立的 `triggers` 欄位 3. 遵循「單一職責 + 明確描述 + 具體步驟」三原則 4. 從小技能開始,測試驗證後再擴充為複雜工作流程 --- **Q & A|歡迎提問**

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password
    or
    Sign in via Google Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully