All skills
asyrafhussin avatar

/prd-writing

@eaaf04f

Step-by-step workflow for writing Product Requirements Documents. Use when creating PRDs, documenting features, writing specifications, or planning new products. Triggers on "write PRD", "create PRD", "document requirements", "feature spec", or "product requirements".

Use this Skill: https://skilld.dev/gh/asyrafhussin/agent-skills/prd-writing

This session only. Nothing lands on disk.

rulestech-data-model.md

≈702 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Document the Data Model and Relationships

Impact: MEDIUM (Bridges product requirements and database design)

Include a high-level data model showing the key entities, their relationships, and important attributes. This is not a full schema — it's enough for engineering to understand the data structure before implementation.

Incorrect

<!-- Bad: no data model or too implementation-specific -->
## Technical Details
We need a database.

<!-- Or the opposite extreme: -->
## Database Schema
CREATE TABLE short_urls (
  id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
  user_id BIGINT UNSIGNED NOT NULL,
  title VARCHAR(255) NOT NULL,
  destination_url VARCHAR(2048) NOT NULL,
  ...40 more columns...
);

Problems:

  • "We need a database" tells engineering nothing
  • Full SQL DDL is too prescriptive — that's implementation, not requirements
  • No relationships shown — how do entities connect?
  • Engineer can't see the big picture

Correct

<!-- Good: high-level model with relationships and key fields -->
## Data Model

### Entity Relationship

```
User (1) ──→ (N) ShortUrl (1) ──→ (N) GeneratedLink (1) ──→ (N) LinkClick
```

### Entities

**User**
- name, email, password, is_admin
- Has many ShortUrls

**ShortUrl**
- title, destination_url, is_active
- SEO fields: seo_title, seo_description, seo_image
- default_expiry_days (1-365, optional)
- Belongs to User, has many GeneratedLinks

**GeneratedLink**
- slug (unique, 4-10 chars alphanumeric)
- label, expires_at, is_active
- SEO overrides: seo_title, seo_description, seo_image
- Belongs to ShortUrl, has many LinkClicks

**LinkClick**
- ip_address, user_agent, referer
- device_type, browser, os, country, city
- clicked_at timestamp
- Belongs to GeneratedLink

### Key Behaviors
- Deleting a ShortUrl cascades to GeneratedLinks and LinkClicks
- GeneratedLink inherits SEO from parent ShortUrl if not overridden
- Slug generation: 6 chars default, retry with longer length on collision

Benefits:

  • Engineering sees the full picture in 30 seconds
  • Relationship diagram prevents missing foreign keys
  • Key behaviors catch cascade and inheritance logic early
  • Detailed enough to start, not so detailed it constrains

Why

  1. Shared understanding: Product and engineering agree on the data shape
  2. Reveals complexity: Relationships expose features that seem simple but aren't
  3. Guides estimation: More entities = more work; relationships add complexity
  4. Prevents rework: Catching a missing relationship in the PRD is cheaper than in code

Source: SKILL.md on GitHub

No alerts16d4 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    The skill provides a structured workflow and comprehensive best practices for writing Product Requirements Documents (PRDs). It guides the agent through discovery, stakeholder alignment, and technical specification drafting. No malicious code, exfiltration patterns, or injection attempts were found.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at eaaf04f. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 6 months ago
metadata
{
  "author": "agent-skills",
  "version": "1.0.0"
}

README badge

README badge for asyrafhussin/agent-skills/prd-writing