Overview
A mature workflow combines the mechanisms in this lesson:
Step 1: Store durable user-wide preferences in a global instruction file.
Step 2: Store project-specific rules in a local instruction file.
Step 3: Instruct the agent to convert meaningful corrections into concise learned rules.
Step 4: Store repeatable procedures as skills rather than expanding the main instruction file indefinitely.
Step 5: When a non-trivial request is vague, invoke reverse prompting.
Step 6: Convert the answers into a prompt contract containing goal, constraints, output format, and failure conditions.
Step 7: Obtain approval before implementation.
Step 8: Execute the task using the relevant skill and tools.
Step 9: Check the output against the contract.
Step 10: Store any durable correction in the appropriate instruction or memory layer.
This process allows knowledge to accumulate without forcing the user to rewrite the same prompt every time.