update-docs-workflow

Audit generated Jaspr reference markdown and enrich Dart doc comments.

803|85|Updated Nov 18, 2023
One-click install
npx skills add https://github.com/rodydavis/signals.dart --skill update-docs-workflow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: update-docs-workflow
Source: https://github.com/rodydavis/signals.dart/tree/main/.agents/skills/update-docs-workflow
Command: npx skills add https://github.com/rodydavis/signals.dart --skill update-docs-workflow

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires dart.

What problem does it solve?

It prevents stale or incomplete Jaspr reference documentation by auditing generated markdown, tracing issues back to Dart declarations, improving doc comments, and regenerating the site.

Core Features & Use Cases

  • Docs completeness audit: Detects public declarations that lack adequate /// comments or examples.
  • Source-to-reference tracing: Maps generated docs/content/packages/ pages back to the corresponding Dart sources across packages (e.g., preact_signals, signals_core, signals_flutter).
  • Comment enrichment standards: Improves explanations with functional behavior details and uses Jaspr-friendly XML-style callouts (e.g., <Info>, <Warning>) for clearer rendering.
  • Generator verification loop: Runs the documentation generator and then validates formatting and build output via analysis and Jaspr build/serve.

Quick Start

Use the skill to review the generated markdown under docs/content/packages/, audit missing or weak Dart doc comments, regenerate the docs with dart scripts/generate_docs.dart, and confirm the result by running dart analyze docs and jaspr serve.

Frequently Asked Questions about update-docs-workflow

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

FAQPage Schema
How do I audit Dart doc comments for missing documentation in a Jaspr monorepo?

To audit Dart doc comments, use a programmatic doc comment auditor to detect public declarations lacking adequate /// comments or examples, tracing generated markdown back to the corresponding Dart sources across packages. This ensures documentation completeness across the monorepo.

What is the best way to regenerate Jaspr API reference documentation after updating source code?

The best way to regenerate Jaspr API reference documentation is running the generator script via dart scripts/generate_docs.dart, then validating the output formatting and build by executing dart analyze docs and jaspr serve to confirm the updated content renders correctly.

How do I trace generated markdown pages back to their original Dart declarations for documentation fixes?

To trace generated markdown pages back to Dart declarations, map the files under docs/content/packages/ to the related lib/src code paths across packages like preact_signals, signals_core, and signals_flutter. This source-to-reference tracing identifies exactly which doc comments need enrichment.

Can I use Jaspr-friendly XML-style callouts in Dart doc comments for static site generation?

Yes, you can use Jaspr-friendly XML-style callouts like <Info> and <Warning> within Dart doc comments. The static site generation process preserves these tags for clearer rendering, allowing you to enrich explanations with functional behavior details and standardized visual callouts.

Does the Jaspr documentation workflow require running dart analyze before building the site?

Yes, running dart analyze docs is required to validate formatting and verify the generated output before building. This analysis step catches documentation errors and ensures the reference markdown passes static checks prior to executing jaspr build or jaspr serve.

Why does my Jaspr documentation build fail after regenerating markdown from Dart source packages?

A Jaspr documentation build might fail if the generated markdown contains inadequate doc comments or formatting errors. Run the doc comment auditor to detect missing /// comments, enrich the Dart sources, regenerate with the generator script, and verify via dart analyze docs before rebuilding.