agentleFS
timmo001timmo001/skills/import-external-skill/SKILL.md

import-external-skill

Skill1 starsChanged 57 days agoApache-2.0View on GitHub

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.

The file

Show its rules and text

We split this skill into the rules it gives an agent

19 rules. About 0 are common, 7 are distinctive, and 12 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 12

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Import skills from external repositories into top-level <name>/ directories, preserving source provenance and keeping the result valid …

    line 10
  2. Very specific:

    Keep only Agent Skills frontmatter fields.

    line 22
  3. Very specific:

    Keep an intentional environment dependency when abstraction would make the instructions less truthful, then classify it in PORTABILITY.md.

    line 24
  4. Very specific:

    If the skill is useful as-is, add an imports.json entry with "distribution": "external", empty localEdits, and the reviewed SHA.

    line 25
  5. Distinctive:

    Use when the external skill overlaps with or extends an existing local skill.

    line 29
  6. Very specific:

    Add or update the imports.json entry with the origin, reviewed SHA, licence, and non-empty localEdits declarations.

    line 31
  7. Very specific:

    Run ./dist/skill-maintenance import <name> to generate the complete upstream comparison without replacing the tracked skill.

    line 32
  8. Distinctive:

    Wait for the user to decide which additions to make.

    line 35
  9. Very specific:

    Run ./dist/skill-maintenance check --skill <name> --diff-origin to confirm the adapted import still differs from its complete source.

    line 37
  10. Very specific:

    If the import adapts body content beyond frontmatter, add a # local-edits: block documenting the differences from upstream.

    line 54
  11. Very specific:

    Commit only when requested, following dot-git-commit.

    line 64
  12. Very specific:

    Before ranking external skills, understand what the user actually works on.

    line 68
  13. Distinctive:

    If recent activity does not clearly indicate the user's primary work, languages, or ownership roles, ask before ranking.

    line 76
  14. Distinctive:

    When given a repo URL without a specific skill path, review the full skill set:

    line 85
  15. Distinctive:

    Wait for the user to choose before importing or adapting anything.

    line 91
  16. Very specific:

    Do not modify existing skills during a direct import.

    line 95
  17. Distinctive:

    Do not import without diffing against the upstream original.

    line 96
  18. Distinctive:

    Do not commit without explicit user request.

    line 97
  19. Very specific:

    Ensure imported scripts are executable (chmod +x) after writing them to disk.

    line 98

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.

When to Use

  • Pulling in a specific skill from a public repo URL
  • Reviewing an external skill repository for useful additions
  • Adapting external skill content to improve existing local skills

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 disable-model-invocation and argument-hint.
  • 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 an imports.json entry with "distribution": "external", empty 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 imports.json 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 imports.json.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

---
name: skill-name
description: One or two sentences. First sentence says what. Second says when to use.
# origin: https://github.com/org/repo/tree/main/skills/skill-name
# upstream-sha: abc123...
---

Portable frontmatter fields are name, description, license, compatibility, metadata, and allowed-tools. Do not rely on one client's tolerance for unknown fields.

imports.json is the maintenance source for origin, reviewed SHA, licence, and local edits. The standalone CLI materialises those fields into SKILL.md so each skill remains self-describing.

If the import adapts body content beyond frontmatter, add a # local-edits: block documenting the differences from upstream. This prevents a later review from treating intentional adaptations as drift. List what differs, not a changelog:

# origin: https://github.com/org/repo/tree/main/skills/skill-name
# upstream-sha: abc123...
# local-edits:
#   - SKILL.md: condensed body, rewritten description
#   - SOME-FILE.md: framework-specific pattern replaced with local equivalent

Commit only when requested, following dot-git-commit. Keep upstream attribution in imports.json and the skill's source comments.

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.
  • Do not commit without explicit user request.
  • Ensure imported scripts are executable (chmod +x) after writing them to disk.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.