Atlas package cloner

From planetis-m/skills · View interactive version

Atlas package cloner is an AI agent skill from the GitHub repository planetis-m/skills. Use Atlas to initialize Nim projects, install or update Atlas-managed dependencies, configure dependency directories, inspect Atlas-generated nim.cfg paths, handle Atlas overrides, features, plugins, lockfiles, and local Nim environments. Use when setting up or repairing Nim dependency workflows tha

How to use this skill

Skill file

Atlas Package Cloner

Rules

Project State

atlas.config when present, but atlas init creates deps/atlas.config by default.

dependency directory other than deps/.

nameOverrides, urlOverrides, pkgOverrides, plugins, resolver, and graph.

dependency operations need compiler paths.

Commands

materialize the dependency graph.

needs an update.

link files and the linked project's dependency graph state.

arbitrary code.

or atlas env devel.

Package Names, URLs, And Indexes

| Alias | Expands to |

|-------|------------|

| gh:user/repo or github:user/repo | https://github.com/user/repo |

| gl:user/repo or gitlab:user/repo | https://gitlab.com/user/repo |

| srht:user/repo or sourcehut:user/repo | https://git.sr.ht/~user/repo |

| cb:user/repo, cberg:user/repo, or codeberg:user/repo | https://codeberg.org/user/repo |

with GitHub fallback.

pkgOverrides in <deps>/atlas.config instead of editing generated paths by hand.

Generated nim.cfg Paths

############# begin Atlas config section ##########
--noNimblePath
--path:"deps/pkg"
############# end Atlas config section   ##########

package metadata, or config overrides instead.

Resolution And Overrides

task requires a specific policy.

repeatable.

Features

multiple features are required, or use --features=<list> for a comma- or space-separated list.

Plugins And Build Actions

Virtual Nim Environments

Workflow

  1. Inspect the project root.

Look for *.nimble, nim.cfg, atlas.lock, deps/, and any custom dependency directory.

  1. Locate Atlas config.

Check root atlas.config first, then <deps>/atlas.config; if --deps or --confdir is in

use, inspect that configured location.

  1. Choose the Atlas command.

Use init, use, install, update, link, pin, rep, or env according to the task.

Run commands from the project root unless --project=path is intentional.

  1. Check policy before changing dependencies.

Read resolver, overrides, plugins, feature needs, lockfile state, and existing Nimble requirements.

  1. Run the smallest Atlas operation.

Use filters for targeted updates and --noexec when arbitrary build actions should not run.

  1. Verify generated state.

Inspect <deps>/atlas.config, project.nimble, nim.cfg, and atlas.lock as applicable.

Compile or test the smallest Nim target that imports the affected package.

  1. Preserve reproducibility.

If the dependency set must remain stable, run atlas pin after successful setup and keep the

lockfile with the project when that is the repository policy.

Task Examples

Common Mistakes

| Mistake | Why it is wrong |

|---------|-----------------|

| Looking only for root atlas.config | Verified atlas init writes deps/atlas.config by default even though root config is preferred when present. |

| Assuming atlas init creates nim.cfg | Verified init creates Atlas config only; dependency operations are what drive path patching. |

| Editing generated nim.cfg paths first | Atlas can regenerate that section; fix config, package metadata, or dependency resolution instead. |

| Enabling plugins without inspection | Plugins are NimScript files and may execute external commands. |

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.