shdoc-shell-docs

Automate adding and reviewing shdoc annotations in shell scripts.

142|5|Updated Dec 26, 2015
One-click install
npx skills add https://github.com/shunk031/dotfiles --skill shdoc-shell-docs
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: shdoc-shell-docs
Source: https://github.com/shunk031/dotfiles/tree/main/home/dot_config/exact_agents/skills/shdoc-shell-docs
Command: npx skills add https://github.com/shunk031/dotfiles --skill shdoc-shell-docs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Writing clear, consistent shdoc annotations for shell scripts can be tedious and error-prone; this skill automates the process and enforces standards.

Core Features & Use Cases

  • Auto-add and review file-level and function-level shdoc tags (e.g., @file, @brief, @description, @arg, @option, @example).
  • Validate documentation against the repository's style guide in references/shdoc-rules.md to ensure consistency across projects.
  • Improve maintainability by keeping shell script docs synchronized with code, enabling generated references and better onboarding.

Quick Start

Use shdoc-shell-docs to annotate and review a target script like scripts/build.sh to ensure proper documentation.

Frequently Asked Questions about shdoc-shell-docs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add shdoc annotations to bash scripts automatically?▼

You can automate adding shdoc annotations to bash scripts by applying file-level tags like @file, @brief, and @description, plus function-level tags such as @arg, @option, and @example to ensure consistent documentation.

What is the best way to review shell script documentation for consistency?▼

The best way to review shell script documentation is to validate annotations against a repository style guide like references/shdoc-rules.md, ensuring shell scripts maintain parseable and consistent documentation across projects.

Do I need specific frontmatter tags for shdoc to parse shell scripts?▼

Yes, shdoc requires frontmatter with minimal tags like @file, @brief, and @description to properly parse shell scripts and generate consistent documentation for your repository.

Can I use shdoc to document function arguments and options in shell scripts?▼

Yes, you can use shdoc to document function arguments and options in shell scripts by applying function-level tags such as @arg, @option, and @example to clarify usage and improve maintainability.

Why does my shell script documentation fail style validation?▼

Shell script documentation fails style validation when annotations do not conform to the rules defined in references/shdoc-rules.md, which enforces standards for consistent, parseable tags across projects.

What are the limitations of using shdoc for bash script documentation?▼

A limitation of using shdoc for bash script documentation is that it strictly requires frontmatter tags like @file and @brief, meaning scripts lacking these minimal annotations will not pass the review validation.