Source profileQuality 91/100

ArabelaTso/Skills-4-SE/skills/nl-to-constraints/SKILL.md

nl-to-constraints

Transforms natural language requirements (user stories, verbal descriptions, business rules) into formal specifications and constraints. Use when converting informal requirements into structured, testable specifications with explicit constraints. Outputs in multiple formats including BDD-style Given-When-Then, JSON Schema, and structured plain text requirements documents.

Source repository stars
236
Declared platforms
0
Static risk flags
0
Last source update
2026-08-21
Source checked
2026-08-25

Decision brief

What it does: where it fits

You are an expert requirements engineer who transforms informal natural language into precise, structured specifications and constraints.

Best for

  • Use when converting informal requirements into structured, testable specifications with explicit constraints.

Not for

  • Tasks that require unconfirmed production actions or broad system permissions.
  • Environments where the pinned source and install steps cannot be inspected.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeNot declaredNo explicit evidencePortability before use
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/ArabelaTso/Skills-4-SE --skill "skills/nl-to-constraints"
Safe inspection promptEditorial

Inspect the Agent Skill "nl-to-constraints" from https://github.com/ArabelaTso/Skills-4-SE/blob/4f38503747e0617504bce5329283ef837d375c09/skills/nl-to-constraints/SKILL.md at commit 4f38503747e0617504bce5329283ef837d375c09. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    Workflow

    Follow this process when converting natural language to specifications:

    Identify the main entities and actorsExtract explicit requirements and rulesNote implicit assumptions that need clarification
  2. 02

    Step 1: Analyze the Input

    Read the natural language input carefully and:

    Identify the main entities and actorsExtract explicit requirements and rulesNote implicit assumptions that need clarification
  3. 03

    Step 2: Classify Requirements

    Categorize each requirement by:

    Type: Functional, non-functional, business, technical, UI, securityPriority: Critical, high, medium, lowConstraint category: Data, business rule, temporal, state, authorization, cardinality, performance
  4. 04

    Step 3: Extract Constraints

    For each identified constraint, extract:

    Entity - What is being constrainedCategory - Type of constraint (see constraintpatterns.md for categories)Severity - Must/should/may (RFC 2119 compliance)
  5. 05

    Step 4: Generate Specifications

    Produce output in the requested format(s):

    Produce output in the requested format(s):Structure test scenarios as:Use the template in assets/specificationschema.json to structure output as:

Permission review

Static risk signals and limitations

No configured static risk pattern was detected

This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score91/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars236SourceRepository attention, not individual Skill quality
Compatibility0 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
ArabelaTso/Skills-4-SE
Skill path
skills/nl-to-constraints/SKILL.md
Commit
4f38503747e0617504bce5329283ef837d375c09
License
Apache-2.0
Collected
2026-08-25
Default branch
main
View the original SKILL.md

Natural Language to Constraints/Specifications

You are an expert requirements engineer who transforms informal natural language into precise, structured specifications and constraints.

Core Capabilities

This skill enables you to:

  1. Parse natural language requirements - Extract structured information from user stories, verbal descriptions, and business rules
  2. Identify constraints - Detect and categorize data, business, temporal, state, authorization, cardinality, and performance constraints
  3. Generate formal specifications - Produce structured output in BDD format, JSON Schema, and plain text
  4. Validate completeness - Detect ambiguities, missing edge cases, and conflicting requirements
  5. Create test scenarios - Derive testable scenarios from requirements

Workflow

Follow this process when converting natural language to specifications:

Step 1: Analyze the Input

Read the natural language input carefully and:

  • Identify the main entities and actors
  • Extract explicit requirements and rules
  • Note implicit assumptions that need clarification
  • Flag ambiguous or vague language
  • Detect conflicting statements

Step 2: Classify Requirements

Categorize each requirement by:

  • Type: Functional, non-functional, business, technical, UI, security
  • Priority: Critical, high, medium, low
  • Constraint category: Data, business rule, temporal, state, authorization, cardinality, performance

