mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 10:18:37 +02:00
docs(agents): convert install shell snippets to markdown refs
This commit is contained in:
@@ -1,59 +1,24 @@
|
|||||||
# agents
|
# agents
|
||||||
|
|
||||||
This directory is a reusable home for agent-related files that can be shared across projects.
|
Reusable, symlink-first agent resources shared across projects.
|
||||||
|
|
||||||
The intended use is to symlink or copy files from here into different agent config directories,
|
This directory is the canonical source for baseline agent rules and supporting command references.
|
||||||
skill folders, or other agent runtimes. Treat it as a portable source of truth for important agent
|
The primary workflow is to symlink files from here into each agent runtime/config location.
|
||||||
behavior and supporting materials.
|
|
||||||
|
|
||||||
It is intended to be a personal collection similar in spirit to
|
## What this directory contains
|
||||||
[`github/awesome-copilot`](https://github.com/github/awesome-copilot), but maintained for my own
|
|
||||||
agents, workflows, and preferences.
|
|
||||||
|
|
||||||
## Use Cases
|
- `AGENTS.md`: global baseline rules for coding agents.
|
||||||
|
- `install-rules.py`: installs the baseline by creating symlinks in supported agent config dirs.
|
||||||
|
- `install-cli.md`: curated CLI install/update command snippets.
|
||||||
|
- `install-skills.md`: curated `npx skills` command snippets.
|
||||||
|
|
||||||
- shared agent rules
|
## Core workflow
|
||||||
- reusable prompts
|
|
||||||
- skill definitions
|
|
||||||
- agent templates
|
|
||||||
- instruction packs
|
|
||||||
- workflow notes
|
|
||||||
- setup helpers
|
|
||||||
- environment preparation docs
|
|
||||||
|
|
||||||
## Current Files
|
1. Maintain shared rules in `agents/AGENTS.md`.
|
||||||
|
2. Run `install-rules.py` to refresh symlinks in local agent homes.
|
||||||
|
3. Use `install-cli.md` and `install-skills.md` as reference snippets when needed.
|
||||||
|
|
||||||
- `AGENTS.md`: baseline rules and operating constraints for agents.
|
## Install baseline rules (symlink-based)
|
||||||
- `install-rules.py`: symlinks `AGENTS.md` into supported agent config directories.
|
|
||||||
- `install-cli.sh`: command snippets for installing/updating common agent CLIs.
|
|
||||||
- `install-skills.sh`: command snippets for listing/installing/updating shared skills.
|
|
||||||
|
|
||||||
## Guidelines
|
|
||||||
|
|
||||||
- Keep files portable across repositories when possible.
|
|
||||||
- Prefer plain text and small reviewable files.
|
|
||||||
- Document assumptions that downstream agent setups need to know.
|
|
||||||
- Keep secrets and machine-specific credentials out of this directory.
|
|
||||||
- Prefer reusable materials that can be copied, symlinked, or adapted by multiple agents.
|
|
||||||
|
|
||||||
## Distribution
|
|
||||||
|
|
||||||
You can:
|
|
||||||
|
|
||||||
- symlink files from this directory into an agent's config or skills folder
|
|
||||||
- copy selected files into another agent environment
|
|
||||||
- treat this directory as the canonical source and sync outward from it
|
|
||||||
|
|
||||||
## Utilities
|
|
||||||
|
|
||||||
### Install shared baseline rules
|
|
||||||
|
|
||||||
`install-rules.py` currently targets:
|
|
||||||
|
|
||||||
- Codex: `AGENTS.md` -> `${CODEX_HOME:-~/.codex}/AGENTS.md`
|
|
||||||
- OpenCode: `AGENTS.md` -> `${XDG_CONFIG_HOME:-~/.config}/opencode/AGENTS.md`
|
|
||||||
- Claude Code: `AGENTS.md` -> `~/.claude/CLAUDE.md`
|
|
||||||
- Gemini: `AGENTS.md` -> `~/.gemini/GEMINI.md`
|
|
||||||
|
|
||||||
Run:
|
Run:
|
||||||
|
|
||||||
@@ -61,29 +26,33 @@ Run:
|
|||||||
python3 agents/install-rules.py
|
python3 agents/install-rules.py
|
||||||
```
|
```
|
||||||
|
|
||||||
Notes:
|
Current targets:
|
||||||
|
|
||||||
- each target is handled independently
|
- Codex: `AGENTS.md` -> `${CODEX_HOME:-~/.codex}/AGENTS.md`
|
||||||
- missing target directories are skipped
|
- OpenCode: `AGENTS.md` -> `${XDG_CONFIG_HOME:-~/.config}/opencode/AGENTS.md`
|
||||||
- existing target file/symlink is replaced with a symlink to this repo copy
|
- Claude Code: `AGENTS.md` -> `~/.claude/CLAUDE.md`
|
||||||
|
- Gemini: `AGENTS.md` -> `~/.gemini/GEMINI.md`
|
||||||
|
|
||||||
### Install or update agent CLIs
|
Behavior:
|
||||||
|
|
||||||
`install-cli.sh` is a command list (review before running):
|
- Each target is handled independently.
|
||||||
|
- Missing destination directories are skipped.
|
||||||
|
- Existing destination file/symlink is replaced with a symlink to this repo source file.
|
||||||
|
|
||||||
```bash
|
## About `install-cli.md` and `install-skills.md`
|
||||||
bash agents/install-cli.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
### Install or update shared skills
|
Use them as snippet libraries:
|
||||||
|
|
||||||
`install-skills.sh` is a command list for `npx skills` workflows:
|
- review the commands
|
||||||
|
- select what you need
|
||||||
|
- run selected commands manually
|
||||||
|
|
||||||
```bash
|
## Conventions
|
||||||
bash agents/install-skills.sh
|
|
||||||
```
|
- Keep files portable and reviewable.
|
||||||
|
- Keep secrets and machine-specific credentials out of this directory.
|
||||||
|
- Keep guidance generic enough to reuse across multiple agent environments.
|
||||||
|
|
||||||
## Goal
|
## Goal
|
||||||
|
|
||||||
Build a personal, reusable library of agent resources that is easy to share across environments and
|
Maintain one reusable source of truth for agent setup that stays simple to sync and easy to evolve.
|
||||||
easy to extend over time.
|
|
||||||
|
|||||||
33
agents/install-cli.md
Normal file
33
agents/install-cli.md
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
# Agent CLI Commands
|
||||||
|
|
||||||
|
Reference commands for installing and updating agent CLIs. Run only the commands you need.
|
||||||
|
|
||||||
|
## Install CLIs
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# codex
|
||||||
|
npm i -g @openai/codex
|
||||||
|
|
||||||
|
# opencode
|
||||||
|
npm install -g opencode-ai
|
||||||
|
|
||||||
|
# kimi-cli
|
||||||
|
uv tool install --python 3.13 kimi-cli
|
||||||
|
uv tool upgrade kimi-cli --no-cache
|
||||||
|
|
||||||
|
# gemini-cli
|
||||||
|
npm install -g @google/gemini-cli
|
||||||
|
```
|
||||||
|
|
||||||
|
## Optional tooling
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# context7: up-to-date docs and code examples for LLMs and agents
|
||||||
|
npx ctx7 setup
|
||||||
|
```
|
||||||
|
|
||||||
|
## Update npm-installed agent tools
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm update -g
|
||||||
|
```
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
# codex
|
|
||||||
npm i -g @openai/codex
|
|
||||||
|
|
||||||
# opencode
|
|
||||||
npm install -g opencode-ai
|
|
||||||
|
|
||||||
# kimi-cli
|
|
||||||
uv tool install --python 3.13 kimi-cli
|
|
||||||
uv tool upgrade kimi-cli --no-cache
|
|
||||||
|
|
||||||
# gemini-cli
|
|
||||||
npm install -g @google/gemini-cli
|
|
||||||
|
|
||||||
# context7 - up-to-date docs and code examples for for LLMs & agents
|
|
||||||
npx ctx7 setup
|
|
||||||
|
|
||||||
# update all agents installed via npm
|
|
||||||
npm update -g
|
|
||||||
63
agents/install-skills.md
Normal file
63
agents/install-skills.md
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
# Agent Skills Commands
|
||||||
|
|
||||||
|
Reference commands for listing, installing, and updating skills via `npx skills`. Run only the
|
||||||
|
commands you need.
|
||||||
|
|
||||||
|
## Inspect and update installed skills
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# list all installed skills (project + global)
|
||||||
|
npx skills list
|
||||||
|
|
||||||
|
# list only global skills
|
||||||
|
npx skills ls -g
|
||||||
|
|
||||||
|
# check for updates
|
||||||
|
npx skills check
|
||||||
|
|
||||||
|
# update all installed skills
|
||||||
|
npx skills update
|
||||||
|
|
||||||
|
# remove from global scope
|
||||||
|
npx skills remove --global web-design-guidelines
|
||||||
|
```
|
||||||
|
|
||||||
|
## Discover skills from repositories
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# list skills in a repository
|
||||||
|
npx skills add vercel-labs/agent-skills --list
|
||||||
|
```
|
||||||
|
|
||||||
|
## Install commonly used skill packs
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# superpowers
|
||||||
|
npx skills add -g obra/superpowers --agent '*' --skill '*'
|
||||||
|
|
||||||
|
# github skills
|
||||||
|
npx skills add -g github/awesome-copilot --agent '*' --skill 'git-commit'
|
||||||
|
|
||||||
|
# find skills
|
||||||
|
npx skills add -g vercel-labs/skills --agent '*'
|
||||||
|
|
||||||
|
# skill-creator
|
||||||
|
npx skills add -g anthropics/skills --agent '*' --skill 'skill-creator'
|
||||||
|
```
|
||||||
|
|
||||||
|
## Optional packs
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npx skills add -g pbakaus/impeccable --agent '*' --skill '*'
|
||||||
|
|
||||||
|
npx skills add -g coreyhaines31/marketingskills --agent '*' --skill '*'
|
||||||
|
|
||||||
|
npx skills add -g phuryn/pm-skills --agent '*' --skill '*'
|
||||||
|
```
|
||||||
|
|
||||||
|
References:
|
||||||
|
|
||||||
|
- https://github.com/vercel-labs/skills
|
||||||
|
- https://github.com/pbakaus/impeccable
|
||||||
|
- https://github.com/coreyhaines31/marketingskills
|
||||||
|
- https://github.com/phuryn/pm-skills
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
# https://github.com/vercel-labs/skills
|
|
||||||
|
|
||||||
# List all installed skills (project and global)
|
|
||||||
npx skills list
|
|
||||||
|
|
||||||
# List only global skills
|
|
||||||
npx skills ls -g
|
|
||||||
|
|
||||||
# Check if any installed skills have updates
|
|
||||||
npx skills check
|
|
||||||
|
|
||||||
# Update all skills to latest versions
|
|
||||||
npx skills update
|
|
||||||
|
|
||||||
# Remove from global scope
|
|
||||||
npx skills remove --global web-design-guidelines
|
|
||||||
|
|
||||||
# =========================================
|
|
||||||
|
|
||||||
# List skills in a repository
|
|
||||||
npx skills add vercel-labs/agent-skills --list
|
|
||||||
|
|
||||||
# superpowers
|
|
||||||
npx skills add -g obra/superpowers --agent '*' --skill '*'
|
|
||||||
# github skills
|
|
||||||
npx skills add -g github/awesome-copilot --agent '*' --skill 'git-commit'
|
|
||||||
# find skills
|
|
||||||
npx skills add -g vercel-labs/skills --agent '*'
|
|
||||||
# skill-creator
|
|
||||||
npx skills add -g anthropics/skills --agent '*' --skill 'skill-creator'
|
|
||||||
|
|
||||||
# frontend
|
|
||||||
# https://github.com/pbakaus/impeccable
|
|
||||||
# npx skills add -g pbakaus/impeccable --agent '*' --skill '*'
|
|
||||||
|
|
||||||
# https://github.com/coreyhaines31/marketingskills
|
|
||||||
# npx skills add -g coreyhaines31/marketingskills --agent '*' --skill '*'
|
|
||||||
|
|
||||||
# https://github.com/phuryn/pm-skills
|
|
||||||
# npx skills add -g phuryn/pm-skills --agent '*' --skill '*'
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user