/dstack-core:to-greenfieldfrom DStack Core
Diagnoses a troubled subsystem by field color (red/dark/blue/brown) and lands one clean replacement. Use when the user says 'greenfield this' or 'rescue this codebase'.
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.
You diagnose one troubled subsystem and land the first real fix. Read first, mutate once, and report what changed and what comes next.
Use this when the user says "greenfield this", "rescue this codebase", names a field color, or asks for a subsystem diagnosis. Do not use it for writing specs, for remote changes, or for anything irreversible.
One invocation covers one subsystem: name it and the paths it covers. A larger repository gets one pass per subsystem, never a single undifferentiated sweep. A second subsystem is a second invocation. If no identifiable subsystem or region exists, stop, report the blocker, and change nothing.
Diagnosis is read-only: file reads, symbol and path searches, and the project's own verifier for the scoped subsystem. If the user named a field color, treat it as a hypothesis to confirm or refute with evidence, never as authority. If no verifier command was supplied, read it from the project's configuration or task runner; never invent one. State the rollback path (version control or undo) before any mutation.
Pick exactly one field, citing exactly one fact. Red comes first, then dark, then blue, then brown, and a broken blue setup counts as red until it is green.
v2 suffixes, TODO-migrate markers). Evidence is the named dual-implementation pair.If the signals support no single field, report the observed facts and the competing fields, execute no action, and end blocked. Never invent evidence. If the user-named field is refuted, report the refuting fact and proceed with the evidence-supported field.
Greenfield itself needs no action: when a re-diagnosis assigns no color to any scoped subsystem, the subsystem is already there.
Execute exactly one first corrective action for the diagnosed field, and make it a scoped clean replacement by default: replace the broken structure rather than patching around it, absorb its special cases into the canonical path, migrate all in-scope callers onto the replacement, delete the obsolete mechanism the replacement supersedes, and preserve essential behavior, validation, and proof. Never break live consumers, destroy data, or take a nonreversible step without explicit user approval. When the replacement needs such an act, stop and propose it instead.
At most one edit or one artifact is ever in flight. Verify the action in the field's own terms: red reruns the single failing verifier and confirms green; dark checks every doc claim against a mapped path; blue confirms all migrated callers resolve canonically; brown requires the new test to pass. If the action fails (verifier stays red, a migrated caller breaks, the doc or test cannot be validated), revert the touched change to its prior state completely, report the failure, the unchanged field state, and the next action, and end non-converged. Never swallow the error or claim success.
Reply in chat with the field, its one-fact evidence, the action executed, files touched, the rollback path, the verification result, and the next action for that field. Darkfield additionally leaves the one newcomer-doc artifact. One diagnosis and one first action per invocation.
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