Skip to content

Conversation

@ashleyshaw
Copy link
Member

@ashleyshaw ashleyshaw commented Nov 14, 2025


name: "Pull Request"
about: "General changes, refactors, and maintenance"
title: "PR: Standardize Tool Configuration Documentation & Enhance Metrics, Husky Docs"
labels: ["status:needs-review"]

General Pull Request

This PR delivers major documentation improvements and standardization for all tool configuration and supporting scripts in the repository.

  • Add standardized Tool Configuration Documentation Template

    • Introduced docs/config/tools.instructions.md to define required structure for all configuration documentation
    • Template enforces consistency and completeness (purpose, scope, scripts, failure modes, suppression policies, versioning, maintenance, ROI, references)
  • Enhance HUSKY-PRECOMMITS.md

    • Expanded with detailed installation and setup instructions
    • Documented all supported pre-commit hooks, expected behaviors, and CI integration
    • Added best practices, bypass strategies, and relevant cross-references
  • Expand METRICS.md documentation

    • Detailed all tracked metrics (CI failures, PR cycle time, formatting/lint churn, and more)
    • Described collection methodology and privacy-conscious telemetry policy
    • Provided sample metrics report formats for contributors
  • Update scripts/gather-metrics.js

    • Added detailed placeholder implementation outlining future integration with the GitHub API (Octokit)
    • Documented collection strategy and data-contract
  • Update scripts/verify-docs-commands.js

    • Improved error reporting with emoji indicators for clarity
    • Extended support to more documentation file types
    • Improved script doc block and usage notes
  • Revise docs/config/README.md

    • Linked new tools.instructions.md template and updated contributing rules
    • Added validation requirements for npm script references

This effort ensures every configuration and supporting documentation follows a unified, contributor-friendly structure—making it easier for humans and AI to triage, search, and maintain documentation.

This repository enforces changelog, release, and label automation for all PRs and issues.
See the organisation-wide Automation Governance & Release Strategy for contributor rules.

Linked issues

Closes #

Changelog

Added

  • Introduced docs/config/tools.instructions.md as the standard template for tool configuration documentation.
  • Expanded HUSKY-PRECOMMITS.md with installation, setup, and bypass/CI details.
  • Expanded METRICS.md with detailed metrics documentation, reporting format, and privacy notes.
  • Added detailed placeholder and documentation to scripts/gather-metrics.js.

Changed

  • Improved scripts/verify-docs-commands.js error reporting and doc coverage.
  • Updated docs/config/README.md to reference the new template, clarify guidelines, and require validation of script references.

Fixed

Removed


Risk Assessment

Risk Level: Low

Potential Impact:

  • Documentation and script enhancements may cause confusion if guidelines are not followed, but do not impact production environments or workflows directly.

Mitigation Steps:

  • Templates and additions are backwards-compatible.
  • All new templates and enhanced docs are clearly referenced and explained.
  • Contributors are encouraged to follow updated guidelines and validation steps.

How to Test

Prerequisites

  • Basic familiarity with LightSpeedWP repo contributing process.

Test Steps

  1. Review the new template:
    • Check docs/config/tools.instructions.md for completeness and clarity.
  2. Read updated docs:
    • Review changes to HUSKY-PRECOMMITS.md, METRICS.md, and docs/config/README.md for improved clarity and structure.
  3. Test scripts:
    • Run node scripts/verify-docs-commands.js against documentation—confirm error reports are clear and emojis are used.
    • Optionally, review placeholder in scripts/gather-metrics.js and note the outlined planned features.

Expected Results

  • All documentation follows the new standardized structure.
  • Script output is clearer, with emoji error indicators.
  • Contributors can easily extend and update configuration documentation using the template.

Edge Cases to Verify

  • Template applies sensibly across different tool configs.
  • Script handles non-standard or missing npm script references gracefully.
  • No information regression in enhanced documents.

