pub struct Planning {
pub prefix: &'static str,
pub core: &'static [&'static str],
pub refused: fn(&str) -> Option<String>,
pub creates: &'static [&'static str],
pub current_env: Option<&'static str>,
pub toward_tasks: fn(bool) -> &'static [&'static str],
pub revises: Option<&'static str>,
pub checks: Option<&'static str>,
}Expand description
Hosted planning skills.
Fields§
§prefix: &'static strThe prefix installed skills carry (plan runs <prefix>plan).
core: &'static [&'static str]Skills whose before_<name> / after_<name> hooks run.
refused: fn(&str) -> Option<String>Why a skill is not hosted, and what to use instead.
creates: &'static [&'static str]Core skills that create a new unit (Spec Kit: specify): they get
no current-unit variable, and the unit they create becomes current.
current_env: Option<&'static str>The variable the format’s own scripts read the current unit from
(Spec Kit: SPECIFY_FEATURE_DIRECTORY), passed to planning commands.
toward_tasks: fn(bool) -> &'static [&'static str]The skills that lead from what exists to a task list, given whether
a plan exists (Spec Kit: plan, tasks).
revises: Option<&'static str>The skill that revises a written spec from a person’s comments
(Spec Kit: clarify), if the format has one.
checks: Option<&'static str>The skill that checks the planning files for consistency (Spec
Kit: analyze), if the format has one.