You can hand implementation to an AI agent and get code from a one-line requirement. The agent produces it in a short time. A later review may reveal gaps in the assumptions. Write down what to build, why to build it that way, and how far the scope extends before implementation. You can use the same foundation for implementation, planning, and task breakdown. GitHub's official Spec Kit packages this specification-first step as a CLI and a set of templates. I installed it and verified project initialization.
Spec Kit is a toolkit for Spec-Driven Development. It installs templates and skills for specifications, implementation plans, and task lists for AI coding agents such as Claude Code, Copilot, and Cursor. The project releases its source under the MIT License (*1).
1. Install it
Install a pinned version.
FROM python:3.12.13-slim
RUN pip install --no-cache-dir --quiet 'specify-cli==0.12.15'
WORKDIR /work
podman build -t specify-sandbox .
Podman built the image in a few seconds with few dependencies.
2. Check the version
podman run --rm --network none --memory 2g --cpus 2 --pids-limit 512 \
-v "$(pwd)":/work -w /work specify-sandbox specify --version
The command returned specify 0.12.15.
3. Initialize a project
specify init generates files from templates that the package includes, so it does not need a network connection. Run it with networking disabled.
podman run --rm --network none --memory 2g --cpus 2 --pids-limit 512 \
-v "$(pwd)":/work -w /work specify-sandbox \
specify init demo-project --ignore-agent-tools --integration claude --script sh
The -v option makes the specified directory readable and writable from the container. Run this in an empty directory reserved for the experiment. Keep private keys, credentials, and unreleased source code out of that directory.
The command succeeded, and the output showed one step of progress at a time.
The command generated 27 files.
.claude/skills/speckit-analyze/SKILL.md
.claude/skills/speckit-checklist/SKILL.md
.claude/skills/speckit-clarify/SKILL.md
.claude/skills/speckit-constitution/SKILL.md
.claude/skills/speckit-converge/SKILL.md
.claude/skills/speckit-implement/SKILL.md
.claude/skills/speckit-plan/SKILL.md
.claude/skills/speckit-specify/SKILL.md
.claude/skills/speckit-tasks/SKILL.md
.claude/skills/speckit-taskstoissues/SKILL.md
.specify/init-options.json
.specify/integration.json
.specify/integrations/claude.manifest.json
.specify/integrations/speckit.manifest.json
.specify/memory/constitution.md
.specify/scripts/bash/check-prerequisites.sh
.specify/scripts/bash/common.sh
.specify/scripts/bash/create-new-feature.sh
.specify/scripts/bash/setup-plan.sh
.specify/scripts/bash/setup-tasks.sh
.specify/templates/checklist-template.md
.specify/templates/constitution-template.md
.specify/templates/plan-template.md
.specify/templates/spec-template.md
.specify/templates/tasks-template.md
.specify/workflows/speckit/workflow.yml
.specify/workflows/workflow-registry.json
Claude Code can invoke the 10 skill definitions under .claude/skills/ as commands such as /speckit-specify, /speckit-plan, /speckit-tasks, and /speckit-implement. The .specify/templates/ directory contains templates for specifications, implementation plans, and task lists. For example, constitution-template.md lists placeholders such as [PRINCIPLE_1_NAME] under ## Core Principles, providing a template for writing a project's principles.
With --network none, Podman prevents processes inside the container from communicating with external systems. It does not prevent reads and writes in a mounted directory or limit resource consumption on the host. You must manage the execution directory and the --memory/--cpus/--pids-limit settings yourself.
4. Observe behavior without a network connection
podman run --rm --network none --memory 2g --cpus 2 --pids-limit 512 \
-v "$(pwd)":/work -w /work specify-sandbox \
specify self check
The output contained these two lines.
Installed: 0.12.15
Could not check latest release: offline or timeout
This is not an error. self check contacts GitHub to check the latest release. A self check run that cannot reach GitHub prints this line and exits without an error. A development machine without network access or a closed CI environment should show the same output when it runs specify. No action is required. Continue with the next task.
5. Have a Codex agent write a specification
Up to this point, I had generated templates. I had not tried the full workflow with an AI agent. Spec Kit has official support for the Codex CLI, so I had an agent write a specification.
Initialize a project with the Codex skills installed.
specify init --here --integration codex --integration-options="--skills"
The command installs a set of skill definitions under .agents/skills/. In the Codex CLI, invoke a skill with a $ prefix, as in $speckit-specify; Claude Code uses the /speckit-specify form.
I gave the agent one sentence:
codex exec --sandbox workspace-write --skip-git-repo-check \
'Use the $speckit-specify skill to create a baseline specification for a small CLI tool: a text-reversal utility that reads stdin and writes the reversed string to stdout. Keep it simple.'
Codex followed the $speckit-specify skill's steps, assembled answers to its questions, and generated specs/001-reverse-text/spec.md. The generated file contains this excerpt:
### User Story 1 - Reverse Piped Text (Priority: P1)
As a command-line user, I want to pipe text into the utility and receive
the same text in reverse order so that I can reverse a string in scripts
or interactive shell workflows.
**Acceptance Scenarios**:
1. **Given** standard input contains `stressed`, **When** the utility runs,
**Then** standard output is exactly `desserts`.
2. **Given** standard input is empty, **When** the utility runs, **Then**
standard output is empty and the run completes successfully.
## Requirements *(mandatory)*
### Functional Requirements
- **FR-001**: The utility MUST read the complete text value from standard input.
- **FR-004**: Successful output MUST contain no prompts, labels, diagnostics,
or extra characters beyond the reversed input.
- **FR-008**: If input cannot be read or output cannot be written, the utility
MUST indicate failure and MUST keep any diagnostic message separate from
standard output.
Before it wrote a single line of code, the agent filled in the user story and acceptance criteria. The agent covered edge cases. The file includes functional requirements and success criteria. The workflow can continue with the implementation plan ($speckit-plan). I stopped there because generating the next files takes time.
I ran this outside the Podman --network none sandbox, on the host. Codex itself needs to communicate with OpenAI's inference endpoint, so it cannot run inside a container with networking disabled. The container no longer provides isolation for this step. Codex's own sandbox mechanism, --sandbox workspace-write, limits writes to the execution directory. The tool generates skill files from instructions written by a third party. Inspect them before the agent reads them.
The habit of writing the specification first
Running specify init once gives you templates for specifications, plans, and tasks, plus a set of skills that connect them to an AI agent. I gave Codex one sentence, and it filled in the user story, functional requirements, and success criteria as prose. The workflow starts by fixing the specification and handing implementation to an agent. The template stage makes the next step clear.
Sources
*1 Spec Kit (GitHub), https://github.com/github/spec-kit, MIT License