Logo Sk Create Goal

Sk Create Goal

Cộng đồng
MichelKerkmeester
sk-create-goal

Authors packet goal.md files from existing specs and leaves the goal template and session state with their owners.

Tổng quan

Nhà phát hànhMichelKerkmeester
Kho mãskilled-agent-harness_spec-driven-loops
Tên kỹ năngsk-create-goal
Sao
41
Bản fork
3
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
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ộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được MichelKerkmeester 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 Sk Create Goal 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/MichelKerkmeester/skilled-agent-harness_spec-driven-loops/tree/main/specs/cli-classifier/003-cli-jev-workflow-integration/006-goal-criteria-lint/scratch/w3-build/logs/12.pre
  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/MichelKerkmeester/skilled-agent-harness_spec-driven-loops.git /tmp/skilled-agent-harness_spec-driven-loops
mkdir -p .claude/skills
cp -r /tmp/skilled-agent-harness_spec-driven-loops/specs/cli-classifier/003-cli-jev-workflow-integration/006-goal-criteria-lint/scratch/w3-build/logs/12.pre .claude/skills/sk-create-goal
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 Sk Create Goal 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 Sk Create Goal 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 Sk Create Goal 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.

Create Packet Goals

sk-create-goal authors goal.md content for an existing spec packet. It fills per-kind templates that are checked copies of the system-spec-kit goal template and keeps runtime goal state with its existing owners.


1. WHEN TO USE

Activation Triggers

Use this packet to:

  • Author or revise a top-level goal or phase-parent goal.
  • Author or revise a nested phase-child goal.
  • Add goal.md to an existing packet that has no goal.
  • Add a binding row and matching child goal when someone adds a phase.
  • Cut an over-budget parent goal without dropping a completion criterion.
  • Print a parent goal's chat slice for the operator to set or resend.
  • Handle a request that enters through /create:goal.

Keyword triggers: create packet goal, author goal.md, revise packet goal, phase parent goal, nested phase child goal, add a goal file, goal chat slice, /create:goal.

When NOT to Use

  • The target packet does not exist. Use system-spec-kit to create it first.
  • The packet's phase structure is not established. Use system-spec-kit to plan the phases first.
  • The request is to set, bind, inject or resend a session objective. Redirect it to the goal hooks or the host's native goal command.
  • The request changes runtime goal behavior or system-spec-kit template tooling. Those owners remain outside this packet.

This packet authors files only. Its goal-file work does not change session state.


2. SMART ROUTING

Run these four decisions before writing:

  1. File content or session state? A request to author or revise a packet's goal.md is file work. A request to set, bind, inject or resend a session objective belongs to the goal hooks or the host's native goal command. Redirect session-state requests without editing a packet goal.
  2. Does the packet exist? What role does it have? Confirm the target directory exists. A nested phase child has a parent directory containing spec.md. A packet with direct phase-child directories is the phase parent. Otherwise, treat it as a top-level packet. If the packet is missing, route packet creation to system-spec-kit first.
  3. Does goal.md exist? Revise an existing goal. Add one to an existing packet that has none. Do not treat a missing packet as a goal-file request.
  4. Does a child change alter a parent decision or criterion? If it does, amend the parent first. Then print the updated parent chat slice for the operator to resend. Do not let a child goal override a parent decision.

Discover reference and asset documents at call time. Keep loads inside this packet. For top-level, phase-parent and nested-child authoring, retrofit, phase-add or parent amendment work, load references/parent-and-nested-goals.md and follow the matching workflow. For every goal authoring or revision request, also load references/authoring-standards.md, assets/goal-exemplars.md and the template for the goal's kind before drafting. For a budget measurement or chat-slice handoff, load references/budget-and-handoff.md. Fall back to the workflow reference when no specific resource applies:

python
from pathlib import Path

SKILL_ROOT = Path(__file__).resolve().parent
RESOURCE_BASES = (SKILL_ROOT / "references", SKILL_ROOT / "assets")
DEFAULT_RESOURCE = "references/parent-and-nested-goals.md"
UNKNOWN_FALLBACK = {
    "load_level": "UNKNOWN_FALLBACK",
    "needs_disambiguation": True,
    "resources": [],
}

def discover_markdown_resources():
    documents = []
    for base in RESOURCE_BASES:
        if base.exists():
            documents.extend(path for path in base.rglob("*.md") if path.is_file())
    return {path.relative_to(SKILL_ROOT).as_posix() for path in documents}

def _guard_in_skill(relative_path):
    resolved = (SKILL_ROOT / relative_path).resolve()
    resolved.relative_to(SKILL_ROOT)
    if resolved.suffix.lower() != ".md":
        raise ValueError("Only packet-local markdown resources are routable")
    return resolved.relative_to(SKILL_ROOT).as_posix()

def route_references(selected):
    inventory = discover_markdown_resources()
    loaded = []
    seen = set()
    for relative_path in selected:
        guarded = _guard_in_skill(relative_path)
        if guarded in inventory and guarded not in seen:
            load(guarded)
            loaded.append(guarded)
            seen.add(guarded)
    if not loaded:
        fallback = _guard_in_skill(DEFAULT_RESOURCE)
        if fallback in inventory:
            load(fallback)
            loaded.append(fallback)
        return {**UNKNOWN_FALLBACK, "resources": loaded}
    return {"resources": loaded}

