skills/rubysmithing-yardoc/SKILL.md
YARD documentation generator with semantic analysis for Ruby files. Automatically activates on requests to generate, add, or improve YARD documentation. Uses AST parsing and type inference to generate comprehensive @param, @return, @example, and @raise tags. Maintains consistency with existing project documentation patterns and YARD configuration. Generates production-grade documentation that eliminates usage pitfalls and accelerates correct method implementation. Requires rubysmithing-context when the target file uses non-stdlib gems, to ensure type annotations reflect verified API shapes.
npx skillsauth add b08x/rubysmithing rubysmithing-yardocInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Semantic analysis-powered YARD documentation generator. Transforms Ruby code into comprehensive, immediately usable developer resources with precise implementation guidance.
Activate on any mention of:
.rb + documentation requestSkip activation for: README generation, project overview docs, non-Ruby files.
Before generating type annotations, check whether the target file uses non-stdlib gems.
If gem-specific types appear in method signatures or return values (e.g., RubyLLM::Chat,
Sequel::Dataset, Async::Task, Dry::Schema::Result):
@param and @return tags.rubysmithing-context
and note # type annotation based on stale cache — verify before publishing inline.Skip this step for: stdlib-only files, Lite Mode tasks, gems already resolved this session.
.rb extension (warn if missing but proceed).yardopts file to maintain project YARD configurationUse Ruby parser to extract:
Analyze code implementation to infer:
Extract method purpose from:
Generate complete YARD comment blocks with:
##
# [Clear behavioral description in active voice]
#
# [Extended description with usage context and important notes]
#
# @param [PreciseType] param_name Description with usage context and constraints
# @param [Type, nil] optional_param Description including default behavior patterns
# @return [SpecificType] Comprehensive description with type structure details
# @raise [ExceptionClass] Specific conditions that trigger this exception
# @example Basic usage pattern
# realistic_method_call(actual_values)
# # => expected_output_with_type
# @example Advanced scenario with blocks
# complex_usage_pattern do |yielded_value|
# # practical block implementation
# end
# @since version_number (if determinable from git history)
# @see RelatedClass#related_method (if cross-references detected)
String, Integer, Hash{Symbol => Object}Array<Hash{String => Symbol}>#to_s, #each, #callString, nil for conditional returnsString, Symbol for flexible parametersCreate realistic, working code examples:
Provide completion summary:
Load references/yard-patterns.md for comprehensive YARD tag usage patterns,
type annotation standards, example generation guidelines, and common
documentation anti-patterns to avoid.
development
--- name: rubysmithing description: Convention-aware Ruby code generator for the terminal-native AI orchestration stack (dotenv, tty-config, zeitwerk, async, dry-schema, sequel, journald-logger, circuit_breaker, parallel, concurrent-ruby). Use for generating Ruby classes, modules, Rake tasks, config wiring, boot layer code, data pipelines, POROs, error class hierarchies, parallel processing workers, content parsers, and Gemfile decisions. Applies project-detected conventions (RuboCop, StandardRB
data-ai
--- name: rubysmithing-tui description: Terminal UI scaffolder and advisor for Ruby projects using the Charm/Bubble ecosystem. Activates on any mention of: TUI, terminal UI, terminal interface, terminal app, BubbleTea, bubbletea, Lipgloss, lipgloss, Bubbles, bubbles (UI components), Huh, huh form, form validation, Gum, gum prompts, NTCharts, charts, data visualization, Bubblezone, Glamour, glamour rendering, markdown display, Harmonica, harmonica animations, spring physics, smooth transitions, a
tools
--- name: rubysmithing-scaffold description: Ruby project scaffolder using rubysmith (apps, tools, scripts) or gemsmith (publishable gems). Activates on any mention of: scaffold a project, scaffold a gem, new ruby project, new gem, create gem, bootstrap project, rubysmith, gemsmith, generate project skeleton, project template, set up a new ruby app, start a ruby tool, start a ruby script, create a new gem for rubygems, initialize ruby project, rubysmith build, gemsmith build, new ruby
development
--- name: rubysmithing-report description: Rubysmith QA assessment sub-skill implementing the SIFT Protocol V1.0. Activates on any mention of: assess, audit, review this project, code quality, convention violations, what's wrong with this code, score my code, how compliant is this, system design review, tech advisory, SIFT, Rubysmith QA, Caliber, Reek, dry-monads compliance, pipeline depth, god class, missing DI, or any request for a structured code quality report. Accepts pasted code, uploaded