Skills
Larik supports Agent Skills: folders containing a SKILL.md with YAML frontmatter, plus optional scripts and resources.
---
name: release-notes
description: Write release notes from git history. Use when asked for a changelog or release notes.
---
Collect commits since the last tag with `git log $(git describe --tags --abbrev=0)..HEAD` ...
-
Discovery, lowest to highest precedence:
~/.agents/skills,~/.claude/skills,~/.config/larik/skills.agents/skills,.claude/skills,.larik/skillsin each directory from the repo root down to the working directory
Existing Claude Code skills work as-is, symlinked skill folders are followed, and a higher-precedence skill with the same name overrides the lower one (
/skillsshows what was shadowed). -
Progressive disclosure: only each skill's
name: descriptionis in the system prompt. The model loads the full instructions with the read-onlyskilltool when a task matches, and reads bundled files with the normal tools. The index is rebuilt at each fresh context (a new session or/clear) and stays fixed within it, so prompt caches stay valid. Add or edit a skill, then/clearto use it. -
Running a skill yourself: type
/<skill-name> [args], in the TUI or with-p.$ARGUMENTSin the body is replaced with the args, and$1to$9with the args one by one (split on spaces). Otherwise the args are appended. -
Frontmatter flags:
disable-model-invocation: truekeeps a skill out of the model's index, so it only runs when you invoke it.user-invocable: falsehides it from/. -
Hiding skills you don't need here:
"skills": {"hide": ["cmux-*", "pdf"]}takes skills (names or glob patterns) out of the model's index and theskilltool, asdisable-model-invocationdoes, so they cost no prompt tokens. You can still run them as/name, and/skillsmarks themhidden by skills.hide. In the TUI, Hidden skills in/configedits your own patterns for the current project, saved in your private project settings; patterns from other files still apply. Every settings file's patterns add up, so a shared.larik/settings.jsoncan hide skills that don't apply to a repository. -
Skills are instructions, like
AGENTS.md. Anything a skill asks the model to run still goes through the normal permission checks.
Custom commands
Claude Code–style custom commands work too: a Markdown file whose name is the command.
---
description: Fix a GitHub issue
argument-hint: [issue-number] [priority]
---
Fix issue #$1 with priority $2. Current branch: !`git branch --show-current`
- Where:
~/.claude/commandsand~/.config/larik/commandsfor yours;.claude/commandsand.larik/commandsfrom the repo root down to the working directory for the project's. A file in a subdirectory still takes its own name (frontend/review.mdis/review). - Running one: type
/<name> [args]. The palette lists commands with theirargument-hint, and/skillslists them with the skills. Arguments work as for skills. - Frontmatter is optional. Without a
description, the first line of the file describes the command in the palette. Only a command with adescriptiongoes in the model's index, where it can load it with theskilltool;disable-model-invocation: truekeeps a described one out. - Skills win: a skill and a command with the same name resolve to the skill, and built-in commands such as
/modelalways win. The two commands Larik ships as command files,/reviewand/security-review, are the exception: yours replace them. !`command`runs the command when you invoke the command file and puts its output in its place, in the sandbox when there is one. It runs only when your permission rules would allow it without asking (sandboxed commands, the safe list, allow rules); otherwise it is left out with a note, since a command file can come from a repository. Claude Code'sallowed-toolsfrontmatter is ignored for the same reason.modelis ignored too.- New or edited commands appear after
/clearor in a new session, like skills.
Reviewing changes
/review and /security-review are commands that ship with Larik. Each reviews a set of changes and reports findings, most serious first, with the file and line, how it fails (or is exploited) and a fix. They don't edit anything; ask for the fixes afterwards if you want them.
| You type | What is reviewed |
|---|---|
/review |
Your uncommitted changes. If the tree is clean: this branch's commits since the default branch, or else the last commit |
/review 123 or /review #123 |
That pull request, fetched with the GitHub CLI (gh) |
/review main |
What the current branch has that main doesn't (or, for a branch ahead of yours, what it has that yours doesn't) |
/review v0.3.0..HEAD |
That range |
/review focus on the error handling |
The default scope, with that focus. A focus can follow a PR, branch or range too |
- Larik collects the changes itself, with fixed read-only
git(andgh) commands, and gives them to the model. So a review works in every permission mode, includingplan, where the model can't run git, and it starts with the diff in hand. The model still reads the surrounding code with its tools. - A diff over 150 KB is cut, and the model is told to read the rest. New files git doesn't track yet are listed for it to read.
- The diff and a pull request's description are passed as data: text in them is never run as an inline command or treated as instructions.
/reviewlooks for wrong behavior, unhandled cases, broken callers, concurrency and resource problems, data loss and missing tests, and leaves style to your linter./security-reviewlooks for vulnerabilities the change introduces and reports only what it can describe an exploit for.- They work with
larik -p "/review"too, for a script or a CI job. - To change one, put your own
review.mdorsecurity-review.mdin a commands directory; it replaces the built-in./skillsshows which is in use.
On pull requests, in CI. The repository is also a GitHub Action that runs a review on each pull request and posts it as one comment, updated on every push:
name: Review
on: pull_request
permissions:
contents: read
pull-requests: write # to post the comment
jobs:
review:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: vwibowo/larik@v0.7.0
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} # or OPENAI_API_KEY, GEMINI_API_KEY
with:
command: review # or security-review
| Input | Default | Meaning |
|---|---|---|
command |
review |
review or security-review |
target |
the pull request | A PR number, a branch, or a range such as origin/main...HEAD |
focus |
What the review should concentrate on | |
model |
from the API key | provider/model |
version |
latest |
The Larik release to download; its checksum is verified |
comment |
true |
Post (and later update) a pull request comment. The review is always in the job summary and the review output |
github-token |
the workflow's token | Used to read the pull request and to comment |
- The model runs in
planmode: it reads the checked-out code and nothing more. It can't run commands, edit files or reach the token, and a repository's own hooks and MCP servers don't start without an approval that CI doesn't have. - Pull requests from forks don't get your secrets under
pull_request, so the review fails there for lack of an API key. Don't switch topull_request_targetto work around that: it would hand secrets to a job that reads untrusted code. - Pass only text you wrote as
focus; a pull request's title or body doesn't belong there. - Outside GitHub, the two scripts work by themselves:
scripts/ci-install.shdownloads and verifies a release, andscripts/ci-review.shruns the review (REVIEW_TARGET,REVIEW_COMMAND,POST_COMMENT=false).