amp-review — a deterministic Amp review skill + invoker plugin A developer created amp-review, a deterministic skill review and invoker plugin for the Amp code editor. The plugin loads skills from multiple directories, parses SKILL.md files, and allows users to invoke skills via $skillname tokens in messages. It provides a deterministic way to manage and invoke skills within the Amp environment. | import type { | | AgentStartEvent, | | CommandSubscription, | | PluginAPI, | | PluginCommandContext, | | PluginEventContext, | | StatusItem, | | } from '@ampcode/plugin'; | | import { existsSync, readdirSync, readFileSync, statSync } from 'node:fs'; | | import { basename, join } from 'node:path'; | | | | type Skill = { | | name: string; | | description: string; | | path: string; | | body: string; | | }; | | | | const SKILL DIRS = | | '~/.agents/skills', | | '~/.config/amp/skills', | | '~/.config/agents/skills', | | '~/.codex/skills', | | '~/.claude/skills', | | '.agents/skills', | | '.claude/skills', | | ; | | | | const SKILL TOKEN = / ?:^|\s \$ a-zA-Z0-9 a-zA-Z0-9 - ?=\s|$ /g; | | | | const pendingSkillsByThread = new Map