agentleFS
dzhngdzhng/jevgrep/.agents/skills/port-features/SKILL.md

port-features

Skill3.2k starsChanged 22 days agoMITView on GitHub

Port a feature from an existing repository by copying its actual code and editing the copy, so its bug fixes and behavioral nuances survive, then naturalizing it to this project's names and environment. Use when asked to copy or port an existing feature (especially an exact copy), when moving one into a different framework or host, or when a previous reimplementation missed upstream behavior.

2 other projects use a version of this.

Trending

Quiet since October.about the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 24 mentionsOct 2026: 21 mentionsNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the dzhng/jevgrep repository that our weekly crawl found. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about dzhng/jevgrep

The biggest 5 of 45 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 45

Talked about on YouTube, GitHub, the web, Bluesky and Hacker News (45 times).

On YouTube · 21

16 more on YouTube

On GitHub · 13

8 more on GitHub

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the history: Read path-scoped git log, following renames, for those files, and read the fixes.

    line 19
  2. Distinctive:

    Never call a rewrite a port.

    line 54

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

Port Features

Upstream code is the spec for the feature's behavior. Every guard, ordering, timeout, and odd branch in it may be a bug fix someone already paid for. A rewrite from your understanding of the feature drops the ones you didn't notice.

A port doesn't stop at the copy. The result must read as if this project wrote it: the feature is naturalized, in its names and in the environment it runs in.

  1. Start from the code. Get a local checkout of upstream with its history, pin the exact commit, and read the feature's real files, not a screenshot, summary, or fetched snippet. Follow imports and callers until you know which files make up the feature.
  2. Read the history. Read path-scoped git log, following renames, for those files, and read the fixes. For each piece that looks unnecessary, find out from history why it is there, and sort it: does it serve the feature, or the place upstream runs (its platforms, its install story, its users' machines)?
  3. Copy, then edit. Copy the exact files, with their tests, into the destination first. Keep upstream's structure and algorithms for the feature itself, even where you would have written them differently. Never write your own version in their place.
  4. Naturalize the names. Convert upstream's product name and naming scheme to this project's everywhere, except names an outside system still depends on. Use the destination's existing names for a concept that already has an owner here. Done when a case-insensitive search for upstream's names finds them only in the license notice and those outside contracts.
  5. Naturalize the environment. Map what upstream's host gave or lacked onto what this project's host gives. Logic that existed only because of upstream's environment is deleted, not ported: a fallback for a platform we never run on, provisioning for something our machines already have, a workaround for a constraint we don't share. Touchstone: code that downloads and installs a tool on first use, written for user desktops, ported onto machines whose image already ships that tool. When unsure whether the destination really has it, measure on the real host instead of keeping the machinery.
  6. Diff back. Diff the result against the pinned source and justify every change as a rename, a host binding, an environment deletion, or a deletion of upstream code the ported feature doesn't use. When a carried-over test fails, fix the adapter before touching the algorithm or the test.

Rules

  • Attribution lives in the repository's single third-party notices file, which carries the upstream license and lists the ported paths. No per-file license headers, no copied license files, no "ported from" comments.
  • Names and environment change; feature behavior does not. A difference in what the feature does for the user is a decision to raise, not a port edit.
  • Never call a rewrite a port.

Done when the destination is the pinned upstream feature, renamed and fitted to this project, plus a diff you can account for. The handover names the upstream commit and every deliberate difference.

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.