spec
The spec command generates structured NLSpec (Natural Language Specification) documents by conducting multi-AI research across multiple language models, asking clarifying questions to understand scope, and performing adversarial completeness validation to surface missing requirements and edge cases. Use this when starting new projects, defining requirements before implementation, or creating specifications for handoff to other teams.
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/nyldn/claude-octopus/HEAD/.claude/commands/spec.md -o ~/.claude/commands/spec.mdspec.md
# Spec - NLSpec Authoring ## INSTRUCTIONS FOR CLAUDE When the user invokes this command (e.g., `/octo:spec <arguments>`): **CORRECT - Use the Skill tool:** ``` Skill(skill: "octo:spec", args: "<user's arguments>") ``` **INCORRECT:** ``` Skill(skill: "flow-spec", ...) ❌ Wrong! Internal skill name, not resolvable by Skill tool Task(subagent_type: "octo:spec", ...) ❌ Wrong! This is a skill, not an agent type ``` --- **Auto-loads the spec skill for NLSpec authoring.** ## Quick Usage Just describe what you want to specify: ``` "Specify a user authentication system" "Create a spec for real-time chat" "Define requirements for payment processing" ``` ## What Is Spec? NLSpec (Natural Language Specification) authoring: - Structured specification from multi-AI research - Question-first approach to understand scope - Probe-based research for domain context - Validated completeness checking ## What You Get - Multi-AI research (Claude + Gemini + Codex) on the domain - Structured NLSpec with behaviors, actors, constraints - Adversarial completeness challenge from a second provider (surfaces missing requirements and overlooked edge cases) - Completeness validation with scoring - Saved specification file for downstream workflows ## When To Use - Starting a new project from scratch - Defining requirements before implementation - Creating a specification for handoff - Establishing acceptance criteria upfront ## Natural Language Examples ``` "Specify an OAuth 2.0 authentication system" "Create a spec for a REST API gateway" "Define the requirements for a CI/CD pipeline" ```
Backend architect for scalable API design, microservices, and distributed systems
Cloud architect for AWS/Azure/GCP infrastructure, IaC, FinOps, and multi-cloud strategies
Code review expert for quality analysis, security vulnerabilities, and production reliability
Database architect for data modeling, technology selection, schema design, and migration planning
Debugging specialist for errors, test failures, and unexpected behavior
Technical documentation architect for comprehensive system docs and architecture guides
Frontend developer for React, Next.js, responsive layouts, and accessible UI components
Performance engineer for optimization, observability, and scalable system performance