Index of every page on this site: llms.txt
All skills
jd-solanki avatar

/backport-skill

@372cfb1
by JD Solankijd-solanki/ai6 stars
2
Run it yourself

Carry an edit made to an installed skill back to the skills repo it came from, and commit there.

Use this Skill: https://skilld.dev/gh/jd-solanki/ai/backport-skill

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈28 tokens for metadata: the name and description. ≈508 when used: this file.

How this Skill uses context

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

This Skill turns off automatic use in Claude Code. Its description stays out of the automatic Skill list by default.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Backport Skill

A project installed a skill, then improved it in place. This carries that improvement home to the source repo on this machine.

Backport the change, never the file. The installed copy can be older than upstream, so copying it over would undo work already done there.

Process

1. Locate both copies

Ask for the skill name and the project when the user has not named them.

The project's skills-lock.json names the source under the skill's key:

"create-ticket": {
  "source": "jd-solanki/ai",
  "skillPath": "skills/engineering/create-ticket/SKILL.md"
}

source names the repo, skillPath names the file inside it. Ask the user where that repo is checked out when you cannot tell.

The installed copy lives in the project's agent skills directory, usually .agents/skills/<name>/. Reference files sit beside SKILL.md in both places, so read the whole folder on each side.

Done when: you hold two paths, and both exist.

2. Read the change out of the project's history

The install commit is the baseline. Everything after it is what you carry over.

git log -p -- .agents/skills/<name>/
git diff -- .agents/skills/<name>/

Say what the edit does in one sentence before you touch upstream. An edit you cannot describe is an edit you cannot backport.

Done when: you have the diff, and every hunk in it belongs to the user rather than to an earlier update from upstream.

3. Apply it upstream

diff -ru <upstream-folder> <installed-folder> shows the gap. Two sources feed it: the user's edit, and upstream commits the project never pulled. Land the first and leave the second alone.

Both sides changed the same lines? Stop and show the user both versions.

4. Commit in the source repo

Scope the message to the skill, for example feat(create-ticket): ....

Push is a separate ask.

5. Hand back the next step

The project still runs the old copy. Tell the user to run /manage-project-skills update <name> once the source repo is pushed.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    The skill is a development utility designed to backport local modifications to a source repository. It uses standard git commands to identify and apply changes. No security risks were identified.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: LOW · No issues

Signed by skilld at 372cfb1. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 2 months ago
argument-hint
[skill name] [project path]
disable-model-invocation
true

README badge

README badge for jd-solanki/ai/backport-skill