Synthesize the current conversation into a single, self-contained /goal prompt that Claude Code can run to continue the agreed-upon work autonomously — so the user never has to hand-summarize a long…

GPL-3.0Auto-check passed

Install Generate Goal

skills CLI
$ npx skills add michaleiatrak-star/Lex-Machina --skill generate-goal -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install michaleiatrak-star/Lex-Machina generate-goal --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/michaleiatrak-star/Lex-Machina.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/generate-goal .claude/skills/generate-goal && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
generate-goal
GitHub stars
263
Token cost
~1.2k tokens
SKILL.md length
505 words
Files
1
Skills in repo
35
Repo updated
First seen
Licence
GPL-3.0

At a glance

Synthesize the current conversation into a single, self-contained /goal prompt that Claude Code can run to continue the agreed-upon work autonomously — so the user never has to hand-summarize a long…

  • Works in 5 steps: Identify the objective. Pin down the one… → Mine the conversation for what a cold… → Compose the prompt (start the text with… → …
  • The user and Claude have converged on what to do next and the user wants to hand it off to the /goal command
  • SKILL.md covers Hard rules, Process, What makes the completion… and Example
  • Calls make

What it does

Generate Goal is an agent skill from michaleiatrak-star/Lex-Machina. Synthesize the current conversation into a single, self-contained /goal prompt that Claude Code can run to continue the agreed-upon work autonomously — so the user never has to hand-summarize a long discussion into a goal directive. Use when the user and Claude have converged on what to do next and the user wants to hand it off to the /goal command. Triggers include "generate a goal", "make/write a goal prompt", "turn this into a /goal", "hand this off to /goal", "goalify this", or "/generate-goal". Outputs the…

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Analityka polskiego prawa, przygotowanie pism procesowych, weryfikacja przepisów prawa polskiego i orzecznictwa z oficjalnych źródeł z zakazem cytowania z pamięci, przygotowanie… The licence is GPL-3.0.

When your agent uses it

  • The user and Claude have converged on what to do next and the user wants to hand it off to the /goal command
  • Include generate a goal
  • Make/write a goal prompt
  • Turn this into a /goal

Example prompts

  • “generate a goal”
  • “make/write a goal prompt”
  • “turn this into a /goal”
  • “/generate-goal”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Identify the objective. Pin down the one thing the conversation converged on as the next work. If it is genuinely ambiguous, or several…
  2. Mine the conversation for what a cold agent needs. Pull the specifics, not a vibe: decisions made (and the why when it guides tradeoffs)…
  3. Compose the prompt (start the text with /goal), in this order
  4. Tighten. Every sentence earns its place. Cut recap and narration; keep decisions and specifics. Succinct but complete.
  5. Output the final prompt in one fenced code block, then offer to adjust scope, constraints, or the turn cap. Do not save it.

What it can do on your machine

Read from SKILL.md and the folder at commit d31ca57. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • make

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Generate Goal loads about 1.2k tokens when it runs. Until then it costs about 146 tokens; SKILL.md has 505 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~146
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from michaleiatrak-star/Lex-Machina at commit d31ca57, republished under its GPL-3.0 licence (© michaleiatrak-star). 505 words, ~1,205 tokens.

Download SKILL.mdSave it as .claude/skills/generate-goal/SKILL.md (or your agent's skills folder).
name
generate-goal
description
Synthesize the current conversation into a single, self-contained `/goal` prompt that Claude Code can run to continue the agreed-upon work autonomously — so the user never has to hand-summarize a long discussion into a goal directive. Use when the user and Claude have converged on what to do next and the user wants to hand it off to the `/goal` command. Triggers include "generate a goal", "make/write a goal prompt", "turn this into a /goal", "hand this off to /goal", "goalify this", or "/generate-goal". Outputs the prompt to chat only; never writes files to disk.

Generate Goal

Turn the accumulated understanding in the current conversation into one ready-to-run /goal prompt. The user has been discussing what to work on next and wants that context distilled into a directive they can paste into /goal (or that Claude can run) without summarizing it themselves.

Hard rules

  • Never write files. Output the prompt to chat in a single fenced code block. No .goal file, no scratch file — nothing on disk.
  • The prompt must be self-contained. A /goal run is a fresh autonomous agent that does not share this conversation's memory. Bake in every load-bearing fact it needs (paths, commands, knob names, current state, decisions). Assume it starts cold.
  • End with a measurable completion condition. /goal runs turn after turn until a small evaluator model confirms the condition holds. The evaluator reads the transcript; it does not run commands. So the condition must be provable from what the agent surfaces (files exist and are committed, a test result is reported, a stated number/verdict appears).

Process

  1. Identify the objective. Pin down the one thing the conversation converged on as the next work. If it is genuinely ambiguous, or several distinct goals are in play, ask one focused clarifying question before generating — otherwise proceed.
  2. Mine the conversation for what a cold agent needs. Pull the specifics, not a vibe: decisions made (and the why when it guides tradeoffs), exact file paths / commands / flags / knob names / URLs surfaced, current state (what is done, in-flight, or blocked), constraints ("don't touch X", "keep pins green"), and gotchas already learned. Prefer concrete references over prose.
  3. Compose the prompt (start the text with /goal), in this order:
    • Directive — role + what to accomplish, stated so it stands alone.
    • Context — the minimal essential facts from step 2 (paths, commands, current state). Enough to start cold, no conversation color.
    • Constraints — what must not change or break on the way there.
    • COMPLETION — one measurable end state + how to prove it (an evaluator-checkable clause), then a turn cap: Stop after N turns and report status if not done.
  4. Tighten. Every sentence earns its place. Cut recap and narration; keep decisions and specifics. Succinct but complete.
  5. Output the final prompt in one fenced code block, then offer to adjust scope, constraints, or the turn cap. Do not save it.
Show full SKILL.md (123 more words)Show less

What makes the completion condition hold up

Weak (unverifiable / open-ended): improve the backtest realism, make the tests better.

Strong (one end state + stated check + guardrail):

  • COMPLETION: bin/backtest builds, make test reports 4/4 byte-identical pins, and docs/state/BACKTEST_REALISM.md has a new changelog row with the OFF-vs-ON per-market PnL. No change to canonical defaults. Stop after 30 turns and report status if not done.

Match the turn cap to the scope (a focused change ~15–25; a multi-part build ~40+). The cap is a safety valve so a stuck run halts and reports instead of looping.

Example

Conversation converged on: add a default-off env knob, prove it is pins-neutral, and measure it.

Generated output:

/goal You are an autonomous agent continuing prior work in this repo. Read CLAUDE.md first. TASK: add env flag FILL_MODEL_TAKER_PERLEVEL_FEE (default 0) in src/trading/execution/exchange_sim.c so that, when ON, the taker fee is summed per consumed book level instead of computed once on the VWAP; keep taker_matcher.c pure. CONSTRAINTS: default OFF must be byte-identical — `make test` green and check_bt_pins = OK 4 byte-identical with the flag OFF; if pins break the flag is leaking, STOP and fix. VALIDATION: add tests/test_taker_realism.c::test_perlevel_fee_vs_vwap_fee proving the per-level sum equals the sum of fees_v2_taker(shares_i, px_i). COMPLETION: flag implemented default-OFF, make test green, pins 4/4 byte-identical, the new unit test present and passing per the reported test output, changes committed. Stop after 30 turns and report status if not done.

Then offer: adjust the turn cap, tighten the completion check, or add/remove constraints.

© michaleiatrak-star, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/generate-goal of michaleiatrak-star/Lex-Machina.

Open the folder on GitHubat commit d31ca57

Compare with similar skills

Generate Goal next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Generate Goal compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Generate Goal this skillmichaleiatrak-star/Lex-Machina263—~1.2kAutomated safety check: PassGPL-3.0
Goalscodewhale-hq/Codewhale41k—~273Automated safety check: PassMIT
Modeling Conversion MetricsPostHog/posthog40k—~1.4kAutomated safety check: PassCustom licence
Apple Containersickn33/agentic-awesome-skills47k1 repos~2.5kAutomated safety check: PassApache-2.0
Container Security Hardeningsickn33/agentic-awesome-skills47k1 repos~1kAutomated safety check: NotesMIT
Agent Goal Plannerruvnet/ruflo74k2 repos~842Automated safety check: PassMIT

Similar skills

  • Goals

    codewhale-hq/Codewhale

    Set, review, and update the user's goals. An agent skill from codewhale-hq/Codewhale.

    41k GitHub stars~273 tokensUpdated today
    Auto-check passed
  • Official

    Build reusable conversion models — funnel/step conversion rates, drop-off, and time-to-convert — on either PostHog data-warehouse views (HogQL) or an external dbt project.

    40k GitHub stars~1.4k tokensUpdated yesterday
    Data & AnalyticsAuto-check passed
  • Apple Container

    sickn33/agentic-awesome-skills

    Build, run, and manage OCI/Linux containers as lightweight per-container VMs on Apple-silicon macOS using Apple's open-source container CLI, no Docker daemon required.

    47k GitHub starsUsed in 1 repo~2.5k tokens
    DevOps & CloudAuto-check passed
  • Container Security Hardening

    sickn33/agentic-awesome-skills

    Harden Docker/container images and runtime deployments with secure base images, non-root users, CVE scanning, SBOM/signing, seccomp/AppArmor, and Kubernetes pod security controls.

    47k GitHub starsUsed in 1 repo~1k tokens
    SecurityAuto-check: notes
  • Agent Goal Planner

    ruvnet/ruflo

    Agent skill for goal-planner - invoke with $agent-goal-planner

    74k GitHub starsUsed in 2 repos~842 tokens
    Auto-check passed
  • Synthesize research findings from memory into structured reports with evidence grading, contradiction resolution, and actionable recommendations

    74k GitHub stars~706 tokensUpdated yesterday
    Auto-check: notes

More from michaleiatrak-star/Lex-Machina

All 35 skills in this repo
  • Gemini Agent

    michaleiatrak-star/Lex-Machina

    Delegate tasks to Gemini CLI as an agent. An agent skill from michaleiatrak-star/Lex-Machina.

    267 GitHub stars~626 tokensUpdated today
    Auto-check passed
  • Git Worktree Prune

    michaleiatrak-star/Lex-Machina

    Safely prune stale git worktrees and local branches left over from past sessions, deleting only those with no unique work so no commit is ever lost.

    267 GitHub stars~712 tokensUpdated today
    Auto-check passed
  • Analizator Umow V1

    michaleiatrak-star/Lex-Machina

    Analiza, redakcja, negocjacje i generowanie umów oraz dokumentów korporacyjnych, HR i RODO: ryzyka klauzul, B2B/B2C, praca, najem, IT/SaaS, IP, founders, finansowanie i PZP.

    267 GitHub stars~9.1k tokensUpdated today
    Auto-check passed
  • Audyt Systemu V4

    michaleiatrak-star/Lex-Machina

    Audyt jakości, spójności i bezpieczeństwa systemu prawnych skilli: zależności, wersje, mapy Dz.U., treść merytoryczna, propagacja zmian, deduplikacja i bramki jakości.

    267 GitHub stars~18k tokensUpdated today
    Auto-check passed
  • Dr 02 Prawo Cywilne Rodzinne Gospodarcze

    michaleiatrak-star/Lex-Machina

    Prawo cywilne, rodzinne i gospodarcze: KC, KPC, spadki, rodzina, spółki, upadłość, restrukturyzacja, windykacja i odpowiedzialność kontraktowa/deliktowa.

    267 GitHub stars~10k tokensUpdated today
    Auto-check passed
  • Dr 01 Ustroj Konstytucyjny I Zrodla Prawa

    michaleiatrak-star/Lex-Machina

    Prawo konstytucyjne i ustrojowe: Konstytucja, organy państwa, TK, źródła prawa, legislacja i skarga konstytucyjna; analiza z aktualną weryfikacją źródeł.

    267 GitHub stars~2.6k tokensUpdated today
    Auto-check passed

Questions about Generate Goal

What does Generate Goal do?

Synthesize the current conversation into a single, self-contained /goal prompt that Claude Code can run to continue the agreed-upon work autonomously — so the user never has to hand-summarize a long…. Generate Goal is an agent skill from michaleiatrak-star/Lex-Machina. Synthesize the current conversation into a single, self-contained /goal prompt that Claude Code can run to continue the agreed-upon work autonomously — so the user never has to hand-summarize a long discussion into a goal directive.

When should I use Generate Goal?

Generate Goal fits situations like: the user and Claude have converged on what to do next and the user wants to hand it off to the /goal command; include generate a goal; make/write a goal prompt; turn this into a /goal.

How do I install Generate Goal in Claude Code?

Run `npx skills add michaleiatrak-star/Lex-Machina --skill generate-goal -a claude-code`. Or copy the skill folder (.claude/skills/generate-goal in michaleiatrak-star/Lex-Machina) into .claude/skills/generate-goal in your project. Claude Code loads it when a task matches its description.

How do I install Generate Goal in Codex?

Run `npx skills add michaleiatrak-star/Lex-Machina --skill generate-goal -a codex`. Or copy the skill folder (.claude/skills/generate-goal in michaleiatrak-star/Lex-Machina) into .agents/skills/generate-goal in your project. Codex loads it when a task matches its description.

Can I use Generate Goal in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add michaleiatrak-star/Lex-Machina --skill generate-goal -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/generate-goal, .gemini/skills/generate-goal, .github/skills/generate-goal and .opencode/skills/generate-goal in your project.

What does Generate Goal need to run?

Going by SKILL.md and its folder, Generate Goal needs the command-line tools its instructions call (make).

Does Generate Goal access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Generate Goal safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Generate Goal use?

Generate Goal is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Generate Goal use?

About 1.2k tokens (SKILL.md is roughly 4.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Generate Goal?

Skills that share tags, products or a category with Generate Goal: Goals (codewhale-hq/Codewhale, 41k stars), Modeling Conversion Metrics (PostHog/posthog, 40k stars), Apple Container (sickn33/agentic-awesome-skills, 47k stars) and Container Security Hardening (sickn33/agentic-awesome-skills, 47k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Generate Goal?

michaleiatrak-star (a GitHub user) maintains it in michaleiatrak-star/Lex-Machina, which has 263 GitHub stars. The repository holds 35 skills in this directory. The repository was last updated on October 9, 2026.

Source: michaleiatrak-star/Lex-Machina on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.