x-ipe 1.0.24__py3-none-any.whl → 1.0.25__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. x_ipe/app.py +25 -3
  2. x_ipe/handlers/terminal_handlers.py +6 -0
  3. x_ipe/handlers/voice_handlers.py +5 -0
  4. x_ipe/resources/copilot-instructions.md +19 -6
  5. x_ipe/resources/skills/lesson-learned/SKILL.md +208 -0
  6. x_ipe/resources/skills/lesson-learned/references/examples.md +238 -0
  7. x_ipe/resources/skills/project-quality-board-management/SKILL.md +135 -298
  8. x_ipe/resources/skills/project-quality-board-management/references/evaluation-principles.md +213 -0
  9. x_ipe/resources/skills/project-quality-board-management/references/evaluation-procedures.md +214 -0
  10. x_ipe/resources/skills/project-quality-board-management/templates/quality-report.md +70 -18
  11. x_ipe/resources/skills/task-execution-guideline/SKILL.md +2 -2
  12. x_ipe/resources/skills/task-execution-guideline/templates/task-record.yaml +1 -1
  13. x_ipe/resources/skills/task-type-code-implementation/SKILL.md +72 -270
  14. x_ipe/resources/skills/task-type-code-implementation/references/implementation-guidelines.md +432 -0
  15. x_ipe/resources/skills/task-type-code-refactor-v2/SKILL.md +127 -353
  16. x_ipe/resources/skills/task-type-code-refactor-v2/references/refactoring-techniques.md +373 -0
  17. x_ipe/resources/skills/task-type-feature-breakdown/SKILL.md +31 -243
  18. x_ipe/resources/skills/task-type-feature-breakdown/references/breakdown-guidelines.md +330 -0
  19. x_ipe/resources/skills/task-type-feature-refinement/SKILL.md +27 -180
  20. x_ipe/resources/skills/task-type-feature-refinement/references/specification-writing-guide.md +267 -0
  21. x_ipe/resources/skills/task-type-idea-mockup/SKILL.md +38 -276
  22. x_ipe/resources/skills/task-type-idea-mockup/references/mockup-guidelines.md +299 -0
  23. x_ipe/resources/skills/task-type-idea-to-architecture/SKILL.md +20 -218
  24. x_ipe/resources/skills/task-type-idea-to-architecture/references/architecture-patterns.md +342 -0
  25. x_ipe/resources/skills/task-type-ideation/SKILL.md +10 -266
  26. x_ipe/resources/skills/task-type-ideation/references/folder-naming-guide.md +55 -0
  27. x_ipe/resources/skills/task-type-ideation/references/tool-usage-guide.md +236 -0
  28. x_ipe/resources/skills/task-type-ideation-v2/SKILL.md +488 -0
  29. x_ipe/resources/skills/task-type-ideation-v2/references/examples.md +377 -0
  30. x_ipe/resources/skills/task-type-ideation-v2/references/folder-naming-guide.md +74 -0
  31. x_ipe/resources/skills/task-type-ideation-v2/references/tool-usage-guide.md +145 -0
  32. x_ipe/resources/skills/task-type-ideation-v2/references/visualization-guide.md +160 -0
  33. x_ipe/resources/skills/task-type-ideation-v2/templates/idea-summary.md +86 -0
  34. x_ipe/resources/skills/task-type-refactoring-analysis/SKILL.md +83 -145
  35. x_ipe/resources/skills/task-type-refactoring-analysis/references/output-schema.md +172 -0
  36. x_ipe/resources/skills/task-type-technical-design/SKILL.md +28 -214
  37. x_ipe/resources/skills/task-type-technical-design/references/design-templates.md +422 -0
  38. x_ipe/resources/skills/task-type-test-generation/SKILL.md +47 -332
  39. x_ipe/resources/skills/task-type-test-generation/references/test-patterns.md +368 -0
  40. x_ipe/resources/skills/tool-tracing-creator/SKILL.md +312 -0
  41. x_ipe/resources/skills/tool-tracing-creator/references/examples.md +324 -0
  42. x_ipe/resources/skills/tool-tracing-instrumentation/SKILL.md +373 -0
  43. x_ipe/resources/skills/tool-tracing-instrumentation/references/examples.md +264 -0
  44. x_ipe/resources/skills/x-ipe-skill-creator-v3/SKILL.md +486 -0
  45. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/10. example-gate-conditions.md +73 -0
  46. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/11. reference-quality-standards.md +127 -0
  47. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/2. reference-section-order.md +127 -0
  48. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/3. example-step-based-code-review.md +84 -0
  49. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/4. example-step-based-feature-implementation.md +113 -0
  50. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/5. example-function-based-validation.md +73 -0
  51. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/6. example-function-based-analysis.md +94 -0
  52. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/7. example-task-io-code-implementation.md +36 -0
  53. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/8. example-structured-summary.md +43 -0
  54. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/9. example-dor-dod.md +77 -0
  55. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/examples.md +429 -0
  56. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/skill-general-guidelines-v2.md +611 -0
  57. x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/skill-meta-x-ipe-meta.md +153 -0
  58. x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/skill-meta-x-ipe-task-based.md +324 -0
  59. x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/skill-meta-x-ipe-task-category.md +109 -0
  60. x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/skill-meta-x-ipe-tool.md +205 -0
  61. x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/x-ipe-meta.md +334 -0
  62. x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/x-ipe-task-based.md +279 -0
  63. x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/x-ipe-tool.md +175 -0
  64. x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/x-ipe-workflow-orchestration.md +329 -0
  65. x_ipe/resources/skills/x-ipe-task-based-ideation/SKILL.md +487 -0
  66. x_ipe/resources/skills/x-ipe-task-based-ideation/references/examples.md +377 -0
  67. x_ipe/resources/skills/x-ipe-task-based-ideation/references/folder-naming-guide.md +74 -0
  68. x_ipe/resources/skills/x-ipe-task-based-ideation/references/tool-usage-guide.md +145 -0
  69. x_ipe/resources/skills/x-ipe-task-based-ideation/references/visualization-guide.md +160 -0
  70. x_ipe/resources/skills/x-ipe-task-based-ideation/templates/idea-summary.md +86 -0
  71. x_ipe/routes/__init__.py +2 -0
  72. x_ipe/routes/ideas_routes.py +17 -0
  73. x_ipe/routes/kb_routes.py +80 -0
  74. x_ipe/routes/main_routes.py +18 -0
  75. x_ipe/routes/project_routes.py +7 -0
  76. x_ipe/routes/proxy_routes.py +2 -0
  77. x_ipe/routes/quality_evaluation_routes.py +193 -0
  78. x_ipe/routes/settings_routes.py +6 -0
  79. x_ipe/routes/tools_routes.py +6 -0
  80. x_ipe/routes/tracing_routes.py +232 -0
  81. x_ipe/routes/uiux_feedback_routes.py +30 -0
  82. x_ipe/services/__init__.py +5 -0
  83. x_ipe/services/config_service.py +6 -0
  84. x_ipe/services/file_service.py +20 -0
  85. x_ipe/services/homepage_service.py +160 -0
  86. x_ipe/services/ideas_service.py +19 -0
  87. x_ipe/services/kb_service.py +378 -0
  88. x_ipe/services/proxy_service.py +4 -0
  89. x_ipe/services/settings_service.py +13 -0
  90. x_ipe/services/skills_service.py +4 -0
  91. x_ipe/services/terminal_service.py +24 -0
  92. x_ipe/services/themes_service.py +4 -0
  93. x_ipe/services/tools_config_service.py +4 -0
  94. x_ipe/services/tracing_service.py +333 -0
  95. x_ipe/services/uiux_feedback_service.py +32 -0
  96. x_ipe/services/voice_input_service_v2.py +11 -0
  97. x_ipe/static/css/base.css +7 -0
  98. x_ipe/static/css/homepage-infinity.css +330 -0
  99. x_ipe/static/css/kb-core.css +301 -0
  100. x_ipe/static/css/quality-evaluation.css +345 -0
  101. x_ipe/static/css/sidebar.css +14 -4
  102. x_ipe/static/css/terminal.css +1 -0
  103. x_ipe/static/css/tracing-dashboard.css +796 -0
  104. x_ipe/static/css/workplace.css +20 -0
  105. x_ipe/static/img/homepage-infinity-loop.png +0 -0
  106. x_ipe/static/js/features/homepage-infinity.js +314 -0
  107. x_ipe/static/js/features/kb-core.js +371 -0
  108. x_ipe/static/js/features/quality-evaluation.js +387 -0
  109. x_ipe/static/js/features/sidebar.js +255 -12
  110. x_ipe/static/js/features/tracing-dashboard.js +855 -0
  111. x_ipe/static/js/features/tracing-graph.js +1031 -0
  112. x_ipe/static/js/features/tree-search.js +6 -2
  113. x_ipe/static/js/features/workplace.js +200 -6
  114. x_ipe/static/js/init.js +76 -0
  115. x_ipe/static/js/uiux-feedback.js +18 -2
  116. x_ipe/templates/base.html +19 -0
  117. x_ipe/templates/index.html +7 -1
  118. x_ipe/templates/knowledge-base.html +110 -0
  119. x_ipe/templates/workplace.html +4 -0
  120. x_ipe/tracing/__init__.py +37 -0
  121. x_ipe/tracing/buffer.py +135 -0
  122. x_ipe/tracing/context.py +125 -0
  123. x_ipe/tracing/decorator.py +288 -0
  124. x_ipe/tracing/middleware.py +197 -0
  125. x_ipe/tracing/parser.py +235 -0
  126. x_ipe/tracing/redactor.py +111 -0
  127. x_ipe/tracing/writer.py +122 -0
  128. {x_ipe-1.0.24.dist-info → x_ipe-1.0.25.dist-info}/METADATA +2 -2
  129. {x_ipe-1.0.24.dist-info → x_ipe-1.0.25.dist-info}/RECORD +132 -62
  130. x_ipe/resources/skills/x-ipe-skill-creator/SKILL.md +0 -329
  131. x_ipe/resources/skills/x-ipe-skill-creator/references/output-patterns.md +0 -169
  132. x_ipe/resources/skills/x-ipe-skill-creator/references/skill-structure.md +0 -162
  133. x_ipe/resources/skills/x-ipe-skill-creator/references/workflows.md +0 -110
  134. x_ipe/resources/skills/x-ipe-skill-creator/templates/references/examples.md +0 -113
  135. x_ipe/resources/skills/x-ipe-skill-creator/templates/skill-category-skill.md +0 -296
  136. x_ipe/resources/skills/x-ipe-skill-creator/templates/task-type-skill.md +0 -269
  137. {x_ipe-1.0.24.dist-info → x_ipe-1.0.25.dist-info}/WHEEL +0 -0
  138. {x_ipe-1.0.24.dist-info → x_ipe-1.0.25.dist-info}/entry_points.txt +0 -0
  139. {x_ipe-1.0.24.dist-info → x_ipe-1.0.25.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,127 @@
1
+ # Section Order Reference
2
+
3
+ BLOCKING: Section order follows agent cognitive flow aligned with Anthropic's Progressive Disclosure principle.
4
+
5
+ ```yaml
6
+ # ═══════════════════════════════════════════════════════════════════════════════
7
+ # UNIVERSAL SECTION ORDER PRINCIPLE (Anthropic Agent Skills Best Practice)
8
+ # ═══════════════════════════════════════════════════════════════════════════════
9
+ #
10
+ # Progressive Disclosure (3 Levels):
11
+ # Level 1: METADATA - name + description in frontmatter (~100 tokens)
12
+ # Level 2: BODY - Main SKILL.md content (<5000 tokens recommended)
13
+ # Level 3: RESOURCES - scripts/, references/, assets/ (loaded on demand)
14
+ #
15
+ # Cognitive Flow for SKILL.md Body:
16
+ # 1. CONTEXT - What is this? When to use? (Early exit if not applicable)
17
+ # 2. DECISION - Can I proceed? What inputs needed? (Gate check)
18
+ # 3. ACTION - How to execute? (Core procedure)
19
+ # 4. VERIFY - How to confirm success? (Completion criteria)
20
+ # 5. REFERENCE - Where to find details? (Deep dive on demand)
21
+ #
22
+ # Key Constraints (from agentskills.io spec):
23
+ # - SKILL.md < 500 lines (move details to references/)
24
+ # - name: lowercase, hyphens, 1-64 chars
25
+ # - description: 1-1024 chars, include trigger keywords
26
+ # ═══════════════════════════════════════════════════════════════════════════════
27
+
28
+ x-ipe-task-based:
29
+ section_order:
30
+ # CONTEXT
31
+ 1: Purpose
32
+ 2: Important Notes
33
+ # DECISION
34
+ 3: Input Parameters
35
+ 4: Definition of Ready (DoR)
36
+ # ACTION
37
+ 5: Execution Flow Summary (DAG/Sub-agent)
38
+ 6: Execution Procedure (Steps)
39
+ # VERIFY
40
+ 7: Output Result
41
+ 8: Definition of Done (DoD)
42
+ # REFERENCE
43
+ 9: Patterns & Anti-Patterns
44
+ 10: Examples
45
+
46
+ x-ipe-tool:
47
+ # Utility functions and tool integrations
48
+ section_order:
49
+ # CONTEXT
50
+ 1: Purpose
51
+ 2: Important Notes
52
+ 3: About (Domain Concepts)
53
+ 4: When to Use
54
+ # DECISION
55
+ 5: Input Parameters
56
+ 6: Definition of Ready (DoR)
57
+ # ACTION
58
+ 7: Operations
59
+ # VERIFY
60
+ 8: Output Result
61
+ 9: Definition of Done (DoD)
62
+ # REFERENCE
63
+ 10: Error Handling
64
+ 11: Templates
65
+ 12: Examples
66
+
67
+ x-ipe-task-category:
68
+ # Orchestration skill called when all related task-based skills in a category finish
69
+ section_order:
70
+ # CONTEXT
71
+ 1: Purpose
72
+ 2: Important Notes
73
+ 3: About (Domain Concepts)
74
+ 4: When to Use
75
+ # DECISION
76
+ 5: Input Parameters
77
+ 6: Definition of Ready (DoR)
78
+ # ACTION
79
+ 7: Operations
80
+ # VERIFY
81
+ 8: Output Result
82
+ 9: Definition of Done (DoD)
83
+ # REFERENCE
84
+ 10: Error Handling
85
+ 11: Templates
86
+ 12: Examples
87
+
88
+ x-ipe-workflow-orchestration:
89
+ section_order:
90
+ # CONTEXT
91
+ 1: Purpose
92
+ 2: Important Notes
93
+ # DECISION
94
+ 3: Input Parameters
95
+ 4: Definition of Ready (DoR)
96
+ # ACTION
97
+ 5: Execution Flow Summary (DAG/Sub-agent)
98
+ 6: Execution Procedure (Steps)
99
+ # VERIFY
100
+ 7: Output Result
101
+ 8: Definition of Done (DoD)
102
+ # REFERENCE
103
+ 9: Registry (Task Types / Skill Mapping)
104
+ 10: Error Handling
105
+ 11: Templates
106
+ 12: Examples
107
+
108
+ x-ipe-meta:
109
+ # Skills for creating/managing other skills (x-ipe-meta-skill-creator-v3)
110
+ section_order:
111
+ # CONTEXT
112
+ 1: Purpose
113
+ 2: About (Domain Concepts)
114
+ 3: Important Notes
115
+ # DECISION
116
+ 4: Input Parameters
117
+ 5: Definition of Ready (DoR)
118
+ # ACTION
119
+ 6: Execution Flow Summary (DAG/Sub-agent)
120
+ 7: Execution Procedure (Steps)
121
+ # VERIFY
122
+ 8: Output Result
123
+ 9: Definition of Done (DoD)
124
+ # REFERENCE
125
+ 10: Templates
126
+ 11: Examples
127
+ ```
@@ -0,0 +1,84 @@
1
+ # Example: Code Review Procedure (Pattern 1 - Step-Based Workflow)
2
+
3
+ Demonstrates Pattern 1 (Step-Based Workflow) with distinct constraints, outputs, and success criteria per step.
4
+
5
+ ```xml
6
+ <procedure name="Code Review">
7
+ <!-- CRITICAL: Both DoR/DoD check elements below are MANDATORY -->
8
+ <execute_dor_checks_before_starting/>
9
+ <schedule_dod_checks_with_sub_agent_before_starting/>
10
+
11
+ <step_1>
12
+ <name>Gather Context</name>
13
+ <action>
14
+ 1. Read the pull request description
15
+ 2. Identify the feature/bug being addressed
16
+ 3. Review linked issues or requirements
17
+ </action>
18
+ <constraints>
19
+ - BLOCKING: Do not start review without understanding the intent
20
+ - CRITICAL: Check if there are related PRs that should be reviewed together
21
+ </constraints>
22
+ <success_criteria>
23
+ - Intent of change is understood
24
+ - Scope of change is identified
25
+ - Related context is loaded
26
+ </success_criteria>
27
+ <output>Review context document with intent + scope</output>
28
+ </step_1>
29
+
30
+ <step_2>
31
+ <name>Analyze Diff</name>
32
+ <requires>Review context from step_1</requires>
33
+ <action>
34
+ 1. Review each changed file
35
+ 2. Check for logic errors, security issues, performance problems
36
+ 3. Verify coding standards compliance
37
+ 4. Check test coverage for changes
38
+ </action>
39
+ <constraints>
40
+ - BLOCKING: Security vulnerabilities must be flagged
41
+ - CRITICAL: Do not approve if tests are missing for new logic
42
+ - MANDATORY: Check for breaking changes in public APIs
43
+ </constraints>
44
+ <success_criteria>
45
+ - All files reviewed
46
+ - Issues categorized by severity
47
+ - No blocking issues remain unaddressed
48
+ </success_criteria>
49
+ <output>List of review comments with severity levels</output>
50
+ </step_2>
51
+
52
+ <step_3>
53
+ <name>Provide Feedback</name>
54
+ <requires>Review comments from step_2</requires>
55
+ <action>
56
+ 1. Group comments by file
57
+ 2. Prioritize blocking issues first
58
+ 3. Suggest specific fixes where possible
59
+ 4. Acknowledge good patterns
60
+ </action>
61
+ <constraints>
62
+ - CRITICAL: Be constructive, not dismissive
63
+ - MANDATORY: Explain why, not just what
64
+ </constraints>
65
+ <success_criteria>
66
+ - All issues communicated clearly
67
+ - Actionable suggestions provided
68
+ - Overall assessment given (approve/request changes)
69
+ </success_criteria>
70
+ <output>Review submitted with decision</output>
71
+ </step_3>
72
+
73
+ <sub-agent-planning>
74
+ <sub_agent_1>
75
+ <sub_agent_definition>
76
+ <role>Security Reviewer</role>
77
+ <prompt>Review the code changes for security vulnerabilities including SQL injection, XSS, authentication bypasses, and data exposure risks. Return list of security issues with severity.</prompt>
78
+ </sub_agent_definition>
79
+ <workflow_step_reference>step_2</workflow_step_reference>
80
+ </sub_agent_1>
81
+ </sub-agent-planning>
82
+
83
+ </procedure>
84
+ ```
@@ -0,0 +1,113 @@
1
+ # Example: Feature Implementation Procedure (Pattern 1 - Step-Based Workflow)
2
+
3
+ Demonstrates Pattern 1 (Step-Based Workflow) for TDD-based feature implementation with sub-agent support.
4
+
5
+ ```xml
6
+ <procedure name="Feature Implementation">
7
+ <!-- CRITICAL: Both DoR/DoD check elements below are MANDATORY -->
8
+ <execute_dor_checks_before_starting/>
9
+ <schedule_dod_checks_with_sub_agent_before_starting/>
10
+
11
+ <step_1>
12
+ <name>Read Technical Design</name>
13
+ <action>
14
+ 1. Load technical design document from {feature_folder}/technical-design.md
15
+ 2. Identify components to implement
16
+ 3. Note dependencies and integration points
17
+ </action>
18
+ <constraints>
19
+ - BLOCKING: Do not start coding without reading design
20
+ - CRITICAL: Verify design is approved (status == approved)
21
+ </constraints>
22
+ <success_criteria>
23
+ - All components identified
24
+ - Dependencies mapped
25
+ - Implementation order determined
26
+ </success_criteria>
27
+ <output>Implementation plan with component list</output>
28
+ </step_1>
29
+
30
+ <step_2>
31
+ <name>Write Tests First</name>
32
+ <requires>Implementation plan from step_1</requires>
33
+ <action>
34
+ 1. Create test file at tests/test_{feature_name}.py
35
+ 2. Write failing tests for each acceptance criterion
36
+ 3. Run tests to confirm they fail
37
+ </action>
38
+ <constraints>
39
+ - BLOCKING: Tests must fail before implementation
40
+ - MANDATORY: Cover all acceptance criteria
41
+ - CRITICAL: Include edge cases
42
+ </constraints>
43
+ <success_criteria>
44
+ - Test file created
45
+ - All acceptance criteria have tests
46
+ - Tests run and fail as expected
47
+ </success_criteria>
48
+ <output>Test file with failing tests</output>
49
+ </step_2>
50
+
51
+ <step_3>
52
+ <name>Implement Code</name>
53
+ <requires>Failing tests from step_2</requires>
54
+ <action>
55
+ 1. Implement minimum code to pass tests
56
+ 2. Follow KISS/YAGNI principles
57
+ 3. Add inline comments only where necessary
58
+ </action>
59
+ <constraints>
60
+ - BLOCKING: Do not add unrequested features
61
+ - CRITICAL: Follow existing code patterns
62
+ - MANDATORY: Handle error cases
63
+ </constraints>
64
+ <success_criteria>
65
+ - All tests pass
66
+ - No linting errors
67
+ - Code follows project conventions
68
+ </success_criteria>
69
+ <output>Implementation code with passing tests</output>
70
+ </step_3>
71
+
72
+ <step_4>
73
+ <name>Verify Integration</name>
74
+ <requires>Implementation from step_3</requires>
75
+ <action>
76
+ 1. Run full test suite
77
+ 2. Check for regression
78
+ 3. Verify integration with dependent components
79
+ </action>
80
+ <constraints>
81
+ - BLOCKING: Full test suite must pass
82
+ - CRITICAL: No regression in existing functionality
83
+ </constraints>
84
+ <success_criteria>
85
+ - All tests pass (new + existing)
86
+ - No console errors or warnings
87
+ - Feature works end-to-end
88
+ </success_criteria>
89
+ <output>Verified implementation ready for review</output>
90
+ </step_4>
91
+
92
+ <sub-agent-planning>
93
+ <sub_agent_1>
94
+ <sub_agent_definition>
95
+ <role>Test Validator</role>
96
+ <prompt>Review the test file to ensure all acceptance criteria from technical design are covered with appropriate test cases. Check for edge cases and error handling tests. Return coverage report.</prompt>
97
+ </sub_agent_definition>
98
+ <workflow_step_reference>step_2</workflow_step_reference>
99
+ </sub_agent_1>
100
+ <sub_agent_2>
101
+ <sub_agent_definition>
102
+ <role>Code Quality Reviewer</role>
103
+ <prompt>Review implemented code for adherence to SOLID principles, KISS, YAGNI. Check for code smells, unused code, and verify it follows existing project patterns. Return quality assessment.</prompt>
104
+ </sub_agent_definition>
105
+ <workflow_step_reference>step_3</workflow_step_reference>
106
+ <starting_condition>
107
+ - "START after sub_agent_1 completes"
108
+ </starting_condition>
109
+ </sub_agent_2>
110
+ </sub-agent-planning>
111
+
112
+ </procedure>
113
+ ```
@@ -0,0 +1,73 @@
1
+ # Example: Validation Utilities (Pattern 2 - Function-Based Workflow)
2
+
3
+ Demonstrates Pattern 2 (Function-Based Workflow) providing a library of validation functions that callers invoke as needed.
4
+
5
+ ```xml
6
+ <functions>
7
+ <!-- CRITICAL: Both DoR/DoD check elements below are MANDATORY -->
8
+ <execute_dor_checks_before_starting/>
9
+ <schedule_dod_checks_with_sub_agent_before_starting/>
10
+
11
+ <function name="validate_yaml_syntax">
12
+ <purpose>Check if a YAML file has valid syntax</purpose>
13
+ <when_to_use>Before processing any YAML configuration or data file</when_to_use>
14
+ <inputs>
15
+ - file_path: Path to the YAML file to validate
16
+ </inputs>
17
+ <action>
18
+ 1. Read file content
19
+ 2. Parse using YAML parser
20
+ 3. Capture any syntax errors with line numbers
21
+ </action>
22
+ <constraints>
23
+ - BLOCKING: Return error immediately if file not found
24
+ </constraints>
25
+ <outputs>
26
+ - is_valid: boolean indicating syntax validity
27
+ - errors: list of syntax errors with line numbers (empty if valid)
28
+ </outputs>
29
+ </function>
30
+
31
+ <function name="validate_schema_compliance">
32
+ <purpose>Check if data conforms to expected schema structure</purpose>
33
+ <when_to_use>After syntax validation passes, before using data</when_to_use>
34
+ <inputs>
35
+ - data: Parsed data object to validate
36
+ - schema_path: Path to schema definition file
37
+ </inputs>
38
+ <action>
39
+ 1. Load schema definition
40
+ 2. Traverse data structure
41
+ 3. Check each field against schema requirements
42
+ 4. Collect all violations
43
+ </action>
44
+ <constraints>
45
+ - CRITICAL: Check required fields first
46
+ - MANDATORY: Validate nested structures recursively
47
+ </constraints>
48
+ <outputs>
49
+ - is_compliant: boolean indicating schema compliance
50
+ - violations: list of schema violations with field paths
51
+ </outputs>
52
+ </function>
53
+
54
+ <function name="validate_cross_references">
55
+ <purpose>Verify that references between files are valid</purpose>
56
+ <when_to_use>When validating documents that reference other documents</when_to_use>
57
+ <inputs>
58
+ - source_file: File containing references
59
+ - reference_pattern: Regex pattern to find references
60
+ </inputs>
61
+ <action>
62
+ 1. Extract all references from source file
63
+ 2. For each reference, check if target exists
64
+ 3. Report broken references
65
+ </action>
66
+ <outputs>
67
+ - all_valid: boolean indicating all references valid
68
+ - broken_refs: list of broken references with locations
69
+ </outputs>
70
+ </function>
71
+
72
+ </functions>
73
+ ```
@@ -0,0 +1,94 @@
1
+ # Example: Code Analysis Toolkit (Pattern 2 - Function-Based Workflow)
2
+
3
+ Demonstrates Pattern 2 (Function-Based Workflow) providing a toolkit of analysis functions for code inspection.
4
+
5
+ ```xml
6
+ <functions>
7
+ <!-- CRITICAL: Both DoR/DoD check elements below are MANDATORY -->
8
+ <execute_dor_checks_before_starting/>
9
+ <schedule_dod_checks_with_sub_agent_before_starting/>
10
+
11
+ <function name="analyze_dependencies">
12
+ <purpose>Extract and categorize project dependencies</purpose>
13
+ <when_to_use>When understanding project structure or checking for outdated packages</when_to_use>
14
+ <inputs>
15
+ - project_root: Root directory of the project
16
+ - package_file: Name of package manifest (e.g., pyproject.toml, package.json)
17
+ </inputs>
18
+ <action>
19
+ 1. Locate package manifest file
20
+ 2. Parse dependencies section
21
+ 3. Categorize as direct vs dev dependencies
22
+ 4. Check for version constraints
23
+ </action>
24
+ <outputs>
25
+ - dependencies: list of {name, version, category, constraint_type}
26
+ - dependency_count: total number of dependencies
27
+ </outputs>
28
+ </function>
29
+
30
+ <function name="analyze_imports">
31
+ <purpose>Map import relationships within codebase</purpose>
32
+ <when_to_use>When understanding module coupling or planning refactoring</when_to_use>
33
+ <inputs>
34
+ - source_files: List of source files to analyze
35
+ - include_stdlib: Whether to include standard library imports
36
+ </inputs>
37
+ <action>
38
+ 1. Parse each source file for import statements
39
+ 2. Resolve relative imports to absolute paths
40
+ 3. Build import graph
41
+ 4. Identify circular dependencies
42
+ </action>
43
+ <constraints>
44
+ - CRITICAL: Flag circular dependencies
45
+ </constraints>
46
+ <outputs>
47
+ - import_graph: mapping of file to its imports
48
+ - circular_deps: list of circular dependency chains
49
+ - external_deps: list of external package imports
50
+ </outputs>
51
+ </function>
52
+
53
+ <function name="analyze_complexity">
54
+ <purpose>Calculate code complexity metrics</purpose>
55
+ <when_to_use>When evaluating code quality or identifying refactoring candidates</when_to_use>
56
+ <inputs>
57
+ - file_path: Source file to analyze
58
+ - threshold: Complexity threshold for flagging
59
+ </inputs>
60
+ <action>
61
+ 1. Parse source file AST
62
+ 2. Calculate cyclomatic complexity per function
63
+ 3. Calculate cognitive complexity per function
64
+ 4. Flag functions exceeding threshold
65
+ </action>
66
+ <outputs>
67
+ - functions: list of {name, cyclomatic, cognitive, loc}
68
+ - high_complexity: list of functions exceeding threshold
69
+ - file_average: average complexity across all functions
70
+ </outputs>
71
+ </function>
72
+
73
+ <function name="analyze_test_coverage">
74
+ <purpose>Identify untested code paths</purpose>
75
+ <when_to_use>When improving test coverage or identifying testing gaps</when_to_use>
76
+ <inputs>
77
+ - source_dir: Directory containing source code
78
+ - test_dir: Directory containing test files
79
+ </inputs>
80
+ <action>
81
+ 1. Map test files to source files by naming convention
82
+ 2. Parse test files for test functions
83
+ 3. Identify source files without corresponding tests
84
+ 4. Identify public functions without test coverage
85
+ </action>
86
+ <outputs>
87
+ - coverage_map: mapping of source files to test files
88
+ - untested_files: list of source files without tests
89
+ - untested_functions: list of public functions without tests
90
+ </outputs>
91
+ </function>
92
+
93
+ </functions>
94
+ ```
@@ -0,0 +1,36 @@
1
+ # Example: Task Input/Output (Code Implementation)
2
+
3
+ Demonstrates Task Input and Task Completion Output patterns for Code Implementation task type.
4
+
5
+ ## Task Input
6
+
7
+ ```yaml
8
+ task_input:
9
+ task_id: "TASK-042"
10
+ task_type: "Code Implementation"
11
+
12
+ # Context
13
+ feature_id: "F-003"
14
+ feature_folder: "x-ipe-docs/features/F-003-user-auth/"
15
+ technical_design: "x-ipe-docs/features/F-003-user-auth/technical-design.md"
16
+
17
+ # From previous task (Test Generation)
18
+ test_file: "tests/test_user_auth.py"
19
+ acceptance_criteria_count: 5
20
+ ```
21
+
22
+ ## Task Completion Output
23
+
24
+ ```yaml
25
+ task_completion_output:
26
+ category: "feature-stage"
27
+ status: "completed"
28
+ next_task_type: "Feature Acceptance Test"
29
+ require_human_review: "no"
30
+ task_output_links:
31
+ - "src/auth/user_auth.py"
32
+ - "src/auth/validators.py"
33
+ # Dynamic attributes
34
+ tests_passed: 12
35
+ coverage: "87%"
36
+ ```
@@ -0,0 +1,43 @@
1
+ # Example: Structured Summary
2
+
3
+ Demonstrates markdown table format for summarizing multiple items with consistent attributes.
4
+
5
+ ## Feature Summary
6
+
7
+ ```markdown
8
+ | Feature ID | Name | Priority | Status |
9
+ |------------|------|----------|--------|
10
+ | F-001 | User Authentication | Must-have | Pending |
11
+ | F-002 | Dashboard | Must-have | In Progress |
12
+ | F-003 | Export Reports | Nice-to-have | Pending |
13
+ ```
14
+
15
+ ## Dependency Summary
16
+
17
+ ```markdown
18
+ | Component | Depends On | Type | Risk |
19
+ |-----------|------------|------|------|
20
+ | AuthService | Database | Hard | Low |
21
+ | Dashboard | AuthService, API | Hard | Medium |
22
+ | Reports | Dashboard | Soft | Low |
23
+ ```
24
+
25
+ ## Requirement Summary
26
+
27
+ ```markdown
28
+ | Req ID | Description | Priority | Complexity | Status |
29
+ |--------|-------------|----------|------------|--------|
30
+ | R-001 | User login with email/password | Must-have | Medium | Approved |
31
+ | R-002 | Password reset via email | Must-have | Low | Approved |
32
+ | R-003 | OAuth integration | Nice-to-have | High | Pending |
33
+ ```
34
+
35
+ ## Test Coverage Summary
36
+
37
+ ```markdown
38
+ | Module | Lines | Covered | Coverage | Status |
39
+ |--------|-------|---------|----------|--------|
40
+ | auth | 245 | 220 | 89.8% | ✅ Pass |
41
+ | api | 180 | 144 | 80.0% | ✅ Pass |
42
+ | utils | 95 | 70 | 73.7% | ⚠️ Below threshold |
43
+ ```
@@ -0,0 +1,77 @@
1
+ # Example: DoR/DoD (Code Implementation)
2
+
3
+ Demonstrates Definition of Ready and Definition of Done patterns using XML format.
4
+
5
+ ## Definition of Ready
6
+
7
+ ```xml
8
+ <definition_of_ready>
9
+ <checkpoint required="true">
10
+ <name>Technical Design Approved</name>
11
+ <verification>technical-design.md exists with status: approved</verification>
12
+ </checkpoint>
13
+ <checkpoint required="true">
14
+ <name>Test Cases Generated</name>
15
+ <verification>Test file exists with failing tests</verification>
16
+ </checkpoint>
17
+ <checkpoint required="recommended">
18
+ <name>Dependencies Available</name>
19
+ <verification>All referenced components are implemented</verification>
20
+ </checkpoint>
21
+ </definition_of_ready>
22
+ ```
23
+
24
+ ## Definition of Done
25
+
26
+ ```xml
27
+ <definition_of_done>
28
+ <checkpoint required="true">
29
+ <name>All Tests Pass</name>
30
+ <verification>Run test suite, 100% pass rate</verification>
31
+ </checkpoint>
32
+ <checkpoint required="true">
33
+ <name>Code Reviewed</name>
34
+ <verification>PR approved or self-review documented</verification>
35
+ </checkpoint>
36
+ <checkpoint required="true">
37
+ <name>No Linting Errors</name>
38
+ <verification>Linter returns 0 errors</verification>
39
+ </checkpoint>
40
+ </definition_of_done>
41
+ ```
42
+
43
+ ---
44
+
45
+ ## Additional Examples
46
+
47
+ ### Feature Refinement DoR/DoD
48
+
49
+ ```xml
50
+ <definition_of_ready>
51
+ <checkpoint required="true">
52
+ <name>Feature exists on board</name>
53
+ <verification>Feature ID found in feature-board.md</verification>
54
+ </checkpoint>
55
+ <checkpoint required="true">
56
+ <name>Requirement summary available</name>
57
+ <verification>requirement-summary.md exists in requirement folder</verification>
58
+ </checkpoint>
59
+ </definition_of_ready>
60
+ ```
61
+
62
+ ```xml
63
+ <definition_of_done>
64
+ <checkpoint required="true">
65
+ <name>Specification document created</name>
66
+ <verification>feature-specification.md exists in feature folder</verification>
67
+ </checkpoint>
68
+ <checkpoint required="true">
69
+ <name>Acceptance criteria defined</name>
70
+ <verification>At least 2 acceptance criteria per feature</verification>
71
+ </checkpoint>
72
+ <checkpoint required="true">
73
+ <name>Human review complete</name>
74
+ <verification>User approved specification</verification>
75
+ </checkpoint>
76
+ </definition_of_done>
77
+ ```