AI 에이전트에게 구현을 맡기면 한 줄짜리 요구사항만으로도 코드를 얻을 수 있습니다. 에이전트는 짧은 시간 안에 결과를 만들어 냅니다. 하지만 나중에 검토해 보면 전제에 빠진 부분이 드러날 수 있습니다. 구현하기 전에 무엇을 만들지, 왜 그렇게 만들지, 범위가 어디까지인지 적어 두세요. 구현, 계획 수립, 작업 분해에 같은 기반을 사용할 수 있습니다. GitHub 공식 도구인 Spec Kit은 이 사양 우선 단계를 CLI와 템플릿 모음으로 제공합니다. 직접 설치하고 프로젝트 초기화를 확인해 보았습니다.
Spec Kit은 사양 주도 개발을 위한 툴킷입니다. Claude Code, Copilot, Cursor 같은 AI 코딩 에이전트가 사용할 사양서, 구현 계획, 작업 목록용 템플릿과 스킬을 설치합니다. 이 프로젝트는 MIT License로 소스 코드를 배포합니다(*1).
1. 설치하기
버전을 고정해서 설치합니다.
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은 의존성이 많지 않아 몇 초 만에 이미지를 빌드했습니다.
2. 버전 확인하기
podman run --rm --network none --memory 2g --cpus 2 --pids-limit 512 \
-v "$(pwd)":/work -w /work specify-sandbox specify --version
명령은 specify 0.12.15를 반환했습니다.
3. 프로젝트 초기화하기
specify init은 패키지에 포함된 템플릿으로 파일을 생성하므로 네트워크 연결이 필요하지 않습니다. 네트워크를 끈 상태에서 실행합니다.
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
-v 옵션을 사용하면 컨테이너에서 지정한 디렉터리를 읽고 쓸 수 있습니다. 실험 전용으로 마련한 빈 디렉터리에서 실행하세요. 개인 키, 자격 증명, 아직 공개하지 않은 소스 코드는 해당 디렉터리에 두지 마세요.
명령은 성공했고, 출력에는 진행 단계가 한 번에 하나씩 표시되었습니다.
명령은 27개 파일을 생성했습니다.
.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는 .claude/skills/ 아래에 있는 10개의 스킬 정의를 /speckit-specify, /speckit-plan, /speckit-tasks, /speckit-implement 같은 명령으로 호출할 수 있습니다. .specify/templates/ 디렉터리에는 사양서, 구현 계획, 작업 목록 템플릿이 들어 있습니다. 예를 들어 constitution-template.md는 ## Core Principles 아래에 [PRINCIPLE_1_NAME] 같은 플레이스홀더를 나열해 프로젝트 원칙을 작성할 수 있는 틀을 제공합니다.
--network none을 사용하면 Podman이 컨테이너 안의 프로세스가 외부 시스템과 통신하지 못하게 합니다. 마운트한 디렉터리의 읽기와 쓰기를 막거나 호스트의 리소스 사용량을 제한하는 기능은 아닙니다. 실행 디렉터리와 --memory/--cpus/--pids-limit 설정은 직접 관리해야 합니다.
4. 네트워크 연결 없이 동작 관찰하기
podman run --rm --network none --memory 2g --cpus 2 --pids-limit 512 \
-v "$(pwd)":/work -w /work specify-sandbox \
specify self check
출력에는 다음 두 줄이 포함되었습니다.
Installed: 0.12.15
Could not check latest release: offline or timeout
오류가 아닙니다. self check는 최신 릴리스를 확인하기 위해 GitHub에 접속합니다. GitHub에 연결할 수 없는 상태에서 self check를 실행하면 이 줄을 출력하고 오류 없이 종료합니다. 네트워크에 연결되지 않은 개발 머신이나 폐쇄된 CI 환경에서 specify를 실행해도 같은 출력이 나와야 합니다. 별도 조치는 필요하지 않습니다. 다음 작업을 계속 진행하면 됩니다.
5. Codex 에이전트에게 사양서 작성시키기
여기까지는 템플릿만 생성했고, AI 에이전트와 전체 워크플로를 실행해 보지는 않았습니다. Spec Kit은 Codex CLI를 공식 지원하므로 에이전트에게 사양서를 작성하게 했습니다.
Codex 스킬을 설치한 프로젝트를 초기화합니다.
specify init --here --integration codex --integration-options="--skills"
명령은 .agents/skills/ 아래에 스킬 정의 모음을 설치합니다. Codex CLI에서는 $ 접두사를 붙여 스킬을 호출하므로 $speckit-specify처럼 사용합니다. Claude Code에서는 /speckit-specify 형식을 사용합니다.
에이전트에게 한 문장만 전달했습니다.
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는 $speckit-specify 스킬의 절차를 따르고 질문에 대한 답을 정리한 뒤 specs/001-reverse-text/spec.md를 생성했습니다. 생성된 파일에는 다음 발췌문이 들어 있습니다.
### 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.
코드 한 줄을 쓰기도 전에 에이전트는 사용자 스토리와 인수 기준을 작성했습니다. 경계 사례도 다뤘습니다. 파일에는 기능 요구사항과 성공 기준이 포함되어 있습니다. 이제 구현 계획($speckit-plan)으로 워크플로를 계속 진행할 수 있습니다. 다음 파일을 생성하는 데 시간이 걸려 여기서 멈췄습니다.
이 단계는 Podman --network none 샌드박스 밖의 호스트에서 실행했습니다. Codex는 OpenAI 추론 엔드포인트와 통신해야 하므로 네트워크가 꺼진 컨테이너 안에서는 실행할 수 없습니다. Codex 자체 샌드박스 메커니즘인 --sandbox workspace-write는 쓰기 작업을 실행 디렉터리로 제한합니다. 이 도구는 다른 사람이 작성한 지침을 바탕으로 스킬 파일을 생성합니다. 에이전트가 읽기 전에 파일을 점검하세요.
사양을 먼저 작성하는 습관
specify init을 한 번 실행하면 사양서, 계획, 작업 템플릿과 이를 AI 에이전트에 연결하는 스킬 모음을 얻을 수 있습니다. Codex에 한 문장만 주었는데도 사용자 스토리, 기능 요구사항, 성공 기준을 산문으로 채워 넣었습니다. 워크플로는 사양을 확정하고 구현을 에이전트에게 맡기는 것에서 시작합니다. 템플릿 단계가 다음 작업을 분명하게 보여 줍니다.
출처
*1 Spec Kit (GitHub), https://github.com/github/spec-kit, MIT License