agentleFS
jcottamjcottam/agent-resources/skills/engineering/promote-skill/SKILL.md

promote-skill

Skill25 starsChanged 6 months agoMITView on GitHub

Move a tested personal agent skill into a shared skills repository, check for overlap, normalize metadata, update the catalog and release files, validate the package, and publish it through a reviewable branch. Use when the user asks to promote, publish, share, or contribute a global skill.

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. About 0 are common, 13 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈13

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    Read the destination repository's AGENTS.md, CONTRIBUTING.md, and existing skill examples before making changes.

    line 29
  2. Distinctive:

    Search personal and repository skills by:

    line 34
  3. Distinctive:

    Start from an updated default branch and create a focused feature branch:

    line 53
  4. Distinctive:

    Do not work directly on the default branch unless the user explicitly asks.

    line 62
  5. Distinctive:

    Use repository metadata conventions.

    line 73
  6. Very specific:

    Keep SKILL.md focused and under 500 lines.

    line 86
  7. Distinctive:

    Update every catalog used by the destination repository:

    line 91
  8. Very specific:

    Add the skill path to .claude-plugin/plugin.json

    line 93
  9. Distinctive:

    Add the skill to the correct table in README.md

    line 94
  10. Very specific:

    Add a new entry to CHANGELOG.json

    line 95
  11. Distinctive:

    Use the plugin manifest version as the release source of truth:

    line 97
  12. Distinctive:

    Check all of the following:

    line 108
  13. Distinctive:

    Every listed skill path exists

    line 114
  14. Distinctive:

    No secrets or personal project data are included

    line 117
  15. Distinctive:

    Run repository checks when available.

    line 120
  16. Distinctive:

    Commit with a concise message, push the feature branch, and open a pull request that lists:

    line 124
  17. Distinctive:

    Do not delete the personal source skill until the repository change is merged and the installed repository version is confirmed.

    line 132

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Promote Skill

Promote a tested personal skill into a shared repository without creating duplicate skills or losing its working version.

Required inputs

Identify:

  • The source skill directory
  • The destination repository
  • The destination category
  • The repository's default branch and contribution rules

Personal skills commonly live in ~/.cursor/skills/ or ~/.agents/skills/. Read the destination repository's AGENTS.md, CONTRIBUTING.md, and existing skill examples before making changes.

1. Check for overlap

Search personal and repository skills by:

  • Skill name
  • Description and trigger phrases
  • Main workflow steps
  • Commands and safety rules

Classify similar skills as:

  • Duplicate: same purpose and workflow
  • Extension: one skill is a more complete version of another
  • Adjacent: related but has a different outcome

Recommend merging or replacing duplicates. Keep adjacent skills separate with clear trigger boundaries. Get the user's approval before changing the proposed publication set.

2. Prepare the repository

Start from an updated default branch and create a focused feature branch:

git fetch origin
git checkout <default-branch>
git pull --ff-only origin <default-branch>
git checkout -b feature/add-<skill-name>-skill

Do not work directly on the default branch unless the user explicitly asks.

3. Normalize the skill

Copy the complete skill directory, including needed scripts, references, and assets, into:

skills/<category>/<skill-name>/

Use repository metadata conventions. For Agent Resources:

---
name: skill-name
description: What the skill does and when it should trigger.
license: MIT
metadata:
  author: jcottam
  version: "1.0.0"
---

Keep SKILL.md focused and under 500 lines. Remove machine-specific paths, secrets, temporary files, and private project details.

4. Update release files

Update every catalog used by the destination repository:

  • Add the skill path to .claude-plugin/plugin.json
  • Add the skill to the correct table in README.md
  • Add a new entry to CHANGELOG.json

Use the plugin manifest version as the release source of truth:

  • Patch: fixes only
  • Minor: new skills or improvements
  • Major: breaking changes

The newest changelog version must match the plugin manifest version. Keep skill versions independent in each skill's metadata.

5. Validate

Check all of the following:

  • YAML frontmatter parses and contains required metadata
  • The directory name matches the skill name
  • plugin.json is valid JSON
  • The plugin skills array has no duplicate paths
  • Every listed skill path exists
  • The README link points to the new SKILL.md
  • Referenced scripts and files exist
  • No secrets or personal project data are included
  • The working tree contains only intended changes

Run repository checks when available. Review the final diff before publishing.

6. Publish

Commit with a concise message, push the feature branch, and open a pull request that lists:

  • Skills added or replaced
  • Overlap decisions
  • Version changes
  • Validation performed

Do not delete the personal source skill until the repository change is merged and the installed repository version is confirmed.

Final report

Report:

  • Published skill path
  • Replaced or retired skills
  • Manifest and changelog version
  • Validation results
  • Pull request URL
  • Any local cleanup still needed

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.