The user input to you can be provided directly by the agent or as a command argument - you MUST consider it before proceeding with the prompt (if not empty).
User input:
$ARGUMENTS
The text the user typed after /specify
in the triggering message is the feature description. Assume you always have it available in this conversation even if $ARGUMENTS
appears literally below. Do not ask the user to repeat it unless they provided an empty command.
Given that feature description, do this:
.specify/scripts/bash/create-new-feature.sh --json "$ARGUMENTS"
from repo root and parse its JSON output for BRANCH_NAME and SPEC_FILE. All file paths must be absolute.
IMPORTANT You must only ever run this script once. The JSON is provided in the terminal as output - always refer to it to get the actual content you're looking for..specify/templates/spec-template.md
to understand required sections.Note: The script creates and checks out the new branch and initializes the spec file before writing.