Checklist (Global DoD / PR)

  • All AC met and demonstrated
  • Tests added/updated (unit/E2E as appropriate)
  • A11y considerations addressed where relevant
  • Docs/readme/changelog updated (if user-facing)
  • Security/perf impact reviewed where relevant
  • Code/design reviews approved
  • CI green; linked issues closed; release notes prepared (if shipping)
  • Risk assessment completed above
  • Testing instructions provided above

References


Summary by CodeRabbit

  • Documentation

    • Enhanced pre-commit hooks documentation with comprehensive setup guidance, best practices, and CI integration details.
    • Expanded metrics documentation with collection methodology, telemetry policy, and sample metrics interpretation.
    • Introduced standardized configuration documentation template for consistency across tool documentation.
  • Chores

    • Updated internal metrics collection scaffolding and documentation verification processes.

…cs/husky docs

- Add standardized Tool Configuration Documentation Template (docs/config/tools.instructions.md)
  - Defines required sections for all config documentation
  - Ensures consistency across all tool configuration files
  - Includes sections for purpose, scope, scripts, failure modes, suppression, versioning, maintenance, ROI, and references

- Enhance HUSKY-PRECOMMITS.md with comprehensive documentation
  - Add detailed installation and setup instructions
  - Document pre-commit hook behavior and CI integration
  - Include bypass strategies and best practices
  - Add cross-references to related documentation

- Enhance METRICS.md with detailed telemetry and metrics tracking
  - Define key metrics tracked (CI failures, PR cycle time, formatting churn, lint churn)
  - Document collection methods and telemetry policy
  - Add sample metrics report format
  - Include privacy-conscious approach to data collection

- Enhance scripts/gather-metrics.js
  - Add detailed placeholder implementation
  - Document future integration with GitHub API via Octokit
  - Outline metrics collection methodology

- Enhance scripts/verify-docs-commands.js
  - Improve error reporting with emoji indicators
  - Add support for additional documentation files
  - Better documentation of script purpose

- Update docs/config/README.md
  - Reference new Tool Configuration Documentation Template
  - Update contributing guidelines to reference template
  - Add validation requirement for npm script references

This standardization effort ensures all configuration documentation follows a uniform structure, making it easier for contributors and AI assistants to find information and maintain documentation consistency.
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 14, 2025

Warning

Rate limit exceeded

@ashleyshaw has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 18 minutes and 7 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 36a8556 and fa978c5.

📒 Files selected for processing (3)
  • docs/config/tools.instructions.md (1 hunks)
  • scripts/gather-metrics.js (1 hunks)
  • scripts/verify-docs-commands.js (1 hunks)

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

Note

.coderabbit.yml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

⚠️ Parsing warnings (1)
Validation error: Unrecognized key(s) in object: 'auto_labels', 'auto_assign', 'auto_review'
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
📝 Walkthrough

Walkthrough

Adds structured YAML front matter and expanded content to documentation, introduces a configuration documentation template, and updates two validation/metrics scripts with improved logging, error handling, and configurable validation of npm script references.

Changes

