Skip to content

MARKDOWN SOURCE

Raw
# any

`any` installs the `silen-infra` agent skill into the repository it is run in.
The skill is embedded in the binary, so the command works offline.

The skill covers:

- **Twig** — the self-hosted Git server at <https://twig.silenlocatelli.ch>,
  including clone/push auth, branches, pull requests, reviews, merges, and CI.
- **Ino** — releases, version bumps, Docker image pushes, and Once deployments.
- **Info** — the OpenTofu/Terraform configuration for Infomaniak DNS under
  `silenlocatelli.ch` and `hodis.ch`.
- **Code quality** — the formatter, linter, and test baseline for Rust, Zig, and
  JavaScript before a pull request.

## Build and install

```sh
mise install
mise run check
mise run install    # installs ~/.local/bin/any
```

## Use

Run `any` inside any repository:

```sh
any                 # create .opencode/skills/silen-infra/SKILL.md
any skill           # same
any skill --print   # print the skill instead of writing it
any skill --check   # exit 1 unless the skill is already installed
any skill --force   # replace an existing file
any skill --path docs/SKILL.md
```

If the target file already exists with other content, `any` keeps that content
and appends the skill body under an `any:skill` marker. Repeated runs are
idempotent.

## Project layout

- `src/main.zig` — entry point and command dispatch.
- `src/cli.zig` — argument parsing, usage text, and tests.
- `src/install.zig` — create/append/check logic.
- `src/skill.zig` — embedded skill text and Markdown helpers.
- `skills/silen-infra/SKILL.md` — the source of the embedded skill.

Edit `skills/silen-infra/SKILL.md`, then rebuild to update the binary.

any

any installs the silen-infra agent skill into the repository it is run in. The skill is embedded in the binary, so the command works offline.

The skill covers:

  • Twig — the self-hosted Git server at https://twig.silenlocatelli.ch, including clone/push auth, branches, pull requests, reviews, merges, and CI.
  • Ino — releases, version bumps, Docker image pushes, and Once deployments.
  • Info — the OpenTofu/Terraform configuration for Infomaniak DNS under silenlocatelli.ch and hodis.ch.
  • Code quality — the formatter, linter, and test baseline for Rust, Zig, and JavaScript before a pull request.

Build and install

mise install
mise run check
mise run install    # installs ~/.local/bin/any

Use

Run any inside any repository:

any                 # create .opencode/skills/silen-infra/SKILL.md
any skill           # same
any skill --print   # print the skill instead of writing it
any skill --check   # exit 1 unless the skill is already installed
any skill --force   # replace an existing file
any skill --path docs/SKILL.md

If the target file already exists with other content, any keeps that content and appends the skill body under an any:skill marker. Repeated runs are idempotent.

Project layout

  • src/main.zig — entry point and command dispatch.
  • src/cli.zig — argument parsing, usage text, and tests.
  • src/install.zig — create/append/check logic.
  • src/skill.zig — embedded skill text and Markdown helpers.
  • skills/silen-infra/SKILL.md — the source of the embedded skill.

Edit skills/silen-infra/SKILL.md, then rebuild to update the binary.