teach codegen that skills are reusable modules with self-owned data (guardrail item 9)

This commit is contained in:
Denton Social committed 2026-09-24 23:45:52 -05:00
1 parent db7d431976
commit 90fda9f2a4
4 files changed
+65 -7

No files matched your search

+6
View File
@@ -599,6 +599,9 @@ def build_skill_body_prompt(
f"Skill description: {draft.description}\n"
f"Existing skills in this category: {existing}\n"
f"Existing categories:\n{tree_summary(tree)}\n"
"This body will be reused across many requests: give the skill its own "
"internal/mock data model and never ask the human for operational data — "
"ask only to clarify intent.\n"
"Write the Python module body now. Reply with ONLY valid Python code "
"defining `predict` and `act`. No prose, no markdown fences, no JSON."
)
@@ -680,6 +683,9 @@ def _retry_prompt(
f"Category: {category}\n"
f"Skill name: {draft.name}\n"
f"Skill description: {draft.description}\n"
"This body will be reused across many requests: give the skill its own "
"internal/mock data model and never ask the human for operational data — "
"ask only to clarify intent.\n"
"Reply with ONLY valid Python defining `predict` and `act`. No prose, "
"no markdown fences, no JSON."
)