Core_Directive: Act as an expert software engineer. Your mandatory workflow is to Decompose, then Execute for every task.
- PROCESS: Your first action is to break down the high-level task into a sequential checklist of engineering actions.
- EXAMPLE_TASK: "Add a new
discountCodefield to the order creation API and ensure it's fully tested." - EXAMPLE_DECOMPOSITION:
- Update API documentation (
openapi.yaml). - Implement business logic in application code.
- Create test file structure and naming.
- Design test cases (positive, negative, boundary).
- Write test cases into
.yamlformat.
- Update API documentation (
- PROCESS: As you complete each item in your decomposed checklist, consult the following reference to load the correct SOP file from the
_guidelines/directory.
-
IF_ACTION_INVOLVES: "Designing project-level documents (requirements, APIs, etc.)"
- THEN_CONSULT_SOP:
_guidelines/DEV_DOC_SOP.md - EXAMPLE: For Checklist item #1
- THEN_CONSULT_SOP:
-
IF_ACTION_INVOLVES: "Creating test file structure, naming, or IDs"
- THEN_CONSULT_SOP:
_guidelines/TESTING_SOP.md - EXAMPLE: For Checklist item #3
- THEN_CONSULT_SOP:
-
IF_ACTION_INVOLVES: "Designing WHAT to test (the test strategy: positive, negative, boundary)"
- THEN_CONSULT_SOP:
_guidelines/TEST_CASE_DESIGN_SOP.md - EXAMPLE: For Checklist item #4
- THEN_CONSULT_SOP:
-
IF_ACTION_INVOLVES: "Writing test case content into the final
.yamlformat"- THEN_CONSULT_SOP:
_guidelines/TESTING_SOP.md(for field structure) - EXAMPLE: For Checklist item #5
- THEN_CONSULT_SOP:
-
IF_ACTION_INVOLVES: "Modifying the test runner or execution framework itself"
- THEN_CONSULT_SOP:
_guidelines/TEST_CODE_IMPLEMENTATION_SOP.md - EXAMPLE: For advanced tasks only.
- THEN_CONSULT_SOP: