Logo Authoring Skills

Authoring Skills

Tổ chức
friday-platform
authoring-skills

Authors new agent skills that follow the Anthropic + agentskills.io specification. Use when the user asks to create, draft, review, or refactor a skill, write a SKILL.md file, lay out reference files, or bundle scripts. Covers frontmatter rules, 500-line / 5000-token body budgets, one-level-deep reference layout, progressive disclosure, gotchas sections, control calibration, the evaluation-first authoring loop, and the lint gate before publish.

Tổng quan

Nhà phát hànhfriday-platform
Kho mãfriday-studio
Tên kỹ năngauthoring-skills
Sao
102
Bản fork
5
Tệp đi kèm
7
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 7 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được friday-platform công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Authoring Skills trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/friday-platform/friday-studio/tree/main/packages/system/skills/authoring-skills
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/friday-platform/friday-studio.git /tmp/friday-studio
mkdir -p .claude/skills
cp -r /tmp/friday-studio/packages/system/skills/authoring-skills .claude/skills/authoring-skills
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Authoring Skills trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Authoring Skills ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Authoring Skills với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Authoring skills

A skill is a bundle of instructions loaded into an agent's context window on demand. This skill covers how to write one that is concise, discoverable, calibrated to its task, and testable.

Copy this checklist into the response when starting a skill:

Skill authoring:
- [ ] 1. Capture real expertise (hands-on task or project artifacts — not LLM synthesis)
- [ ] 2. Write frontmatter: `name` (gerund form) + `description` (3rd person, what + when)
- [ ] 3. Draft SKILL.md body — gotchas first, then workflow, then references
- [ ] 4. Extract overflow into references/ (one level deep from SKILL.md)
- [ ] 5. Bundle scripts only when the agent would reinvent the logic each run
- [ ] 6. Write ≥3 evaluation cases, baseline without the skill, then with
- [ ] 7. Run scripts/lint_skill.py and address every error
- [ ] 8. Test with a fresh agent instance (Claude-A / Claude-B loop)

1. Start from real expertise

Skills generated from LLM general knowledge come out vague ("handle errors appropriately", "follow best practices"). Useful skills are grounded in project-specific material.

Two paths:

Extract from a hands-on task. Complete a real task with the agent, correcting as you go. Then distil the reusable pattern. Pay attention to: the sequence of steps that actually worked, the corrections you had to make, the input/output shapes, and the project-specific context you had to supply.

Synthesise from project artifacts. Feed internal docs, runbooks, API specs, code review comments, version history, and postmortems into the draft. Real incident reports outperform any "best practices" blog post because they capture your schemas, failure modes, and conventions.

2. Frontmatter

Full field spec: references/frontmatter.md.

Quick rules:

  • name: lowercase, hyphens, ≤64 chars, gerund-form preferred (processing-pdfs, creating-workspaces). Never contains anthropic or claude.
  • description: ≤1024 chars, third person, answers what + when. This field alone drives skill discovery — every other token in SKILL.md is invisible to the router.

Good:

yaml
description: Extracts text and tables from PDF files, fills forms, and merges documents. Use when working with PDFs or when the user mentions forms or document extraction.

Bad:

yaml
description: I can help with PDFs.         # first person, no trigger
description: Does stuff with files.        # meaningless

user-invocable: false is for runtime-composed system skills. Author skills should leave this at its default (true) so load_skill and @friday/... references keep working. Marking your own skill user-invocable: false does not trigger auto-loading — the runtime currently auto-composes no skills.

3. Body

Default assumption: the agent is already smart. Include only what it would otherwise get wrong.

Budgets (enforced by scripts/lint_skill.py):

  • ≤500 lines, ≤5000 tokens in SKILL.md → warning.
  • ≤800 lines, ≤8000 tokens → error.

Move overflow to references/<topic>.md, one level deep. Never chain references through nested files — Claude partial-reads nested content and drops information.

Recommended section order (adapt for the task):

  1. Heading + one-paragraph summary.
  2. Progress checklist in a fenced code block — the agent copies and checks off.
  3. Gotchas — the highest-value section in most skills. Concrete corrections to mistakes the agent would make without being told. See references/patterns.md.
  4. Workflow — ordered steps with validation gates. See references/patterns.md for the validation loop and plan-validate-execute patterns.
  5. Output templates when the format is prescribed.
  6. Reference pointers — each says which file and when to load it. "See references/api-errors.md if the API returns a non-200 status" is useful; "see references/ for details" is not.

4. Calibrate control

Match specificity to fragility. Most skills mix all three levels — calibrate each section independently. See references/control-calibration.md.

Task profileFreedomForm
Many valid paths, context-dependentHighDescribe intent and success criteria
Preferred pattern, some variation fineMediumPseudocode or parameterised script
Fragile, must-sequence, error-proneLowExact command, "do not modify"

