/dstack-core:generalizefrom DStack Core
Derives a general rule from example cases when a request arrives as examples rather than an explicit rule. Useful for pattern extraction and inductive reasoning tasks.
Ships in DStack Core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Sometimes the ask arrives as examples instead of a rule ("do it like this one", "fix these three the same way", a pasted log with "you figure it out"). Your job is to state the rule those examples carry, draw its boundary, and hand the contract back for someone else to apply. You never apply the rule here, and you change nothing: no file, version control, credential, paid, published, deployed, or remote mutation.
Reach for askme instead when the request itself is ambiguous but no examples are on the table. The split is simple: examples present means generalize, bare ambiguity means askme.
List every positive (instances pointed at approvingly or asked to be repeated) and every negative (anything named "not that", including an earlier attempt the user rejected). A rejected attempt is the most informative case in the set because it kills hypotheses no positive can. State the set size in your output so the reader knows how much evidence stands behind the rule.
Two variants change the shape of this step:
Break each case into features, meaning observable attributes (subject, location, shape, trigger, wording, scale). Attributes, never impressions: "returns early on nil" is a feature, "is clean" is not.
Then mark each attribute as candidate invariant (present in every positive, absent from every negative) or incidental (varies across positives). With a single positive this step decides nothing, so every attribute stays candidate invariant and the probe does the work.
Now write 2 to 4 rival rules, ordered from narrow to broad, one sentence each with a weight from 0 to 1. Every candidate must reproduce all positives and exclude all negatives. A candidate that misses a supplied case is dead: drop it and name the case that killed it. If the filter leaves exactly one candidate, the induction is settled and you go straight to bounding.
A rule built from one hypothesis without rivals is a guess wearing a method, so this step is mandatory unless the filter already reduced the field to one.
Find something in the user's own material (another file, row, sibling call site, neighboring paragraph) that the surviving candidates classify differently. That item is the discriminator.
Resolve it from evidence first using search, read, language server output, or a scout subagent. If the material shows the probe already follows one candidate's rule, that candidate wins and the question dies. Ask the human only when evidence cannot settle it, as one single-select question showing what each reading would do to the probe item, with a recommended default. Never ask a probe the material already answers.
A rule is not stated until its edge is. Name what it covers, what it deliberately excludes, and the nearest excluded neighbor (the closest thing a reader might expect to be swept in that will not be). "Everything similar" is not a boundary.
Your output is the generalization contract: the case set with each case marked positive or negative, the surviving rule, the invariant attributes it rests on, the incidental attributes discarded, the boundary with its nearest excluded neighbor, and the probe with its basis and how it resolved. For a data drop, add the inferred intent as a proposal to confirm. On a structured output request, render the same contract as a fenced generalization/v1 YAML block. Then stop. Acting on the rule belongs downstream.
If the probe cannot be resolved from evidence and the human does not answer, emit the surviving candidates with the probe marked open and unresolved. Never swallow an open probe or pretend the rule is settled. On any failure, leave all source material unchanged and return whatever partial contract you have.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gosuda/dstack-skills --plugin dstack-core89 skills in this plugin
/abstract-wellUse when the user wants to classify abstractions as useful, bad, or busy and keep one shallow level. Not for tasks requiring source or remote-system changes./architectUse when non-trivial code needs a design, codebase architecture needs improving through survey and deepening, or one module needs targeted interface narrowing, seams, or testability. Not for rendered visual artifacts, deploy, or irreversible changes./architecture-simplificationUse when the user explicitly asks to simplify an architecture, collapse modules or crates, or cut a dependency graph within approved boundaries. Executes an approved layout direction slice by slice. Not for single-module cleanup: use code-simplification. Not for layout planning from nothing: use architect. Not for blind re-derivation: use breaking-driven.Other plugins' skills for the same job