Logo Atlas Package Cloner

Atlas Package Cloner

Cộng đồng
planetis-m
atlas-package-cloner

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 that use Atlas instead of Nimble's global package path.

Tổng quan

Nhà phát hànhplanetis-m
Kho mãskills
Tên kỹ năngatlas-package-cloner
Sao
66
Bản fork
7
Tệp đi kèm
3
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 3 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được planetis-m công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Atlas Package Cloner trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/planetis-m/skills/tree/master/atlas-package-cloner
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/planetis-m/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/atlas-package-cloner .claude/skills/atlas-package-cloner
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Atlas Package Cloner trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Atlas Package Cloner ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Atlas Package Cloner với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Atlas Package Cloner

Rules

Project State

  • Treat either root atlas.config or <deps>/atlas.config as Atlas config. Atlas prefers root atlas.config when present, but atlas init creates deps/atlas.config by default.
  • Use atlas init from the project root to initialize Atlas state.
  • Use atlas init --deps=DIR or atlas --deps=DIR init when the project intentionally uses a dependency directory other than deps/.
  • After initialization, inspect <deps>/atlas.config; the default config records deps, nameOverrides, urlOverrides, pkgOverrides, plugins, resolver, and graph.
  • Do not assume atlas init creates nim.cfg. Atlas has code paths that patch nim.cfg when dependency operations need compiler paths.

Commands

  • Use atlas use <url|pkgname> to add a dependency.
  • Use atlas install when the Nimble file already contains requirements and Atlas should materialize the dependency graph.
  • Use atlas update [filter] to refresh dependency refs. Prefer a filter when only one dependency needs an update.
  • Use atlas link <path> only for local project linking tasks; be prepared to inspect generated link files and the linked project's dependency graph state.
  • Use atlas pin [atlas.lock] to pin current dependency checkouts.
  • Use atlas rep [atlas.lock] to replay a lockfile. atlas replay and atlas reproduce are aliases.
  • Use atlas --noexec rep [atlas.lock] when replay should avoid build actions that may run arbitrary code.
  • Use atlas env <nimversion> for project-local Nim environments, for example atlas env 1.6.12 or atlas env devel.

Package Names, URLs, And Indexes

  • Package names are resolved through Atlas' package lookup table, populated from packages.json, plus configured nameOverrides.
  • URL inputs are parsed as URLs and can be rewritten with urlOverrides.
  • Forge aliases are valid package references:
AliasExpands to
gh:user/repo or github:user/repohttps://github.com/user/repo
gl:user/repo or gitlab:user/repohttps://gitlab.com/user/repo
srht:user/repo or sourcehut:user/repohttps://git.sr.ht/~user/repo
cb:user/repo, cberg:user/repo, or codeberg:user/repohttps://codeberg.org/user/repo
  • Atlas downloads packages.json into the package cache by default, using packages.nim-lang.org with GitHub fallback.
  • Use --packagesRepo only when the workflow needs the full nim-lang/packages git repository behavior.
  • Use --forceGitToHttps when dependency URLs need git:// rewritten to https://.
  • If a package name or URL resolves incorrectly, fix nameOverrides, urlOverrides, or pkgOverrides in <deps>/atlas.config instead of editing generated paths by hand.

Generated nim.cfg Paths

  • Atlas' nim.cfg patcher uses this section shape:
text
############# begin Atlas config section ##########
--noNimblePath
--path:"deps/pkg"
############# end Atlas config section   ##########
  • Inspect the Atlas section in nim.cfg when imports fail.
  • Preserve user-written content outside the Atlas begin/end section.
  • Do not hand-edit generated --path entries as the first fix. Correct the dependency graph, package metadata, or config overrides instead.

Resolution And Overrides

  • Atlas supports MinVer, SemVer, and MaxVer resolver algorithms.
  • The generated default config uses SemVer.
  • Set resolver policy in <deps>/atlas.config or with --resolver=minver|semver|maxver when the task requires a specific policy.
  • Use nameOverrides for package-name-to-URL mapping.
  • Use urlOverrides for URL rewrite rules.
  • Use pkgOverrides when multiple URLs conflict for the same package shortname.
  • Keep overrides in Atlas config so future install, use, update, and rep commands remain repeatable.

Features

  • Atlas supports Nimble feature statements.
  • Pass feature flags explicitly with --feature=<feature>. Pass multiple --feature options when multiple features are required, or use --features=<list> for a comma- or space-separated list.
  • Use --allFeatures only when every declared feature should be enabled.
  • Use --keepFeatures or -k when the command should reuse feature defines from the current nim.cfg.
  • Feature request flags populate runtime context; they are not saved as fields in atlas.config.
  • In Nimble requirements, feature syntax has the shape require "somelib[testing]".

Plugins And Build Actions

  • Atlas plugins are *.nims files read from the project-relative directory configured by the plugins field.
  • Treat plugin execution as potentially arbitrary code execution because plugins can call external tools.
  • Inspect the configured plugin directory before enabling plugins or replaying dependencies with execution enabled.
  • Use --noexec when the task only needs dependency graph setup or lockfile replay and build actions should not run.

Virtual Nim Environments

  • atlas env <version> creates a project-local Nim environment under the dependency directory.
  • After a successful env setup, activate it explicitly:
    • Unix: source deps/nim-<version>/activate.sh
    • Windows: deps\nim-<version>\activate.bat
  • Do not assume the virtual Nim environment is active in later shell sessions.

Workflow

  1. Inspect the project root. Look for *.nimble, nim.cfg, atlas.lock, deps/, and any custom dependency directory.
  2. Locate Atlas config. Check root atlas.config first, then <deps>/atlas.config; if --deps or --confdir is in use, inspect that configured location.
  3. 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.
  4. Check policy before changing dependencies. Read resolver, overrides, plugins, feature needs, lockfile state, and existing Nimble requirements.
  5. Run the smallest Atlas operation. Use filters for targeted updates and --noexec when arbitrary build actions should not run.
  6. 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.
  7. 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

  • For a new project that adds a dependency, read references/start_project.md.
  • For custom dependency directories and overrides, read references/custom_deps_and_overrides.md.
  • For feature flags, lockfiles, and replay, read references/features_and_replay.md.

Common Mistakes

MistakeWhy it is wrong
Looking only for root atlas.configVerified atlas init writes deps/atlas.config by default even though root config is preferred when present.
Assuming atlas init creates nim.cfgVerified init creates Atlas config only; dependency operations are what drive path patching.
Editing generated nim.cfg paths firstAtlas can regenerate that section; fix config, package metadata, or dependency resolution instead.
Enabling plugins without inspectionPlugins are NimScript files and may execute external commands.

References

  • references/start_project.md — Atlas adoption: project setup, dependency addition, and compile flow.
  • references/custom_deps_and_overrides.md — Custom dependency directories and URL overrides.
  • references/features_and_replay.md — Optional features and lockfile replay commands.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Atlas Package Cloner làm được gì?

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 that use Atlas instead of Nimble's global package path.

Vì sao nên dùng Atlas Package Cloner trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Atlas Package Cloner là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Atlas Package Cloner trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/planetis-m/skills/tree/master/atlas-package-cloner. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Atlas Package Cloner?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Atlas Package Cloner với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Atlas Package Cloner với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Atlas Package Cloner có miễn phí không?

Kỹ năng này được planetis-m phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