Absorb Upstream
Absorb an outside source (GitHub repository, web page, or post) into a tracked docs/upstream record: per idea, what it does, problem upstream/here, and…
от melodic-software★ 34 звезды на GitHub
Установить Absorb Upstream в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Absorb Upstream
Arguments. <source> [--scope <dir>] [--out <dir>]. e.g., /knowledge:absorb-upstream https://github.com/acme/skills --scope skills
Read one outside source idea by idea and write one tracked record of what this repository makes of each idea. The record is a conforming record of the upstream-drift convention: our decisions in our own words, pointers to where the upstream says what it says, and, for a pinned repository, its recheck trigger. It never holds upstream text.
Arguments
<source>: a GitHub repository URL, the path of a local checkout of a GitHub repository, or one web page or post. A repository URL is read through the GitHub API only when the repository is public; a private one is read from its local checkout. A repository on another git host has no row-link form in the convention: say so and stop. A book file, a course or a video is not this skill's source: name/knowledge:distill,/knowledge:course-digestor/knowledge:video-digestand stop.--scope <dir>: for a repository, the directory whose units the record maps (default: the repository root).--out <dir>: the record directory for this run alone: repository-relative, or an absolute directory in a private repository (see "Record location").
Record location
Resolve the directory once, before reading the source, and report the value and the layer that supplied it. Highest first:
--out <dir>(layerargument).upstream_records_dirin<home>/knowledge.yaml(layerteam), where<home>is the convention home the repository binds in the pointer region of itsAGENTS.mdorCLAUDE.md, elsedocs/conventions. Read it only when the root thatnode "${CLAUDE_PLUGIN_ROOT}/scripts/work-root.mjs"prints (the working directory's git top-level) is inside a git working tree and is neither$HOMEnor an ancestor of it; otherwise report the team layer skipped.docs/upstream(layerdefault).
The key contract, the valid values and the invalid-value rule are in
${CLAUDE_PLUGIN_ROOT}/reference/config.md; read it when a layer is
set. A value that is absolute, starts with ~, holds a .. segment, or resolves outside the
repository's working tree is invalid: name the layer, key and value, drop that layer, and continue
with the next one. One exception: an absolute --out is valid when
node "${CLAUDE_PLUGIN_ROOT}/scripts/repo-visibility.mjs" <dir> reads private, internal or
local for it; an absolute --out that reads public or unknown stays invalid. An absolute
--out moves only the record: step 3 still searches the repository this session runs in, not the
--out target.
The record file is <dir>/<owner>-<repo>.md for a repository (<owner>-<repo>-<scope>.md when
--scope is set, the scope's / written as -), or a slug of the page's host and path for a
page, lowercase letters, digits and hyphens only. Stop and name the existing record when that
file exists, or when any file in <dir> already holds a pin marker for the same <owner>/<repo>
and the same scope (both markers without an under clause, or both under the same directory):
refreshing a record is a re-audit of its rows, not a new record. A marker for the same repository
under another scope is a separate record and does not stop the run.
Private sources stay private
Before reading the source, check who can read each side with
node "${CLAUDE_PLUGIN_ROOT}/scripts/repo-visibility.mjs", which prints one JSON line whose
visibility is public, private, internal, local (no remote, so nothing is published) or
unknown (treated as public):
- the source:
--repo <owner>/<repo>for a repository URL. For a local checkout, take its pin first (git -C <checkout> rev-parse HEAD, step 1) and pass<checkout> --commit <pin>: it readspubliconly when a remote-tracking ref of a remote whose fetch URLs all readpublicholds the pin, so a commit never pushed to a public remote readsprivate. A page needs no check: it is read with--public-only. - the destination: the record directory. One that does not exist yet is judged by the repository
it would land in. A directory reads
privateorinternalonly when every fetch and push URL of every remote reads so; one public URL makes itpublic.
Only a source that reads public is public. unknown proves nothing, and local (a checkout
with no remote) has unknown provenance, so a private, internal, unknown or local source is
handled as private.
| Source | Destination | Action |
|---|---|---|
public (a local checkout: its pin is on a public remote) |
any | Proceed. |
private (a local checkout with a public remote included, when its pin is on none), internal, unknown or local |
private, internal or local |
Proceed. |
private, internal, unknown or local |
public or unknown |
Write nothing in this repository. Tell the person the full reco |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- evals/evals.json
- templates/.markdownlint-cli2.jsonc
- templates/record.md
FAQ
Что делает скилл Absorb Upstream?
Absorb an outside source (GitHub repository, web page, or post) into a tracked docs/upstream record: per idea, what it does, problem upstream/here, and take/adapt/already-have/reject disposition. Use when: 'absorb upstream repo', 'what to borrow from this post', 'write a docs/upstream record'. Not for docs pages: /knowledge:docpage-digest.
Как установить скилл Absorb Upstream?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Absorb Upstream запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…