Skill-Transfer AGENTS.md

Repository instructions for Skill Transfer, a TypeScript command-line tool that shares AI coding skills, workflows, and settings across environments. They describe its Google Antigravity adapter, commands, folders, and current testing status.

In plain words
What is it for?
Use them when installing dependencies, building the CLI, running its terminal interface, adding adapters, or checking the project with TypeScript.
Why use it?
They give coding agents the project background and the rules needed to build, run, and extend the tool consistently.

Instructions file for CodexOpenCode

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 instructions/gnonymous/skill-transfer/agents-md
Clone the repo
git clone --depth 1 https://github.com/Gnonymous/Skill-Transfer

Made for: Codex, OpenCode.

Per session 1,058 This file is loaded in full into every session.
When invoked 1,058 The same file — it is already loaded in full.
Security scan A 0 findings. 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.01058 $0.01058
Opus 5 $0.00529 $0.00529
Sonnet 5 $0.00212 $0.00212
Haiku 4.5 $0.00106 $0.00106

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

Security

Grade A, and why

Skill-Transfer AGENTS.md 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 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.

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.

AGENTS.md · 85 lines

How it starts

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

AGENTS.md

This file provides guidance to ALL coding agent when working with code in this repository.

📖 项目简介

Skill Transfer CLI (st) 是一款 TypeScript 编写的命令行工具,用于跨环境、跨工具管理和共享 AI 编码技能(工作流、提示词、配置)。 核心目标是实现"一次编写,到处运行"的 AI 技能分发。

目前主要支持 Google Antigravity (Gemini) 适配器,支持 Global(全局用户配置)和 Local(项目级配置)两种导入模式。

🛠️ 常用开发命令

构建与运行

  • 安装依赖: npm install
  • 构建项目: npm run build (编译 TS -> JS)
  • 开发模式: npm run dev (监听文件变化并自动编译)
  • 运行 CLI: node dist/bin/skill-transfer.js --help
  • 运行 TUI: node dist/bin/skill-transfer.js interactive

测试与检查

  • 测试: 目前暂无自动化测试 (npm test 仅仅是占位符)。
  • Lint: 依赖 tsc 编译检查,尚未集成 ESLint。

🏗️ 代码架构

本项目遵循 模块化 (Modular)适配器 (Adapter) 设计模式。

核心目录 (src/)

  • adapters/: 扩展核心
    • 定义了 Adapter 接口 (见 core/types.ts)。
    • 目前实现:AntigravityAdapter.ts
    • 扩展指南: 若要支持 Claude Code 或 Cursor,请在此目录下新建 ClaudeAdapter.ts 等,并实现 import, listInstalled 等方法。
  • commands/: CLI 命令层
    • 使用 commander 定义 import 等指令。
    • 负责解析参数并调用相应的 Adapter。
  • interactive/: TUI 交互层
    • 使用 @inquirer/prompts 构建终端菜单。
    • 处理用户选择技能、目标环境的逻辑。
  • core/: 通用逻辑
    • 包含类型定义 (types.ts) 和通用工具函数。

关键概念

  1. Skill (技能) vs Workflow (工作流):
    • Workflow: 安装时 SKILL.md 会被重命名为 <文件夹名>.md,文件平铺到目标目录。
      • Global: ~/.gemini/antigravity/global_workflows/
      • Local: .agent/workflows/
    • Skill: 安装时整个文件夹原样复制,不重命名
      • Global: ~/.gemini/antigravity/global_skills/
      • Local: .agent/skills/
  2. ResourceType: 在导入时用户需选择资源类型 (workflow | skill)。
  3. Transformation: Adapter 根据 ResourceType 执行不同的安装逻辑。

TUI 交互流程

  1. 选择工具 → 用户先选择目标适配器(如 Antigravity)。
  2. 扫描技能 → 根据所选工具扫描本地技能库,并显示 [W|S] 状态:
    • W 绿色 = Workflow 已安装
    • S 绿色 = Skill 已安装
  3. 选择技能 → 用户勾选要安装的技能。
  4. 选择资源类型 → 用户选择按 Workflow 还是 Skill 模式安装。
  5. 选择安装模式 → Global 或 Local。

📝 必须遵守的规则

Read the full file on GitHub · 85 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 · 85 lines · 1,058 tokens per session scan A fe02af212ce8

Subscribe to this mod's changes

Skill-Transfer AGENTS.md is an instructions file published in the GitHub repository Gnonymous/Skill-Transfer (5 stars, last pushed 7mo ago), licensed ISC. It adds 1,058 tokens to every session, about $0.0053 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-31.

Related

Other instructions, from other repositories

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

buildNext

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

next.js AGENTS.md

Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

spec-kit AGENTS.md

Instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,040 tokens

langchain AGENTS.md

Instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,345 tokens