SuperAPIAI Directory

agents-env

github.com · AI agents

agents-env is an open-source tool for centrally managing AI agent skills (Skills) and instructions (Instructions). It stores skills centrally in a shared storage directory .agents/skills/, manages rules centrally in a single AGENTS.md file, and then, according to the registry configuration, connects these skills and rules to each AI agent's own directory by means of relative symbolic links and entry files. The tool supports both user-level and project-level scopes, and can avoid problems that arise during manual maintenance, such as copy drift, broken links, and backup files accidentally entering the version repository. It provides two scripts, setup-skills.sh and setup-instructions.sh, which are used respectively for fetching and linking skills and for generating instruction entry files, and supports operations such as installing as commands, updating, previewing, and cleaning up dangling links.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

agents-env is designed to solve the problem of repeatedly maintaining skills and rules across multiple AI agents. It stores skills centrally in a shared storage (defaulting to .agents/skills/), stores rules centrally in a single file AGENTS.md, and then declares, through the registry config/agents.json, the location and connection method by which each agent reads skills and rules; the scripts use this to automatically create relative symbolic links and entry files.

Main capabilities include:

  • Skill management: fetch skills from a source repository into the shared storage, support filtering by path and name, and support forced updates (replacing the entire skill and backing up the original skill to <store>.local.bak/<name>).
  • Link management: create relative symbolic links for each agent according to the registry, support two modes, link-each (link each skill individually) and link-dir (link the entire directory), and clean up links that point to the storage but are no longer valid.
  • Instruction management: generate for each agent a small entry file pointing to AGENTS.md, with content rendered from a template, supporting template variants for different agents; skip if identical content already exists, and back up and overwrite if the content differs.
  • Scope: supports user level (available to all projects) and project level (available only to the current repository); the storage location is determined by shared.skills_root in the registry.
  • Install as commands: the two scripts can be installed to ~/.local/bin, after which setup-skills and setup-instructions can be run directly, with support for --update to update and --dry-run to preview.
  • Clean up dangling links: the prune subcommand can remove dangling symbolic links under agent skill directories and the storage directory, deleting only links, not real files or directories.

Usage:

  • Run ./setup-skills.sh or ./setup-instructions.sh from a repository checkout, or run them via a curl pipe.
  • Common command examples:
    • Fetch and link skills: ./setup-skills.sh --repo <source repository URL> --scope user
    • Rebuild links only: ./setup-skills.sh --scope user
    • Generate instruction entries: ./setup-instructions.sh --scope user
    • Install as commands: curl ... | bash -s -- --install
    • Update commands: setup-skills --update
    • Preview: --dry-run

Applicable scenarios:

  • Multiple AI agents (such as Claude, Cursor, etc.) need to share the same set of skills and rules.
  • Team collaboration requires unified skill configuration within a project.
  • You want to avoid version inconsistencies and link errors caused by manually copying skills.

Limitations:

  • The registry must correctly configure each agent's read location and link mode.
  • The scripts are shell scripts and depend on Git and symbolic link support.
  • They do not check whether an agent is installed; you can configure first and install later.
  • The update command does not automatically add missing commands; it only updates already installed content.
  • The specific list of supported agents must be referenced from the registry and is not fully listed in the materials.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools