---
name: fetch-feature-spec
description: Fetches a feature record from the Notion Features database — returns description, validation criteria, and the internal page content (component table, data structure, pseudo-snippet). Use before implementing or refining a feature, or when you need to recall a feature's spec without building.
metadata:
  category: Feature Definition
---

# Skill: Fetch Feature Spec

Reads a feature record from the Notion Features database so you can see its refinement details (what was agreed with the user) without opening Notion manually.

## When to use

- Before `/build-feature` starts, to load spec into context
- When recalling what was decided for a feature that was refined earlier
- When the user asks "¿qué dice Notion de esta feature?"

## Prerequisites

Inputs needed:
- **`notionPageUrl`** — project page with the embedded Features database
- **`featureName`** — exact Name of the record
- **`moduleName`** — Módulo value
- **`screenName`** — Screen value

If any are missing, ask the user.

## Steps

### Fetch the record (delegate to haiku)

```
Agent({
  model: "haiku",
  prompt: `
    In the Features database on Notion page {notionPageUrl},
    find the record where Name = "{featureName}", Módulo = "{moduleName}", Screen = "{screenName}".

    Return:
    - Descripción
    - Criterios
    - Full content of the record's internal page (component table, data structure table, pseudo-snippet)
  `
})
```

Report the fetched content verbatim so downstream skills (or the user) can use it.
