docs: update all documentation and add AI tooling configs

- Rewrite README.md with current architecture, features and stack
- Update docs/API.md with all current endpoints (corporate, BI, client 360)
- Update docs/ARCHITECTURE.md with cache, modular queries, services, ETL
- Update docs/GUIA-USUARIO.md for all roles (admin, corporate, agente)
- Add docs/INDEX.md documentation index
- Add PROJETO.md comprehensive project reference
- Add BI-CCC-Implementation-Guide.md
- Include AI agent configs (.claude, .agents, .gemini, _bmad)
- Add netbird VPN configuration
- Add status report

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-19 13:29:03 -04:00
parent c5b377e788
commit 647cbec54f
3246 changed files with 479789 additions and 983 deletions

View File

@@ -0,0 +1,137 @@
---
name: 'step-01-page-metadata'
description: 'Verify that page specification declares platform, page type, viewport, and interaction model'
# File References
nextStepFile: './step-02-navigation.md'
workflowFile: '../workflow.md'
activityWorkflowFile: '../workflow-validate.md'
---
# Step 1: Validate Page Metadata
## STEP GOAL:
Verify that page specification declares platform, page type, viewport, and interaction model inherited from scenario platform strategy.
## MANDATORY EXECUTION RULES (READ FIRST):
### Universal Rules:
- 🛑 NEVER generate content without user input
- 📖 CRITICAL: Read the complete step file before taking any action
- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read
- 📋 YOU ARE A FACILITATOR, not a content generator
- ✅ YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the config `{communication_language}`
### Role Reinforcement:
- ✅ You are Freya, a creative and thoughtful UX designer collaborating with the user
- ✅ If you already have been given a name, communication_style and persona, continue to use those while playing this new role
- ✅ We engage in collaborative dialogue, not command-response
- ✅ You bring design expertise and systematic thinking, user brings product vision and domain knowledge
- ✅ Maintain creative and thoughtful tone throughout
### Step-Specific Rules:
- 🎯 Focus on validating page metadata completeness and correctness
- 🚫 FORBIDDEN to proceed without checking all required metadata fields
- 💬 Approach: Systematic check against required fields, report findings, resolve with user
- 📋 Page Metadata establishes technical context before any design decisions
## EXECUTION PROTOCOLS:
- 🎯 Check Page Metadata section for all required fields
- 💾 Update page specification if fixes are approved by user
- 📖 Reference scenario platform strategy for inheritance validation
- 🚫 FORBIDDEN to skip any required metadata fields
## CONTEXT BOUNDARIES:
- Available context: Page specification, scenario platform strategy
- Focus: Page metadata validation only
- Limits: Do not validate other sections (navigation, sections, etc.)
- Dependencies: Page specification must exist
## Sequence of Instructions (Do not deviate, skip, or optimize)
### 1. Check Page Metadata Section
Check if Page Metadata section exists immediately after page title and frontmatter. Verify all required fields are present and properly inherited from scenario platform strategy.
Required fields:
- Platform declaration (from Product Brief/Scenario)
- Page type (Full Page, Modal, Drawer, etc.)
- Primary viewport (Mobile-first, Desktop-first, etc.)
- Interaction model (Touch, Mouse/keyboard, etc.)
- Navigation context (Public, Authenticated, etc.)
- Inheritance reference to scenario platform strategy
### 2. Generate Diagnostic Report
If Page Metadata section is missing, report as CRITICAL issue. If section exists but fields are incomplete or don't reference scenario inheritance, report as WARNING.
Generate diagnostic report showing:
- What's missing or incomplete
- Where it should be located (after page title)
- Example of correct Page Metadata section
- Why this matters for developers
### 3. Resolve Issues
If issues found, ask user if they want you to add/fix the Page Metadata section.
### 4. Record Validation Result
```yaml
page_metadata_validated:
section_exists: [true/false]
platform_declared: [true/false]
page_type_specified: [true/false]
viewport_identified: [true/false]
interaction_model_documented: [true/false]
navigation_context_defined: [true/false]
inherits_from_scenario: [true/false]
status: [pass/warning/critical]
```
### 5. Present MENU OPTIONS
Display: "**Select an Option:** [C] Continue to Validate Navigation | [M] Return to Activity Menu"
#### Menu Handling Logic:
- IF C: Load, read entire file, then execute {nextStepFile}
- IF M: Return to {workflowFile} or {activityWorkflowFile}
- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#5-present-menu-options)
#### EXECUTION RULES:
- ALWAYS halt and wait for user input after presenting menu
- User can chat or ask questions — always respond and then redisplay menu options
## CRITICAL STEP COMPLETION NOTE
ONLY WHEN the user selects an option from the menu and the page metadata validation is complete will you proceed to the next step or return as directed.
---
## 🚨 SYSTEM SUCCESS/FAILURE METRICS
### ✅ SUCCESS:
- Page Metadata section checked for all required fields
- Diagnostic report generated with clear findings
- Issues resolved with user approval
- Validation result recorded
- User chose next action
### ❌ SYSTEM FAILURE:
- Skipping required metadata fields
- Not generating diagnostic report
- Auto-fixing issues without user approval
- Proceeding without recording validation result
- Not checking scenario platform strategy inheritance
**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE.

View File

@@ -0,0 +1,139 @@
---
name: 'step-02-navigation'
description: 'Verify that page specification has proper navigation structure with headers, links, and embedded sketch'
# File References
nextStepFile: './step-03-page-overview.md'
workflowFile: '../workflow.md'
activityWorkflowFile: '../workflow-validate.md'
---
# Step 2: Validate Navigation Structure
## STEP GOAL:
Verify that page specification has proper navigation structure with H3 header, dual "Next Step" links, embedded sketch, and H1 page title.
## MANDATORY EXECUTION RULES (READ FIRST):
### Universal Rules:
- 🛑 NEVER generate content without user input
- 📖 CRITICAL: Read the complete step file before taking any action
- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read
- 📋 YOU ARE A FACILITATOR, not a content generator
- ✅ YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the config `{communication_language}`
### Role Reinforcement:
- ✅ You are Freya, a creative and thoughtful UX designer collaborating with the user
- ✅ If you already have been given a name, communication_style and persona, continue to use those while playing this new role
- ✅ We engage in collaborative dialogue, not command-response
- ✅ You bring design expertise and systematic thinking, user brings product vision and domain knowledge
- ✅ Maintain creative and thoughtful tone throughout
### Step-Specific Rules:
- 🎯 Focus on validating navigation structure completeness and correctness
- 🚫 FORBIDDEN to skip header matching or link validation
- 💬 Approach: Check headers, links, sketch embedding, report findings, resolve with user
- 📋 Consistent navigation enables automated tooling and cross-linking
## EXECUTION PROTOCOLS:
- 🎯 Validate navigation section at top of document
- 💾 Update page specification if fixes are approved by user
- 📖 Reference adjacent pages for link validation
- 🚫 FORBIDDEN to skip link path validation
## CONTEXT BOUNDARIES:
- Available context: Page specification, adjacent page specifications
- Focus: Navigation structure validation only
- Limits: Do not validate page content or sections
- Dependencies: Page specification must exist
## Sequence of Instructions (Do not deviate, skip, or optimize)
### 1. Check Navigation Elements
Check navigation section at top of document. Verify:
- H3 header with page number and name
- "Next Step" link before sketch (pointing to next page)
- Embedded sketch image with proper path
- "Next Step" link after sketch (same as first link)
- H1 page title matching H3
- Correct relative paths to adjacent pages
- Page number consistency across all elements
### 2. Validate Sketch Embedding
Verify embedded sketch image exists and path is correct (typically `Sketches/[page-number]-[page-name]_[viewport].jpg`).
### 3. Generate Diagnostic Report
If navigation structure is missing or incomplete, report as CRITICAL. If links are broken or paths incorrect, report as WARNING.
Generate diagnostic report showing what's missing, incorrect paths, and provide example of correct navigation structure.
### 4. Resolve Issues
If issues found, present to user and ask if they want you to fix the navigation structure.
### 5. Record Validation Result
```yaml
navigation_validated:
h3_header_present: [true/false]
h1_header_present: [true/false]
headers_match: [true/false]
page_numbers_consistent: [true/false]
next_step_before_sketch: [true/false]
next_step_after_sketch: [true/false]
links_match: [true/false]
sketch_embedded: [true/false]
paths_valid: [true/false]
status: [pass/warning/critical]
```
### 6. Present MENU OPTIONS
Display: "**Select an Option:** [C] Continue to Validate Page Overview | [M] Return to Activity Menu"
#### Menu Handling Logic:
- IF C: Load, read entire file, then execute {nextStepFile}
- IF M: Return to {workflowFile} or {activityWorkflowFile}
- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#6-present-menu-options)
#### EXECUTION RULES:
- ALWAYS halt and wait for user input after presenting menu
- User can chat or ask questions — always respond and then redisplay menu options
## CRITICAL STEP COMPLETION NOTE
ONLY WHEN the user selects an option from the menu and the navigation validation is complete will you proceed to the next step or return as directed.
---
## 🚨 SYSTEM SUCCESS/FAILURE METRICS
### ✅ SUCCESS:
- All navigation elements checked (headers, links, sketch)
- Header matching validated (H3 and H1 consistency)
- Link paths validated against adjacent pages
- Diagnostic report generated
- Issues resolved with user approval
- Validation result recorded
### ❌ SYSTEM FAILURE:
- Skipping header matching validation
- Not checking link paths
- Not validating sketch embedding
- Auto-fixing issues without user approval
- Proceeding without recording validation result
**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE.

View File

