Skip to main content

Module speckit

Module speckit 

Source
Expand description

GitHub Spec Kit, the reference format: .specify/ and specs/NNN-name/ with spec.md, plan.md and tasks.md. Parsing is the speccoder-speckit crate’s; this adapter is the only runtime code that knows Spec Kit’s paths and words.

Modules§

bench
The Spec Kit project speccoder bench import writes around an issue.
bug
Bugs in Spec Kit’s layout. With the first-party bug extension installed and enabled, a bug is the extension’s own .specify/bugs/<slug>/assessment.md, written by its assess skill — speccoder writes nothing there and only reads the person’s words back. Without it, the standing unit NNN-bugfixes: each bug a user story whose acceptance scenarios are the triad, an approved requirement in triad form and a task citing it, appended.
extensions
Spec Kit’s installed extensions: the one reader of .specify/extensions*. specify extension list --json when the CLI is installed (read-only), else the registry files it keeps.
hooks
Spec Kit extension hooks around what speccoder runs.
preset
The speccoder Spec Kit preset: a tasks template that plans for evidence, bundled in the binary and installed through Spec Kit’s own specify preset add --dev — on a person’s confirmed command, never from the network. Spec 101’s New Project passes extract’s directory to specify init --preset.
python
The Python Spec Kit’s scripts run. .specify/scripts/bash/common.sh resolves preset templates with a Python that imports PyYAML — its own override SPECKIT_PYTHON_EXECUTABLE, else python3 — and the system python3 usually has no PyYAML, so with a preset installed setup-tasks.sh finds no tasks template. The installed specify runs on a Python that has it (Spec Kit depends on PyYAML): speccoder finds that interpreter, checks that it imports yaml, and gives it to every command of a Spec Kit project — unless the person set the override.
workflow
speccoder workflow install: speccoder as a Spec Kit workflow step type, and a workflow that uses it.

Structs§

SpecKit
The Spec Kit adapter.
Workspace
A project root that all reads are confined to.

Statics§

MESSAGES
What a person is told about a Spec Kit project.
PLANNING
Spec Kit’s planning skills.
RULES
Spec Kit’s intent and planning rules.
SPECKIT
The one instance.
WORDING
What the model is told about Spec Kit.

Functions§

precondition
What a Spec Kit worktree needs committed, given the repository-relative .specify and feature directories.
story_section
The ### User Story N section for label USN, up to the next heading of the same or a higher level.