Przejdź do treści
Biblioteka skilli
Zarządzanie i produkt · Analiza

dx-req-import

/dx-req-import

Waliduje zewnętrzne wymagania i tworzy strukturę specyfikacji bez ADO: czyta dokument, sprawdza kompletność i generuje explain.md oraz opcjonalnie research.md.

Repozytorium
dx-aem-flow ↗
Licencja
MIT
Ostatnia zmiana repozytorium
27.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 27.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Waliduje zewnętrzne wymagania i tworzy strukturę specyfikacji bez ADO: czyta dokument, sprawdza kompletność i generuje explain.md oraz opcjonalnie research.md.

Argumenty

/dx-req-import [path to requirements document]
Oryginalny opis (EN)

Validate external requirements and create spec structure without ADO. Reads a requirements document, checks completeness, and generates explain.md + optional research.md. Use when you have requirements from a BA, Confluence page, or email instead of an ADO ticket.

Jak działa

  1. 1. Read the Requirements Document
  2. 2. Score Completeness
  3. 3. Generate Slug
  4. 4. Create Spec Directory
  5. 5. Generate explain.md
  6. 6. Optional: Lightweight Research
  7. 7. Present Summary
  8. Examples
  9. Troubleshooting
  10. Rules
Sekcje z nagłówków SKILL.md, w oryginale · 130 linii, 816 słów
Podgląd SKILL.md
---
name: dx-req-import
description: Validate external requirements and create spec structure without ADO. Reads a requirements document, checks completeness, and generates explain.md + optional research.md. Use when you have requirements from a BA, Confluence page, or email instead of an ADO ticket.
when_to_use: "Use when importing requirements from a markdown file or local spec instead of an ADO/Jira ticket. Trigger on 'import requirements', 'requirements from file', 'dx-req-import', or when there is no ticket to fetch. Do NOT use when an ADO/Jira ticket exists (that's dx-req), to create child Tasks (dx-req-tasks), or to check Definition of Done (dx-req-dod)."
argument-hint: "[path to requirements document]"
disable-model-invocation: true
allowed-tools: ["read", "edit", "search", "write", "agent"]
---

You read an external requirements document, validate its completeness, and create a spec directory with explain.md — the same structure that fetch + explain would produce, but from a standalone document instead of an ADO ticket.

## 1. Read the Requirements Document

The argument is a file path to a requirements document (markdown, text, or other readable format).

If no argument is provided, ask the user for the path.

Read the document contents.

## 2. Score Completeness

Evaluate the document against this rubric (score each 0-2):

| Criterion | 0 (Missing) | 1 (Partial) | 2 (Complete) |
|-----------|-------------|-------------|--------------|
| **What** — what's being built/changed | Not stated | Vague description | Clear, specific description |
| **Acceptance criteria** — how to verify it works | None | Some criteria listed | Testable criteria for each requirement |
| **Affected areas** — which parts of the system change | Not stated | General area mentioned | Specific components/files/layers identified |
| **Edge cases** — what about errors, empty states, defaults | Not mentioned | Some noted | Key edge cases addressed |

**Threshold: total >= 5 out of 8.**

If below threshold:
- Print the score table with specific gaps
- Suggest what to add for each missing criterion
- Print: "Document needs more detail before proceeding. Add the missing items and run `/dx-req-import` again."
- STOP

If at or above threshold, continue.

## 3. Generate Slug

Create a short slug from the document's main topic (2-4 words, lowercase, hyphenated).
Example: "card grid layout" → `card-grid-layout`

## 4. Create Spec Directory

```bash
mkdir -p .ai/specs/<slug>
```

## 5. Generate explain.md

Distill the requirements document into explain.md following the EXACT same format as `/dx-req` (Phase 3 — explain):

```markdown
# <Title>

## What & Why
<2-3 sentences>

## Requirements
<Numbered list of concrete, testable requirements. One sentence each.>

## Changes by Area
<ONLY if requirements don't cover everything. Compact format.>

## Out of Scope
<1-3 bullets. OMIT if scope is unambiguous.>

## References
- Source: <original document path>
```

Apply the same writing principles as explain: ~50 line hard limit, one sentence per requirement, collapse overlapping sections, omit empty sections.

## 6. Optional: Lightweight Research

