Files
homarr/.agents/skills/documentation-sync/SKILL.md
T

3.9 KiB

name, description
name description
documentation-sync Keep Homarr's Docusaurus documentation useful and accurate. Use when a change affects what users need to know to configure, use, or troubleshoot Homarr, or makes existing guidance inaccurate.

Documentation Sync

Update apps/docs/ when users need new or corrected guidance to configure, use, or troubleshoot Homarr. Keep documentation straight to the point.

Decide whether documentation is needed

Identify the user action, decision, prerequisite, limitation, or troubleshooting step that changes. Update the relevant docs when that information is missing or inaccurate. If nothing users need to know changes, leave the docs untouched.

Routine visual fixes such as icon sizing, spacing, alignment, responsive layout, and animation usually need no documentation. Describe them in the PR when useful for review. Document a visual change only when it changes a user workflow, setting, or meaningful limitation.

Write the minimum information needed to complete the user's task. Inspect adjacent pages and the docs types before editing.

Map changes that need documentation

Code change Documentation target
New integration apps/docs/docs/integrations/<slug>/index.mdx and index.ts
New widget apps/docs/docs/widgets/<slug>/index.mdx and index.ts
Changed public or management API apps/docs/docs/management/api/index.mdx
New or changed environment variable Relevant page under apps/docs/docs/advanced/ or installation docs
New or changed CLI command apps/docs/docs/advanced/command-line/
Authentication/provider change Relevant SSO or authentication page under apps/docs/docs/advanced/
UI or workflow change Relevant getting-started, management, widget, or integration page
Cron-job behavior apps/docs/docs/management/tasks.mdx
Permission behavior apps/docs/docs/management/users.mdx and the affected feature page
Custom Widget or Workshop behavior Relevant Custom Widget, Assistant, or Workshop documentation

If no existing row fits, search by the user-visible term and update the page where a user would look for the behavior:

rg -n "<term>" apps/docs/docs apps/docs/src

Follow existing typed patterns

For an integration:

  • Add or update apps/docs/docs/integrations/<slug>/index.ts with the local IntegrationDefinition pattern.
  • Add or update index.mdx with the established IntegrationHeader, IntegrationCapabilites, and IntegrationSecrets components as applicable.
  • Reuse metadata from @homarr/definitions when the docs app already exposes it.

For a widget:

  • Add or update apps/docs/docs/widgets/<slug>/index.ts with the local WidgetDefinition pattern.
  • Add or update index.mdx with the established WidgetHeader, WidgetConfig, and AddingWidget components as applicable.
  • Document options, required integrations, permissions, empty states, and changed behavior that affect setup or use.

Completion criteria

  1. Every addition helps a user configure, use, or troubleshoot Homarr; omit incidental rendering and implementation details.
  2. Keep names, defaults, paths, screenshots, links, and prerequisites consistent with code.
  3. Correct affected guidance and remove superseded instructions. A code change alone does not require a docs edit.
  4. Run the narrowest useful docs validation. Use pnpm turbo build --filter=@homarr/docs when links, MDX, generated definitions, or navigation can fail; otherwise run the docs package formatter on touched files.
  5. Treat broken links and anchors as failures; Docusaurus checks them strictly.