Provide defaults, not menus. Pick one tool, mention a single fallback, then stop.

5. Use patterns, not prose

A reusable structure beats a paragraph of description. Pattern library in references/patterns.md:

  • Gotchas — concrete environment-specific facts.
  • Template — concrete input/output example; agents pattern-match on structure.
  • Checklist inside a fenced code block — the agent copies and checks off as it progresses.
  • Validation loop — do → validate → fix → repeat.
  • Plan-validate-execute — for batch or destructive operations.
  • Examples — ≥3 input/output pairs when output style matters.

6. Bundle scripts only when reusable

When the agent reinvents the same logic across runs, write a script once and put it in scripts/. See references/scripts.md.

Scripts must:

  • Handle error conditions explicitly — do not punt to the agent.
  • Justify every constant ("3 retries balances reliability vs latency" — not RETRIES = 5 with no comment).
  • Use forward slashes in all paths.
  • Declare dependencies. Do not assume packages are installed.

State whether the agent should execute the script (usually) or read it as reference (rarely).

7. Evaluate before polishing

Write evals before writing extensive documentation. See references/evaluation.md.

  1. Run target tasks without the skill. Document specific failures.
  2. Write ≥3 evaluation cases that capture the gap.
  3. Baseline score without the skill.
  4. Write the minimal skill that closes the gap.
  5. Rerun. Read execution traces, not just final outputs — wasted exploration reveals vague instructions; ignored references reveal weak triggers.
  6. Iterate: add to gotchas when the agent makes a correctable mistake; cut sections the agent never uses.

The Claude-A / Claude-B loop is the core iteration pattern: Claude A helps you refine the skill, Claude B (a fresh instance with the skill loaded) performs real tasks, and observations from Claude B drive the next revision.

Gotchas

  • name contains anthropic or claude — rejected by the validator. Use a task-based gerund instead.
  • First-person description (I can …, You can …) — the description goes into the router system prompt; mixed person breaks discovery. Third person only.
  • Nested references — Claude partial-reads with head -100 when files are linked from other linked files. Keep reference depth = 1 from SKILL.md.
  • Reference file >100 lines without a table of contents — partial-reads miss later sections. Add a ## Contents list at the top.
  • Time-sensitive prose (before August 2025) — goes stale. Put superseded info in a collapsed <details> block labelled "Old patterns".
  • Offering multiple options as equals (you can use pypdf, pdfplumber, PyMuPDF, or pdf2image) — agent spends context choosing. Pick one default plus one fallback; stop there.
  • Inconsistent terminology — one term per concept throughout. Do not mix "field"/"box"/"element" or "extract"/"pull"/"get".
  • Skill under 20 lines — likely redundant with the base model. Confirm via eval before shipping.
  • Explaining general concepts — "A PDF is a portable document format…". The agent knows. Cut it.
  • Workspace-specific configuration — does not belong in a skill. Put it in workspace.yml.

When NOT to write a skill

  • The task is one-off → write it in the prompt.
  • The base model already handles it → confirm via eval.
  • The content is environment config → workspace.yml or friday.yml.
  • The content is a single function → a bundled script is enough; no skill wrapper needed.

Lint before publish

bash
python scripts/lint_skill.py path/to/skill/

Errors (fail publish): frontmatter schema violation, body >800 lines or >8000 tokens, broken reference links, backslash paths, first-person description, reserved name substrings, reference depth >1.

Warnings (informational): body >500 lines or >5000 tokens, description missing "Use when …" clause, time-sensitive phrasing, reference file >100 lines without a table of contents.

References

  • references/frontmatter.md — field-by-field spec, good/bad description examples.
  • references/control-calibration.md — high/medium/low freedom with concrete samples.
  • references/patterns.md — gotchas, templates, checklists, validation loops, plan-validate-execute.
  • references/scripts.md — when to bundle, error handling, constant justification, dependency declaration.
  • references/evaluation.md — eval-first workflow, Claude-A / Claude-B loop, what to watch for in traces.
  • references/anti-patterns.md — full list of what to avoid.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Authoring Skills làm được gì?

Authors new agent skills that follow the Anthropic + agentskills.io specification. Use when the user asks to create, draft, review, or refactor a skill, write a SKILL.md file, lay out reference files, or bundle scripts. Covers frontmatter rules, 500-line / 5000-token body budgets, one-level-deep reference layout, progressive disclosure, gotchas sections, control calibration, the evaluation-first authoring loop, and the lint gate before publish.

Vì sao nên dùng Authoring Skills trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Authoring Skills là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Authoring Skills trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/friday-platform/friday-studio/tree/main/packages/system/skills/authoring-skills. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Authoring Skills?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Authoring Skills với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Authoring Skills với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Authoring Skills có miễn phí không?

Kỹ năng này được friday-platform phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