okf-git

okf-git is a skill for Claude Code, Codex from xSAVIKx/okf-skills. It costs 61 tokens per session (605 once invoked), scanned A, original, Apache-2.0.

A Git connector that turns a repository's files and commit history into an Open Knowledge Format (OKF) bundle, while respecting files excluded by Git or OKF ignore rules.

In plain words
What is it for?
Use it to document a repository, record commit times, authors, and messages, and optionally sync descriptions back to the repository's metadata file.
Why use it?
It gives you a portable catalogue of the repository and its history without manually documenting every file.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to document a repository, record commit times, authors, and messages, and optionally sync descriptions back to the repository's metadata file.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xsavikx/okf-skills/okf-git
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.

Any agent
npx skills add xSAVIKx/okf-skills --skill okf-git
Clone the repo
git clone --depth 1 https://github.com/xSAVIKx/okf-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for okf-git

README.md
[![agentmods](https://agentmods.dev/badge/skills/xsavikx/okf-skills/okf-git/github.svg)](https://agentmods.dev/skills/xsavikx/okf-skills/okf-git)
Your own site
<a href="https://agentmods.dev/skills/xsavikx/okf-skills/okf-git"><img src="https://agentmods.dev/badge/skills/xsavikx/okf-skills/okf-git/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for okf-git

Your own site · 80×15
<a href="https://agentmods.dev/skills/xsavikx/okf-skills/okf-git"><img src="https://agentmods.dev/badge/skills/xsavikx/okf-skills/okf-git.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 605 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00061 $0.00605
Opus 5 $0.00030 $0.00302
Sonnet 5 $0.00012 $0.00121
Haiku 4.5 $0.00006 $0.00060

Measured 9d ago against content hash f1d8f690f2de, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

okf-git scanned grade A with 0 findings 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 9d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/okf-git/SKILL.md · 60 lines

What it actually says

Skill: okf-git (Git Repository OKF Connector)

This skill produces and ingests OKF bundles documenting Git repository file trees, including revision history metadata (commit times, authors, messages), respecting .gitignore and .okfignore files.

Setup

The connector is written in Go and requires Go 1.24+ to build from source:

# Install the published binary (Go 1.24+) — no clone needed:
go install github.com/xSAVIKx/okf-skills/skills/[email protected]

# …or build from a clone of the repository:
cd skills/okf-git
go build -o okf-git .

Commands

1. produce

Traverses the Git repository files, skips ignored files, queries commit logs for history metadata, reads description comments from .okf-metadata.yaml, and outputs an OKF bundle.

./okf-git produce --repo <repository-path> --out <bundle-output-dir>

Options:

  • --repo (string): The path to the local Git repository to document (required).
  • --out (string): The path where the generated OKF bundle will be created (required).

2. ingest

Validates an OKF bundle against tracked Git repository files and optionally syncs descriptions back into .okf-metadata.yaml at the repository root.

./okf-git ingest --repo <repository-path> --bundle <okf-bundle-dir> [--sync]

Options:

  • --repo (string): The path to the local Git repository to update (required).
  • --bundle (string): The path to the OKF bundle to ingest (required).
  • --sync (bool): If true, updates .okf-metadata.yaml at the repository root with the descriptions from the bundle.

3. Inspect the Schema (self-description)

Print a machine-readable JSON description of this skill's commands and flags (used by okf-mcp to expose the skill as an MCP tool):

./okf-git schema
Files

What ships with it

9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 60 lines · 61 tokens per session scan A f1d8f690f2de

Subscribe to this mod's changes

okf-git is a skill published in the GitHub repository xSAVIKx/okf-skills (33 stars, last pushed 9d ago), licensed Apache-2.0. It adds 61 tokens to every session and 605 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

okf-authoring

Author Open Knowledge Format (OKF) bundles — knowledge represented as a directory of markdown files with YAML frontmatter. Use when asked to create, write, generate, enrich, or validate an OKF bundle or OKF concept docs; to turn a data source (Glue database, API, database, catalog), documentation, or a research topic…

aws-samples/sample-okf-llm-wiki · 102 tokens

report-authoring

The report-authoring methodology: required structure, language, evidence discipline, and figure selection. Read BEFORE your first createreport of a conversation - the tool validates shape; this is everything it cannot check.

aws-samples/sample-okf-llm-wiki · 44 tokens

okf-open-knowledge-format

Create, validate, and enrich Open Knowledge Format (OKF) bundles — the open spec for representing organizational knowledge as markdown files with YAML frontmatter. Use when the user mentions 'OKF', 'Open Knowledge Format', 'knowledge bundle', 'OKF bundle', 'create a knowledge base for agents', 'validate OKF', 'convert…

fabricioctelles/skills · 168 tokens

okfy

Use when a user wants an agent to use docs through OKFy, set up or verify an OKFy MCP docs source, convert docs websites or local Markdown into OKF bundles, generate activation proof, or answer from an existing OKFy bundle/workspace.

0dust/OKFy · 54 tokens

pdf

Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When GLM needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.

jjyaoao/HelloAgents · 51 tokens

xlsx

Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When GLM needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing…

jjyaoao/HelloAgents · 97 tokens