larik v0.25.0

Guide

Skills

Larik supports Agent Skills: folders containing a SKILL.md with YAML frontmatter, plus optional scripts and resources.

markdown
---
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:

    1. ~/.agents/skills, ~/.claude/skills, ~/.config/larik/skills
    2. .agents/skills, .claude/skills, .larik/skills in 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 (/skills shows what was shadowed).

  • Progressive disclosure: only each skill's name: description is in the system prompt. The model loads the full instructions with the read-only skill tool 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 /clear to use it.

  • Running a skill yourself: type /<skill-name> [args], in the TUI or with -p. $ARGUMENTS in the body is replaced with the args, and $1 to $9 with the args one by one (split on spaces). Otherwise the args are appended.

  • Frontmatter flags: disable-model-invocation: true keeps a skill out of the model's index, so it only runs when you invoke it. user-invocable: false hides 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 the skill tool, as disable-model-invocation does, so they cost no prompt tokens. You can still run them as /name, and /skills marks them hidden by skills.hide. In the TUI, Hidden skills in /config edits 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.json can 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.

markdown
---
description: Fix a GitHub issue
argument-hint: [issue-number] [priority]
---

Fix issue #$1 with priority $2. Current branch: !`git branch --show-current`
  • Where: ~/.claude/commands and ~/.config/larik/commands for yours; .claude/commands and .larik/commands from the repo root down to the working directory for the project's. A file in a subdirectory still takes its own name (frontend/review.md is /review).
  • Running one: type /<name> [args]. The palette lists commands with their argument-hint, and /skills lists 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 a description goes in the model's index, where it can load it with the skill tool; disable-model-invocation: true keeps 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 /model always win. The two commands Larik ships as command files, /review and /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's allowed-tools frontmatter is ignored for the same reason. model is ignored too.
  • New or edited commands appear after /clear or 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 (and gh) commands, and gives them to the model. So a review works in every permission mode, including plan, 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.
  • /review looks for wrong behavior, unhandled cases, broken callers, concurrency and resource problems, data loss and missing tests, and leaves style to your linter. /security-review looks 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.md or security-review.md in a commands directory; it replaces the built-in. /skills shows 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:

yaml
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 plan mode: 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 to pull_request_target to 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.sh downloads and verifies a release, and scripts/ci-review.sh runs the review (REVIEW_TARGET, REVIEW_COMMAND, POST_COMMENT=false).

Generated from README.md · section “Skills”. Edit that file to change this page.