Training Context
When to Load Context
- •Starting a new task
- •Working in a module for first time
- •Before significant changes
Process
Get Training Context
code
training_context_get({
projectPath: ".",
moduleId: "module-name",
role: "worker",
taskType: "feature" | "bugfix" | "refactor"
})
Apply Returned Context
| Type | How to Apply |
|---|---|
| Skills | Follow procedures/checklists |
Rules (must) | Mandatory compliance |
Rules (should) | Recommended |
| Lessons | Avoid known pitfalls |
Example
code
# Starting work on auth module
training_context_get({
projectPath: ".",
moduleId: "auth",
role: "worker",
taskType: "feature"
})
# Returns:
# - Skills: secure-password-handling checklist
# - Rules: MUST use bcrypt, SHOULD add rate limiting
# - Lessons: Session tokens must rotate on privilege change