Use the constraint patterns in references/constraint_patterns.md to identify and classify constraints systematically.

Step 3: Extract Constraints

For each identified constraint, extract:

  • Entity - What is being constrained
  • Category - Type of constraint (see constraint_patterns.md for categories)
  • Severity - Must/should/may (RFC 2119 compliance)
  • Formal expression - Logical representation when possible
  • Validation method - How to check compliance
  • Error message - What to show when violated

Example:

Natural language: "Users must provide a valid email address when registering"

Extracted constraint:

Entity: User Registration
Category: Data
Severity: must
Formal expression: email MATCHES ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
Validation method: Regex pattern matching on input
Error message: "Please enter a valid email address"

Step 4: Generate Specifications

Produce output in the requested format(s):

A. BDD-Style (Given-When-Then)

Structure test scenarios as:

Scenario: [Scenario name]
  Given [precondition/context]
  When [action or event]
  Then [expected outcome]
  And [additional expectations]

Example:

Scenario: User registration with valid email
  Given a new user on the registration page
  When they enter email "[email protected]" and submit the form
  Then the account is created successfully
  And a confirmation email is sent to "[email protected]"

Scenario: User registration with invalid email
  Given a new user on the registration page
  When they enter email "invalid-email" and submit the form
  Then an error message "Please enter a valid email address" is displayed
  And the account is not created

B. JSON Schema Format

Use the template in assets/specification_schema.json to structure output as:

{
  "metadata": {
    "title": "User Registration System",
    "version": "1.0",
    "source": "[Original natural language text]"
  },
  "requirements": [
    {
      "id": "REQ-001",
      "type": "functional",
      "priority": "critical",
      "description": "Users must be able to register with email and password",
      "acceptance_criteria": [
        "Email field accepts valid email formats",
        "Password must be at least 8 characters",
        "Confirmation email is sent upon successful registration"
      ],
      "constraints": ["CON-001", "CON-002"]
    }
  ],
  "constraints": [
    {
      "id": "CON-001",
      "category": "data",
      "severity": "must",
      "entity": "User.email",
      "description": "Email must be valid email format",
      "formal_expression": "^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$",
      "validation_method": "Regex validation",
      "error_message": "Please enter a valid email address"
    }
  ],
  "test_scenarios": [
    {
      "id": "TEST-001",
      "requirement_ids": ["REQ-001"],
      "given": "A new user on registration page",
      "when": "User enters valid email and password",
      "then": "Account is created and confirmation email sent"
    }
  ]
}

C. Structured Plain Text

Format as a requirements document:

# Requirements Specification: [Feature Name]

## Requirements

### REQ-001: User Registration [CRITICAL]
**Type**: Functional
**Description**: Users must be able to register with email and password

**Acceptance Criteria**:
- Email field accepts valid email formats
- Password must be at least 8 characters
- Confirmation email is sent upon successful registration

**Related Constraints**: CON-001, CON-002

## Constraints

### CON-001: Email Validation [MUST]
**Category**: Data Constraint
**Entity**: User.email
**Description**: Email must match valid email format

**Validation**:
- Pattern: ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
- Method: Regex validation on input
- Error: "Please enter a valid email address"

## Test Scenarios

### TEST-001: Valid Registration
Given a new user on the registration page
When they enter email "[email protected]" and password "SecurePass123"
Then the account is created successfully
And a confirmation email is sent

Step 5: Validate and Refine

Before delivering output:

  1. Check completeness - Are all aspects of the input covered?
  2. Verify consistency - Do requirements and constraints align?
  3. Test logic - Are conditional constraints properly expressed?
  4. Flag ambiguities - Highlight anything needing clarification
  5. Identify gaps - Note missing error cases, edge conditions, or dependencies

Handling Ambiguity

When you encounter vague or ambiguous language:

  1. Flag it explicitly in the output
  2. List possible interpretations
  3. Ask specific clarifying questions
  4. Provide a default interpretation with the caveat that it needs confirmation

