companion-template-compliance

Review Bitfocus Companion modules against official JavaScript and TypeScript template requirements.

Updated May 19, 2026
One-click install
npx skills add https://github.com/digitaldrummerj/bitfocus-companion-skills --skill companion-template-compliance-digitaldrummerj
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: companion-template-compliance
Source: https://github.com/digitaldrummerj/bitfocus-companion-skills/tree/main/plugins/companion-template-compliance
Command: npx skills add https://github.com/digitaldrummerj/bitfocus-companion-skills --skill companion-template-compliance-digitaldrummerj

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Reviewing a Bitfocus Companion module for compliance with the official JS or TS starter template is tedious and error-prone, since it requires checking dozens of files, config contents, package.json fields, manifest.json rules, and husky hooks. This Skill provides a complete critical-severity checklist so reviewers can approve or reject modules consistently. ## Core Features & Use Cases - JS vs TS Detection: Automatically determines module type via tsconfig.json or the package.json type field, then applies the correct template rules. - Required File & Config Validation: Verifies required files (.gitignore, .yarnrc.yml, tsconfig files, husky hooks) and exact config file contents for both templates. - Package, Manifest & HELP.md Audits: Checks package.json fields, scripts, dependencies, manifest.json maintainers and banned keywords, and detects stub HELP.md documentation. - Use Case: A maintainer reviewing a new companion-module submission asks the agent to check template compliance, and receives a side-by-side report of every critical violation blocking approval. ## Quick Start Review this Companion module for compliance with the official template and list all critical violations.

Frequently Asked Questions about companion-template-compliance

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

FAQPage Schema
How do I check if a Bitfocus Companion module matches the official template?▼

Run a template compliance review that detects whether the module is JavaScript or TypeScript, then validates required files, config file contents, package.json fields, manifest.json rules, and HELP.md content against the official template. All violations are reported as critical severity.

How to tell if a Companion module is JavaScript or TypeScript?▼

A module is TypeScript if tsconfig.json exists at the module root or package.json contains "type": "module". Otherwise it is treated as JavaScript, and the corresponding template rules are applied.

What files are required in a TypeScript Companion module?▼

TypeScript modules need all JavaScript template files plus eslint.config.mjs, tsconfig.build.json, tsconfig.json, .husky/pre-commit, and src/main.ts. The package-lock.json file must not be present, and all source code must live in the src/ directory.

What keywords are banned in a Companion module manifest.json?▼

The keywords array must not contain "companion", "module", "stream deck", the manufacturer name, the module or product name, or the full product name. These terms add no search value and any match is flagged as a critical violation.

Why does a Companion module review fail on HELP.md?▼

HELP.md fails when it contains the placeholder string "Write some help for your users here", has only a stub heading, or is fewer than five meaningful lines. It must document what the module does, configuration, available actions and feedbacks, and troubleshooting tips.

Can a Companion module be approved with template violations?▼

No. All template compliance violations are critical severity and block approval, including missing files, wrong repository URLs, placeholder maintainers, banned keywords, and config file deviations from the template.