No. 076 Write the change
API design patterns for this codebase
Use when the behavior is already chosen and a file should change
- Claude Code
- Codex
- Cursor
- Write the change
--- name: api-conventions description: API design patterns for this codebase --- When writing API endpoints: - Use RESTful naming conventions - Return consistent error formats - Include request validation
When to use
“API design patterns for this codebase” fits when the behavior is already chosen and a file should change, because it says “name: api-conventions”, and it is a workflow you would run again rather than a one-off edit.
Send “API design patterns for this codebase” as the turn itself: name: api-conventions
When not to use
Leave “API design patterns for this codebase” unused when you only wanted the file explained, or two designs are still open, because “name: api-conventions” points the other way
How to run it
Claude Code
Claude Code loads “API design patterns for this codebase” from .claude/skillsthat command/SKILL.md when the description matches the turn, and the description has to say when “name: api-conventions” applies.
Codex
Codex takes “API design patterns for this codebase” as a paste above the task. Leave AGENTS.md unchanged so the next thread does not inherit “name: api-conventions”.
Cursor
Cursor should see “API design patterns for this codebase” only as a chat paste of “name: api-conventions” for this turn. A file at .cursor/rules would keep applying after the turn ends.
Comparison
对比待补
This before-and-after was not run on this machine.
Related
- Stage: Write the change
- Same stage: // HTMX Basic Setup .cursorrules
来源:Anthropic · https://code.claude.com/docs/en/skills · 2026-12-01