Common ambiguity patterns (see references/constraint_patterns.md for complete list):

  • Vague quantifiers: "many", "few", "some"
  • Unclear scope: "the system", "users" (which ones?)
  • Missing edge cases: No mention of error conditions
  • Undefined terms: Domain jargon without definition

Example:

Natural language: "The system should process orders quickly"

Output:

⚠️ AMBIGUITY DETECTED

Requirement: Order Processing Performance
Issue: "quickly" is not quantified

Possible interpretations:
1. Process within 1 second (real-time requirement)
2. Process within 5 seconds (acceptable for web)
3. Process within 1 minute (batch-like processing)

Clarifying questions:
- What is the maximum acceptable processing time?
- What percentage of orders must meet this threshold?
- Are there different performance requirements for different order types?

Suggested constraint (pending clarification):
CON-XXX: Order processing time should be <= 5 seconds for 95% of orders

Best Practices

  1. Be explicit - Convert implicit assumptions into explicit constraints
  2. Use signal words - Pay attention to "must", "should", "may" for severity levels
  3. Consider edge cases - What happens at boundaries, with invalid input, or in error conditions?
  4. Maintain traceability - Link constraints back to requirements and test scenarios
  5. Stay testable - Every requirement should have verifiable acceptance criteria
  6. Preserve context - Include relevant business context in descriptions
  7. Normalize terminology - Use consistent terms throughout the specification

Signal Words Reference

  • Must/Shall/Required → Mandatory constraint, hard validation
  • Should/Recommended → Soft constraint, guideline
  • May/Optional → Nice-to-have, not enforced
  • Must not/Shall not → Prohibited, rejection rule
  • If/When/Unless → Conditional constraint with precondition

Output Selection

Choose output format(s) based on the use case:

  • BDD (Given-When-Then): Best for test-driven development, communicating with QA
  • JSON Schema: Best for API contracts, data validation, integration with tools
  • Structured Plain Text: Best for documentation, stakeholder review, requirements management

When not specified, provide all three formats or ask which format is preferred.

Resources

  • references/constraint_patterns.md - Detailed patterns for extracting constraints by category
  • assets/specification_schema.json - JSON Schema template for structured output

Frequently asked questions

What to verify before installation and use

What does the nl-to-constraints source document cover?

You are an expert requirements engineer who transforms informal natural language into precise, structured specifications and constraints.

How do I install nl-to-constraints?

The source record exposes this install command: npx skills add https://github.com/ArabelaTso/Skills-4-SE --skill "skills/nl-to-constraints". Inspect the command and pinned source before running it.

Alternatives

Compare before choosing

Computed 10024,921

alirezarezvani/claude-skills

app-store-optimization

App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist

Computed 976,837

trailofbits/skills

constant-time-testing

Constant-time testing detects timing side channels in cryptographic code. Use when auditing crypto implementations for timing vulnerabilities.

Computed 975,241

dotnet/skills

test-tagging

Analyzes test suites in any language and tags each test with standardized traits (positive, negative, critical-path, boundary, smoke, regression, integration, performance, security). Use when the user wants to categorize, audit, or label tests with traits. Works across .NET (MSTest/xUnit/NUnit/TUnit), Python (pytest), TS/JS (Jest/Vitest), Java, Go, Ruby, Rust, Swift, Kotlin, PowerShell, and C++ — auto-editing when the framework has canonical tag syntax, otherwise report-only. Do not use for writ

Computed 97223

yonatangross/orchestkit

verify

Grade work that already exists and decide whether it can merge. Runs the project's current unit, integration, and E2E suites plus security scanning and type checking, scores every dimension 0-10, and returns a merge verdict with a VERIFIED-vs-CLAIMED evidence manifest. Writes no test files and edits no source. Use when verifying changes are ready to merge. Use /ork:cover instead when the tests still have to be written.