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. Delegate only when the user explicitly starts an Octopus workflow.
Cloud architect. Delegate only when the user explicitly starts an Octopus workflow.
Code reviewer. Delegate only when the user explicitly starts an Octopus workflow.
Database architect. Delegate only when the user explicitly starts an Octopus workflow.
Debugger. Delegate only when the user explicitly starts an Octopus workflow.
Documentation architect. Delegate only when the user explicitly starts an Octopus workflow.
Frontend developer. Delegate only when the user explicitly starts an Octopus workflow.
Performance engineer. Delegate only when the user explicitly starts an Octopus workflow.