Write Yard Docs

Use when writing YARD documentation for Ruby public APIs: every public method MUST have `@param`, `@return [Hash]`, and `@raise` tags, document `self.call` separately from `#call`, list each exception with its own `@raise` tag, use `@example` for module-level constructs, `@see` for cross-references, follow YARD `@return` type annotation conventions, add explicit YARD sub-tasks after implementation to task lists, keep all YARD text in English unless requested otherwise, run `yard stats --list-undoc` to verify coverage, and load extended resource files only when their specific content is needed. Trigger words: YARD, inline docs, method documentation, API docs, public interface, rdoc, return tag, raise tag.

igmarin 6f51b58 4 files · 8.6 KB Updated

File contents

igmarin/ruby-core-skills/tree/main/skills/write-yard-docs commit 6f51b58a74

Frequently asked questions

npx skillmds@latest add igmarin/write-yard-docs