Skip to content

Format Adapters (agentskills-adapters)

Import common agent instruction formats as native agentskills-core Skill objects.

pip install agentskills-adapters

Supported sources include AGENTS.md, Copilot instructions, Cursor .mdc rules, and Claude-style folders containing SKILL.md. Use agentskills init --from to convert one source into an editable native skill.

agentskills_adapters

Adapters from common agent instruction formats to Agent Skills.

ImportedSkill dataclass

A native Skill plus the source and rendered SKILL.md text.

adapt_path

adapt_path(path: str | Path, *, name: str | None = None, description: str | None = None) -> ImportedSkill

Adapt one supported file or Claude-style skill directory.

Parameters:

Name Type Description Default
path str | Path

An AGENTS.md, Copilot instructions file, Cursor .mdc rule, or directory containing SKILL.md.

required
name str | None

Optional native skill name override.

None
description str | None

Optional explicit catalog description.

None

Returns:

Type Description
ImportedSkill

Imported skill handle, source path, and native SKILL.md text.

Raises:

Type Description
ValueError

If the source shape is unsupported or metadata is invalid.

discover_sources

discover_sources(root: str | Path) -> list[Path]

Find supported instruction sources below root without duplicates.

render_skill_md

render_skill_md(imported: ImportedSkill) -> str

Return the native SKILL.md text for an imported skill.