fattain-naime/engineering-docs/technical-specification

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Write a technical specification (SRS/TSD) that captures stakeholder needs, system requirements, functional behavior, non-functional constraints, and acceptance criteria. Use when starting any significant engineering initiative.

Install

npx vskill@latest install fattain-naime/engineering-docs/technical-specification

SKILL.md

Purpose

Produce a complete Software Requirements Specification (SRS) / Technical Specification Document (TSD) that transforms stakeholder intent into unambiguous, verifiable engineering requirements. This is the foundational document from which architecture, design, test plans, and acceptance criteria are derived.

Requirements written poorly - ambiguous, unmeasurable, or untestable - are the root cause of the majority of software project failures. This skill eliminates that risk.

Input

Works best with: The name of the system, service, or feature being specified. Also valuable: Stakeholder interviews, user stories, existing system behavior, business rules, regulatory constraints, SLAs, performance benchmarks, security policies.

Anything supplied in the invocation is treated as known context. Do not re-ask for information already provided.

Example invocation: Write a technical specification for a webhook delivery system that retries failed deliveries with exponential backoff, supports HMAC-SHA256 signing, and must handle 10,000 events per minute.

Key Concepts

Requirement Quality (SMART + EARS)

Every requirement must be:

  • Specific - no ambiguous terms ("fast", "user-friendly", "scalable" without a number)
  • Measurable - has a quantifiable acceptance criterion
  • Achievable - technically feasible within stated constraints
  • Relevant - directly serves a stakeholder need
  • Traceable - has a unique identifier and can be linked to test cases

Use the EARS syntax for writing requirements:

  • Ubiquitous: The <system> shall <action>.
  • Event-driven: When <event>, the <system> shall <action>.
  • Conditional: Where <condition>, the <system> shall <action>.
  • State-driven: While <state>, the <system> shall <action>.
Functional vs Non-Functional Requirements
  • Functional (FR): What the system does - behavior, data processing, business rules.
  • Non-Functional (NFR): How the system performs - performance, security, availability, scalability, compliance.

NFRs are equally important as FRs. An NFR without a measurable target is useless.

Standard: ISO/IEC/IEEE 29148:2018

This skill aligns with ISO/IEC/IEEE 29148, which supersedes IEEE 830-1998. Key principles:

  • Requirements are defined at both stakeholder and system level
  • Requirements are iterative and refined throughout the lifecycle
  • Every requirement is uniquely identified (e.g., FR-001, NFR-003)
  • Traceability matrix links requirements to design, test, and implementation artifacts
EARS Syntax Examples (All Four Patterns)

Ubiquitous (always applies):

The webhook delivery system shall retry failed deliveries up to 3 times.

Event-driven (triggered by occurrence):

When a payment succeeds, the system shall send a webhook notification to the merchant's registered endpoint within 30 seconds.

Conditional (applies under a specific condition):

Where the merchant's account is in sandbox mode, the system shall not charge real payment instruments.
Where the request includes an Idempotency-Key header, the system shall return the cached response for duplicate keys within 24 hours.

State-driven (applies while in a specific state):

While the delivery status is retrying, the system shall apply exponential backoff with jitter between attempts.
While the system is in maintenance mode, the API shall return HTTP 503 with a Retry-After header.
Requirement Granularity

Requirements must be atomic: one testable assertion per requirement ID. Split compound requirements.

Bad (compound, untestable):

The system shall authenticate users and store their preferences and send welcome emails.

Good (atomic, each independently testable):

FR-001: When a user submits valid credentials, the system shall return a JWT with a 15-minute expiry.
FR-002: When a user updates their preferences, the system shall persist the changes within 500ms.
FR-003: When a new user completes registration, the system shall send a welcome email within 60 seconds.
Hard vs Soft Constraints
  • Hard constraints are non-negotiable requirements that, if violated, make the system unfit for purpose. They block release. Example: "All payment data shall be encrypted at rest using AES-256."
  • Soft constraints are desirable targets that may be relaxed under negotiation. They trigger a review but do not block release. Example: "The dashboard should load within 2 seconds under normal load."

Tag every NFR as hard or soft in the traceability matrix. Hard constraints have zero-tolerance acceptance criteria; soft constraints have target and minimum thresholds.

Anti-Patterns (What This Prevents)
  • Vague requirements: "The system shall be fast" → Wrong. "The system shall respond to 95% of API requests within 200ms under 1,000 concurrent users" → Correct.
  • Missing NFRs: specifying only functional behavior and ignoring performance, security, availability.
  • Unverifiable requirements: "The system shall be easy to use." (How do you test this?)
  • Scope creep: requirements that cannot be traced to a stated stakeholder need.
Conflict Resolution

When your analysis conflicts with the user's stated preference:

  1. Present both positions — show your analysis and their preference side by side
  2. Explain the trade-off — what are the consequences of each choice?
  3. Recommend with reasoning — state your recommendation and why
  4. Respect the user's decision — they own the final call
  5. Document the decision — record it as an [owner-specified] override with reasoning
Document Length

Target length: 10-20 pages (excluding appendices).

