Import skills from external repositories into this Agent Skills repository. Use when pulling in a public skill, reviewing an external skill set, or adapting upstream content into an existing skill.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Import External Skill?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/timmo001-import-external-skill)
---
name: import-external-skill
license: Apache-2.0
compatibility: Requires this Agent Skills repository's skills.yml and built skill-maintenance CLI, Git, mise, the Skills CLI, authenticated GitHub CLI, and network access to upstream repositories. Commits use dot git commit.
description: Import skills from external repositories into this Agent Skills repository. Use when pulling in a public skill, reviewing an external skill set, or adapting upstream content into an existing skill.
---
# Import External Skill
Import skills from external repositories into top-level `<name>/` directories, preserving source provenance and keeping the result valid across Agent Skills clients.
## Agent-Specific Repos
External skill repos are often written for a specific agent framework (e.g. Claude Code, Codex, Cursor). This repository distributes an import only when it needs substantive local adaptation:
- Keep only Agent Skills frontmatter fields. `allowed-tools` is portable; remove framework-specific fields such as `argument-hint`. Keep `disable-model-invocation` only when hiding the skill from automatic selection is deliberate, and record that in its `localEdits`.
- Replace framework-specific tool names, hook mechanisms, or subagent patterns with capability-based instructions when that preserves the workflow.
- Keep an intentional environment dependency when abstraction would make the instructions less truthful, then classify it in `PORTABILITY.md`.
- If the skill is useful as-is, add a `skills.yml` entry with `distribution: external`, `localEdits: []`, and the reviewed SHA. Do not commit its content; `./dist/skill-maintenance install` installs it at the pinned SHA.
## Adaptation
Use when the external skill overlaps with or extends an existing local skill.
1. Add or update the skill's `skills.yml` entry with the origin, reviewed SHA, licence, and non-empty `localEdits` declarations.
2. Run `./dist/skill-maintenance import <name>` to generate the complete upstream comparison without replacing the tracked skill.
3. Compare against the existing local skill, identifying gaps and conflicts.
4. Present the comparison: what the external skill adds, what overlaps, and what conflicts with existing rules.
5. Wait for the user to decide which additions to make.
6. Apply the agreed changes to the existing local skill, update the entry's `upstreamSha`, then run `./dist/skill-maintenance import <name> --metadata-only`.
7. Run `./dist/skill-maintenance check --skill <name> --diff-origin` to confirm the adapted import still differs from its complete source.
## Frontmatter Format
```yaml
---
name: skill-name
description: One or two sentences. First sentence says what. Second says when to use.
license: MIT
---
```
Portable frontmatter fields are `name`, `description`, `license`, `compatibility`, `metadata`, and `allowed-tools`, plus a deliberate, recorded `disable-model-invocation`. Do not rely on one client's tolerance for unknown fields, and add no provenance comments: `validate` rejects them.
## Import Record
`skills.yml` is the single maintenance record for an import; the repository AGENTS.md covers its canonical form and `--metadata-only`.
When the import adapts content, list what differs from upstream in `localEdits`. This prevents a later review from treating intentional adaptations as drift. List what differs, not a changelog. An entry describes `SKILL.md` unless it names another file, so prefix only edits to references, scripts or other files:
```yaml
skills:
skill-name:
import:
upstreamSha: 0123456789abcdef0123456789abcdef01234567
origin: "https://github.com/org/repo/tree/main/skills/skill-name"
license: "MIT"
localEdits:
- "condensed body, rewritten description"
- "references/guide.md: framework-specific pattern replaced with local equivalent"
```
Commit only when requested, following `dot-git-commit`. Keep upstream attribution in `skills.yml` and the skill's licence material.
## User Context
Before ranking external skills, understand what the user actually works on. Check their GitHub profile for recently pushed repos (`gh api users/{user}/repos --paginate --jq ...`) to build a picture of:
- **Languages and frameworks** used across active repos
- **Ownership roles** -- sole owner vs. contributor/maintainer on a shared project
- **Project types** -- libraries, applications, tooling, config repos
Skills that assume full control of a project's labelling or team process are only relevant for repos where the user has full ownership, not for shared projects where they are one maintainer among many.
If recent activity does not clearly indicate the user's primary work, languages, or ownership roles, ask before ranking.
## Standing Preferences
- Skip or flag a skill whose core workflow is TDD, red-green-refactor, or test-first. If an otherwise useful skill includes TDD content, note the conflict and offer to adapt it with those parts removed.
- The user writes their own issues. Skip skills that automate issue creation, break work down into issues, or turn PRDs into tickets.
## Review Mode
When given a repo URL without a specific skill path, review the full skill set:
1. List all available skills in the repo.
2. Filter out domain-specific skills irrelevant to the user context above, and skills ruled out by the standing preferences.
3. Compare remaining skills against the existing local skill library for overlaps.
4. Present a recommendation table: pull in, adapt into existing, or skip -- with reasoning.
5. Wait for the user to choose before importing or adapting anything.
## Safety
- Do not modify existing skills during a direct import.
- Do not import without diffing against the upstream original.
- Ensure imported scripts are executable (`chmod +x`) after writing them to disk.