# Aptly

> Aptly is an open-source agent skill for cloud and infrastructure. Guides an agent through maintaining sorah's aptly-managed APT repositories and their. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/sorah/config/tree/master/.claude/skills/aptly
- **Repository:** https://github.com/sorah/config
- **GitHub stars:** 31
- **License:** MIT
- **Skill name:** aptly
- **Collection:** https://github.com/sorah/config
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure)
- **Listing updated:** 2026-12-03

## About

This skill covers the day-to-day upkeep of two APT repositories, nkmideb and sorah-ruby, which share one local aptly database and are published to an S3 bucket. It documents the target table with endpoints, signing keys and publish flags, and lists the bin/sorah-aptly-* scripts for finding, adding, removing and republishing packages, along with dry-run guidance for anything destructive.

The skill sets out rules for the workflow: AWS credentials are needed only for S3 publish operations and are supplied through a wrapper command, signing relies on gpg-agent, and removing packages only drops references until a database cleanup runs. It also explains aptly package query syntax and common gotchas such as argument order for publish commands and single-process database locking.

It expects a shell environment with the repository's scripts on PATH, aptly, gpg and access to the S3 publish endpoints. Coverage is specific to this one maintainer's setup rather than general APT usage.

## When your agent uses it

> Maintain sorah's aptly-managed APT repositories (nkmideb and sorah-ruby, published to the sorah-pkg S3 bucket) with the bin/sorah-aptly-* scripts. Use whenever the user wants to add or upload .deb/.dsc packages to a distro, publish or re-publish (publish update), add support for a new Debian/Ubuntu release (e.g. forky, resolute), remove or yank a broken package version, find which distros carry a package, or anything mentioning aptly, nkmideb, sorah-ruby apt repo, rbpkg, ~/.aptly, or "publish to the apt repo", even if they don't say "aptly".

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/sorah/config/tree/HEAD/.claude/skills/aptly)
- [License: MIT](https://github.com/sorah/config/tree/HEAD/.claude/skills/aptly)

## Features

- **Repository target reference:** Lists both publish targets with their repos, S3 endpoints, signing keys and extra flags.
- **Package add and remove:** Adds .deb or .dsc files by distro suffix and removes matching packages from repos.
- **Package query guidance:** Explains aptly query syntax for matching by name, exact version, glob, source or architecture.
- **Publish and republish:** Runs publish updates for selected distros and handles new distro creation.
- **Safe dry-run workflow:** Previews aptly commands before any change that removes packages or touches many distros.
- **Credential and signing notes:** Covers when AWS credentials are needed and how gpg signing prompts are handled.

## Good for

- Upload a newly built .deb to the noble repository
- Find which distros carry a given package version
- Yank a broken package version from all repos
- Add support for a new Debian release such as forky
- Republish the nkmideb repository after a change

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/aptly` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/aptly &&
cp -R "$tmp/.claude/skills/aptly" ~/.claude/skills/aptly &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/aptly` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/aptly` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/aptly &&
cp -R "$tmp/.claude/skills/aptly" ~/.agents/skills/aptly &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/aptly` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/aptly` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/aptly &&
cp -R "$tmp/.claude/skills/aptly" ~/.cursor/skills/aptly &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/aptly` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/sorah/config.git --path .claude/skills/aptly
```

Or copy the folder to `~/.gemini/skills/aptly` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/aptly`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/aptly &&
cp -R "$tmp/.claude/skills/aptly" ~/.copilot/skills/aptly &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/aptly` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/sorah/config.git
```

Then copy `config/.claude/skills/aptly` into your agent's skills folder as `aptly`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Aptly trigger?

When the user wants to add or upload packages to a distro, publish or re-publish, add a new Debian or Ubuntu release, remove or yank a package, find which distros carry a package, or mentions aptly, nkmideb, sorah-ruby or the apt repo.

### Does Aptly need AWS credentials?

Only for S3 operations such as publish repo, publish update, publish drop, and add or remove with the publish flag. Local find, add and remove without publishing need no credentials.

### Does removing a package delete its files?

No. Removing drops references only; pool files stay until aptly db cleanup is run.

### Which clients does Aptly work with?

The skill is a plain SKILL.md folder, so it follows the shared agent skills format and is not tied to a specific client in its content.

### How do I install Aptly in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/aptly to use it in all your projects, or to .claude/skills/aptly in one project.

### Does Aptly run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Aptly?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Aptly?

The closest alternatives to Aptly are Ansible knowledge patch and Runpod companion clis.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Ansible knowledge patch](https://ai-powered.com/skills/ansible-knowledge-patch): Ansible knowledge patch is an open-source agent skill for cloud and infrastructure.
- [Runpod companion clis](https://ai-powered.com/skills/runpod-companion-clis): Runpod companion clis is an open-source agent skill for cloud and infrastructure.

---
Source: https://ai-powered.com/skills/aptly