If the document mentions specific component names, classes, or files:
1. Run targeted Glob/Grep searches for those names
2. Write a lightweight `research.md` with just:
   - Files found matching component/class names
   - Current config/dialog structure (if component exists)
   - Files inventory table

Skip the full 4-agent research (user can run `/dx-req` manually for deeper analysis).

If no specific code references are found, skip research.md.

## 7. Present Summary

```markdown
## Spec created from requirements

**<Title>**
**Directory:** `.ai/specs/<slug>/`
**Completeness score:** <X>/8

### Generated:
- explain.md — <N> requirements distilled
- research.md — <Y> files found (or "skipped — no code references")

### Next steps:
- Review `explain.md` — are the requirements accurate?
- `/dx-plan` — generate implementation plan
- `/dx-req` — deeper codebase analysis (if needed)
```

## Examples

1. `/dx-req-import docs/requirements/card-grid-layout.md` — Reads the requirements document, scores it 6/8 (passes threshold), generates `.ai/specs/card-grid-layout/explain.md` with distilled requirements, and runs a lightweight codebase search for referenced component names.

2. `/dx-req-import ~/Downloads/ba-notes.txt` — Reads a plain-text BA document, scores it 3/8 (below threshold), prints specific gaps ("Missing: acceptance criteria, affected areas") and stops without creating any files.

3. `/dx-req-import docs/feature-spec.md` — Reads a detailed spec that mentions specific component classes, searches the codebase for those classes, and writes both `explain.md` and a lightweight `research.md` with discovered file paths.

## Troubleshooting

- **"Document needs more detail before proceeding"**
  **Cause:** The requirements document scored below 5/8 on the completeness rubric.
  **Fix:** Add the missing items listed in the score table (e.g., testable acceptance criteria, specific affected areas) and re-run `/dx-req-import`.

- **Spec directory uses slug instead of ID**
  **Cause:** This is expected behavior. Without an ADO ticket, the directory is named `.ai/specs/<slug>/` instead of `.ai/specs/<id>-<slug>/`.
  **Fix:** No fix needed. If you later create an ADO ticket, run `/dx-req <id>` to create the ID-prefixed directory and move your files.

- **Research.md not generated**
  **Cause:** The requirements document doesn't mention specific component names, classes, or files that can be searched.
  **Fix:** Run `/dx-req` manually for a deeper codebase analysis after the spec is created.

## Rules

- **Validate before creating** — if the document is too vague, stop and ask for more detail. Don't generate garbage explain.md from garbage input.
- **Same explain.md quality** — the output explain.md must be indistinguishable from one generated via the ADO flow. Same format, same conciseness, same developer audience.
- **No ADO metadata** — since there's no ADO ticket, omit ADO links, assigned to, iteration path. Keep the References section pointing to the source document.
- **Slug, not ID** — without an ADO ID, the spec directory uses just the slug: `.ai/specs/<slug>/` not `.ai/specs/<id>-<slug>/`.
- **Don't invent** — if the document doesn't specify something, note it as a gap, don't fill it in.

Wersje

W bazie nie ma innych skilli o nazwie dx-req-import.

Migawka bazy z 13.11.2026 · wersja paczki 6ddcb1a34080 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100dx-req-dod
    Sprawdza Definition of Done i automatycznie uzupełnia braki w PR, zadaniach i dokumentacji, po czym publikuje podsumowanie w ADO.
  • 100dx-agent-re
    Analizuje User Story z ADO lub Jira do ustrukturyzowanej specyfikacji wymagań z podziałem na zadania i publikuje komentarz podsumowujący.
  • 100req-review
    Ocenia jakość, kompletność i spójność dokumentów wymagań według IEEE 29148, ISO 25010 i EARS, z listą luk i poprawek.
  • 100make-req
    Rozkłada zadanie, plan lub opis funkcji na strukturalne wymagania pogrupowane do niezależnego planowania.
  • 100req-analyze
    Analizuje wymagania: rozkłada problem, rozpoznaje interesariuszy i porządkuje wymagania w dokument 1-requirements.md z pierwszej fazy cyklu życia, przed specyfikacją techniczną.
  • 100req-board-card
    Tworzy kartę wymagania w tablicy req-board dla bieżącego lub wskazanego projektu, gdy użytkownik chce zapisać pomysł, plan lub zadanie.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.