This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is the FlagOS Skills repository — a collection of reusable Agent Skills for FlagOS, a fully open-source AI system software stack for heterogeneous AI chips. Skills are folder-based capability packages that teach agents to reliably perform domain-specific tasks (model migration, deployment verification, complex workflows).
This repository follows the Agent Skills open standard, aligned with anthropics/skills, huggingface/skills, and openai/skills.
There is no build system or package manager. This is a pure content repository of Markdown-based skill definitions with supporting scripts and resources.
├── .claude-plugin/ # Claude Code plugin manifest
│ └── marketplace.json # Plugin bundles for Claude Code marketplace
├── .cursor-plugin/ # Cursor plugin manifest
│ ├── marketplace.json # Cursor marketplace listing
│ └── plugin.json # Plugin metadata
├── agents/ # Codex / Gemini CLI fallback
│ └── AGENTS.md # Skills index for agents without native support
├── assets/ # Repository-level static resources
├── contributing.md # Contribution guidelines
├── gemini-extension.json # Gemini CLI extension manifest
├── scripts/ # Repository-level utility scripts
│ └── validate_skills.py # Batch validate all skills
├── skills/ # Actual skill directories
│ ├── model-migrate-flagos/ # Example: model migration workflow
│ └── ...
├── spec/ # Agent Skills standard & local conventions
│ ├── README.md # Conventions and cross-reference to standards
│ └── agent-skills-spec.md # Redirect to agentskills.io/specification
└── template/ # Template for creating new skills
└── SKILL.md
Each skill is a directory under skills/ containing at minimum a SKILL.md file with:
- YAML frontmatter (required fields):
name: unique identifier, lowercase with hyphens (e.g.,model-migrate-flagos)description: one or two sentences explaining what the skill does and when to trigger it
- Optional frontmatter:
license,compatibility,metadata,allowed-tools,user-invokable,argument-hint - Markdown body: instructions for the agent — applicable scenarios, constraints, steps, and examples (at least 2–3)
- Optional subdirectories:
references/,scripts/,assets/,examples/
mkdir skills/<skill-name>
cp template/SKILL.md skills/<skill-name>/SKILL.md
# Edit the SKILL.md: update frontmatter and write agent instructions
# Validate: python scripts/validate_skills.pySee contributing.md for full guidelines.
- Directory names and
namefields: lowercase + hyphens (my-skill-name) - Max 64 characters for
name - Avoid vague names like
misc,tmp,v1 - FlagOS skills use
-flagossuffix:model-migrate-flagos,skill-creator-flagos
- Additional scripts/resources can be placed alongside
SKILL.mdbut must be documented in the markdown body - When skills conflict, the more specific/business-contextual skill takes priority
- See
spec/README.mdfor detailed conventions and the Agent Skills specification - Plugin bundles are defined in
.claude-plugin/marketplace.jsonand.cursor-plugin/ - Run
python scripts/validate_skills.pybefore submitting PRs