diff --git a/tool/dart_skills_lint/README.md b/tool/dart_skills_lint/README.md index 1d27af89..0cf78675 100644 --- a/tool/dart_skills_lint/README.md +++ b/tool/dart_skills_lint/README.md @@ -192,7 +192,8 @@ The linter checks against the criteria defined in `documentation/knowledge/SPECI - **Compatibility (`compatibility`)**: Max 500 characters. ### 4. Content Constraints -- **Trailing Whitespace**: Lines in `SKILL.md` should not have trailing whitespace. Exactly 2 spaces at the end of a line are allowed to support Markdown hard line breaks, per the [CommonMark Spec](https://spec.commonmark.org/0.30/#hard-line-breaks). +- **Trailing Whitespace**: Lines in `SKILL.md` should not have trailing whitespace. Exactly 2 spaces at the end of a line are allowed to support Markdown hard line breaks, per the [CommonMark Spec](https://spec.commonmark.org/0.31.2/#hard-line-breaks). +- **Path Constraints**: Checks that **inline** Markdown links do not use absolute paths to enforce portability. Can optionally be configured to check that relative paths point to valid, existing files (disabled by default). *Note: This rule only supports inline Markdown links and does not detect HTML or reference-style links.* ## Contributing diff --git a/tool/dart_skills_lint/documentation/knowledge/SPECIFICATION.md b/tool/dart_skills_lint/documentation/knowledge/SPECIFICATION.md index 189c7744..b48f23cf 100644 --- a/tool/dart_skills_lint/documentation/knowledge/SPECIFICATION.md +++ b/tool/dart_skills_lint/documentation/knowledge/SPECIFICATION.md @@ -62,7 +62,8 @@ Validation ensures that a skill directory and its `SKILL.md` file adhere to the - Length: Maximum 500 characters. #### 4.1.4 Content Constraints -- **Trailing Whitespace**: Lines in `SKILL.md` should not have trailing whitespace. Exactly 2 spaces at the end of a line are allowed to support Markdown hard line breaks, per the [CommonMark Spec](https://spec.commonmark.org/0.30/#hard-line-breaks). +- **Trailing Whitespace**: Lines in `SKILL.md` should not have trailing whitespace. Exactly 2 spaces at the end of a line are allowed to support Markdown hard line breaks, per the [CommonMark Spec](https://spec.commonmark.org/0.31.2/#hard-line-breaks). +- **Path Constraints**: **Inline** Markdown links must not use absolute paths to enforce portability. Can optionally be configured to check that relative paths point to valid, existing files (disabled by default). *Note: Validation only applies to inline Markdown links; HTML and reference-style links are not supported.* ### 5.2 Scripts & Tools - Scripts in the `scripts/` directory should be self-documenting and provide clear error messages.