Cohort / File(s) Summary
Documentation: Husky & Metrics
docs/HUSKY-PRECOMMITS.md, docs/METRICS.md
Add YAML front matter; restructure and expand content into formal sections (status, rationale, installation, telemetry/metrics details, examples, related files); update dates, maintainers, and references.
Configuration Docs Template & README
docs/config/README.md, docs/config/tools.instructions.md
Add a standardized tool-configuration documentation template and require its use via contributing guidance; add npm-script verification guidance and duplicate template guidance where applicable.
Tooling Scripts
scripts/gather-metrics.js, scripts/verify-docs-commands.js
Expand gather-metrics.js with staged logging and TODO scaffolding for future GitHub API usage; refactor verify-docs-commands.js to read package.json, dynamically collect docs to check, extract npm script references (regex), skip missing files, and return non-zero on validation failures with clearer messages.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  participant Dev as verify-docs-commands.js
  participant FS as File System
  participant PKG as package.json
  participant Doc as docs/*.md
  participant Matcher as Regex Extractor

  Dev->>FS: read package.json
  FS-->>Dev: package.json content
  Dev->>Doc: iterate documentation files list
  alt file exists
    Doc-->>Dev: file content
    Dev->>Matcher: extract `npm run` references
    Matcher-->>Dev: list of referenced scripts
    Dev->>PKG: compare referenced scripts to package.json.scripts
    alt missing scripts found
      Dev-->>Dev: log error (file-specific), mark validation failure
    else
      Dev-->>Dev: log success for file
    end
  else file missing
    Dev-->>Dev: skip file with notice
  end
  Dev->>Dev: exit 0 if all valid, else exit non-zero
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

  • Pay special attention to:
    • Regex correctness and edge cases in scripts/verify-docs-commands.js when extracting npm script references.
    • Error and exit-path handling (non-zero on failures) in verify-docs-commands.js.
    • Consistency of YAML front matter fields and date/maintainer formatting across docs/*.md.
    • Duplication of template guidance in docs/config/README.md (ensure intentional duplication or consolidate).

Possibly related PRs

Suggested labels

documentation, lang:md, lang:javascript, js, status:needs-review

Suggested reviewers

  • krugazul

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description is largely incomplete. While it includes a comprehensive bulleted summary of changes, the structured template sections (Linked Issues, Changelog, Risk Assessment, Testing Instructions, Checklist) are either empty or unfilled, failing to meet the repository's PR documentation requirements. Complete the required template sections: specify linked issues, add changelog entries categorized as Added/Changed/Fixed/Removed, provide Risk Level and Mitigation Steps, include testing prerequisites and steps, and verify all checklist items are addressed.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The PR title 'Create documentation template for tool configuration' directly aligns with the primary change—introducing a new standardized documentation template (docs/config/tools.instructions.md) and updating related config documentation.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ashleyshaw ashleyshaw requested review from Copilot and removed request for eleshar and krugazul November 14, 2025 04:24
@github-actions
Copy link
Contributor

⚠️ Frontmatter validation failed

Please check the workflow logs for details and ensure all frontmatter follows the schema at schemas/frontmatter/frontmatter.schema.json.

See Frontmatter Documentation for guidance.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR establishes a standardized documentation framework for tool configuration files by creating a comprehensive template and enhancing existing documentation with detailed implementation guidance, metrics tracking, and cross-references.

Key changes:

  • Created a standardized Tool Configuration Documentation Template defining required sections for all config documentation
  • Enhanced existing documentation (HUSKY-PRECOMMITS.md, METRICS.md) with comprehensive details on installation, behavior, and integration
  • Improved documentation verification scripts with better error reporting and expanded file coverage

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
scripts/verify-docs-commands.js Refactored with improved error handling, emoji indicators, and support for additional documentation files (METRICS.md)
scripts/gather-metrics.js Added comprehensive placeholder implementation with detailed TODO comments for future GitHub API integration via Octokit
docs/config/tools.instructions.md New standardized template defining 9 required sections (Purpose, Scope, When It Runs, Exact Scripts, Severity & Failure Modes, Suppression & Ignoring, Version Pinning, Maintenance, ROI vs Cost, References)
docs/config/README.md Updated to reference the new template and added validation requirement for npm script references
docs/METRICS.md Expanded from 5 lines to 75 lines with detailed metrics definitions, collection methods, sample reports, and telemetry policy
docs/HUSKY-PRECOMMITS.md Comprehensive rewrite from 90 to 106 lines with frontmatter, installation instructions, pre-commit behavior documentation, CI integration details, and setup commands

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +38 to +48
console.error(`❌ Doc reference to "npm run ${script}" not found in package.json scripts (${path.basename(docPath)})`);
allGood = false;
}
}
});

if (!allGood) {
console.error("Documentation references undefined npm scripts. 🚫");
process.exit(1);
} else {
console.log("👍 Docs scripts verification passed: all referenced scripts exist.");
Copy link

Copilot AI Nov 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider extracting the emoji indicators ('❌', '🚫', '👍') into named constants at the top of the file. This would improve maintainability if you need to change them later or support different output modes (e.g., plain text for CI logs without emoji support). Example:

const EMOJI_ERROR = '❌';
const EMOJI_BLOCKED = '🚫';
const EMOJI_SUCCESS = '👍';

Copilot uses AI. Check for mistakes.

## Scope

Detail the **scope of files or domains** the tool covers. Include file globs or extensions (e.g. "applies to all `*.js` and `*.ts` files" for ESLint, or "all `*.md` docs and READMEs" for markdownlint). This should mirror any patterns in the tool's config or ignore files. If the config only applies to certain directories or file types, note that here.
Copy link

Copilot AI Nov 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing closing period in the sentence "Detail the scope of files or domains the tool covers". For consistency with the rest of the documentation, this should end with a period. The sentence currently ends mid-thought without proper punctuation.

Copilot uses AI. Check for mistakes.
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6a4650e and 36a8556.

📒 Files selected for processing (6)
  • docs/HUSKY-PRECOMMITS.md (1 hunks)
  • docs/METRICS.md (1 hunks)
  • docs/config/README.md (1 hunks)
  • docs/config/tools.instructions.md (1 hunks)
  • scripts/gather-metrics.js (1 hunks)
  • scripts/verify-docs-commands.js (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{js,ts}

⚙️ CodeRabbit configuration file

**/*.{js,ts}: Review JavaScript/TypeScript for WordPress block theme:

  • Ensure code is linted and follows project style guides.
  • Validate use of ES modules or CommonJS as appropriate.
  • Check for dead code, unused variables, and clear function naming.
  • Ensure minimal JavaScript usage, following block theme best practices.
  • Verify scripts enhance, not replace, native WordPress functionality.
  • Check for proper script enqueueing in functions.php or block.json.
  • Validate accessibility and performance optimizations.
  • Ensure compatibility with WordPress script loading patterns.
  • Confirm event handling, DOM manipulation, and editor/frontend compatibility.
  • Check for code comments, modularity, and maintainability.
  • Ensure tests are isolated and do not depend on external state.
  • Check for descriptive test names and clear test structure.

