Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ Agents should use npm scripts for all validation:
* `npm run lint:py` - Python linting via ruff
* `npm run lint:models` - Model reference validation against catalog
* `npm run lint:models:refresh` - Refresh model catalog from upstream documentation
* `npm run lint:permissions` - Workflow permissions validation
* `npm run lint:dependency-pinning` - Dependency pinning and SHA staleness validation
* `npm run lint:all` - Run all linters (chains `format:tables`, `lint:md`, `lint:ps`, `lint:yaml`, `lint:links`, `lint:frontmatter`, `lint:collections-metadata`, `lint:marketplace`, `lint:version-consistency`, `lint:permissions`, `lint:dependency-pinning`, `lint:py`, `validate:skills`, `lint:ai-artifacts`, and `lint:models`)
* `npm run validate:copyright` - Copyright header validation
* `npm run validate:skills` - Skill structure validation
Expand Down
32 changes: 32 additions & 0 deletions scripts/linting/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,38 @@ Markdown link checker configuration.
* Timeout: 10 seconds
* Ignore patterns: Localhost, example.com

## Schemas Directory

The `schemas/` directory contains JSON schema files used for frontmatter validation. These schemas ensure that the metadata in various markdown and configuration files adheres to the expected structure.

### Schema Files

The directory includes the following 10 JSON schema files:

* `agent-frontmatter.schema.json`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

See the issue itself, it now has updated information about the full list to document here.

* `base-frontmatter.schema.json`
* `chatmode-frontmatter.schema.json`
* `collection-manifest.schema.json`
* `docs-frontmatter.schema.json`
* `instruction-frontmatter.schema.json`
* `marketplace-manifest.schema.json`
* `prompt-frontmatter.schema.json`
* `root-community-frontmatter.schema.json`
* `skill-frontmatter.schema.json`
* `accessibility-state.schema.json`
* `adr-config.schema.json`
* `adr-consistency-rules.schema.json`
* `adr-frontmatter.schema.json`
* `ai-artifact-config.schema.json`
* `model-catalog.schema.json`
* `rai-state.schema.json`
* `security-state.schema.json`
* `sssc-state.schema.json`

### Schema Mapping

* `schema-mapping.json`: Maps glob patterns to their corresponding JSON schemas for targeted validation.

## Testing

All scripts support local testing before running in GitHub Actions:
Expand Down