How Do You Use the /specify Command in GitHub Spec Kit? | Up & Running with GitHub Spec Kit #3

21.8K views
•
October 14, 2025
by
Net Ninja
YouTube video player
How Do You Use the /specify Command in GitHub Spec Kit? | Up & Running with GitHub Spec Kit #3

TL;DR

Use GitHub Spec Kit’s /specify command by entering /specify followed by a high-level description of what you want to build and why, with the emphasis on user experience rather than technologies or architecture. The command creates and checks out a numbered feature branch, makes a feature folder and spec file, and writes the specification from a template. Read on to understand branch naming, input scope, and the command’s four-part workflow.

Transcript

All right there my friends. So now we have run the constitution command and that updated the constitution file with some governing principles for any new spec or plan we make. And now we can go ahead and make a new spec by using the specify command. All right. So we want to use this specify command now which is what we'd use to make a highlevel spe... Read More

Key Insights

  • The /specify command creates a high-level spec for new features or application segments.
  • Focusing on user experience rather than technical details is crucial when using the /specify command.
  • Creating specs for smaller, contained features is often more effective than large, comprehensive specs.
  • The /specify command generates a new feature branch and a spec file for organized development.
  • The new branch name is derived from a feature number and the first three words of the feature description.
  • Spec Kit's spec files include user stories, acceptance scenarios, and functional requirements.
  • The spec file's metadata includes branch name, creation date, and draft status.
  • Spec Kit ensures specs are high-level and user-focused, avoiding technical implementation details.

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: How do you use the /specify command in GitHub Spec Kit?

Enter /specify in the chat and follow it with an outline of the feature or application segment you want specified. Keep the outline high-level and explain what users need and why, rather than prescribing technologies, architecture, or other implementation details.

Q: What does the /specify command do in GitHub Spec Kit?

The command creates a high-level specification for a new feature or a larger segment of an application. It also runs a script that creates and checks out a feature branch, makes a feature folder and spec file, and prepares that file to receive the specification.

Q: What should the input after /specify include?

The input should outline the new feature at a high level and focus on its intended user experience. The example describes a goal-tracking web app called Do It, including current and completed goal columns, checkboxes, a modal form with title and end-date fields, and highlighting for goals due within 3 days.

Q: What should be excluded from a /specify prompt?

Avoid detailed instructions about the underlying technologies or application architecture. The prompt should emphasize what the feature must accomplish and why it matters instead of explaining how it should be implemented.

Q: What four things does the specify prompt do?

First, it runs the create-new-feature script. It then loads the spec template, writes the specification into the newly created spec file, and tells the agent to report back with information about the result.

Q: How does GitHub Spec Kit name the new feature branch?

The create-new-feature script builds the branch name from a feature number and the first three words of the supplied feature description. In the example, “initial page setup” produces the branch 001 initial page setup, so the presenter deliberately chooses the opening three words with the branch name in mind.

Q: What files and folders does /specify create?

The script creates a new folder for the feature and places a copy of the spec template inside it as the new spec file. In the example, the spec file is stored in a folder named 001 initial page setup, matching the new branch.

Q: Should one /specify command cover an entire application?

It can cover an entire application, and the presenter says that approach can work. However, the presenter prefers several contained features or sections because a single extensive specification gives models more room to veer off track, while specifications that are too small can make Spec Kit feel like overkill.

Summary & Key Takeaways

  • The /specify command in GitHub Spec Kit is used to create high-level specifications for new features, focusing on user experience rather than technical details. It organizes development by creating a new feature branch and spec file, ensuring that each feature is manageable and aligned with user and business needs.

  • Spec Kit's approach to feature development involves creating specs for smaller, contained features rather than attempting to spec out an entire application at once. This method helps maintain focus and prevent deviations from the intended development path, while ensuring that specs are user-focused and non-technical.

  • The spec file generated by the /specify command includes user stories, acceptance scenarios, functional requirements, and metadata. This structured approach ensures that all necessary aspects of a feature are considered, while maintaining a high-level, user-focused perspective.


Read in Other Languages (beta)

Share This Summary 📚

Explore More Summaries from Net Ninja 📚