npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

guide-for-ai

v1.0.0

Published

Standardized Agent Brain (Rules, Skills, Workflows) for AI Coding Assistants. One installer to configure Cursor, VS Code, Claude, Codex, Gemini, and more.

Downloads

22

Readme

Agent Code & Workflows (Guide for AI)

This repository contains the standardized "Brain" for our AI Agents (Rules, Skills, Workflows). It is designed to be IDE-Agnostic and now ships with one unified installer entrypoint per platform: install.bat for Windows and install.sh for Unix-like shells.

✨ Features

  • Unified Rule Source: Edit rules in one place, sync everywhere.
  • Smart Path Patching: Automatically rewrites absolute paths in markdown files to match the target IDE's environment (e.g., changes C:\Users... to .cursor/workflows/...).
  • Multi-IDE Support:
    • Cursor: Installs as .cursorrules.
    • VS Code Copilot: Installs globally by default into ~/.copilot/instructions, ~/.copilot/skills, ~/.copilot/agents, and ~/.copilot/hooks, and patches chat.hookFilesLocations in VS Code user settings, or into .github/* with repo scope.
    • Codex: Installs into AGENTS.md, .agents/skills, and .codex/agents.
    • Gemini CLI: Installs into GEMINI.md and .gemini/commands or ~/.gemini/commands.
    • Claude / OpenCode / Antigravity: Installs skills and agents into their native paths, including .opencode/... project paths for OpenCode.

📂 Structure

  • core/GEMINI.md: Core Rules, Principles, and Checklists.
  • skills/: Specialized Agent Skills (e.g., brainstorm, research, shadow_clone).
  • workflows/: Standard Operating Procedures (e.g., general-workflow, testcase-workflow).
  • subagents/: Specialist personas that can be ported into Codex custom agents.
  • install.bat / install.sh: Unified installer entrypoints.
  • install_agent_env.py: The backend used by the installer entrypoints.
  • setup_agent_env.py: Classic IDE installer backend.
  • setup_codex_env.py: Codex installer backend.
  • setup_gemini_env.py: Gemini CLI installer backend.

📦 Install via npm

You can also install and run the installer globally via npm:

npm install -g guide-for-ai

Once installed, you can run the installer from anywhere:

guide-for-ai --target claude

Or use it directly without installation via npx:

npx guide-for-ai --target claude

🚀 How to Use (Install)

  1. Clone this repo to your local machine:

    git clone https://github.com/aeddk-bnh/guide-for-ai.git agent_code
    cd agent_code
  2. Run the unified installer:

    ./install.sh

    On Windows use:

    install.bat
  3. What the unified installer does by default:

    • installs classic assets for Cursor, VS Code Copilot, Claude, and Antigravity
    • installs full recursive skills and agents for Claude, OpenCode, and Antigravity
    • installs Codex assets into global user paths by default:
      • ~/.codex/AGENTS.md
      • ~/.agents/skills
      • ~/.codex/agents
    • installs Gemini CLI assets into global user paths by default:
      • ~/.gemini/GEMINI.md
      • ~/.gemini/commands
  4. Optional flags:

    ./install.sh --project-root /path/to/project
    ./install.sh --vscode-scope repo
    ./install.sh --vscode-settings /path/to/settings.json
    ./install.sh --opencode-scope repo
    ./install.sh --codex-scope repo
    ./install.sh --targets codex,claude
    ./install.sh --target codex
    ./install.sh --target gemini
    ./install.sh --target gemini --gemini-scope repo
    ./install.sh --target claude

    Use --project-root when this installer repository is separate from the project you want to configure. Windows:

    install.bat --project-root C:\path\to\project
    install.bat --vscode-scope repo
    install.bat --vscode-settings C:\path\to\settings.json
    install.bat --opencode-scope repo
    install.bat --codex-scope repo
    install.bat --targets codex,claude
    install.bat --target codex
    install.bat --target gemini
    install.bat --target gemini --gemini-scope repo
    install.bat --target claude
  5. Target selection with --targets:

    • supported values: cursor, vscode, claude, opencode, antigravity, codex, gemini
    • use all or omit the flag to install everything
    • --target codex is accepted as a shortcut for a single target
    • --target gemini is accepted as a shortcut for a single target
    • example:
    ./install.sh --targets codex
    ./install.sh --targets gemini
    ./install.sh --targets cursor,vscode
    ./install.sh --targets claude,opencode,antigravity
  6. Codex global vs local:

    • --target codex installs only Codex assets
    • default Codex install mode is global user scope
    • --codex-scope repo writes into the current repository:
      • AGENTS.md
      • .agents/skills
      • .codex/agents
    • --codex-scope user writes into your user profile instead:
      • ~/.codex/AGENTS.md
      • ~/.agents/skills
      • ~/.codex/agents
  7. OpenCode global vs local:

    • --target opencode installs only OpenCode assets
    • default OpenCode install mode is global user scope
    • --opencode-scope repo writes into the current repository:
      • AGENTS.md
      • .opencode/skills/<skill>/SKILL.md
      • .opencode/agents/*.md
    • --opencode-scope user writes into your user profile instead:
      • ~/.config/opencode/AGENTS.md
      • ~/.config/opencode/skills/<skill>/SKILL.md
      • ~/.config/opencode/agents/*.md
  8. Gemini CLI global vs local:

    • --target gemini installs only Gemini CLI assets
    • default Gemini CLI install mode is global user scope
    • --gemini-scope repo writes into the current repository:
      • GEMINI.md
      • .gemini/commands
    • --gemini-scope user writes into your user profile instead:
      • ~/.gemini/GEMINI.md
      • ~/.gemini/commands
  9. Reload your IDE / CLI session. Your AI Agent is now fully updated with the latest protocols!

Claude Code Notes

  • Claude installs now also configure a 3-line persistent session status bar at the bottom of the Claude Code terminal by default, as well as desktop notification hooks for when tasks complete or need input.
  • Running --target claude or using the installer with no target override (which includes claude) writes a Python-backed shell script to ~/.claude/statusline.sh and merges the statusLine configuration key into your ~/.claude/settings.json file.
  • It also writes ~/.claude/notify.sh and notify.ps1 and merges Notification and Stop hooks into ~/.claude/settings.json so you get a system notification (and sound) when Claude Code is done running or waiting for input.
  • The installed scripts deliberately use Python for JSON parsing to ensure they run correctly inside Windows Git Bash where jq is typically unavailable.
  • The installer writes the command paths as absolute script paths for reliable execution across shells.
  • Unrelated keys in your settings.json (such as model, effortLevel, permissions) are safely preserved, but existing JSONC comments in that file are normalized away when the installer rewrites it.

Codex Notes

  • Codex skills must live in a directory with SKILL.md, so the installer repackages the repository's single-file skills and workflows into Codex skill folders.
  • Codex custom agents use .toml files, so the installer converts the markdown files in subagents/ into .codex/agents/*.toml.
  • continuous-learning-v2 is still skipped by default for Codex because this repo does not yet provide a Codex-native hook/runtime port for it.

OpenCode Notes

  • OpenCode docs support both user-global config under ~/.config/opencode/... and project-local config under .opencode/....
  • OpenCode instruction files live in ~/.config/opencode/AGENTS.md for global scope and AGENTS.md at the project root for local scope.
  • OpenCode skills use the folder layout skills/<name>/SKILL.md, so the installer repackages top-level markdown skills into that shape.
  • OpenCode does not have a first-class workflows/ directory, so workflow markdown files are repackaged as skills too.
  • OpenCode agents are installed as markdown files in agents/.

VS Code Copilot Notes

  • Default VS Code install mode is global user scope.
  • --target vscode writes to:
    • ~/.copilot/instructions/guide-for-ai.instructions.md
    • ~/.copilot/skills/<name>/SKILL.md
    • ~/.copilot/agents/*.agent.md
    • ~/.copilot/hooks/continuous-learning-v2.json
    • chat.hookFilesLocations patched in VS Code user settings
  • --target vscode --vscode-scope repo writes to:
    • .github/copilot-instructions.md
    • .github/skills/<name>/SKILL.md
    • .github/agents/*.agent.md
    • .github/hooks/continuous-learning-v2.json
  • This installer repackages both top-level skills/*.md and workflows/*.md into VS Code skills.
  • This installer converts markdown files in subagents/ into VS Code custom agent files with the .agent.md extension.
  • For continuous-learning-v2, the installer also copies the full recursive skill directory and installs a VS Code hook file plus a continuous-learning-observer custom agent.
  • If you use VS Code Insiders or a non-default profile settings file, pass --vscode-settings so the installer patches the right settings.json.

Gemini CLI Notes

  • Gemini CLI docs use GEMINI.md files for hierarchical context and .gemini/commands/*.toml for reusable custom commands.
  • This installer maps skills, workflows, and subagents into namespaced Gemini CLI custom commands:
    • skills/* -> /skills:*
    • workflows/* -> /workflows:*
    • subagents/* -> /agents:*
  • continuous-learning-v2 is skipped because Gemini CLI docs expose custom commands and context files as the documented extension surface, not hook-based skills.