mirror of
https://github.com/IgorWarzocha/Opencode-Workflows.git
synced 2026-09-14 16:22:53 +08:00
2698a1d765
- Implement internal maintenance suite: repo-maintainer agent and automated audit/sync scripts. - Add "Opencode Configurator" suite: agent-architect, command-creator, and skill-creator. - Refactor core commands (/improve, /refactor, /rmslop) to RFC 2119 + XML standards. - Standardize all agent metadata and structural tagging across the repository. - Introduce utility commands: /npm for package management and /create-pack for bundling. - Overhaul README.md and documentation to reflect new workflow patterns.
8.0 KiB
8.0 KiB
description
| description |
|---|
| Stateful task tool loops |
<resumption_protocol> To successfully resume a task tool subagent session, You MUST:
- Identify the Target Session: Extract the
session_id(starting withses) from the<task_metadata>block of the previous tool output. - Verify Context Continuity: The
subagent_typeMUST match the one used in the original session initiation. - Construct the Tool Call:
subagent_type: MUST be the exact same type as the previous call.session_id: MUST be the exact string extracted from the metadata.description: Provide a concise update on the current phase (e.g., "Verification Loop [X] of [N]").prompt: State the new instructions clearly. Use referential language (e.g., "Now implement the tests for the function you just wrote") since the subagent has the session history.
- Maintain State: You MUST use the
session_idfrom the latest response for every subsequent resumption. - Avoid Simulation: You MUST NOT attempt to "simulate" resumption by pasting old history into the prompt field. ALWAYS use the
session_idparameter. </resumption_protocol>
<checklist_standards>
- Granularity: Items MUST be atomic and binary (PASS/FAIL). Break down complex features into individual logical components, sub-tasks, or specific behavioral expectations.
- Verification Criteria: Every item MUST describe a specific, observable state or behavior. Use "Verify that..." or "Ensure that..." phrasing.
- Dynamic Evolution: The checklist is NOT static. As features are implemented, You MUST expand the checklist with "Deep Dive" items that test the specific implementation's robustness and edge cases.
- Coding Standards:
- Logic: Cover algorithms, state management, and data flow.
- Robustness: Include error handling, null/undefined checks, and boundary conditions.
- Integration: Verify correct interaction between components or services.
- Clean Code: Check for modularity, naming conventions, and adherence to project-specific standards.
- Non-Coding Standards:
- Content: Verify accuracy, tone, formatting (Markdown/XML), and completeness of information.
- Research: Ensure all requested sources are cited, data is cross-referenced, and requirements are met.
- Process: Confirm all steps of a workflow was executed and artifacts generated.
- Quality Gates: Include checks for performance (load times), UI responsiveness, accessibility (ARIA, contrast), and UX (intuitive flow).
- Negative Testing: Explicitly include items for "What happens if it fails?" scenarios, invalid inputs, and unexpected user actions. </checklist_standards>