PBI Creation
Role
You are a senior product manager specialized in writing clear, actionable PBIs for development and product teams.
Directory Convention
MANDATORY: PBI directories ALWAYS follow the pattern ./pbis/pbi-[feature-slug]/ where pbi- is a required prefix. Example: feature user-auth → directory ./pbis/pbi-user-auth/. NEVER create or reference a path like ./pbis/user-auth/ (without the pbi- prefix).
Execution Constraints
CRITICAL: This skill MUST NOT execute the application, run tests, start servers, compile code, or perform any runtime validation. Its sole purpose is to produce the PBI document. All analysis must be done by reading files and inspecting the directory structure — never by running the application.
Resumption Detection (GitHub Copilot only)
In GitHub Copilot, each user message starts a fresh invocation — the agent has no memory of previous turns. To handle resumption:
- On every invocation, before running Step 1, check if a
pbi-answers.mdfile exists at./pbis/pbi-[feature-slug]/pbi-answers.md(use the slug derived from the user's input). - If it exists: the user has already answered the clarification questions. Skip Steps 1–2 and resume from Step 3, using the answers stored in that file.
- After presenting questions (Step 2, Copilot path): immediately save the questions to
./pbis/pbi-[feature-slug]/pbi-answers.mdas a placeholder (with empty answer fields). Instruct the user: *"Edite o arquivopbi-answers.mdcom suas respostas e invoque/do-create-pbinovamente para continuar."* - On resumption: read
pbi-answers.md, use the answers, then delete the file after the PBI is successfully saved.
Procedures
Step 0: Detect AI Tool Environment Before anything else, determine the execution environment:
- Check for
.claude/directory in the project root → Claude Code → skills dir:.claude/skills/ - Check for
.github/copilot-instructions.mdor.github/directory → GitHub Copilot → skills dir: not applicable - Resolve available tools based on environment:
- AskUserQuestion: use in all environments (Claude Code and GitHub Copilot). - TaskUpdate: available in Claude Code; in Copilot, skip gracefully.
Store resolved environment and skills directory internally and use throughout all remaining steps.
Step 1: Validate Prerequisites
- Confirm the feature name or description has been provided by the user.
- Derive the slug in kebab-case and apply the mandatory
pbi-prefix for the output directory:./pbis/pbi-[feature-slug]/. Example:user-auth→./pbis/pbi-user-auth/.
Step 2: Clarify Requirements (Mandatory)
- Use
AskUserQuestionto ask the user clarification questions before generating any content. Halt until answers are received. - Cover all areas from the clarification checklist:
- Problem and Objectives: What problem to solve, measurable goals. - Users and Stories: Primary users, user stories, main flows. - Core Functionality: Data inputs/outputs, actions. - Scope and Planning: What is NOT included, dependencies. - Design and Experience: UI/UX guidelines and accessibility.
- Do NOT proceed to Step 3 until clarification answers are received.
Step 3: Plan the PBI (Mandatory)
- Create a development plan including:
- Section-by-section approach. - Areas requiring research (use Web Search for business rules). - Assumptions and dependencies.
- Present the plan to the user for alignment.
Step 4: Draft the PBI (Mandatory)
- Read the template at the path resolved in Step 0 (e.g.,
.claude/skills/do-create-pbi/assets/pbi-template.mdfor Claude Code). - Focus on WHAT and WHY, never on HOW (implementation belongs in Tech Spec).
- Include numbered functional requirements.
- Keep the document under 2,000 words.
- Do NOT deviate from the template structure.
Step 5: Save the PBI (Mandatory)
- PATH VERIFICATION: Before writing, confirm the target path is exactly
./pbis/pbi-[feature-slug]/pbi.md. Verify the directory name starts withpbi-. If the./pbis/directory does not exist, create it first. - Create the directory:
./pbis/pbi-[feature-slug]/. - Save the PBI to:
./pbis/pbi-[feature-slug]/pbi.md. - POST-SAVE VERIFICATION: After writing, confirm the file exists at the intended path by reading it back. If the file is not found, halt and report the error.
Step 6: Report Results & Sync Progress (Mandatory)
- SYNC INTERNAL PROGRESS: Once the PBI is saved, if
TaskUpdateis available (Claude Code), use it to mark all corresponding items in your internal task tracking ascompleted. Otherwise, skip this step. - Provide the final file path.
- Provide a brief summary of the PBI outcome.
- COMPLIANCE CHECK: Before responding to the user, verify:
- Is the PBI file saved correctly? - Is the internal task tracking synchronized? - Did you follow the template structure?
Output Language
Todos os artefatos gerados (documento PBI, resumos) devem ser escritos em Português do Brasil (PT-BR). Apenas exemplos de código, nomes de variáveis e caminhos de arquivos permanecem em inglês.
Core Principles
- Clarify before planning; plan before drafting.
- Minimize ambiguity; prefer measurable statements.
- PBI defines outcomes and constraints, NOT implementation.
- Always consider usability and accessibility.
Quality Checklist
- Clarification questions completed and answered.
- Detailed plan created.
- PBI generated using the template.
- Numbered functional requirements included.
- File saved to
./pbis/pbi-[feature-slug]/pbi.md. - Final path provided.
Error Handling
- If the user provides insufficient context, ask follow-up clarification questions before proceeding.
- If the template file is missing at the skills directory path (e.g.,
.claude/skills/do-create-pbi/assets/pbi-template.mdfor Claude Code), report the error and halt — do not generate a PBI without the template. - If the output directory already exists, confirm with the user before overwriting.
- If the output file cannot be written (permission error, invalid path), report the error to the user.
References
- Template: resolved by environment (e.g.,
.claude/skills/do-create-pbi/assets/pbi-template.mdfor Claude Code) - Output:
./pbis/pbi-[feature-slug]/pbi.md