A skill is a directory under skills/ containing a SKILL.md file. It bundles structured agent instructions, optional tool pre-approval metadata, optional resource and reference files, static assets, and executable scripts. The format follows the agentskills.io specification.
Use veryfront/skill for parser,
registry, tool, and policy helpers in framework code.
Prerequisites
- A Veryfront project with at least one agent (see Agents).
- The
skills/directory exists at the project root, orai.skills.discovery.pathsis set in Configuration.
Quick start
Create a skill directory with a SKILL.md file:
skills/ code-review/ SKILL.md references/ style-guide.md resources/ review-rubric.md scripts/ lint.shThe SKILL.md file uses YAML frontmatter for metadata and Markdown for instructions:
---name: code-reviewdescription: Review code changes for style, correctness, and security issues.allowed_tools: veryfront__load_skill veryfront__load_skill_reference veryfront__execute_skill_script--- # Code Review Review the submitted code changes following the project style guide. 1. Load the style guide from `references/style-guide.md`2. Load the rubric from `resources/review-rubric.md`3. Check for common issues4. Run the linter via `scripts/lint.sh`5. Provide feedback with specific line referencesSkill structure
Each skill lives in its own directory under skills/:
skills/<skill-id>/├── SKILL.md # Required: frontmatter + instructions├── references/ # Optional: reference files the agent can read│ └── *.md├── resources/ # Optional: source documents or review inputs│ └── *.md├── scripts/ # Optional: executable scripts│ └── *.sh└── assets/ # Optional: static assets └── *Frontmatter fields
Discovery
Skills are discovered automatically from the skills/ directory at server startup and on HMR file changes. No registration is needed.
skills/ code-review/SKILL.md → skill ID: "code-review" data-analysis/SKILL.md → skill ID: "data-analysis"
Agent tools
Agents with enabled skill access get veryfront__load_skill. Local and project runtimes
also expose the two supporting skill tools when skill access is enabled:
Script execution uses the runtime's project identity for cloud sandbox billing.
Scripts receive that identity as VERYFRONT_PROJECT_ID and the runtime's branch
as VERYFRONT_BRANCH_REF (default main). Tool arguments and script environment
input cannot override these bindings. Cloud execution requires a project binding;
local execution can run without one.
Authenticated renewable scripts receive VERYFRONT_API_TOKEN_FILE, not a fixed
VERYFRONT_API_TOKEN. The runtime updates this private file when the exact run
credential renews. The Veryfront SDK reads it for each request. Other API clients
must read the file again before each request; do not cache its contents or copy
it into a fixed environment token. Nonrenewable script environments keep their
existing token behavior.
Hosted chat providers use nested veryfront__load_skill input. After loading a skill,
hosted chat can read only a reference listed by that skill through
veryfront__load_skill({ reference: { skillId, file } }). The load.file form is no
longer advertised, but it remains accepted for existing callers. After a form
input is submitted, the tool instead offers only the flat { skillId, file }
form, limited to the active skill's references. Hosted chat does not execute
skill scripts directly.
Read the skill's load result before selecting a reference path. Hosted chat rejects a reference read in the same step as the skill's first body load. Retry the reference in the next step using a listed path. Direct SDK calls can load a body and then read a reference sequentially.
Use the skill ID returned by veryfront__load_skill and an exact path from its references
list. Read one reference at a time:
{ "reference": { "skillId": "code-review", "file": "references/style-guide.md" } }Keep the loaded skill ID when reading a reference. Reference paths belong in
file; they are not separate skill IDs and are not tools to discover.
When a hosted chat prompt provides a discovery cursor, call
veryfront__load_skill({ inventory: { cursor: <CURSOR> } }). Otherwise, call
veryfront__load_skill({ inventory: {} }) when the prompt does not show the complete
authorized skill inventory. The result contains a bounded skillIds page. If
it also contains nextCursor, call
veryfront__load_skill({ inventory: { cursor: nextCursor } }) until the response omits
nextCursor. Then call veryfront__load_skill({ load: { skillId } }) with a listed ID.
Local agent runtimes use flat load input. Call
veryfront__load_skill({ skillId: "<SKILL_ID>" }) to load a skill. After loading it, call
veryfront__load_skill_reference({ skillId: "<SKILL_ID>", reference: "<PATH>" }) to read
a listed reference, resource, or asset.
Standalone project runtime consumers can page the authorized inventory with
flat input. Call veryfront__load_skill({}) for the first page, then call
veryfront__load_skill({ cursor: <CURSOR> }) when the response includes nextCursor.
Load a listed skill with veryfront__load_skill({ skillId: "<SKILL_ID>" }).
Discovered skills visible to the agent are advertised by default:
import { agent } from "veryfront/agent"; export default agent({ id: "assistant", system: "Use project skills when they match the task.",});Use skills: ["code-review"] to advertise and authorize only that skill.
Use skills: false or skills: [] to disable skill access. A string selects this
agent's own skill short name, a visible skill ID, or a glob. Exact names resolve
this agent's own short names before IDs. A boolean map grants matching skills
and subtracts exclusions:
skills: { "support-*": true, "support-internal": false }Exclusion-only maps grant nothing. The framework supplies veryfront__load_skill for an
enabled selection; you do not need to add it to tools. Loading a skill
outside the selected scope is denied. Omitted skills preserves the existing
behavior of allowing every visible skill.
Expose the agent through an AG-UI route, then ask it to use the skill:
curl -N http://localhost:3000/api/ag-ui \ -H "Content-Type: application/json" \ -H "Cookie: __Host-vf_csrf=local-check" \ -H "x-csrf-token: local-check" \ -d '{"messages":[{"id":"1","role":"user","parts":[{"type":"text","text":"Use the code-review skill and summarize what you would check first."}]}]}'The agent should call veryfront__load_skill before applying the skill instructions.
Tool restrictions
The allowed-tools field (also accepted as allowed_tools) records tool pre-approval metadata. Veryfront preserves it but does not enforce it as a runtime authorization boundary. Configure the agent's tools to limit available tools. The following values are metadata, not enforced access rules:
# Exact tool IDsallowed_tools: veryfront__load_skill veryfront__load_skill_reference veryfront__execute_skill_script # Omit this optional metadata when it is not neededCLI commands
# Create a new skillveryfront skills create code-review # Validate a skillveryfront skills validate skills/code-reviewVerify it worked
- Run
veryfront skills validate skills/code-review. A passing skill prints no errors and exits with status0. - Restart
veryfront dev. The dev log should list each registered skill under its directory name. - Send a message that should trigger the skill (for example, a code-review
skill should engage when the message asks to "review this diff"). The
AG-UI response should apply the skill's instructions. Verify tool access
separately through the agent's
toolsconfiguration.