Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

sk-create-goal

БесплатноБез исполняемых скриптовНе проверен

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

MichelKerkmeesterот MichelKerkmeester★ 40 звёзд на GitHub

Об этом скилле

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:

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. F
Полный SKILL.md на GitHub

Установить sk-create-goal в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Edit
Bash
Grep
Glob

FAQ

Что делает скилл sk-create-goal?

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

Как установить скилл sk-create-goal?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл sk-create-goal запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить sk-create-goal с