> Index of all Nori docs pages for agents: https://docs.noriagentic.com/llms.txt · Ask a question: https://noriagentic.com/ask

# Agent-conditional content

A skill, subagent, slash command, or instructions file can carry text for specific agents. At install time, Skillsets keeps only the text that applies to the agent it is installing for and removes the rest. Available since `nori-skillsets` 0.32.0.

`sks syntax` prints these rules and the current list of agent names.

## Inline: swap a word or phrase

```markdown
use the {{claude-code TaskCreate}}{{codex update_plan}}{{else your plan tool}} tool
```

Adjacent tags form one choice. The first match wins, `{{else}}` is the fallback, and the spacing around them is cleaned up when nothing matches. Inline text cannot contain braces; use a block for that.

## Block: multi-line content

```markdown
{{#claude-code}}
Track work with TaskCreate.
{{else codex}}
Track work with update_plan.
{{else}}
Track work with your plan tool.
{{/}}
```

Close with `{{/}}` or `{{/claude-code}}`. Each tag must sit alone on its own line; tag lines are removed entirely, so no blank line is left behind. Blocks can nest.

## Several agents, or all but one

```markdown
{{claude-code,codex Applies to both.}}
{{^codex Applies to everyone except codex.}}
```

Commas and `^` work in both the inline and the block form.

## Agent names

`claude-code`, `cline`, `codex`, `cursor-agent`, `droid`, `gemini-cli`, `github-copilot`, `goose`, `kilo`, `kimi-cli`, `opencode`, `openclaw`, `pi`. `sks list-agents` prints the same list, comma-separated.

A tag that names anything else is left alone, so `${{ github.sha }}` and other brace syntax passes through unchanged.

## Path placeholders

These are replaced with the target agent’s real paths at install time:

| Placeholder        | Becomes                                                       |
| ------------------ | ------------------------------------------------------------- |
| `{{skills_dir}}`   | where the agent’s skills are installed                        |
| `{{profiles_dir}}` | the Skillsets profiles directory (`~/.nori/profiles`)         |
| `{{commands_dir}}` | where the agent’s slash commands are installed                |
| `{{install_dir}}`  | the install root (the parent of the agent’s config directory) |

## Common questions

**Are code blocks exempt?** No. Fenced code blocks are processed like the rest of the file, so `node {{skills_dir}}/x.js` in a bash block resolves. To keep a tag or placeholder literal, wrap it in backticks inline.

**What happens on an agent no tag names?** It gets the `{{else}}` text, or nothing if there is no `{{else}}`.

**Does this change what I upload?** No. The source file keeps every variant; only the installed copy is trimmed.

**Which version do I need?** `nori-skillsets` 0.32.0 or later. Older clients install the tags as plain text.
