user-story-creator
User Story Creator
Overview
Convert session context into well-structured User Stories (Historias de Usuario). After completing development activities, use this skill to synthesize work into a formal narrative that:
- Summarizes high-level benefits (who, what, why)
- Groups changes into logical, atomic subtasks
- Documents technical actions in future tense
- Includes acceptance criteria and technical validation
Key principle: The story documents "what will be done" not "what was done" — written in future tense as if planning the implementation.
When to Use This Skill
- After resolving one or more issues and want to document as a formal User Story
- When you've completed features, bug fixes, or refactoring and need to synthesize the narrative
- When you need to group technical changes (file modifications, API updates, schema changes) into logical subtasks
- To create audit-ready documentation for stakeholders unfamiliar with implementation details
Not automatic: Always request explicitly or confirm when suggested. Never generate unsolicited.
Workflow
1. Provide Context
When you request the skill, give me:
- Summary of what was completed (or I'll infer from conversation history)
- Key modules/files affected (optional — I can analyze from git context)
- The main goal or benefit delivered
2. I Generate the Structure
I will:
- Extract commit labels from your recent commits (feat, fix, refactor, etc.)
- Group changes logically using these heuristics:
- <12 files/changes → One subtask per logical grouping (module-based, component-based)
- ≥12 files/changes → Group by module, feature area, or architectural layer (avoid both overly generic and overly specific)
- Auto-generate title with "HU - " prefix
- Create subtasks with appropriate prefix (Feature:, Fix:, Refactor:, etc.)
- Propose acceptance criteria based on changes made
3. Review & Approve
I'll present the story in plain text format (easy to copy) and ask for approval before finalizing.
Output Format
See references/template.md for the exact structure.
Key characteristics:
- Historia de Usuario header with descriptive title
- Cómo/Quiero/Para format (always "Cómo: Desarrollador")
- Subtareas with prefixes:
Feature:,Fix:,Refactor:,Chore:,Docs:,Test:,Perf:,Style:,Build:,CI:,Env: - Future tense throughout (Implementar, Refactorizar, Validar, etc.)
- Descripción for each subtask (1-2 lines explaining the "why" and scope)
- Acciones a Realizar (atomic, concrete actions—2-5 bullets per subtask)
- Criterios de Aceptación (system behavior verification, regression prevention)
Grouping Logic
See references/grouping-guide.md for detailed heuristics.
Quick rules:
- Related changes → same subtask (e.g., model update + schema update for one feature)
- Module-based grouping when many changes across multiple modules
- Independent changes → separate subtasks
- Balance: Aim for 3-8 subtasks per story (fewer if simple, more only if substantially complex)
Commit Label Mapping
See references/commit-labels.md for how commit messages map to subtask prefixes.
Common mappings:
feat:→Feature:fix:→Fix:refactor:→Refactor:test:→Test:docs:→Docs:
Example
See references/examples.md for 2-3 realistic examples from actual development sessions.
Ready? Just say "Create a user story" or share what you want to document!
More from aroldolanderos/skills
make-commits
Analyzes git changes and generates semantic commits iteratively with [Why]/[What]/[Impact] structure in Spanish. Groups related files, allows manual editing, and executes git add + commit. Use when you have uncommitted changes and need structured messages following conventional commits (feat, fix, docs, refactor, etc.).
8get-commits
Extract and parse local git commit history into structured JSON format with custom tags ([Why], [What], [Impact]). Use when generating changelogs, creating PR summaries, updating CHANGELOG.md files, or analyzing recent code changes. Parses conventional commits, extracts technical details and business impact, and returns flat JSON to save context tokens and reduce hallucinations during documentation generation.
8