code-documentation

Enforce @doc annotations on Pact 5 defun, defcap, and defschema definitions.

1|1|Updated Jun 9, 2026
One-click install
npx skills add https://github.com/Pact-Community-Organization/github-marketplace --skill code-documentation-pact-community-organization
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-documentation
Source: https://github.com/Pact-Community-Organization/github-marketplace/tree/main/skills/code-documentation
Command: npx skills add https://github.com/Pact-Community-Organization/github-marketplace --skill code-documentation-pact-community-organization

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ensures Pact 5 modules have consistent, discoverable inline documentation by enforcing @doc annotations on defun, defcap, and defschema.

Core Features & Use Cases

  • Enforces presence of @doc blocks for public functions, capabilities, and schemas.
  • Provides example patterns for documenting parameters, guards, and schema fields.
  • Helps maintain code quality during reviews and onboarding of new contributors.

Quick Start

Annotate new Pact 5 functions, capabilities, and schemas with @doc in their definitions.

Frequently Asked Questions about code-documentation

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

FAQPage Schema
How do I standardize Pact 5 module documentation for defun and defcap definitions?

Standardize Pact 5 documentation by enforcing @doc annotations on all public defun, defcap, and defschema definitions. This ensures consistent inline documentation by requiring parameter descriptions and specific formatting rules within each module block.

What is the required format for @doc annotations in Pact 5 schemas?

@doc annotations in Pact 5 schemas require descriptive text for schema fields and parameter details. The documentation standard also mandates using backslash line continuations for long lines to maintain readability and consistent code structure.

Does Pact 5 require parameter descriptions inside function @doc blocks?

Yes, Pact 5 documentation standards require parameter descriptions within @doc blocks. Enforcing these details for defun, defcap, and defschema definitions ensures code quality during reviews and improves onboarding for new contributors.

How do I format long lines in Pact 5 module code documentation?

Format long lines in Pact 5 module code documentation by using backslash line continuations. This formatting rule is enforced alongside @doc block requirements to maintain standardized, discoverable inline documentation across functions and schemas.

When do I need to add @doc blocks to Pact 5 capabilities and schemas?

Add @doc blocks to Pact 5 capabilities and schemas during module development and review workflows. You must include them whenever defining public defcap and defschema structures to ensure all parameter details and guards are properly documented.