Prompt file imported from FarooqProProgrammer/anti-ai-design (
.cursor/commands/spec.md). Copyright stays with the author.
Cursor Command: /spec
Executes Phase 2 (Spec) of the AI Engineering Workflow in Cursor.
Invocation in Cursor
Type /spec [context or requirements] in Cursor Chat or Composer.
Mandatory Instructions
-
Functional Spec:
- User workflows, behavioral invariants, and input/output contracts.
- Explicit list of non-features to stop scope creep.
-
Technical & Data Spec:
- Type definitions, schemas, and API contracts.
- External dependencies ingested into
raw/and compiled inwiki/.
-
Non-Functional Guardrails:
- Performance budgets, security rules, and backward compatibility.
-
Visual Diagram:
- Generate
diagrams/02-spec.exceldraw.
- Generate
-
HARD RULE:
- READ-ONLY on source code. Do not output implementation code yet.
- Await human approval before proceeding to Phase 3 (
/plan).
