Now inviting automation leaders: publish your playbook as a skill, under your own name. Publish yours →
Automation Skills
All skills/Sf ai agentscript/Asset-validation-profiles
Reference · Sf ai agentscript

Asset-validation-profiles

Part of Sf ai agentscript. Install the skill and your agent reads this page when it needs the depth.

Asset Validation Profiles

The assets/ directory intentionally mixes three kinds of .agent files:

  1. Standalone examples/templates — complete files that should validate as full agents.
  2. Org fixtures — structurally valid files that may block only because the currently resolved org is missing referenced users/Flows/classes.
  3. Partial snippets/patterns — reusable building blocks that intentionally omit top-level blocks or rely on surrounding context.

Because of that mix, a single "every .agent file must have 0 blocking findings" rule creates false failures.

Profile Manifest

Source of truth:

Validation harness:

How the Harness Works

The harness runs the main validator (hooks/scripts/agentscript-syntax-validator.py) against every assets/**/*.agent file, then checks the results against the profile manifest.

Profile types

1. standalone_examples

These are expected to be complete agents/templates.

Policy:

2. org_fixtures

These are complete files, but the current local org may not contain all referenced metadata.

Policy:

3. partial_snippets

These are partial fragments or pattern files that are not intended to be published directly.

Policy:

Run It

python3 skills/sf-ai-agentscript/scripts/validate-asset-profiles.py

Expected success shape:

Asset validation profile summary
-------------------------------
- standalone_examples: ...
- org_fixtures: ...
- partial_snippets: ...

✅ All asset files matched their configured validation profile expectations.

Why This Is Better Than Ignoring Failures

This profile-based approach keeps the validator strict without pretending every asset file is the same kind of artifact.

It gives us:

Maintenance Rules

When you add a new file under assets/:

  1. Decide whether it is a standalone example, org fixture, or partial snippet.
  2. Add it to assets/validation-profiles.json.
  3. If you allow blocking IDs or warning IDs for it, document why in the PR or commit.
  4. Re-run:
    python3 skills/sf-ai-agentscript/scripts/validate-asset-profiles.py
    

If the harness fails, either:

Do not silently broaden allowlists without explaining why.

Publish your skill

Copy this prompt into Claude Code, Codex or any agent. It walks you through your first skill in about 20 minutes, with you as the author.

Click to copy.