jackin-goal-prompt — скилл для Claude Code: сжать задачу в /goal
Собирает из пункта роадмапа и планов один самодостаточный промпт /goal не длиннее 4000 знаков.
npx skills add jackin-project/jackin-dev --skill jackin-goal-prompt -a claude-codeЧто делает jackin-goal-prompt
Скилл читает пункт роадмапа в .mdx, а если передан --plan — ещё и файлы планов. Из них он вытаскивает объём работ, шаги, команды проверки, критерии готовности и условия остановки. На выходе — один промпт, который исполнитель без контекста сможет прогнать до конца.
Структура взята у /improve: цель, границы, гейты проверки, критерии готовности, STOP-условия. Команды проверки скилл берёт из самого репозитория — CONTRIBUTING.md, .github/workflows/ci.yml, mise.toml — и не придумывает их. Выдержки кода не вставляются: вместо них указывается файл и контракт, которому он должен соответствовать. Правила вроде AGENTS.md и COMMITS.md тоже не пересказываются, на них только ссылаются.
Лимит 4000 знаков жёсткий. Скилл пишет промпт во временный файл и считает длину через wc -c, а при переборе сжимает по порядку: убирает выдержки кода, сворачивает конвенции до ссылки, сокращает цель, режет пояснения. Если вы готовы поднять лимит, скажите об этом сразу — иначе часть деталей придётся вернуть вручную.
Какие задачи решает
- собрать из пункта роадмапа промпт, который исполнитель поймёт без переписки
- сложить планы от
/improveи роадмап в один запускаемый текст - подставить в промпт реальные команды проверки из репозитория
- уложить постановку задачи в 4000 знаков без потери критериев готовности
- сохранить STOP-условия, чтобы исполнитель мог честно остановиться
Примеры запросов агенту
- сделай goal prompt по пункту роадмапа auth-refresh
- jackin-goal-prompt для пункта rate-limits, план возьми из
plans/rate-limits/ - собери
/goalпромпт поdocs/roadmap/billing.mdxи планамplans/billing/*.md
Как установить jackin-goal-prompt
1Через Skills CLI (Vercel)
npx skills add jackin-project/jackin-dev --skill jackin-goal-prompt -a claude-code2Вручную: положить файлы
~/.claude/skills/jackin-goal-prompt/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/jackin-goal-prompt/
1Через Skills CLI (Vercel)
npx skills add jackin-project/jackin-dev --skill jackin-goal-prompt -a codex2Вручную: положить файлы
.agents/skills/jackin-goal-prompt/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add jackin-project/jackin-dev --skill jackin-goal-prompt -a cursor2Вручную: положить файлы
.cursor/skills/jackin-goal-prompt/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install jackin-project/jackin-dev jackin-goal-prompt2Вручную: положить файлы
.github/skills/jackin-goal-prompt/SKILL.md1Через Skills CLI (Vercel)
npx skills add jackin-project/jackin-dev --skill jackin-goal-prompt -a gemini-cli2Командой платформы
gemini skills install https://github.com/jackin-project/jackin-dev --path skills/jackin-goal-promptВручную: положить файлы
.devin/skills/jackin-goal-prompt/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add jackin-project/jackin-dev --skill jackin-goal-prompt -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о jackin-goal-prompt
Как установить jackin-goal-prompt в Claude?
Выполните npx skills add jackin-project/jackin-dev --skill jackin-goal-prompt -a claude-code. После этого скилл лежит в ~/.claude/skills/jackin-goal-prompt/SKILL.md.
Что делает jackin-goal-prompt?
Превращает пункт роадмапа и необязательные файлы планов в один самодостаточный промпт /goal длиной до 4000 знаков. Внутри — цель, границы, гейты проверки, критерии готовности и STOP-условия.
Чем jackin-goal-prompt отличается от jackin-research?
jackin-research пишет многостраничный брифинг prompt.mdx для /goal Follow. Этот скилл даёт компактный встроенный промпт для /goal Implement или /goal Run.
Исходный текст
SKILL.md · Apache-2.0
---
name: jackin-goal-prompt
description: Use only when the user explicitly requests this skill. Distills a jackin❯ roadmap item — plus optional plan files — into a self-contained /goal prompt capped at 4000 characters.
argument-hint: "<slug> [--plan <path|glob>]"
disable-model-invocation: true
license: Apache-2.0
user-invocable: true
---
# jackin-goal-prompt
Distill a roadmap item (and any plan files the operator hands you) into a single **self-contained** `/goal` prompt — one an executor agent with zero prior context can run to completion. The prompt is the product; its tightness decides whether the goal succeeds.
Capped at **4000 characters, hard.** Structure borrowed from `/improve`'s plans: self-contained, verification-gated, hard-boundaried. The skeleton that carries execution — objective, scope, verify gates, done criteria, STOP conditions — stays; everything the executor can read from files (code excerpts) or inherits from jackin❯'s auto-loaded rules (`AGENTS.md`, `COMMITS.md`, `ENGINEERING.md`) is pointed at, never restated.
Distinct from `jackin-research`: that authors a *dossier brief* (a multi-page `prompt.mdx` file run via `/goal Follow`). This produces a compact *inline* prompt run via `/goal Implement` or `/goal Run`.
## When to use
- Operator asks for a goal prompt / wants to kick off `/goal` on a roadmap item.
- Operator has a roadmap item plus `/improve` plan files and wants them fused into one runnable prompt.
## When NOT to use
- Authoring a research dossier brief → `jackin-research`.
- Designing the roadmap item itself → `jackin-brainstorm`.
- Opening the PR → `jackin-create-pr` / `jackin-propose`.
## Arguments
- `<slug>` — the roadmap item (slug, path, or the `.mdx`). Always required.
- `--plan <path|glob>` — plan markdown to fold in (a folder, a file, or a glob). Usually `/improve` output.
## Process
1. **Gather the change.** Read the roadmap `.mdx`. Anchor on `title:` and `**Status**:` only — real items drift from the `Problem/Why/Design/Tasks` scaffold, so tolerate any heading set. If `--plan` is given, read every plan file and lift its scope, steps, verify commands, done criteria, and STOP conditions.
*Done when* you can state, in two sentences, what this change builds and where its code lives.
2. **Read the repo's real verification gates.** The verify commands come from the repo, never invented. Pull them from `CONTRIBUTING.md` (the merge-readiness block), `.github/workflows/ci.yml`, and `mise.toml` — for jackin❯ that is `cargo fmt --check`, `cargo clippy --all-targets --all-features -- -D warnings`, `cargo nextest run --all-features`, the `e2e` profile, plus the `bun` docs gate when `docs/` is touched.
*Done when* every gate you cite is a command the repo actually runs, with its expected result.
3. **Compose the prompt** — the compressed `/improve` skeleton:
- **Objective** — one or two lines: what to build, pulled from the roadmap/plan.
- **Scope** — in-scope paths; out-of-scope boundaries (what looks related but must not be touched).
- **Verify gates** — the commands from step 2, each with its expected result.
- **Done criteria** — machine-checkable, one line each (a command + result, or a greppable absence), never prose like "works correctly."
- **STOP conditions** — drift vs the plan, a scope boundary that won't hold, a gate that won't go green honestly.
- **Conventions** — one line pointing at jackin❯'s auto-loaded rule files; do not copy their content.
4. **Enforce the 4000-character cap.** Write the prompt to a temp file and `wc -c` it. Over the cap, compress in this priority order until it fits: drop code excerpts (name the file + the contract, not the code), collapse conventions to a pointer, tighten the objective, cut the "why" narrative, merge done criteria into the verify gates. Re-count. The cap is hard — never emit over 4000.
*Done when* `wc -c` reports ≤ 4000 and the prompt still carries objective + scope + verify gates + done criteria + STOP conditions.
5. **Emit + report.** Print the prompt in a single code block, ready to paste after `/goal Implement <slug>` or `/goal Run`. State the character count. Name what you compressed or dropped to fit, so the operator can ask for it back inline if they'd rather raise the cap.
## Common mistakes
- Exceeding 4000 characters — the one hard constraint.
- Inventing verify commands instead of reading the repo's real ones — a gate the repo doesn't run is noise.
- Restating jackin❯'s auto-loaded rules (`AGENTS.md`, `COMMITS.md`, `ENGINEERING.md`) — the executor auto-loads them; point, don't copy.
- Inlining code excerpts — the executor reads the files; name the file and the contract it must satisfy.
- Producing a prompt that leans on chat context ("as discussed", "the approach we chose") — not self-contained, breaks on a fresh executor.
- Ignoring `--plan` files when given — they carry the scope and done criteria; folding them in is the point.
- Dropping the STOP conditions — they are the executor's only honest escape hatch.
## Tooling
No xtask owns this. The skill orchestrates reads (the roadmap `.mdx`, the plan files, the repo's verify commands) and emits a single ≤ 4000-char string. The structure borrows from `/improve`'s plan anatomy (self-contained, verification-gated, hard-boundaried) and the `/goal Run` brief shape jackin❯ already uses for gap-closure.
© jackin-project · Apache-2.0 · jackin-project/jackin-dev