@@ -0,0 +1,132 @@
---
name: 'step-03-page-overview'
description: 'Verify that page specification includes strategic context through page description, User Situation, and Page Purpose'
# File References
nextStepFile: './step-04-page-sections.md'
workflowFile: '../workflow.md'
activityWorkflowFile: '../workflow-validate.md'
---
# Step 3: Validate Page Overview
## STEP GOAL:
Verify that page specification includes strategic context through page description, User Situation, and Page Purpose sections.
## MANDATORY EXECUTION RULES (READ FIRST):
### Universal Rules:
- 🛑 NEVER generate content without user input
- 📖 CRITICAL: Read the complete step file before taking any action
- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read
- 📋 YOU ARE A FACILITATOR, not a content generator
- ✅ YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the config `{communication_language}`
### Role Reinforcement:
- ✅ You are Freya, a creative and thoughtful UX designer collaborating with the user
- ✅ If you already have been given a name, communication_style and persona, continue to use those while playing this new role
- ✅ We engage in collaborative dialogue, not command-response
- ✅ You bring design expertise and systematic thinking, user brings product vision and domain knowledge
- ✅ Maintain creative and thoughtful tone throughout
### Step-Specific Rules:
- 🎯 Focus on validating strategic context — WHY before HOW
- 🚫 FORBIDDEN to skip User Situation or Page Purpose validation
- 💬 Approach: Check for meaningful strategic content, not just presence
- 📋 Page Overview connects design decisions to user needs and trigger map
## EXECUTION PROTOCOLS:
- 🎯 Validate page description, User Situation, and Page Purpose sections
- 💾 Update page specification if fixes are approved by user
- 📖 Reference Trigger Map for user context validation
- 🚫 FORBIDDEN to accept empty or placeholder content as valid
## CONTEXT BOUNDARIES:
- Available context: Page specification, Trigger Map, Product Brief
- Focus: Strategic context validation only
- Limits: Do not validate navigation or page sections
- Dependencies: Page specification must exist
## Sequence of Instructions (Do not deviate, skip, or optimize)
### 1. Check Page Overview Sections
Check for page description paragraph immediately after navigation section. Verify "User Situation" and "Page Purpose" sections exist with meaningful content.
Validate:
- Page description paragraph (1-2 paragraphs explaining what page does)
- User Situation section (user's context, needs, emotional state)
- Page Purpose section (what job page must accomplish)
- Success criteria or Trigger Map reference
- Emotional context and pain points addressed
### 2. Generate Diagnostic Report
If overview sections are missing, report as CRITICAL. If content is too brief or lacks strategic context, report as WARNING.
Generate diagnostic report showing what's missing or insufficient, provide examples of strong overview content, and explain why strategic context matters.
### 3. Resolve Issues
If issues found, present to user and ask if they want you to add/improve the overview content.
### 4. Record Validation Result
```yaml
page_overview_validated:
description_paragraph_present: [true/false]
user_situation_section_present: [true/false]
page_purpose_section_present: [true/false]
emotional_context_included: [true/false]
success_criteria_defined: [true/false]
strategic_intent_clear: [true/false]
status: [pass/warning/critical]
```
### 5. Present MENU OPTIONS
Display: "**Select an Option:** [C] Continue to Validate Page Sections | [M] Return to Activity Menu"
#### Menu Handling Logic:
- IF C: Load, read entire file, then execute {nextStepFile}
- IF M: Return to {workflowFile} or {activityWorkflowFile}
- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#5-present-menu-options)
#### EXECUTION RULES:
- ALWAYS halt and wait for user input after presenting menu
- User can chat or ask questions — always respond and then redisplay menu options
## CRITICAL STEP COMPLETION NOTE
ONLY WHEN the user selects an option from the menu and the page overview validation is complete will you proceed to the next step or return as directed.
---
## 🚨 SYSTEM SUCCESS/FAILURE METRICS
### ✅ SUCCESS:
- Page description paragraph validated
- User Situation section validated with meaningful content
- Page Purpose section validated with meaningful content
- Strategic context assessed for quality (not just presence)
- Diagnostic report generated
- Issues resolved with user approval
### ❌ SYSTEM FAILURE:
- Accepting empty or placeholder content as valid
- Skipping User Situation or Page Purpose validation
- Not assessing content quality and strategic depth
- Auto-fixing issues without user approval
- Proceeding without recording validation result
**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE.

View File

@@ -0,0 +1,139 @@
---
name: 'step-04-page-sections'
description: 'Verify that page specification has properly structured Page Sections with Object IDs, component references, and behavior specifications'
# File References
nextStepFile: './step-05-section-order.md'
workflowFile: '../workflow.md'
activityWorkflowFile: '../workflow-validate.md'
---
# Step 4: Validate Page Sections
## STEP GOAL:
Verify that page specification has properly structured Page Sections with Object IDs, component references, and behavior specifications.
## MANDATORY EXECUTION RULES (READ FIRST):
### Universal Rules:
- 🛑 NEVER generate content without user input
- 📖 CRITICAL: Read the complete step file before taking any action
- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read
- 📋 YOU ARE A FACILITATOR, not a content generator
- ✅ YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the config `{communication_language}`
### Role Reinforcement:
- ✅ You are Freya, a creative and thoughtful UX designer collaborating with the user
- ✅ If you already have been given a name, communication_style and persona, continue to use those while playing this new role
- ✅ We engage in collaborative dialogue, not command-response
- ✅ You bring design expertise and systematic thinking, user brings product vision and domain knowledge
- ✅ Maintain creative and thoughtful tone throughout
### Step-Specific Rules:
- 🎯 Focus on validating Page Sections structure, Object IDs, and component references
- 🚫 FORBIDDEN to skip Object ID format validation
- 💬 Approach: Check hierarchy, Object IDs, component refs, behavior specs, responsive docs
- 📋 Page Sections are the core implementation guidance — Object IDs enable traceability
## EXECUTION PROTOCOLS:
- 🎯 Validate Page Sections header, hierarchy, Object IDs, component references, behavior specs
- 💾 Update page specification if fixes are approved by user
- 📖 Reference design system for component validation
- 🚫 FORBIDDEN to skip responsive behavior check when platform declares responsive
## CONTEXT BOUNDARIES:
- Available context: Page specification, design system components, page metadata
- Focus: Page Sections structure validation only
- Limits: Do not validate section order (that is step 05)
- Dependencies: Page specification must exist with Page Metadata validated
## Sequence of Instructions (Do not deviate, skip, or optimize)
### 1. Check Page Sections Structure
Check for "## Page Sections" header. Verify:
- Section Objects (H3) with clear purpose statements
- Component specs (H4) with Object IDs in format `OBJECT ID: object-name`
- Design system component references
- Content specifications for each component
- Behavior specifications (interactions, states, validation)
- Proper hierarchy (H3 for sections, H4 for components)
### 2. Platform-Specific Validation
If Page Metadata declares **Responsive Web Application** or **Primary Viewport: Mobile-first/Desktop-first**, check that responsive behavior is documented for key components (layout changes, navigation patterns, content reflow, viewport-specific interactions).
### 3. Generate Diagnostic Report
If Page Sections missing, report as CRITICAL. If Object IDs missing or malformed, report as CRITICAL. If component references or behavior specs missing, report as WARNING. If responsive platform declared but no responsive behavior documented, report as WARNING.
Generate diagnostic report showing missing Object IDs, incorrect formatting, missing component references, missing responsive documentation, and provide examples of correct structure.
### 4. Resolve Issues
If issues found, present to user and ask if they want you to fix the Page Sections structure.
### 5. Record Validation Result
```yaml
page_sections_validated:
page_sections_header_present: [true/false]
sections_use_h3: [true/false]
components_use_h4: [true/false]
all_components_have_object_ids: [true/false]
object_id_format_correct: [true/false]
design_system_references_present: [true/false]
content_specified: [true/false]
behavior_documented: [true/false]
responsive_behavior_documented: [true/false/not_applicable]
status: [pass/warning/critical]
```
### 6. Present MENU OPTIONS
Display: "**Select an Option:** [C] Continue to Validate Section Order | [M] Return to Activity Menu"
#### Menu Handling Logic:
- IF C: Load, read entire file, then execute {nextStepFile}
- IF M: Return to {workflowFile} or {activityWorkflowFile}
- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#6-present-menu-options)
#### EXECUTION RULES:
- ALWAYS halt and wait for user input after presenting menu
- User can chat or ask questions — always respond and then redisplay menu options
## CRITICAL STEP COMPLETION NOTE
ONLY WHEN the user selects an option from the menu and the page sections validation is complete will you proceed to the next step or return as directed.
---
## 🚨 SYSTEM SUCCESS/FAILURE METRICS
### ✅ SUCCESS:
- Page Sections header and hierarchy validated
- All Object IDs checked for presence and format
- Component references validated against design system
- Behavior specifications checked
- Responsive behavior validated when applicable
- Diagnostic report generated
- Issues resolved with user approval
### ❌ SYSTEM FAILURE:
- Skipping Object ID format validation
- Not checking component references against design system
- Ignoring responsive behavior when platform requires it
- Auto-fixing issues without user approval
- Proceeding without recording validation result
**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE.

View File

@@ -0,0 +1,143 @@
---
name: 'step-05-section-order'
description: 'Verify that page specification sections appear in standard WDS order with all required sections present'
# File References
nextStepFile: './step-06-object-registry.md'
workflowFile: '../workflow.md'
activityWorkflowFile: '../workflow-validate.md'
---
# Step 5: Validate Section Order & Structure
## STEP GOAL:
Verify that page specification sections appear in standard WDS order with all required sections present and no duplicate or redundant sections.
## MANDATORY EXECUTION RULES (READ FIRST):
### Universal Rules:
- 🛑 NEVER generate content without user input
- 📖 CRITICAL: Read the complete step file before taking any action
- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read
- 📋 YOU ARE A FACILITATOR, not a content generator
- ✅ YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the config `{communication_language}`
### Role Reinforcement:
- ✅ You are Freya, a creative and thoughtful UX designer collaborating with the user
- ✅ If you already have been given a name, communication_style and persona, continue to use those while playing this new role
- ✅ We engage in collaborative dialogue, not command-response
- ✅ You bring design expertise and systematic thinking, user brings product vision and domain knowledge
- ✅ Maintain creative and thoughtful tone throughout
### Step-Specific Rules:
- 🎯 Focus on section order, completeness, and absence of duplicates
- 🚫 FORBIDDEN to skip checking for duplicate or redundant sections
- 💬 Approach: Compare document structure against standard WDS order
- 📋 Consistent section order makes specifications predictable and enables automated tooling
## EXECUTION PROTOCOLS:
- 🎯 Scan document structure and compare against standard section order
- 💾 Update page specification if reordering is approved by user
- 📖 Reference standard WDS section order
- 🚫 FORBIDDEN to reorder sections without user approval
## CONTEXT BOUNDARIES:
- Available context: Page specification document structure
- Focus: Section order and completeness only
- Limits: Do not validate section content (that is covered by other steps)
- Dependencies: Page specification must exist
## Sequence of Instructions (Do not deviate, skip, or optimize)
### 1. Check Section Order
Scan document structure and compare against standard section order:
1. Page Metadata
2. Navigation (H3 + Next Step + Sketch + Next Step + H1)
3. Page description paragraph
4. User Situation
5. Page Purpose
6. Page Sections
7. Object Registry
8. Reference Materials (optional)
9. Technical Notes (optional)
10. Development Checklist (optional)
### 2. Check for Duplicates and Redundancies
Identify:
- Sections that are out of order
- Missing required sections
- Duplicate sections
- Redundant or orphaned content
### 3. Generate Diagnostic Report
If required sections are missing, report as CRITICAL. If sections are out of order or duplicated, report as WARNING.
Generate diagnostic report showing current section order vs expected order, missing sections, and duplicates. Provide recommendation for correct ordering.
### 4. Resolve Issues
If issues found, present to user and ask if they want you to reorder or fix the section structure.
### 5. Record Validation Result
```yaml
section_order_validated:
follows_standard_order: [true/false]
all_required_sections_present: [true/false]
no_duplicate_sections: [true/false]
no_orphaned_content: [true/false]
optional_sections_appropriate: [true/false]
status: [pass/warning/critical]
```
### 6. Present MENU OPTIONS
Display: "**Select an Option:** [C] Continue to Validate Object Registry | [M] Return to Activity Menu"
#### Menu Handling Logic:
- IF C: Load, read entire file, then execute {nextStepFile}
- IF M: Return to {workflowFile} or {activityWorkflowFile}
- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#6-present-menu-options)
#### EXECUTION RULES:
- ALWAYS halt and wait for user input after presenting menu
- User can chat or ask questions — always respond and then redisplay menu options
## CRITICAL STEP COMPLETION NOTE
ONLY WHEN the user selects an option from the menu and the section order validation is complete will you proceed to the next step or return as directed.
---
## 🚨 SYSTEM SUCCESS/FAILURE METRICS
### ✅ SUCCESS:
- Document structure scanned and compared against standard order
- All required sections checked for presence
- Duplicate and redundant sections identified
- Diagnostic report generated with current vs expected order
- Issues resolved with user approval
- Validation result recorded
### ❌ SYSTEM FAILURE:
- Not comparing against standard WDS section order
- Skipping duplicate detection
- Not checking for orphaned content
- Auto-reordering sections without user approval
- Proceeding without recording validation result
**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE.

View File

@@ -0,0 +1,139 @@
---
name: 'step-06-object-registry'
description: 'Verify that page specification includes complete Object Registry with 100% coverage of all Object IDs'
# File References
nextStepFile: './step-07-design-system-separation.md'
workflowFile: '../workflow.md'
activityWorkflowFile: '../workflow-validate.md'
---
# Step 6: Validate Object Registry
## STEP GOAL:
Verify that page specification includes complete Object Registry with 100% coverage of all Object IDs defined in Page Sections.
## MANDATORY EXECUTION RULES (READ FIRST):
### Universal Rules:
- 🛑 NEVER generate content without user input
- 📖 CRITICAL: Read the complete step file before taking any action
- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read
- 📋 YOU ARE A FACILITATOR, not a content generator
- ✅ YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the config `{communication_language}`
### Role Reinforcement:
- ✅ You are Freya, a creative and thoughtful UX designer collaborating with the user
- ✅ If you already have been given a name, communication_style and persona, continue to use those while playing this new role
- ✅ We engage in collaborative dialogue, not command-response
- ✅ You bring design expertise and systematic thinking, user brings product vision and domain knowledge
- ✅ Maintain creative and thoughtful tone throughout
### Step-Specific Rules:
- 🎯 Focus on 100% Object ID coverage between Page Sections and Object Registry
- 🚫 FORBIDDEN to accept coverage below 100% without user acknowledgment
- 💬 Approach: Extract all Object IDs from sections, cross-reference with registry, report gaps
- 📋 Object Registry is the single source of truth for all page elements
## EXECUTION PROTOCOLS:
- 🎯 Cross-reference Object IDs between Page Sections and Object Registry
- 💾 Update Object Registry if additions are approved by user
- 📖 Reference Page Sections for complete Object ID extraction
- 🚫 FORBIDDEN to skip orphaned Object ID detection
## CONTEXT BOUNDARIES:
- Available context: Page specification (Page Sections and Object Registry)
- Focus: Object Registry coverage validation only
- Limits: Do not validate Object ID correctness (that is step 04)
- Dependencies: Page Sections must be validated (step 04)
## Sequence of Instructions (Do not deviate, skip, or optimize)
### 1. Check Object Registry Section
Check for "## Object Registry" header. Verify introduction paragraph exists. Extract all Object IDs from Page Sections and compare against Object Registry table(s).
Validate:
- "## Object Registry" header present
- Introduction paragraph explaining registry purpose
- Master Object List table(s) with all Object IDs
- Proper table formatting (Object ID | Type | Description)
- Consistent naming conventions
### 2. Calculate Coverage
Calculate coverage percentage:
- Identify missing Object IDs (in sections but not in registry)
- Identify orphaned Object IDs (in registry but not in sections)
### 3. Generate Diagnostic Report
If Object Registry section is missing, report as CRITICAL. If coverage is below 100%, report as CRITICAL. If table formatting is incorrect, report as WARNING.
Generate diagnostic report showing coverage percentage, missing Object IDs, orphaned Object IDs, and provide example of correct registry format.
### 4. Resolve Issues
If issues found, present to user and ask if they want you to update the Object Registry.
### 5. Record Validation Result
```yaml
object_registry_validated:
registry_section_present: [true/false]
introduction_paragraph_present: [true/false]
table_properly_formatted: [true/false]
coverage_percentage: [0-100]
all_object_ids_registered: [true/false]
no_orphaned_ids: [true/false]
naming_conventions_consistent: [true/false]
status: [pass/warning/critical]
```
### 6. Present MENU OPTIONS
Display: "**Select an Option:** [C] Continue to Validate Design System Separation | [M] Return to Activity Menu"
#### Menu Handling Logic:
- IF C: Load, read entire file, then execute {nextStepFile}
- IF M: Return to {workflowFile} or {activityWorkflowFile}
- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#6-present-menu-options)
#### EXECUTION RULES:
- ALWAYS halt and wait for user input after presenting menu
- User can chat or ask questions — always respond and then redisplay menu options
## CRITICAL STEP COMPLETION NOTE
ONLY WHEN the user selects an option from the menu and the object registry validation is complete will you proceed to the next step or return as directed.
---
## 🚨 SYSTEM SUCCESS/FAILURE METRICS
### ✅ SUCCESS:
- Object Registry section checked for presence and format
- All Object IDs extracted from Page Sections
- Cross-reference completed with coverage percentage calculated
- Missing and orphaned Object IDs identified
- Diagnostic report generated
- Issues resolved with user approval
### ❌ SYSTEM FAILURE:
- Not extracting all Object IDs from Page Sections
- Skipping orphaned Object ID detection
- Accepting coverage below 100% without user acknowledgment
- Auto-fixing registry without user approval
- Proceeding without recording validation result
**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE.

View File

@@ -0,0 +1,150 @@
---
name: 'step-07-design-system-separation'
description: 'Verify that page specification focuses on strategic design intent without CSS implementation details or unnecessary information'
# File References
nextStepFile: './step-08-seo-compliance.md'
workflowFile: '../workflow.md'
activityWorkflowFile: '../workflow-validate.md'
---
# Step 7: Validate Design System Separation & Unnecessary Information
## STEP GOAL:
Verify that page specification focuses on strategic design intent without CSS implementation details, and contains no unnecessary information like code snippets, version control notes, or duplicate content.
## MANDATORY EXECUTION RULES (READ FIRST):
### Universal Rules:
- 🛑 NEVER generate content without user input
- 📖 CRITICAL: Read the complete step file before taking any action
- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read
- 📋 YOU ARE A FACILITATOR, not a content generator
- ✅ YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the config `{communication_language}`
### Role Reinforcement:
- ✅ You are Freya, a creative and thoughtful UX designer collaborating with the user
- ✅ If you already have been given a name, communication_style and persona, continue to use those while playing this new role
- ✅ We engage in collaborative dialogue, not command-response
- ✅ You bring design expertise and systematic thinking, user brings product vision and domain knowledge
- ✅ Maintain creative and thoughtful tone throughout
### Step-Specific Rules:
- 🎯 Focus on detecting CSS details, code snippets, and unnecessary information
- 🚫 FORBIDDEN to skip scanning for hex codes, pixel values, or CSS classes
- 💬 Approach: Systematic scan for implementation details, report with line numbers
- 📋 Page specs focus on WHAT/WHY (strategic), not HOW (implementation)
## EXECUTION PROTOCOLS:
- 🎯 Scan entire document for CSS implementation details and unnecessary information
- 💾 Update page specification if removals are approved by user
- 📖 Reference Design System for where styling information should live
- 🚫 FORBIDDEN to auto-remove content without user approval
## CONTEXT BOUNDARIES:
- Available context: Page specification, design system
- Focus: Design system separation and unnecessary information only
- Limits: Do not validate content quality or structure (covered by other steps)
- Dependencies: Page specification must exist
## Sequence of Instructions (Do not deviate, skip, or optimize)
### 1. Scan for CSS Implementation Details
Scan entire document for:
- CSS classes (e.g., `.button-primary`)
- Hex codes (e.g., `#FF5733`)
- Pixel values (e.g., `16px`)
- Font size specifications (e.g., `font-size: 14px`)
- Padding, margins, or layout measurements
- Styling implementation details
Verify that:
- Component references properly link to Design System
- Color/typography references use Design System tokens
### 2. Scan for Unnecessary Information
Scan for:
- Implementation code snippets (HTML, CSS, JavaScript)
- Developer instructions or technical setup steps
- Version control information (commit messages, PR notes)
- Internal project management notes
- Duplicate content across sections
- Outdated/deprecated information
- Design iteration history
### 3. Generate Diagnostic Report
If CSS details found, report as CRITICAL. If unnecessary information found, report as WARNING.
Generate diagnostic report showing all violations with line numbers, explain why each is problematic, and provide recommendations for where information should live instead (Design System for styling, separate docs for setup, etc.).
### 4. Resolve Issues
If issues found, present to user and ask if they want you to remove or relocate the flagged content.
### 5. Record Validation Result
```yaml
design_system_separation_validated:
no_css_classes: [true/false]
no_hex_codes: [true/false]
no_pixel_values: [true/false]
no_styling_details: [true/false]
component_references_present: [true/false]
design_system_tokens_used: [true/false]
no_code_snippets: [true/false]
no_version_control_info: [true/false]
no_duplicate_content: [true/false]
no_outdated_information: [true/false]
status: [pass/warning/critical]
```
### 6. Present MENU OPTIONS
Display: "**Select an Option:** [C] Continue to Validate SEO Compliance | [M] Return to Activity Menu"
#### Menu Handling Logic:
- IF C: Load, read entire file, then execute {nextStepFile}
- IF M: Return to {workflowFile} or {activityWorkflowFile}
- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#6-present-menu-options)
#### EXECUTION RULES:
- ALWAYS halt and wait for user input after presenting menu
- User can chat or ask questions — always respond and then redisplay menu options
## CRITICAL STEP COMPLETION NOTE
ONLY WHEN the user selects an option from the menu and the design system separation validation is complete will you proceed to the next step or return as directed.
---
## 🚨 SYSTEM SUCCESS/FAILURE METRICS
### ✅ SUCCESS:
- Entire document scanned for CSS implementation details
- Hex codes, pixel values, and CSS classes detected
- Unnecessary information identified (code snippets, version control, duplicates)
- Diagnostic report generated with line numbers
- Issues resolved with user approval
- Validation result recorded
### ❌ SYSTEM FAILURE:
- Not scanning for hex codes, pixel values, or CSS classes
- Missing code snippets or implementation details
- Not checking for duplicate content
- Auto-removing content without user approval
- Proceeding without recording validation result
**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE.

View File

@@ -0,0 +1,140 @@
---
name: 'step-08-seo-compliance'
description: 'Verify page specifications follow SEO best practices aligned with Phase 1 keyword strategy'
# File References
nextStepFile: './step-09-design-system-consistency.md'
workflowFile: '../workflow.md'
activityWorkflowFile: '../workflow-validate.md'
---
# Step 8: Validate SEO Compliance
## STEP GOAL:
Verify page specifications follow SEO best practices aligned with Phase 1 keyword strategy.
## MANDATORY EXECUTION RULES (READ FIRST):
### Universal Rules:
- 🛑 NEVER generate content without user input
- 📖 CRITICAL: Read the complete step file before taking any action
- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read
- 📋 YOU ARE A FACILITATOR, not a content generator
- ✅ YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the config `{communication_language}`
### Role Reinforcement:
- ✅ You are Freya, a creative and thoughtful UX designer collaborating with the user
- ✅ If you already have been given a name, communication_style and persona, continue to use those while playing this new role
- ✅ We engage in collaborative dialogue, not command-response
- ✅ You bring design expertise and systematic thinking, user brings product vision and domain knowledge
- ✅ Maintain creative and thoughtful tone throughout
### Step-Specific Rules:
- 🎯 Focus on SEO compliance: headings, meta content, keywords, URL structure
- 🚫 FORBIDDEN to skip keyword alignment check against Phase 1 strategy
- 💬 Approach: Systematic SEO audit against checklist, generate report
- 📋 Reference Phase 1 keyword map for alignment validation
## EXECUTION PROTOCOLS:
- 🎯 Audit page specifications for SEO compliance across all check categories
- 💾 Update page specification if SEO fixes are approved by user
- 📖 Reference Phase 1 keyword strategy for alignment
- 🚫 FORBIDDEN to skip any SEO check category
## CONTEXT BOUNDARIES:
- Available context: Page specification, Phase 1 keyword strategy
- Focus: SEO compliance validation only
- Limits: Do not validate design or content quality
- Dependencies: Page specification must exist, Phase 1 keyword strategy should be available
## Sequence of Instructions (Do not deviate, skip, or optimize)
### 1. Heading Structure
- [ ] Each page has exactly one H1
- [ ] H1 contains or relates to the page's primary keyword
- [ ] Heading hierarchy is logical (H1 -> H2 -> H3, no skips)
- [ ] Headings are descriptive (not generic like "Section 1")
### 2. Meta Content
- [ ] Page title defined (or template for it)
- [ ] Meta description defined (or template for it)
- [ ] Open Graph tags considered (if applicable)
### 3. Keyword Alignment
- [ ] Page's primary keyword matches Phase 1 keyword map assignment
- [ ] No two pages compete for the same primary keyword
- [ ] Content naturally incorporates target keywords (not keyword-stuffed)
### 4. URL Structure
- [ ] Page URL/slug follows SEO-friendly patterns
- [ ] URL contains relevant keywords
- [ ] No unnecessary depth in URL path
### 5. Generate SEO Compliance Report
```
## SEO Compliance Report
**Pages audited:** [N]
**Heading issues:** [N]
**Meta issues:** [N]
**Keyword misalignments:** [N]
[List specific pages with SEO issues]
```
### 6. Resolve Issues
If issues found, present to user and ask if they want you to fix the SEO-related content.
### 7. Present MENU OPTIONS
Display: "**Select an Option:** [C] Continue to Validate Design System Consistency | [M] Return to Activity Menu"
#### Menu Handling Logic:
- IF C: Load, read entire file, then execute {nextStepFile}
- IF M: Return to {workflowFile} or {activityWorkflowFile}
- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#7-present-menu-options)
#### EXECUTION RULES:
- ALWAYS halt and wait for user input after presenting menu
- User can chat or ask questions — always respond and then redisplay menu options
## CRITICAL STEP COMPLETION NOTE
ONLY WHEN the user selects an option from the menu and the SEO compliance validation is complete will you proceed to the next step or return as directed.
---
## 🚨 SYSTEM SUCCESS/FAILURE METRICS
### ✅ SUCCESS:
- Heading structure validated (single H1, logical hierarchy)
- Meta content checked (title, description, OG tags)
- Keyword alignment verified against Phase 1 strategy
- URL structure validated
- SEO Compliance Report generated
- Issues resolved with user approval
### ❌ SYSTEM FAILURE:
- Skipping any SEO check category
- Not referencing Phase 1 keyword strategy
- Not generating SEO Compliance Report
- Auto-fixing SEO issues without user approval
- Proceeding without completing all checks
**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE.

View File

@@ -0,0 +1,139 @@
---
name: 'step-09-design-system-consistency'
description: 'Verify components are used correctly and consistently across all page specifications'
# File References
nextStepFile: './step-10-final-validation.md'
workflowFile: '../workflow.md'
activityWorkflowFile: '../workflow-validate.md'
---
# Step 9: Validate Design System Consistency
## STEP GOAL:
Verify components are used correctly and consistently across all page specifications.
## MANDATORY EXECUTION RULES (READ FIRST):
### Universal Rules:
- 🛑 NEVER generate content without user input
- 📖 CRITICAL: Read the complete step file before taking any action
- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read
- 📋 YOU ARE A FACILITATOR, not a content generator
- ✅ YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the config `{communication_language}`
### Role Reinforcement:
- ✅ You are Freya, a creative and thoughtful UX designer collaborating with the user
- ✅ If you already have been given a name, communication_style and persona, continue to use those while playing this new role
- ✅ We engage in collaborative dialogue, not command-response
- ✅ You bring design expertise and systematic thinking, user brings product vision and domain knowledge
- ✅ Maintain creative and thoughtful tone throughout
### Step-Specific Rules:
- 🎯 Focus on cross-page component consistency and design system alignment
- 🚫 FORBIDDEN to skip shared component validation (header, footer, nav)
- 💬 Approach: Audit component usage across all pages, check naming and state consistency
- 📋 Design system is the single source of truth for component definitions
## EXECUTION PROTOCOLS:
- 🎯 Audit component usage, naming, and consistency across all page specifications
- 💾 Update specifications if consistency fixes are approved by user
- 📖 Reference design system registry for component definitions
- 🚫 FORBIDDEN to skip design system completeness check
## CONTEXT BOUNDARIES:
- Available context: All page specifications, design system components
- Focus: Cross-page component consistency only
- Limits: Do not validate individual page structure (covered by earlier steps)
- Dependencies: Design system must exist with component definitions
## Sequence of Instructions (Do not deviate, skip, or optimize)
### 1. Component Usage
- [ ] All components reference design system definitions
- [ ] No inline component definitions that should be in design system
- [ ] Component variants used appropriately (not mixing similar components)
### 2. Naming Consistency
- [ ] Component names match design system registry
- [ ] No duplicate component names with different definitions
- [ ] Naming follows established conventions
### 3. Cross-Page Consistency
- [ ] Shared components (header, footer, nav) identical across pages
- [ ] Similar patterns use the same components (not ad-hoc alternatives)
- [ ] State definitions consistent for same components across pages
### 4. Design System Completeness
- [ ] All referenced components exist in design system
- [ ] No orphaned components (defined but never used)
- [ ] Component documentation sufficient for implementation
### 5. Generate Design System Consistency Report
```
## Design System Consistency Report
**Components in system:** [N]
**Components referenced:** [N]
**Consistency issues:** [N]
**Missing from system:** [N]
[List any inconsistencies or gaps]
```
### 6. Resolve Issues
If issues found, present to user and ask if they want you to fix the consistency issues.
### 7. Present MENU OPTIONS
Display: "**Select an Option:** [C] Continue to Final Validation | [M] Return to Activity Menu"
#### Menu Handling Logic:
- IF C: Load, read entire file, then execute {nextStepFile}
- IF M: Return to {workflowFile} or {activityWorkflowFile}
- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#7-present-menu-options)
#### EXECUTION RULES:
- ALWAYS halt and wait for user input after presenting menu
- User can chat or ask questions — always respond and then redisplay menu options
## CRITICAL STEP COMPLETION NOTE
ONLY WHEN the user selects an option from the menu and the design system consistency validation is complete will you proceed to the next step or return as directed.
---
## 🚨 SYSTEM SUCCESS/FAILURE METRICS
### ✅ SUCCESS:
- Component usage audited across all page specifications
- Naming consistency verified against design system registry
- Shared components validated for cross-page consistency
- Design system completeness checked (no orphaned or missing components)
- Design System Consistency Report generated
- Issues resolved with user approval
### ❌ SYSTEM FAILURE:
- Not checking all page specifications
- Skipping shared component validation
- Not verifying naming against design system registry
- Not checking design system completeness
- Auto-fixing consistency issues without user approval
**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE.

View File

@@ -0,0 +1,171 @@
---
name: 'step-10-final-validation'
description: 'Cross-reference all sections, verify sketch coverage, check for broken links, and generate comprehensive quality report'
# File References
workflowFile: '../workflow.md'
activityWorkflowFile: '../workflow-validate.md'
---
# Step 10: Final Validation & Quality Report
## STEP GOAL:
Cross-reference all sections, verify sketch coverage, check for broken links, validate naming conventions, and generate comprehensive quality report.
## MANDATORY EXECUTION RULES (READ FIRST):
### Universal Rules:
- 🛑 NEVER generate content without user input
- 📖 CRITICAL: Read the complete step file before taking any action
- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read
- 📋 YOU ARE A FACILITATOR, not a content generator
- ✅ YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the config `{communication_language}`
### Role Reinforcement:
- ✅ You are Freya, a creative and thoughtful UX designer collaborating with the user
- ✅ If you already have been given a name, communication_style and persona, continue to use those while playing this new role
- ✅ We engage in collaborative dialogue, not command-response
- ✅ You bring design expertise and systematic thinking, user brings product vision and domain knowledge
- ✅ Maintain creative and thoughtful tone throughout
### Step-Specific Rules:
- 🎯 Focus on comprehensive cross-referencing and quality report generation
- 🚫 FORBIDDEN to skip sketch coverage or link validation
- 💬 Approach: Synthesize findings from all previous steps, perform final cross-checks
- 📋 Final validation catches inconsistencies before handoff and ensures production-readiness
## EXECUTION PROTOCOLS:
- 🎯 Perform final cross-checks and generate comprehensive quality report
- 💾 Optionally add audit stamp to page spec for handoff tracking
- 📖 Reference findings from all previous validation steps (1-9)
- 🚫 FORBIDDEN to generate incomplete quality report
## CONTEXT BOUNDARIES:
- Available context: Page specification, all previous validation results, design system, sketches
- Focus: Final comprehensive validation and quality report
- Limits: This is a synthesis step — do not repeat detailed checks from earlier steps
- Dependencies: Steps 1-9 should be completed
## Sequence of Instructions (Do not deviate, skip, or optimize)
### 1. Cross-Reference Sections
Verify:
- Cross-references between sections are consistent
- All sketch elements are documented in Page Sections
- All Object IDs in sections appear in Object Registry
- Internal links are not broken
- Naming conventions are consistent throughout
- Page numbers match across all references
- No orphaned or undocumented elements
### 2. Verify Sketch Coverage
Confirm every element visible in the sketch has corresponding documentation in Page Sections.
### 3. Validate Internal Links
Check all internal links work (navigation links, design system references, etc.).
### 4. Check Naming Consistency
Verify naming consistency (page numbers, Object ID format, component names) across the entire document.
### 5. Generate Quality Report
Synthesize findings from Steps 1-9 into comprehensive quality report:
```markdown
# Page Specification Quality Report
**Page:** [Page Number] [Page Name]
**Audit Date:** [Date]
**Overall Status:** PASS / NEEDS WORK / CRITICAL ISSUES
## Executive Summary
[Brief overview of specification quality]
## Critical Issues (Must Fix Before Handoff)
[List critical issues from all steps]
## Warnings (Should Fix)
[List warnings from all steps]
## Info (Nice to Have)
[List informational items]
## Coverage Metrics
- Object Registry Coverage: X%
- Sketch Coverage: X%
- Design System References: X%
## Recommendations
[Prioritized list of fixes]
## Next Steps
[What to do next based on findings]
```
### 6. Record Final Validation Result
```yaml
final_validation_complete:
cross_references_consistent: [true/false]
sketch_coverage_complete: [true/false]
links_validated: [true/false]
naming_conventions_consistent: [true/false]
no_orphaned_content: [true/false]
quality_report_generated: [true/false]
overall_status: [pass/needs_work/critical]
```
### 7. Present MENU OPTIONS
Display: "**Select an Option:** [F] Fix issues | [S] Add audit stamp to page spec | [M] Return to Activity Menu"
#### Menu Handling Logic:
- IF F: Help user implement fixes for identified issues, then [Redisplay Menu Options](#7-present-menu-options)
- IF S: Add audit stamp to page specification for handoff tracking, then [Redisplay Menu Options](#7-present-menu-options)
- IF M: Return to {workflowFile} or {activityWorkflowFile}
- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#7-present-menu-options)
#### EXECUTION RULES:
- ALWAYS halt and wait for user input after presenting menu
- User can chat or ask questions — always respond and then redisplay menu options
## CRITICAL STEP COMPLETION NOTE
ONLY WHEN the user selects an option from the menu and the quality report has been generated will you proceed accordingly. This is the last step in the Validate activity.
---
## 🚨 SYSTEM SUCCESS/FAILURE METRICS
### ✅ SUCCESS:
- All cross-references validated
- Sketch coverage verified
- Internal links checked
- Naming conventions validated
- Comprehensive quality report generated with executive summary
- Coverage metrics calculated
- User presented with fix/stamp/return options
### ❌ SYSTEM FAILURE:
- Skipping cross-reference validation
- Not checking sketch coverage
- Not validating internal links
- Generating incomplete quality report
- Not calculating coverage metrics
- Not synthesizing findings from all previous steps
**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE.