| 1 | # System Prompt Extensions DOX |
| 2 | |
| 3 | ## Purpose |
| 4 | |
| 5 | - Own construction of core system prompt sections. |
| 6 | |
| 7 | ## Ownership |
| 8 | |
| 9 | - Ordered Python files own main, tools, MCP, secrets, skills, and project prompt sections. |
| 10 | - Active project instruction bodies and active-project AGENTS.md path-chain guidance are moved into prompt protocol; the system prompt keeps project metadata and stable project rules. |
| 11 | |
| 12 | ## Local Contracts |
| 13 | |
| 14 | - Preserve ordering where sections depend on earlier context. |
| 15 | - Keep secret-related prompt sections masked and scoped. |
| 16 | - Prompt additions must be bounded and compatible with tool-call contracts. |
| 17 | - Discover local tool prompts through `helpers.subagents.get_paths` and apply |
| 18 | `helpers.tool_policy` before including their text. |
| 19 | - Omit the discoverable-skills catalog when profile policy blocks |
| 20 | `skills_tool`; loaded skill history remains independent. |
| 21 | |
| 22 | ## Work Guidance |
| 23 | |
| 24 | - Coordinate broad system prompt changes with profiles, skills, tools, plugins, and prompt tests. |
| 25 | |
| 26 | ## Verification |
| 27 | |
| 28 | - Inspect rendered system prompts or run prompt-construction tests after changes. |
| 29 | |
| 30 | ## Child DOX Index |
| 31 | |
| 32 | No child DOX files. |