3. HOW IT WORKS

  1. Read the target packet's source specification and acceptance criteria. For a phase parent, read its phase map and inspect every direct phase-child directory on disk.
  2. Apply the four routing decisions above. For top-level, phase-parent, nested-child, retrofit, phase-add and amendment work, load and follow references/parent-and-nested-goals.md. Identify which goal files to add or revise and whether a child change requires a parent amendment first.
  3. Start each goal from the template for its kind: goal-top-level-template.md, goal-phase-parent-template.md or goal-phase-child-template.md. Each is a checked copy of system-spec-kit's goal.md.tmpl at that kind's level. Copy the block between its template markers into goal.md. When create.sh --with-goal has already scaffolded a child's goal.md, keep that file and fill it with the child template's guidance. Child scaffolding alone does not create its parent goal.
  4. Before filling the template, load authoring-standards.md and goal-exemplars.md. Fill it with packet-specific content and apply both resources. Use three to seven self-contained completion criteria that can be checked without opening another file. Leave no template placeholders. Copy the criteria verbatim into the objective text required by the goal contract.
  5. For a phase parent, make the binding table match the filesystem. Add one row for each direct phase-child directory, with that child's goal document as the target. Keep the table only in the phase-parent goal.
  6. Keep the durable slice at or below 4,000 characters wherever the cap applies. Load references/budget-and-handoff.md: section 2 says which goals carry the cap and how to read the packet report, and section 3 is the cut order for a goal that runs over. Never remove a criterion or make one uncheckable.
  7. Before handing off any authored or revised goal, run node .skilled/skills/sk-doc/sk-create-goal/scripts/check-goal.cjs <packet> from the repository root and resolve each finding. A finding left open for any reason, an operator brief included, stops the run: report it, print no chat slice and end with STATUS=FAIL.
  8. Only after the checker passes, and after authoring or amending a parent goal, load references/budget-and-handoff.md for the projection distinction and runtime matrix, then print its chat slice with node .skilled/hooks/goal/bin/goal.cjs packet <packet> --workspace <root>. The chat_slice is for the operator to set or resend. It is not a session bind.

4. RULES

✅ ALWAYS

  1. Run the four pre-write decisions before changing a goal file.
  2. Derive each goal from the existing packet's source documents, not from a guessed or remembered summary.
  3. Start every goal from the asset template for its kind. Keep each template's fixed text identical to goal.md.tmpl. The parity test fails when they drift.
  4. Use three to seven self-contained criteria.
  5. Make each criterion checkable without opening another file.
  6. Remove every template placeholder.
  7. Preserve every criterion when cutting an over-budget parent.
  8. Compare each binding row with the direct phase-child directories on disk.
  9. Print the updated parent chat slice for the operator when parent goal content changes.

⛔ NEVER

  1. Never change an asset template's fixed text or structure on its own. Change goal.md.tmpl through system-spec-kit, then carry its new fixed text into all three templates.
  2. Never modify system-spec-kit's template tooling or shared validator from this packet.
  3. Never bind a packet to a session, set or resend a session objective, inject runtime state or track whether an operator has set the goal.
  4. Never put a binding table in a top-level goal or a phase-child goal.
  5. Never omit a phase child from the parent's binding table or drop a completion criterion to meet the budget.

⚠️ ESCALATE IF

  1. The source documents disagree about a decision or criterion. They also must describe the same phase structure. Report any conflict instead of choosing a truth silently.
  2. A phase child is missing the source documents needed to author its goal.
  3. The parent phase map and child directories do not agree.
  4. A child change requires a parent decision or criterion amendment, but the request would leave the parent untouched.
  5. A parent cannot meet the durable budget without losing a criterion or making one unclear. Do not cut the criterion count. Ask whether the packet scope should be split.
  6. The request requires session-goal state or a change to a system-spec-kit-owned contract.

5. REFERENCES


6. SUCCESS CRITERIA

  • Every authored goal starts from the template for its kind, and all three templates match goal.md.tmpl.
  • Every phase-parent binding row corresponds to a direct phase-child directory on disk. No child is omitted.
  • Each goal has three to seven self-contained criteria. No template placeholders remain.
  • Top-level and phase-parent durable slices meet the 4,000-character limit without losing a criterion.
  • Print parent chat slices for the operator. Do not change session objectives or runtime state.

7. INTEGRATION POINTS

  • system-spec-kit: Owns goal.md.tmpl, the source the three asset templates copy, and create.sh --with-goal, which scaffolds child goals with the same structure.
  • Goal hooks and host command: Own session binding and objective delivery. This includes injection and resend tracking. This packet only authors the source file and prints its chat slice for the operator.
  • Command surface: The intended entry point is /create:goal. The command itself lives outside this packet.
  • sk-doc: Routes goal-file authoring to this packet.

8. RELATED RESOURCES

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

Kỹ năng AI Sk Create Goal làm được gì?

Authors packet goal.md files from existing specs and leaves the goal template and session state with their owners.

Vì sao nên dùng Sk Create Goal 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. Sk Create Goal 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 Sk Create Goal trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/MichelKerkmeester/skilled-agent-harness_spec-driven-loops/tree/main/specs/cli-classifier/003-cli-jev-workflow-integration/006-goal-criteria-lint/scratch/w3-build/logs/12.pre. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để 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 Sk Create Goal?

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 Sk Create Goal 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 Sk Create Goal 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 Sk Create Goal có miễn phí không?

Có. Kỹ năng này được MichelKerkmeester phát hành trên GitHub theo giấy phép MIT. 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 👇