brainstorming
Structured design dialogue that validates ideas before implementation begins.
moai-alfred-spec-authoring
SPEC document authoring guide - YAML metadata, EARS syntax (5 patterns with Unwanted Behaviors), validation checklist
Full skill instructions
| Field | Value |
|---|---|
| Skill Name | moai-alfred-spec-authoring |
| Version | 1.2.0 (2025-11-02) |
| Allowed tools | Read, Bash, Glob |
| Auto-load | /alfred:1-plan, SPEC authoring tasks |
| Tier | Alfred |
Comprehensive guide for authoring SPEC documents in MoAI-ADK. Provides YAML metadata structure (7 required + 9 optional fields), official EARS requirement syntax (5 patterns including Unwanted Behaviors), version management lifecycle, TAG integration, and validation strategies.
Key capabilities:
/alfred:1-plan workflow integrationAutomatic triggers:
/alfred:1-plan command executionManual invocation:
mkdir -p .moai/specs/SPEC-{DOMAIN}-{NUMBER}
# Example: Authentication feature
mkdir -p .moai/specs/SPEC-AUTH-001
---
id: AUTH-001
version: 0.0.1
status: draft
created: 2025-10-29
updated: 2025-10-29
author: @YourGitHubHandle
priority: high
---
# @SPEC:AUTH-001: JWT Authentication System
## HISTORY
### v0.0.1 (2025-10-29)
- **INITIAL**: JWT authentication SPEC draft created
- **AUTHOR**: @YourHandle
## Environment
**Runtime**: Node.js 20.x or later
**Framework**: Express.js
**Database**: PostgreSQL 15+
## Assumptions
1. User credentials stored in PostgreSQL
2. JWT secrets managed via environment variables
3. Server clock synchronized with NTP
## Requirements
### Ubiquitous Requirements
**UR-001**: The system shall provide JWT-based authentication.
### Event-driven Requirements
**ER-001**: WHEN the user submits valid credentials, the system shall issue a JWT token with 15-minute expiration.
### State-driven Requirements
**SR-001**: WHILE the user is in an authenticated state, the system shall permit access to protected resources.
### Optional Features
**OF-001**: WHERE multi-factor authentication is enabled, the system can require OTP verification after password confirmation.
### Unwanted Behaviors
**UB-001**: IF a token has expired, THEN the system shall deny access and return HTTP 401.
| Pattern | Keyword | Purpose | Example |
|---|---|---|---|
| Ubiquitous | shall | Core functionality always active | "The system shall provide login capability" |
| Event-driven | WHEN | Response to specific events | "WHEN login fails, display error" |
| State-driven | WHILE | Persistent behavior during state | "WHILE in authenticated state, permit access" |
| Optional | WHERE | Conditional features based on flags | "WHERE premium enabled, unlock feature" |
| Unwanted Behaviors | IF-THEN | Error handling, quality gates, business rules | "IF token expires, deny access + return 401" |
<DOMAIN>-<NUMBER> (e.g., AUTH-001) - Immutable identifierMAJOR.MINOR.PATCH (e.g., 0.0.1) - Semantic versioningdraft | active | completed | deprecatedYYYY-MM-DD - Initial creation dateYYYY-MM-DD - Final modification date@GitHubHandle - Primary author (@ prefix required)critical | high | medium | lowVersion Lifecycle:
0.0.x → draft (authoring phase)0.1.0 → completed (implementation done)1.0.0 → stable (production-ready)author field includes @ prefixversion format is 0.x.yid is not duplicated (rg "@SPEC:AUTH-001" -n .moai/specs/)@SPEC:{ID} TAG blockauthor: Goos instead of author: @Goosmoai-foundation-ears - Official EARS syntax patternsmoai-foundation-specs - Metadata validation automationmoai-foundation-tags - TAG system integrationmoai-alfred-spec-metadata-validation - Automated validationLast Updated: 2025-10-29
Version: 1.2.0
Maintained By: MoAI-ADK Team
Support: Use /alfred:1-plan command for guided SPEC creation
Structured design dialogue that validates ideas before implementation begins.
Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.
Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.
Introduction to the obra skills system with mandatory skill invocation rules and best practices.
Execute a written implementation plan with critical review and task checkpoints.
Delegate independent tasks to specialized agents working concurrently with isolated context.
Isolated git worktrees with smart directory selection and safety verification.
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
Plan searchable and shareable content that drives traffic, builds authority, and generates leads.
README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.
Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.
Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.
The world's fastest calendar for remote work
Capture, organize, and utilize your knowledge effortlessly.
Instant Summaries of Audio & Video Interviews with AnySummary
Transform PDFs into engaging mind maps.
Chat with any PDF instantly
Create an optimal daily plan using your voice
A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.
AskYourPDF Pricing Plans: Tailored to Your Needs