Repository navigation
docs(design): Replace tool and prompt policies with design intent, checks, and a build-tools skill - #4050
Conversation
…nd Codex Co-Authored-By: David Cramer <23610+dcramer@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
dcramer
left a comment
There was a problem hiding this comment.
I think we should follow our design documentation and not live in policies
This comment has been minimized.
This comment has been minimized.
Co-Authored-By: David Cramer <23610+dcramer@users.noreply.github.com>
|
Moved to |
|
This should be something where we can remove the policies and replace them with clear design intent, and then add deterministic checks where it makes sense or other verification skills for building and maintaining tools in the repository |
…mpt-practices Co-Authored-By: David Cramer <23610+dcramer@users.noreply.github.com>
…ecks, and a build-tools skill Move the rules of policies/tool-design.md, agent-steering.md, system-prompt.md, and prompt-markers.md to design/tools.md and design/prompts.md, the new build-tools repo skill, code comments next to the code they govern, and four checks: - ast-grep no-raw-tool-definitions - tag and attribute naming in the oxlint prompt-tag-attributes rule - param-missing-description in check-tool-descriptions, with a baseline - unit tests for the prompt tag helpers Rename the message tag attribute ts to sent_at and the MCP catalog child tag available_tool_count to available-tool-count to follow the naming rules. The Codex INSTRUCTIONS wrapper keeps its name. Co-Authored-By: David Cramer <23610+dcramer@users.noreply.github.com>
|
@dcramer Done in 26c3652bf. The four policies are gone (
The naming check needed three changes. The |
|
Found 3 test failures on Blacksmith runners: Failures
|
![Fix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light-v2-3x.png)
Replaces four policies with design intent, deterministic checks, and a repo skill. The policies were
policies/tool-design.md,agent-steering.md,system-prompt.md, andprompt-markers.md. @dcramer confirmed the exact text of everydesign/line.design/tools.mdanddesign/prompts.mdstate the goals and rules of model-facing tools and prompts. These rules come from practices that Claude Code (2.1.330) and Codex (openai/codex@ba1c17f9) both follow.design/tools.md: arguments that contradict each other fail the call, targets are IDs or stored names, the runtime sets actor/destination/credentials, and one value has one name.design/prompts.md: core behavior doesn't depend onSOUL.md/WORLD.md, plugin guidance is stable, tags grant nothing, sources never share a block, authors come from the platform, each input kind has one tag, and text never uses a fixed agent name.design/tools.mdgap about error repair text is gone, since fix(tools): Name the fix in model-facing tool error messages #4058 closed it..agents/skills/build-tools/holds the how-to for tools, prompt sections, and prompt tags: where a rule lives, layout, schemas, descriptions, results and errors, and tags.references/sources.mdholds the first-party sources.system-prompt-rules.ts.prompt.ts.input-tags.ts.prompt-tags.ts.zod-tool.ts.no-raw-tool-definitions: tools must usezodToolordefinePluginTool.prompt-tag-attributes: tags are kebab-case, and attributes are snake_case or<provider>.<field>, with notsand no*_ms.param-missing-descriptionincheck-tool-descriptions: every input field hasdescribe(). The 26 existing fields are intool-param-descriptions-baseline.txt.tool-schema-ast.mjsnow resolves.jsimports and shared param helpers, so these counts are accurate.Renames that the naming check needed:
messagetag attributets→sent_at(thread context).available_tool_count→available-tool-count.INSTRUCTIONSwrapper is an explicit exception, because it keeps the Codex format.AGENTS.md,CONTRIBUTING.md, other policies, check scripts, and ast-grep rule comments now point to the design docs or the skill.via @dcramer.
--
View Session [Sentry]