uf.init

A command that applies project-specific changes to third-party OpenSpec files, which are documents and commands used for structured software changes. It uses the project’s context to place those changes correctly.

In plain words
What is it for?
Use it after project initialization, setup, or an OpenSpec update to migrate old command folders and apply customizations safely more than once.
Why use it?
It lets a project keep its custom behavior after setup or after the OpenSpec tool is updated.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/unbound-force/gaze/uf.init
Clone the repo
git clone --depth 1 https://github.com/unbound-force/gaze
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 8,038 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00044 $0.08038
Opus 5 $0.00022 $0.04019
Sonnet 5 $0.00009 $0.01608
Haiku 4.5 $0.00004 $0.00804

Measured 2d ago against content hash 07d6dc65b82c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

uf.init scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

or on Fedora/RHEL: `sudo dnf upgrade unbound-force`
.opencode/commands/uf.init.md · 936 lines

How it starts

The opening of the file, as written. The whole thing — 936 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Command: /uf.init

Description

Apply project-specific customizations to third-party tool files that cannot be modified by the uf init Go binary. This command uses LLM reasoning to read target files, understand their structure, and intelligently insert customizations at the correct locations.

When to run: After uf init (terminal), after uf setup, or after updating the OpenSpec CLI (npm update). Safe to re-run -- idempotent.

Instructions

Step 0: Command Directory Migration

Check whether the legacy .opencode/command/ directory needs to be migrated to .opencode/commands/:

  1. Check if .opencode/command/ exists (old directory):

    ls -d .opencode/command/ 2>/dev/null
    
  2. Check if .opencode/commands/ exists (new directory):

    ls -d .opencode/commands/ 2>/dev/null
    
  3. If old exists and new does NOT exist: rename the directory:

    mv .opencode/command .opencode/commands
    

    Report: ✅ command/ → commands/: migrated

  4. If both exist: move unique files from old to new, remove duplicates from old, and clean up:

    # For each file in old dir, move if not in new, else remove
    for f in .opencode/command/*; do
      name="$(basename "$f")"
      if [ -f ".opencode/commands/$name" ]; then
        rm "$f"
      else
        mv "$f" .opencode/commands/
      fi
    done
    rmdir .opencode/command 2>/dev/null
    

    Report: ✅ command/ → commands/: merged (old dir cleaned up)

  5. If old does NOT exist: no migration needed. Report: ⊘ command/ migration: not needed

Step 1: Check Prerequisites

Verify the project has been initialized:

  1. Check that .opencode/ directory exists. If not, STOP with:

    .opencode/ not found. Run uf init from your terminal first.

  2. Check that these 4 OpenSpec skill files exist:

    • .opencode/skills/openspec-propose/SKILL.md
    • .opencode/skills/openspec-apply-change/SKILL.md
    • .opencode/skills/openspec-archive-change/SKILL.md
    • .opencode/skills/openspec-explore/SKILL.md

Read the full file on GitHub · 936 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 936 lines · 44 tokens per session scan B 07d6dc65b82c

Subscribe to this mod's changes

uf.init is a command published in the GitHub repository unbound-force/gaze (2 stars, last pushed 6d ago), licensed Apache-2.0. It adds 44 tokens to every session and 8,038 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.