Shorter is better than longer. If the document exceeds the target, check for:

  • Redundant content that can be cut
  • Overly verbose explanations
  • Content that belongs in a separate reference document
  • Material the agent already knows (don't explain what HTTP is)

If the document is significantly shorter than the target, check for:

  • Missing sections
  • Insufficient detail in critical areas
  • Unaddressed edge cases
Data Model Guidance

When the system involves persistent data, include a Data Model section in the specification with:

  • An ERD (Entity-Relationship Diagram) using Mermaid notation showing all entities, relationships, and cardinality.
  • Each entity must have its primary key, key attributes, and relationship to other entities documented.
  • Identify sensitive data fields and their classification (Public, Internal, Confidential, Restricted).
  • Document data retention and deletion policies per entity.
Error Handling Specification

Define a systematic error handling strategy:

  • Error Code Taxonomy: Define a hierarchical error code scheme (e.g., PAYMENT_FAILED_INSUFFICIENT_FUNDS, WEBHOOK_DELIVERY_TIMEOUT). Every error the system can produce must have a unique, documented code.
  • Error Response Format: Standardize on a single error response schema (RFC 7807 Problem Details recommended). Include: type URI, title, status, detail, instance, and a structured errors array for validation failures.
  • Retry Policies: For every recoverable error, specify: retry count, backoff strategy (linear, exponential, jitter), maximum retry window, and dead-letter behavior after exhaustion.
  • Error Propagation Rules: Define which errors are surfaced to end users, which are logged only, and which trigger alerts.
API Design Standards

When the system exposes or consumes APIs:

  • Naming Conventions: Resources are plural nouns (/payments, not /payment). Use kebab-case for multi-word paths. Consistent verb mapping via HTTP methods.
  • Versioning: Specify the versioning strategy (URI /v1/ recommended for public APIs, header versioning for internal). Document the deprecation and sunset policy.
  • Pagination: Every list endpoint must define pagination (offset or cursor). Specify default page size, maximum page size, and the pagination envelope format.
Migration Specification

When the system replaces or integrates with an existing system:

  • Data Migration: Document the source-to-target mapping for every data entity. Include transformation rules, data cleansing requirements, and validation criteria.
  • Backward Compatibility: Specify which existing contracts (APIs, data formats, file formats) must remain compatible during and after migration. Define the compatibility window and deprecation schedule.
  • Cutover Strategy: Document the migration phases (parallel run, canary, big-bang) and the rollback procedure for each phase.
Monitoring and Alerting Requirements

Define observable behavior requirements:

  • Metrics: What must be measured (request rate, error rate, latency percentiles, queue depth, connection pool utilization).
  • Alerts: Define alert thresholds, severity levels (P1-P4), and escalation paths.
  • Dashboards: Specify what operational dashboards are required and what they display.
  • SLOs/SLIs: Map each NFR to a Service Level Indicator and Service Level Objective with error budget policy.
Test Case Specification

Every requirement must map to at least one test case. Use this structure:

  • Test Case ID: TC-XXX (linked to requirement FR-XXX or NFR-XXX)
  • Preconditions: What state must exist before the test runs
  • Steps: Numbered, specific actions
  • Expected Result: Exact observable outcome
  • Type: Unit / Integration / End-to-End / Performance / Security

Application

Phase 1: Socratic Clarification & Brainstorming (Mandatory Interview)

Interview Mechanism: Use tool calls (e.g., AskUserQuestion) to present questions — do NOT ask inline in the conversation. The user selects from options rather than typing responses. One question per tool call, multiple-choice options preferred, with "I don't know, you decide" as an escape hatch.

Context Loading: Before asking ANY questions, read ALL prior documents in .engineering-docs/ to extract already-known information. Look for:

  • Team size, budget, timeline (from business-plan)
  • Tech stack, hosting (from system-architecture)
  • Target users, JTBD (from user-personas)
  • Constraints, regulatory requirements (from business-plan)
  • Scope, features (from technical-specification)

If information exists in a prior document, USE IT — do not re-ask.

Maximum 2-3 questions per skill. Only ask about:

  • Skill-specific details not covered in prior documents
  • Technical decisions that affect this specific document
  • Clarifications on ambiguous requirements

Ask questions to resolve:

  1. Key workflows: What are the 1-2 most critical user pathways?
  2. Integration systems: What external systems must this interface with?

Wait for the user's response to these questions before drafting the final specification.

Work through the template.md section by section. For each requirement:

  1. Assign a unique ID (FR-XXX or NFR-XXX)
  2. Write the requirement using EARS syntax
  3. Define the acceptance criterion
  4. Tag the stakeholder who owns it
  5. Mark any unresolved assumption with 🔶 Assumption or any unknown with 🔵 Open Question
Phase 2: Context and Scope (60 min)

Establish who commissioned this, what the system boundaries are, what is in scope and explicitly out of scope.

Phase 3: Stakeholder Analysis (60 min)

Identify every stakeholder class - users, operators, integrators, regulators. Define their primary goals and constraints.

Phase 4: Functional Requirements (2-4 hrs)

Write all FR-XXX requirements in EARS syntax with measurable acceptance criteria.

Phase 5: Non-Functional Requirements (2 hrs)

Write all NFR-XXX requirements covering: performance, scalability, security, availability, reliability, compliance, maintainability, portability.

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
6
Repository forks
2
7-day trend score
10

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/fattain-naime/engineering-docs/technical-specification/badge)](https://verified-skill.com/skills/fattain-naime/engineering-docs/technical-specification)

Something wrong with this skill or its page? Tell us.