|
| 1 | + |
| 2 | +# GitHub Issue AI Workflow Steps |
| 3 | + |
| 4 | +## Introduction |
| 5 | + |
| 6 | +This document describes the standardized, AI-driven workflow steps for managing GitHub Issues in LOGIK-PROJEKT-DEV. It is designed for maintainers, contributors, and AI agents to ensure every issue follows a consistent, actionable process from draft to completion. |
| 7 | + |
| 8 | +--- |
| 9 | + |
| 10 | +## Table of Contents |
| 11 | +1. [Introduction](#introduction) |
| 12 | +2. [LLM-Assisted Issue Creation Note](#llm-assisted-issue-creation-note) |
| 13 | +3. [Example: LLM-Assisted GitHub Issue Creation](#example-llm-assisted-github-issue-creation) |
| 14 | +4. [Workflow Overview](#workflow-overview) |
| 15 | +5. [Sustainability Interpretation](#sustainability-interpretation) |
| 16 | +6. [Next Steps](#next-steps) |
| 17 | + |
| 18 | +--- |
| 19 | + |
| 20 | +## LLM-Assisted Issue Creation Note |
| 21 | + |
| 22 | +> **Note:** Users can prompt a large language model (LLM) to "Create GitHub Issue" and enter into a conversation about the nature of the Issue. This allows the LLM to rationalize user desires and generate GitHub Issues that are conventional, concise, and comprehensive, improving both clarity and workflow hygiene. |
| 23 | +
|
| 24 | +[Back to TOC](#table-of-contents) |
| 25 | + |
| 26 | +--- |
| 27 | + |
| 28 | +## Example: LLM-Assisted GitHub Issue Creation |
| 29 | + |
| 30 | +**User:** Create GitHub Issue for automating desktop app creation for Flame 2027.0.0. |
| 31 | + |
| 32 | +**LLM:** Can you clarify the platforms and expected user experience? Should the automation support both macOS and Linux, and include desktop entry creation? |
| 33 | + |
| 34 | +**User:** Yes, support both platforms. Automate .app and .desktop file creation, and ensure the Python interpreter is detected automatically. |
| 35 | + |
| 36 | +**LLM:** Thank you! Here is a conventional, concise, and comprehensive GitHub Issue: |
| 37 | + |
| 38 | +--- |
| 39 | +**Title:** [FEATURE] Automate desktop app creation for Flame 2027.0.0 (#42) |
| 40 | + |
| 41 | +**Description:** |
| 42 | +Automate the creation of desktop application launchers for LOGIK-PROJEKT on both macOS and Linux. The workflow should: |
| 43 | +- Detect the Autodesk Python interpreter automatically |
| 44 | +- Generate `.app` bundles for macOS and `.desktop` entries for Linux |
| 45 | +- Copy icons and set up Info.plist and shell scripts |
| 46 | +- Ensure cross-platform compatibility and robust error handling |
| 47 | + |
| 48 | +**Checklist:** |
| 49 | +- [ ] Supports macOS and Linux |
| 50 | +- [ ] Detects Python interpreter |
| 51 | +- [ ] Creates `.app` and `.desktop` files |
| 52 | +- [ ] Copies icons and sets metadata |
| 53 | +- [ ] Validates automation with tests |
| 54 | + |
| 55 | +**Linked Issue:** Closes #42 |
| 56 | +--- |
| 57 | + |
| 58 | +This conversational approach allows the LLM to rationalize user desires and generate issues that are conventional, concise, and comprehensive. |
| 59 | + |
| 60 | +[Back to TOC](#table-of-contents) |
| 61 | + |
| 62 | +--- |
| 63 | + |
| 64 | +## Workflow Overview |
| 65 | + |
| 66 | +1. **Draft Creation** |
| 67 | + - Store initial issue drafts in [`docs/idd/issues/drafts/`](../issues/drafts/) for collaborative editing. |
| 68 | + |
| 69 | +2. **Issue Publication** |
| 70 | + - Publish the issue on GitHub using a template from [`.github/ISSUE_TEMPLATE/`](../../../.github/ISSUE_TEMPLATE/). |
| 71 | + - Assign labels and link related documentation. |
| 72 | + |
| 73 | +3. **Branch & Directory Setup** |
| 74 | + - Create a related branch (e.g., `issue-XX-description`). |
| 75 | + - Scaffold the issue directory: [`docs/idd/issues/issue-XX/`](../issues/). |
| 76 | + - Link branch and PR to the GitHub Issue (e.g., “Closes #XX”). |
| 77 | + |
| 78 | +4. **To-Do Phases Injection** |
| 79 | + - Automation reads [`github-issue-to-do-template.json`](github-issue-to-do-template.json) and injects generic phases/tasks into [`step-51-to-do/README.md`](step-51-to-do/README.md). |
| 80 | + - Phases include: Feature Definition, Research, Insight, Implementation, Review, Memory, Finalization. |
| 81 | + |
| 82 | +5. **Subdirectory & Document Creation** |
| 83 | + - Automation reads [`github-issue-tree-template.json`](github-issue-tree-template.json) to scaffold the standard subdirectories and files for each workflow step. |
| 84 | + - Typical structure includes: |
| 85 | + - [`step-01-feature-type/`](step-01-feature-type/), [`step-11-research/`](step-11-research/), [`step-21-insight/`](step-21-insight/), [`step-31-cognition/`](step-31-cognition/), [`step-41-how-to/`](step-41-how-to/), [`step-51-to-do/`](step-51-to-do/), [`step-61-memory/`](step-61-memory/) |
| 86 | + - Each subdirectory is populated with a README or markdown file as defined in the template. |
| 87 | + |
| 88 | +6. **Automated Population & Updates** |
| 89 | + - Scripts fill in initial context, metadata, and placeholders. |
| 90 | + - Automation updates to-do checklists, session logs, and decision records as work progresses. |
| 91 | + |
| 92 | +7. **Memory & Decision Documentation** |
| 93 | + - Use [`step-61-memory/`](step-61-memory/) to record key decisions, rationale, and session history before final commit. |
| 94 | + |
| 95 | +8. **Finalization & PR** |
| 96 | + - Prepare PR with correct issue linking. |
| 97 | + - Ensure all automation checks and documentation are complete. |
| 98 | + |
| 99 | +[Back to TOC](#table-of-contents) |
| 100 | + |
| 101 | +--- |
| 102 | + |
| 103 | +## Sustainability Interpretation |
| 104 | + |
| 105 | +- **Consistency:** Every issue follows the same phases and directory structure, reducing confusion and onboarding time. |
| 106 | +- **Automation:** Scripts and workflows handle repetitive setup, updates, and documentation, minimizing manual effort. |
| 107 | +- **Traceability:** All work, decisions, and context are captured in dedicated files and directories, ensuring future maintainers and AI agents can understand the history. |
| 108 | +- **Extensibility:** The template and workflow can be updated centrally (e.g., editing `github-issue-to-do-template.json`), propagating improvements to all future issues. |
| 109 | +- **Transparency:** Human-readable documentation and machine-readable templates make the process clear for both contributors and automation. |
| 110 | +- **Reviewability:** Each phase and step is documented, making it easy to audit progress, review work, and ensure nothing is missed. |
| 111 | + |
| 112 | +[Back to TOC](#table-of-contents) |
| 113 | + |
| 114 | +--- |
| 115 | + |
| 116 | +## Next Steps |
| 117 | + |
| 118 | +- Integrate this workflow into onboarding and contribution guides. |
| 119 | +- Periodically review and update the template and documentation for improvements. |
| 120 | +- Monitor automation for reliability and adjust as needed. |
0 commit comments