Files:

  • scripts/gather-metrics.js
  • scripts/verify-docs-commands.js
🧬 Code graph analysis (1)
scripts/verify-docs-commands.js (1)
.github/metrics/frontmatter-metrics.js (1)
  • __dirname (14-14)
🪛 GitHub Actions: Frontmatter Validation
docs/config/tools.instructions.md

[error] 1-1: Frontmatter validation failed: tag "file_type" must be string.

🪛 LanguageTool
docs/config/tools.instructions.md

[style] ~45-~45: Consider using a different verb for a more formal wording.
Context: ... and commit, so format issues should be fixed automatically."* ## Suppression & Igno...

(FIX_RESOLVE)

docs/METRICS.md

[style] ~32-~32: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ... closed PRs' open-to-merge intervals. - For formatting churn: It scans merged PR di...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


[style] ~33-~33: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...; we approximate via known patterns). - For lint rule churn: It looks at our ESLint...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


[uncategorized] ~68-~68: The official name of this software platform is spelled with a capital “H”.
Context: ...NG.md) — Linting strategy and tools - [.github/workflows/ci-metrics.yml](../.github/wo...

(GITHUB)


[uncategorized] ~68-~68: The official name of this software platform is spelled with a capital “H”.
Context: ...ools - .github/workflows/ci-metrics.yml — Metrics col...

(GITHUB)

docs/HUSKY-PRECOMMITS.md

[style] ~45-~45: Consider using a different verb for a more formal wording.
Context: ... fails, the commit is aborted. You must fix the issues and try again. This prevents...

(FIX_RESOLVE)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Agent
  • GitHub Check: lychee
🔇 Additional comments (23)
docs/config/tools.instructions.md (1)

10-90: Excellent template structure!

The template provides comprehensive guidance with well-defined sections covering all essential aspects of tool configuration documentation. This will ensure consistency across all configuration files and make it easier for contributors to document their configurations properly.

docs/config/README.md (2)

114-130: Good template integration.

The Documentation Template section clearly describes the standardized structure and properly references the template file. The bulleted list of template sections provides a helpful overview.


135-140: Proper enforcement of documentation standards.

The Contributing section correctly references the template and adds a validation requirement for npm script references. This aligns well with the enhanced verify-docs-commands.js script.

scripts/gather-metrics.js (2)

3-8: Clear placeholder documentation.

The header comment effectively documents the script's intended purpose and future implementation approach using Octokit and the GitHub API.


10-31: Well-structured placeholder implementation.

The enhanced logging and TODO comments provide clear scaffolding that aligns with the metrics defined in docs/METRICS.md. The stage-specific messages will make future implementation straightforward.

scripts/verify-docs-commands.js (5)

3-6: Clear script documentation.

The header comment effectively describes the script's purpose.


11-17: Well-structured configuration.

The path constants are properly defined using path.join for cross-platform compatibility, and the DOC_FILES array makes it easy to extend validation to additional documentation files.


19-25: Proper error handling for package.json reading.

The try-catch block ensures the script fails gracefully with a clear error message if package.json cannot be read or parsed.


27-42: Solid validation logic.

The validation loop properly handles missing files, uses an appropriate regex pattern for matching npm script references, and provides clear error messages with emoji indicators and filenames.


44-49: Clear exit handling with helpful messages.

The conditional exit logic uses appropriate exit codes and provides emoji-enhanced messages for both success and failure cases.

docs/METRICS.md (5)

1-8: Verify frontmatter schema consistency.

Since the frontmatter validation is failing for tools.instructions.md due to a missing file_type field, this file may encounter the same issue.

Please ensure that if file_type is required by the frontmatter validator, it should be added here as well:

 ---
 title: "Metrics & Telemetry"
 description: "Defining key quality metrics and our telemetry policy"
 last_updated: "2025-11-14"
 version: "1.0"
 maintainers: ["LightSpeed Engineering Ops"]
 tags: ["metrics", "telemetry", "CI", "analytics"]
+file_type: "documentation"
 ---

16-24: Well-defined metrics with clear rationale.

The key metrics are comprehensive and clearly explained, covering CI effectiveness, development velocity, code quality, and standards stability. Each metric has a clear purpose that aligns with the PR's quality improvement goals.


37-45: Helpful sample report format.

The illustrative metrics report provides clear examples with interpretation notes, making it easy for readers to understand how to read and analyze the data.


47-56: Strong privacy-conscious telemetry policy.

The telemetry policy clearly states that no personal data is collected, emphasizes opt-in for any future telemetry features, and demonstrates respect for developer privacy. This conservative approach builds trust.


26-35: No issues found.

The workflow file .github/workflows/ci-metrics.yml exists in the repository, so the documentation reference is valid. The original concern is unfounded.

docs/HUSKY-PRECOMMITS.md (8)

1-8: Verify frontmatter schema consistency.

Like the other documentation files, this may need a file_type field if the frontmatter validator requires it (as indicated by the pipeline failure for tools.instructions.md).

Consider adding the file_type field if needed:

 ---
 title: "Husky Pre-commit Hooks"
 description: "Using Husky to enforce quality gates (linting/tests) before commits"
 last_updated: "2025-11-14"
 version: "1.0"
 maintainers: ["LightSpeed DevOps"]
 tags: ["husky", "pre-commit", "automation", "linting"]
+file_type: "documentation"
 ---

16-21: Clear status and rationale.

The section effectively explains Husky's implementation status and provides strong justification for its use in catching issues early and reducing CI failures.


23-37: Comprehensive installation guidance.

The installation section provides clear step-by-step instructions and includes helpful troubleshooting tips about Node version consistency and the --no-verify flag.


38-57: Detailed hook behavior explanation.

The section clearly explains what happens during pre-commit, includes the actual script content for reference, and explains the failure handling mechanism. The use of code blocks makes it easy to understand.


62-69: Balanced guidance on bypassing hooks.

The section appropriately explains bypass mechanisms while discouraging overuse and clearly stating the trade-offs. The rationale for excluding lengthy tests from pre-commit is sound.


71-79: Clear CI integration explanation.

The section effectively explains the relationship between pre-commit hooks and CI, addressing why the apparent redundancy is intentional and beneficial. The "fail fast, locally" concept is well articulated.


80-92: Helpful maintainer reference.

The setup commands section provides a useful historical reference for maintainers, showing the complete setup process and making it easier to replicate the configuration in other repositories.


94-101: Comprehensive cross-references.

The Related Files section provides helpful links to all relevant documentation and configuration files, making it easy for readers to explore related topics.

Comment on lines +1 to +8
---
title: "Tool Configuration Documentation Template"
description: "Standard format for documenting configuration files under docs/config"
last_updated: "2025-11-14"
version: "1.0"
maintainers: ["LightSpeed Team"]
tags: ["documentation", "configuration", "standards"]
---
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

Fix frontmatter validation error.

The pipeline validation is failing because the frontmatter is missing the required file_type field.

Apply this diff to add the missing field:

 ---
 title: "Tool Configuration Documentation Template"
 description: "Standard format for documenting configuration files under docs/config"
 last_updated: "2025-11-14"
 version: "1.0"
 maintainers: ["LightSpeed Team"]
 tags: ["documentation", "configuration", "standards"]
+file_type: "template"
 ---
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
---
title: "Tool Configuration Documentation Template"
description: "Standard format for documenting configuration files under docs/config"
last_updated: "2025-11-14"
version: "1.0"
maintainers: ["LightSpeed Team"]
tags: ["documentation", "configuration", "standards"]
---
---
title: "Tool Configuration Documentation Template"
description: "Standard format for documenting configuration files under docs/config"
last_updated: "2025-11-14"
version: "1.0"
maintainers: ["LightSpeed Team"]
tags: ["documentation", "configuration", "standards"]
file_type: "template"
---
🧰 Tools
🪛 GitHub Actions: Frontmatter Validation

[error] 1-1: Frontmatter validation failed: tag "file_type" must be string.

🤖 Prompt for AI Agents
In docs/config/tools.instructions.md around lines 1 to 8 the frontmatter is
missing the required file_type field which breaks pipeline validation; add a
file_type entry (e.g., file_type: "documentation" or the appropriate enum value
used by the repo) to the YAML frontmatter, placing it alongside
title/description/version and ensure proper YAML quoting/format to satisfy the
validator.

ashleyshaw and others added 2 commits November 14, 2025 11:31
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Ash Shaw <[email protected]>
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Ash Shaw <[email protected]>
@github-actions
Copy link
Contributor

⚠️ Frontmatter validation failed

Please check the workflow logs for details and ensure all frontmatter follows the schema at schemas/frontmatter/frontmatter.schema.json.

See Frontmatter Documentation for guidance.

1 similar comment
@github-actions
Copy link
Contributor

⚠️ Frontmatter validation failed

Please check the workflow logs for details and ensure all frontmatter follows the schema at schemas/frontmatter/frontmatter.schema.json.

See Frontmatter Documentation for guidance.

Co-authored-by: Copilot <[email protected]>
Signed-off-by: Ash Shaw <[email protected]>
@github-actions
Copy link
Contributor

⚠️ Frontmatter validation failed

Please check the workflow logs for details and ensure all frontmatter follows the schema at schemas/frontmatter/frontmatter.schema.json.

See Frontmatter Documentation for guidance.

Co-authored-by: Copilot <[email protected]>
Signed-off-by: Ash Shaw <[email protected]>
@github-actions
Copy link
Contributor

⚠️ Frontmatter validation failed

Please check the workflow logs for details and ensure all frontmatter follows the schema at schemas/frontmatter/frontmatter.schema.json.

See Frontmatter Documentation for guidance.

@ashleyshaw ashleyshaw merged commit 4d08023 into develop Nov 14, 2025
4 of 17 checks passed
@ashleyshaw ashleyshaw deleted the claude/config-docs-template-016SXALgwqRUX9zDYQMAuevf branch November 14, 2025 04:33
@ashleyshaw ashleyshaw changed the title Create documentation template for tool configuration PR: Standardize Tool Configuration Documentation & Enhance Metrics, Husky Docs Nov 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants