refactor(coding-agent): restructured XML tags to kebab-case format

- Renamed XML tags from underscore to kebab-case format for consistency across prompts and system messages.
- Updated context tag from `swarm_context` to `context` in render logic and test assertions.
- Consolidated conditional logic in subagent user prompt by removing duplicate assignment blocks.
- Updated system prompt documentation to reflect kebab-case naming convention for XML tags.
This commit is contained in:
can1357
2026-02-22 17:57:52 +01:00
parent 563d6a0ab9
commit 4e8a3773c9
6 changed files with 18 additions and 15 deletions
+4 -4
View File
@@ -57,7 +57,7 @@ Tags encode enforcement level. Use consistently throughout:
### Special Tags
```
<north_star> Core values, ultimate objectives
<north-star> Core values, ultimate objectives
<stance> Communication style, attitude
<commitment> What the agent commits to doing
<field> Domain-specific mindset/context
@@ -242,9 +242,9 @@ External proof: tests, linters, type checks.
3. State intent before each tool call
</procedure>
<north_star>
<north-star>
Core values. What ultimately matters.
</north_star>
</north-star>
<prohibited>
Actions that cause harm.
@@ -616,7 +616,7 @@ Structure: <role> <context> <procedure> <directives> <parameters> <output>
Capability: <strengths> <tools> <operations>
Examples: <example name="kebab-case-name">
Data: <environment> <data> <documents>
Special: <north_star> <stance> <commitment> <field> <protocol>
Special: <north-star> <stance> <commitment> <field> <protocol>
```
### Example Name Patterns