Toolverse
All skills

documenting-rust-code

by hashintel

Rust documentation practices for HASH codebase. Use when writing doc comments, documenting functions/types/traits/modules, creating error sections, using intra-doc links, or following rustdoc conventions.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
hashintel
Category
Backend
Views
7

About this skill

Rust documentation practices for HASH codebase. Use when writing doc comments, documenting functions/types/traits/modules, creating error sections, using intra-doc links, or following rustdoc conventions.

How to use

  1. Aktywuj umiejętność w Claude'a, gdy pracujesz nad dokumentacją kodu Rust w projekcie HASH — wystarczy wspomnieć o pisaniu doc comment, rustdoc lub dokumentowaniu funkcji/typów/modułów.
  2. Zanim napiszesz komentarz dokumentacyjny, przeczytaj wskazówkę umiejętności: zacznij od jednoliniowego podsumowania, użyj linków wewnętrznych dla referencji typów (np. [Vec], [HashMap]) i dokumentuj wszystkie warunki błędu sekcją # Errors.
  3. Dla funkcji z parametrami użyj opisów wbudowanych w tekst główny zamiast osobnych sekcji # Returns — umiejętność przypomni Ci o tej konwencji.
  4. Gdy dokumentujesz funkcje, które mogą zwrócić błąd, dodaj sekcję # Errors z listą możliwych warunków błędu i linkami do typów błędów (np. [NotFound]: EntityError::NotFound).
  5. Dodaj praktyczne przykłady dla publicznych API — umiejętność wskaże, kiedy są niezbędne i jak je strukturować.
  6. Unikaj dokumentowania standardowych implementacji cech (Debug, Display, From) i komentarzy na tej samej linii co kod — umiejętność będzie Cię ostrzegać o tych błędach.

Related skills

supabase-operations

by elevanaltd

Supabase operational knowledge for migrations, RLS optimization, MCP tool benchmarks, and ADR-003 compliance. Use when validating database migrations, optimizing Row-Level Security policies, checking MCP tool performance, or ensuring Supabase operational standards. Triggers on:

Backend
27109

fastapi-templates

by wshobson

Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.

Backend
327582

literature-review

by K-Dense-AI

Conduct comprehensive, systematic literature reviews using multiple academic databases (PubMed, arXiv, bioRxiv, Semantic Scholar, etc.). This skill should be used when conducting systematic literature reviews, meta-analyses, research synthesis, or comprehensive literature

Backend
238507

api-design-principles

by wshobson

Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.

Backend
50146

video-downloader

by ComposioHQ

Downloads videos from YouTube and other platforms for offline viewing, editing, or archival. Handles various formats and quality options.

Backend
50173

architecture-decision-records

by wshobson

Write and maintain Architecture Decision Records (ADRs) following best practices for technical decision documentation. Use when documenting significant technical decisions, reviewing past architectural choices, or establishing decision processes.

Backend
29130