Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,33 @@ All notable changes to SkillEvaluator are documented in this file.

### Changed

- The `default` policy no longer blocks a skill for its author attribution,
because the Agent Skills baseline requires only `name` and `description`
(#43). A missing `metadata.author` is now a LOW advisory, and a person, team,
or organization name without an email (such as `NVIDIA cuOpt Team` or
`Jane Doe (@jdoe)`) passes as an INFO `SCHEMA.author_without_email` finding.
A malformed or unsafe value still fails `SCHEMA.author_format` at HIGH: a bare
email or an email outside `Name <email@host>`, stray angle brackets, control
or invisible formatting characters, no letters or digits, or more than 256
characters. A policy with an `author_email_regex` still needs an email in
that domain. Overlays on `default` that relied on the old HIGH author
severities should set `SCHEMA.author_missing: high` and
`SCHEMA.author_without_email: high`, or use `--profile registry`. The policy
digest changes for every profile because it now includes
`metadata_id_requirement`.
- Add the bundled `registry` profile (`--profile registry`) for registries with
a publication contract. It requires `metadata.author` in
`Name <email@host>` form and a valid `metadata.id`.
- Validate an optional `metadata.id` as an exact 1–64 character lowercase
ASCII slug. A policy sets `identity.metadata_id_requirement` to `ignore`
(the default), `recommend`, or `require`; an unknown value is an error. A
collection run reports an ID declared by more than one skill, and `validate`
on a catalog lists these in `catalog-summary.json` under
`metadata_id_conflicts` (each sharing skill fails under `require`). Invalid and
duplicate IDs are MEDIUM advisories unless the requirement is `require`, and
the ID does not change local catalog identity. JSON reports include the
active requirement under `policy.metadata_id_requirement`.

- A `PII.emails` severity override in `--policy` no longer applies to the
`metadata.pic` and `metadata.email` contacts in a skill's own `SKILL.md`. They
now report as `PII.ownership_emails`, HIGH by default, so a run that passed
Expand Down
4 changes: 2 additions & 2 deletions docs/cli-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ errors, such as an option the workflow does not accept, exit `2`.
| `--min-score INTEGER` | `70` | Minimum passing quality and rubric score, from 0 to 100; quality severity overrides cannot waive the minimum |
| `--quality-config PATH` | packaged `quality-default.yaml` | YAML file that adjusts the quality check's expected headings and error-handling rules; settings it omits keep their packaged values. See [Tier 1: Validation](/skills/skillevaluator/tier1-validation#the-checks). |
| `--pii-waivers PATH` | none | Reviewed, expiring PII waivers applied by the `pii` check. See [PII waivers](/skills/skillevaluator/tier1-validation#pii-waivers). |
| `--profile TEXT` | `SKILLEVALUATOR_PROFILE`, then `default` | Validation policy; `external` is a compatibility alias |
| `--profile TEXT` | `SKILLEVALUATOR_PROFILE`, then `default` | Validation policy: `default` or `registry`. `external` is a compatibility alias for `default`. |
| `--policy FILE` | none | Explicit policy overlay, including reviewed ownership-contact severity. See [Tier 1 policies](tier1-validation.mdx#validation-profiles-and-policies). |
| `--previous-version TEXT` | `SKILLEVALUATOR_PREVIOUS_VERSION`, else unset | Previous version for version checks |
| `--skillspector-baseline FILE` | unset | Audited SkillSpector suppression baseline; never discovered from the skill. See [Audited SkillSpector baselines](/skills/skillevaluator/tier1-validation#audited-skillspector-baselines). |
Expand Down Expand Up @@ -277,7 +277,7 @@ Applies to the whole run: target typing, policy profile, reports, tier selection
| `--tiers TEXT` | all three for skills | Explicit tier selection, e.g. `--tiers 1,2` skips live evaluation and `--tiers 1,3` skips dedup. Tier 1 always runs. |
| `--full` | unnecessary for skills | Compatibility flag for all three tiers with autopilot. Explicit tier selection and disable flags still apply. |
| `--verbose` | off | Print the full per-check detail stream instead of the compact pipeline view. |
| `--profile TEXT` | `$SKILLEVALUATOR_PROFILE`, then `default` | Bundled validation policy. `external` is a compatibility alias for `default`. |
| `--profile TEXT` | `$SKILLEVALUATOR_PROFILE`, then `default` | Bundled validation policy: `default` or `registry`. `external` is a compatibility alias for `default`. |
| `--external` | — | Compatibility alias for `--profile default`; does not change repository visibility. |
| `--policy FILE` | none | Custom policy YAML overlaid on top of `--profile`. |
| `--workers INTEGER RANGE` | `1` | Concurrent skill jobs when validating a folder of skills (`x>=1`). Values above 1 run skills in parallel processes and disable the per-skill pipeline view. |
Expand Down
2 changes: 1 addition & 1 deletion docs/environment-variables.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ These variables tune the static and security checks. The check-by-check guide is

| Variable | Default | Effect |
| --- | --- | --- |
| `SKILLEVALUATOR_PROFILE` | `default` | Validation policy when no `--profile` flag is passed. `external` remains a compatibility alias. The CLI flag always wins. |
| `SKILLEVALUATOR_PROFILE` | `default` | Validation policy when no `--profile` flag is passed: `default` or `registry`. `external` remains a compatibility alias for `default`. The CLI flag always wins. |
| `SKILLEVALUATOR_BANDIT_PATH` | auto-discovered | Absolute path to the Bandit executable. |
| `SKILLEVALUATOR_SEMGREP_PATH` | auto-discovered | Absolute path to the Semgrep executable. |
| `SKILLEVALUATOR_SKILLSPECTOR_PATH` | auto-discovered | Absolute path to the SkillSpector executable. |
Expand Down
8 changes: 4 additions & 4 deletions docs/github-actions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ required security or schema check.
with existing images.
</Accordion>
<Accordion title="Why is an author email reported as PII?">
The required `metadata.author` attribution is accepted. Extra copies in
contact fields, body text, or reference documents are checked separately.
Keep the author field and use a handle or contact-directory link for extra
contact information. See [author attribution and approved exceptions](/skills/skillevaluator/tier1-validation#author-attribution-and-contact-emails).
The `metadata.author` attribution is accepted. Extra copies in contact
fields, body text, or reference documents are checked separately. Keep the
author field and use a handle or contact-directory link for extra contact
information. See [author attribution and approved exceptions](/skills/skillevaluator/tier1-validation#author-attribution-and-contact-emails).
</Accordion>
<Accordion title="Use reviewed security baselines">
This requires a workflow and image version that include baseline support;
Expand Down
2 changes: 1 addition & 1 deletion docs/gitlab-ci.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Skill result: "skills/glossary-builder" — FAILED

<AccordionGroup>
<Accordion title="Author emails and reviewed security exceptions">
Keep the required `metadata.author` attribution. Extra email copies in
Keep the `metadata.author` attribution. Extra email copies in
contact fields or documents are checked separately; use a handle or a
contact-directory link instead. See [author attribution](/skills/skillevaluator/tier1-validation#author-attribution-and-contact-emails).

Expand Down
61 changes: 45 additions & 16 deletions docs/tier1-validation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -144,36 +144,63 @@ skillevaluator validate ./skills --type skill --continue-on-failure

## Validation profiles and policies

The bundled `default` policy applies to both public and private repositories.
It requires a well-formed `metadata.author` value but does not restrict the email
domain. Missing or malformed author attribution is HIGH severity. Blocked license
findings are CRITICAL; missing or unknown licenses are reported for review.
The policy controls validation rules, not repository visibility or report hosting.
The old `external` name and `--external` flag remain compatibility aliases for
this same policy; there is no separate bundled `internal` policy.
Two policies are bundled. Both report malformed or unsafe author values and
blocked licenses (CRITICAL); they differ in which governance metadata a skill must carry.

| | `default` | `registry` |
| --- | --- | --- |
| Use it for | Public and private repositories | Registries with a documented publication contract |
| `metadata.author` missing | LOW (advisory) | HIGH (blocks) |
| Author is a name without an email, such as `NVIDIA cuOpt Team` | INFO | HIGH |
| Author is malformed or unsafe | HIGH | HIGH |
| `metadata.id` missing | Not reported | HIGH |
| `metadata.id` invalid, or duplicated in a collection | MEDIUM (advisory) | HIGH |

The Agent Skills baseline requires only `name` and `description`, so the
`default` policy treats author attribution and a stable ID as recommendations.
Neither policy restricts the author email domain. A policy controls validation
rules, not repository visibility or report hosting. The old `external` name and
`--external` flag remain compatibility aliases for `default`; there is no
separate bundled `internal` policy.

```bash title="Profile selection"
skillevaluator validate ./my-skill # default policy
skillevaluator validate ./my-skill --profile default # explicit default policy
skillevaluator validate ./my-skill --external # compatibility alias
skillevaluator validate ./my-skill --policy ./policy.yaml # custom overlay
SKILLEVALUATOR_PROFILE=default skillevaluator validate ./my-skill
skillevaluator validate ./my-skill --profile registry # registry publication contract
skillevaluator validate ./my-skill --external # compatibility alias for default
skillevaluator validate ./my-skill --policy ./policy.yaml # custom overlay on default
SKILLEVALUATOR_PROFILE=registry skillevaluator validate ./my-skill
```

Precedence, highest to lowest: `--policy` overlay, `--profile` flag, `SKILLEVALUATOR_PROFILE` environment variable, then the bundled `default` policy.

<Accordion title="Write a custom policy overlay">
A custom policy overlays the default rules. It can narrow the accepted author domain and change severities by `CATEGORY.check_name` or `CATEGORY.*`:
A custom policy overlays the `--profile` rules (`default` unless you choose
another). It can narrow the accepted author domain, set the `metadata.id`
requirement, and change severities by `CATEGORY.check_name` or `CATEGORY.*`:

```yaml title="policy.yaml"
profile: community-strict
identity:
author_email_regex: '<[^>]+@example\.org>'
metadata_id_requirement: recommend # ignore | recommend | require
severity_overrides:
SCHEMA.author_missing: critical
LICENSE.*: critical
```

An `author_email_regex` needs an email address in that domain, so under it a
name without an email fails `SCHEMA.author_format`. An overlay that omits an
`identity` key keeps the base profile's value. An unrecognized
`metadata_id_requirement` value is an error, not a silent fallback.

The author checks are `SCHEMA.author_missing`, `SCHEMA.author_without_email`,
and `SCHEMA.author_format`. The ID checks are `SCHEMA.metadata_id_missing`,
`SCHEMA.metadata_id_format`, and `SCHEMA.metadata_id_duplicate`. Their default
severities follow `metadata_id_requirement`: a missing ID is LOW under
`recommend` and HIGH under `require`; an invalid or duplicate ID is MEDIUM
unless the requirement is `require`.

Severity overrides change how findings gate a run; they do not change the
quality score or waive its `--min-score` requirement. Even an override of
`QUALITY.*: info` leaves a below-minimum quality score failing.
Expand Down Expand Up @@ -230,7 +257,8 @@ For `validate`, the default set is `schema`, `version`, `security`, `pii`, `lice
- The standard hierarchy is `skills/<skill-name>/` or `team-skills/<team>/<skill-name>/`. A nonstandard standalone location is reported as an advisory finding.
- Recognized skill-root subdirectories are `agents/`, `references/`, `scripts/`, `assets/`, `evals/`, `tests/`, `tools/`, and `config/`; anything else gets a LOW advisory finding. Extend the set per repository with `SKILLEVALUATOR_SCHEMA_ALLOWED_DIRS` (comma-separated names are added to the defaults, never replace them).
- `SKILL.md` should stay at or below 500 lines; larger files receive an advisory finding.
- The default profile expects `metadata.author` in `Name <email@host>` form but does not require a particular email domain.
- `metadata.author` is optional under the `default` profile. Use `Name <email@host>` to include a contact address, or a person, team, or organization name such as `NVIDIA cuOpt Team` or `Jane Doe (@jdoe)`. A value that is malformed or unsafe is a HIGH `author_format` finding: a bare email or an email outside `Name <email@host>`, stray angle brackets, control or invisible formatting characters, no letters or digits, or more than 256 characters. The `registry` profile requires the `Name <email@host>` form.
- `metadata.id` is an optional stable skill ID. When present it must be an exact 1–64 character lowercase ASCII slug (`^[a-z0-9]+(-[a-z0-9]+)*$`, no surrounding whitespace); it may differ from `name`. A collection run reports an ID that more than one discovered skill declares; `validate` on a catalog also lists these in `catalog-summary.json` under `metadata_id_conflicts`, and under `registry` each skill that shares an ID fails. Uniqueness is checked only across the skills validated together, never against a registry, and a single-skill run does not claim it. The ID does not change local catalog identity, which stays keyed by content type and relative path.
Comment thread
rng1995 marked this conversation as resolved.
Resolved
- `metadata.domain` accepts one category string or a list of them, such as `domain: [backend, ai-ml]`. Values are trimmed and deduplicated in order; a blank or null scalar means no domain. A list with more than 16 entries, or a non-string, blank, or over-128-character entry, is a HIGH `Field 'metadata.domain'` finding. The 128-character limit also applies to a single string.

**To fix common findings:** rename the directory to match `name`, remove forbidden fields, and move the skill under `skills/`.
Expand Down Expand Up @@ -619,10 +647,11 @@ For `validate`, the default set is `schema`, `version`, `security`, `pii`, `lice

## Author attribution and contact emails

Keep the required `metadata.author: Name <email>` attribution in `SKILL.md`.
The PII check accepts that recognized author line. The same address in another
field, body text, or a reference document is a separate occurrence and can still
fail the check.
When `metadata.author` carries a contact, write it as `Name <email>` in
`SKILL.md`. The PII check accepts that recognized author line. The same address
in another field, body text, or a reference document is a separate occurrence
and can still fail the check. A team or organization name without an email is
also valid attribution under the `default` profile.

Use a name, team handle, or contact-directory link for additional contact
information. If a real address must remain, record a reviewed, time-limited
Expand Down
Loading
Loading