builder-payload-smith
Skill by discord-php
Guides maintenance of Builder classes in the discord-php repository. It covers outbound payload construction, validation, serialization, component handling and fromPart symmetry.
Install builder-payload-smith
Built from the published package, never by AI.
git clone --depth 1 https://github.com/discord-php/DiscordPHP /tmp/DiscordPHP && mkdir -p ~/.claude/skills && cp -r /tmp/DiscordPHP/.agents/skills/builder-payload-smith ~/.claude/skills/builder-payload-smithRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/discord-php/DiscordPHP /tmp/DiscordPHP && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/DiscordPHP/.agents/skills/builder-payload-smith ~/.gemini/antigravity-cli/skills/builder-payload-smithAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install builder-payload-smith in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
builder-payload-smith is an agent skill for maintaining Builder classes in the discord-php repository. It covers outbound payload construction, validation near setter methods, serialization through jsonSerialize(), component handling, and keeping fromPart() symmetric with stored parts. The skill lists the files to read in order, including Builder.php, DynamicPropertyMutatorTrait and representative builders such as MessageBuilder and ModalBuilder.
Written from the project's SKILL.md and checked against it.
What it can do
- Builder design rulesExplains that builders author outbound payloads and are separate from parts and repositories.
- Validation near writesPlaces limit and allowed-value checks in setters or adders instead of after the HTTP call.
- Payload serializationDescribes jsonSerialize() as the canonical outbound shape, omitting unset optional fields.
- fromPart symmetryKeeps Builder::fromPart() aligned with part fields so edit flows still work.
- Component handlingCovers adding outbound component subtypes to ComponentObject::TYPES and matching inbound parts.
- Builder change checklistLists checks for new properties, serialization, fromPart, create helpers, type maps and tests.
Try asking
- Add a new optional field to MessageBuilder and keep fromPart() in sync.
- Check whether ModalBuilder validates title and custom id length limits.
- Add a new outbound component subtype to ComponentObject::TYPES.
Good to know
- Scoped to Builder classes and outbound payload paths in the discord-php repository.
- Describes the repository's own conventions rather than a general Discord API tool.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/builder-payload-smith/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to builder-payload-smith
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
builder-payload-smith: common questions
What does builder-payload-smith do?
It gives guidance for changing Builder classes and outbound Discord API payloads in the discord-php repository. It describes validation, serialization, component handling and fromPart symmetry.
When should the skill be used?
The source says to load it when a change touches src/Discord/Builders, its Components folder, or outbound payload construction in parts or interaction responses.
Is a builder the same as a part?
No. The source says a part is a canonical resource model from Discord or memory, while a builder is a request payload authoring tool.
How do I install builder-payload-smith?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is builder-payload-smith free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is builder-payload-smith safe to use?
It scores 76 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to builder-payload-smith?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
