Skills
Create a skill to give an agent reusable guidance for a discipline, model format, calculation, editor, or other task. Put a SKILL.md file in .novaflex/skills/<skill-id> and describe when it is useful in description. Skills can complement any available tool; they do not restrict an agent to an allowlist or impose one fixed workflow.
---
name: Model Review
description: Review a building discipline model for completeness, assumptions, and coordination needs
---
## Guidance
Use the project brief, available model information, relevant references, and suitable analysis tools. Choose an approach that fits the model and current phase. Record evidence, assumptions, and unresolved coordination needs with the work.Nova Flex advertises this skill when it is relevant. The agent can then load its instructions with the skill tool instead of adding every skill to every prompt.
Create
Keep related scripts, references, and templates beside SKILL.md:
.novaflex/skills/
└── model-review/
├── SKILL.md
├── scripts/
│ └── analyze.py
└── references/
└── review-criteria.md
Paths written inside the skill are relative to the directory containing SKILL.md. The directory form is recommended because it gives supporting files a private base directory.
Discovery
Nova Flex automatically searches these locations:
| Scope | Sources |
|---|---|
| Global | ~/.config/novaflex/skills |
| Project | .novaflex/skills |
Either folder can also be named skill. For project sources, Nova Flex looks for a .novaflex folder in the current directory and in every directory above it, up to the root of the drive, and includes each one it finds.
Nova Flex does not read project .opencode/skills folders or other tools’ skill folders, such as .claude/skills and .agents/skills. Move those skills into .novaflex/skills, or list their folder in the skills config array (for example "~/.claude/skills").
Each source can contain either form:
skills/
├── review.md
└── model-review/
└── SKILL.md
- Markdown files must be at the source root, such as
skills/review.md. - Files named exactly
SKILL.mdcan be nested in grouping directories, such asskills/model-review/SKILL.mdorskills/disciplines/hvac/SKILL.md. - A directory containing
SKILL.mdis one skill. Nova Flex does not search inside it for more skills. - Hidden files and directories and
node_modulesare skipped. - Search stops six directories below the source root.
Sources
Add more local directories or HTTP catalogs with the skills array in any opencode.json or opencode.jsonc:
{
"$schema": "https://novaflex.tech/config.json",
"skills": [
"./team-skills",
"~/shared/opencode-skills",
"/opt/company-skills",
"https://example.com/opencode/skills/",
],
}| Value | Resolution |
|---|---|
| Relative path | From the active Nova Flex working directory, not the config file |
~/ path | From the current user’s home directory |
| Absolute path | Used as written |
http:// or https:// URL | Loaded as an HTTP catalog |
Every discovered config file contributes its entries. skills arrays are combined rather than replaced.
Catalogs
An HTTP catalog is a base URL with an index.json file:
{
"skills": [
{
"name": "model-review",
"version": "3",
"files": ["model-review.md", "references/review-criteria.md"]
}
]
}For that entry, Nova Flex downloads each file from <base-url>/model-review/<file>.
| Rule | Requirement |
|---|---|
| Paths | Must be safe, relative, and same-origin |
| Entry file | Include SKILL.md or <name>.md, such as model-review.md |
| Updates | Increment version when files change so Nova Flex refreshes its cache |
Each downloaded skill directory becomes a source root named after the entry, so both model-review.md and SKILL.md have the ID model-review.
Frontmatter
Use frontmatter to name the skill and control where it appears:
---
name: Model Review
description: Review a building discipline model and its coordination assumptions
metadata:
opencode/autoinvoke: false
---
Review the supplied model and supporting information. Record findings with evidence, and surface assumptions or cross-discipline questions that need resolution.| Field | Behavior |
|---|---|
name | Display name; defaults to the path-derived ID |
description | Summary used to show the skill to the model |
metadata.opencode/autoinvoke | Set to false to omit the skill from the model’s available list |
disable-model-invocation | Set to true for the same effect as opencode/autoinvoke: false |
All frontmatter is optional at runtime. Add a clear description when the model should discover the skill; skills without one are not advertised.
opencode/autoinvoke: false only hides the skill from the model’s available list. The skill remains registered and can still be loaded explicitly by ID. When both disable-model-invocation and opencode/autoinvoke are set, opencode/autoinvoke wins. V2 accepts portability fields such as license and compatibility but does not interpret them.
IDs
The file path determines the skill ID. The frontmatter name is only a display label.
| File | ID |
|---|---|
<source>/model-review.md | model-review |
<source>/model-review/SKILL.md | model-review |
<source>/disciplines/hvac/SKILL.md | hvac |
IDs are exact and case-sensitive. For portable skills, use a unique lowercase kebab-case ID of 1–64 characters and keep it aligned with the directory name:
^[a-z0-9]+(-[a-z0-9]+)*$
V2 currently does not enforce this pattern, the 1–64 character recommendation, a match between name and the directory, or a maximum description length.
Precedence
Skills are selected by ID. If two sources define model-review, the source registered later supplies the skill that Nova Flex loads:
~/.config/novaflex/skills/model-review/SKILL.md ← lower precedence
.novaflex/skills/model-review/SKILL.md ← loaded
Sources are registered from lower to higher precedence:
- Built-in skills
~/.config/novaflex/skills- Explicit
skillsconfig entries, in config priority and array order - Project
.novaflex/skills, from the farthest ancestor toward the current directory
Avoid duplicate IDs unless you intend to override an earlier skill.
Loading
At each model step, Nova Flex lists permitted skills that have a description and do not set opencode/autoinvoke to false. The list includes only the ID, name, and description, not the full Markdown body.
The model loads a skill by calling the skill tool with its exact ID:
{
"id": "model-review"
}Nova Flex then:
- Selects the current definition for that ID.
- Checks the selected agent’s
skillpermission. - Adds the Markdown body, without frontmatter, to the conversation.
- Provides the skill’s base directory and a sample of up to ten supporting file paths.
To load a skill yourself, mention it in your prompt as @skill-id.
Supporting file contents are not loaded automatically. The agent reads them when the skill directs it to do so. The file sample is available for directory-based SKILL.md skills; flat Markdown skills do not receive a neighboring file list.
Permissions
Use the skill action and the skill ID as the resource. Rules run in order, and the last matching rule wins:
{
"permissions": [
{ "action": "skill", "resource": "*", "effect": "allow" },
{ "action": "skill", "resource": "internal-*", "effect": "deny" },
{ "action": "skill", "resource": "experimental-*", "effect": "ask" },
],
}| Effect | Behavior |
|---|---|
allow | Advertises and loads matching skills without approval |
ask | Advertises matching skills and asks before loading them |
deny | Hides matching skills from the model and rejects loading |
Place the same rules under agents.<id>.permissions to apply them only to one agent.
Troubleshooting
For example, a skill’s ID is its source directory name, not its frontmatter display name:
.novaflex/skills/model-review/SKILL.md
└─ ID: model-review
If a skill is missing or loads the wrong content:
- Confirm the file is either a root-level
*.mdor a nested file named exactlySKILL.md. - Check the path-derived, case-sensitive ID rather than the frontmatter
name. - Add a
descriptionif the model should discover the skill. - Check
opencode/autoinvokeand the selected agent’sskillpermissions. - Look for a later source that defines the same ID.
- For HTTP catalogs, verify
index.json, same-origin file paths, and a changedversion.