skl: Instructions file for Codex

AGENTS.md

skl AGENTS.md is an instructions file for Codex, OpenCode from alexastrum/skl. It costs 1,052 tokens per session, scanned B, original, MIT.

Repository instructions for skl, a tool that discovers coding-agent installations and connects shared skills to them. A monorepo is a repository containing multiple related parts, and these instructions describe its agent detection, symlinks, and builds.

In plain words
What is it for?
Use them when changing agent detection, global or local skill routing, platform path mappings, or multi-platform build and CI behavior.
Why use it?
They help maintain consistent skill installation across more than 40 supported agent environments without duplicating files.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; built for cline.

This is alexastrum/skl's own configuration. It tells Codex and OpenCode how to work on skl itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything skl configures โ†’

Reuse

Borrowing it

Nothing to install: this file belongs to alexastrum/skl. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/alexastrum/skl/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/alexastrum/skl

Made for: Codex, OpenCode.

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 skl AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/alexastrum/skl/agents-md/github.svg)](https://agentmods.dev/instructions/alexastrum/skl/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/alexastrum/skl/agents-md"><img src="https://agentmods.dev/badge/instructions/alexastrum/skl/agents-md/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 skl AGENTS.md

Your own site ยท 80ร—15
<a href="https://agentmods.dev/instructions/alexastrum/skl/agents-md"><img src="https://agentmods.dev/badge/instructions/alexastrum/skl/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,052 This file is loaded in full into every session.
When invoked 1,052 The same file โ€” it is already loaded in full.
Security scan B 1 finding. A grade says what 26 rules found in the file โ€” not that it is safe.
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.01052 $0.01052
Opus 5.5 $0.00421 $0.00421
Sonnet 5.5 $0.00210 $0.00210
Haiku 4.5 $0.00105 $0.00105

Measured 2mo ago against content hash d5ab0720807c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

skl AGENTS.md 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 2mo 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

We enforce strict feature parity (commands, flags, platforms) with the original TypeScript `skills` npm package. Antigravity maps to `~/.gemini/config` (original IDE) and `~/.gemini/antigravity` (2.0).
AGENTS.md ยท 79 lines

How it starts

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

๐Ÿค– Agent Configurations & Discovery

skl supports 40+ agent environments. It evaluates the local filesystem and environment variables to detect installed agents, routing and linking skills dynamically.

We enforce strict feature parity (commands, flags, platforms) with the original TypeScript skills npm package. Antigravity maps to ~/.gemini/config (original IDE) and ~/.gemini/antigravity (2.0).

IMPORTANT: ONLY WHEN EDITING README.md or human docs (eg --help) run /humanizer skill.

โšก Discovery Mechanics

skl detects agents via project folders (e.g., .cursor, .cline, .zed) or environment variables (XDG_CONFIG_HOME, APPDATA, etc.):

func detectInstalledAgents(home, configHome, cwd string) []AgentType {
	var installed []AgentType
	for agentType, config := range Agents {
		if config.DetectInstalled != nil && config.DetectInstalled(home, configHome, cwd) {
			installed = append(installed, agentType)
		}
	}
	return installed
}

Skills are mapped using relative symlinks to prevent duplication:

graph TD
    A[Add Skill command] --> B{Installation Scope?}
    
    B -->|Global: -g / --global| C1[Canonical Base: ~/.gemini/antigravity/skills]
    B -->|Local: Project Default| C2[Canonical Base: .agents/skills]
    
    C1 --> D1[Copy files to Canonical Global Dir]
    C2 --> D2[Copy files to Canonical Project Dir]
    
    D1 --> E1{Universal Agent?}
    D2 --> E2{Universal Agent?}
    
    E1 -->|Yes: antigravity| F1[No symlink needed]
    E1 -->|No: claude-code| F2[Create relative symlink in home dir]
    F2 --> G1[~/.claude/skills/my-skill -> ../.gemini/antigravity/skills/my-skill]
    
    E2 -->|Yes: antigravity| H1[No symlink needed]
    E2 -->|No: claude-code| H2[Create relative symlink in project dir]
    H2 --> I1[.claude/skills/my-skill -> ../../.agents/skills/my-skill]

๐Ÿ› ๏ธ Multi-Platform Compilation & Path Mappings

To ensure that skl can be deployed across Linux, Windows, and macOS architectures, the CLI tool resolves home directories and environments dynamically at runtime:

  • Linux: Crawls $XDG_CONFIG_HOME or falls back to standard UNIX directories (e.g., ~/.config/).
  • Windows: Dynamic resolution maps to %APPDATA% or %USERPROFILE% targets depending on user credentials.
  • macOS: Resolves configuration folders directly using standard ~/.gemini/config and ~/.gemini/antigravity structures.

Read the full file on GitHub ยท 79 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. 2mo ago First seen ยท 79 lines ยท 1,052 tokens per session scan B d5ab0720807c

Subscribe to this mod's changes

skl AGENTS.md is an instructions file published in the GitHub repository alexastrum/skl (10 stars, last pushed 4mo ago), licensed MIT. It adds 1,052 tokens to every session, about $0.0042 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

skl AGENTS.md compared with instructions from other repositories

skl AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
skl AGENTS.mdalexastrum/sklInstructions file104mo agoMITB1,052Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode