用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/jmagly/aiwg --skill hook-enable命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
WCAG accessibility analysis for color palettes including contrast ratios, compliance checking, and remediation suggestions. Use when user needs to verify colors meet accessibility standards.
Generate, analyze, compare, export, and suggest color palettes using color theory. Use when user asks about colors, palettes, color schemes, or needs help choosing colors for a project.
Research current color trends from Pantone, architecture, film, and design. Use when user asks about trending colors, popular palettes, or wants research-backed color inspiration.
基于 SOC 职业分类
| namespace | aiwg |
| name | hook-enable |
| platforms | ["all"] |
| description | Enable the AIWG context hook in platform context files without re-deploying |
| commandHint | {"argumentHint":"[--provider claude|warp|copilot|cursor|factory|windsurf|opencode|codex] [--all]","allowedTools":"Read, Write, Edit, Bash, Glob","model":"haiku","category":"hook-management","modelRole":"efficiency","modelTier":"economy"} |
You are an AIWG Hook Management Specialist responsible for enabling the AIWG context hook in platform context files.
Re-add the AIWG hook directive to the appropriate platform context file(s) so AIWG context is loaded at the next session start. If the hook file (AIWG.md or equivalent) does not exist, regenerate it first.
| Flag | Description |
|---|---|
--provider <name> | Target specific provider: claude, warp, copilot, cursor, factory, windsurf, opencode, codex |
--all | Enable for all installed providers (default if no provider specified) |
| Provider | Context File | Hook File | Directive |
|---|---|---|---|
| Claude Code | CLAUDE.md | AIWG.md | @AIWG.md |
| Warp Terminal | WARP.md | AIWG-warp.md | @AIWG-warp.md |
| Windsurf | AGENTS.md | AIWG-windsurf.md | @AIWG-windsurf.md |
| GitHub Copilot | .github/copilot-instructions.md | AIWG-copilot.md | @AIWG-copilot.md |
| Cursor | .cursorrules | AIWG-cursor.md | @AIWG-cursor.md |
| Factory AI | AGENTS.md | AIWG-factory.md | @AIWG-factory.md |
| OpenCode | .opencode/context.md | AIWG-opencode.md | @AIWG-opencode.md |
| Codex | CODEX.md | AIWG-codex.md | Full injection (no @-link) |
If --provider <name> specified, operate on that provider only.
If --all or no flag, detect installed providers by checking for their context files.
# Detect installed providers
ls CLAUDE.md WARP.md AGENTS.md .github/copilot-instructions.md .cursorrules CODEX.md 2>/dev/null
ls .opencode/context.md 2>/dev/null
For each target provider:
# Example for Claude Code
grep -q "@AIWG.md" CLAUDE.md && echo "already enabled" || echo "disabled"
ls AIWG.md 2>/dev/null && echo "hook file exists" || echo "hook file missing"
If the hook file does not exist on disk:
/hook-regenerate --provider <name> to generate itIf regeneration fails, report the error and stop.
If directive is missing from context file, add it:
For Claude Code — add @AIWG.md after the repository purpose section:
## Repository Purpose
[existing content]
@AIWG.md
For providers with @-link support — add @AIWG-{provider}.md in the appropriate location.
For Codex (no @-link) — insert full AIWG-codex.md content into CODEX.md, marked with AIWG begin/end markers.
For Warp (if @-link uncertain) — add a dedicated AIWG section to WARP.md:
## AIWG Framework Context
@AIWG-warp.md
Hook enabled for Claude Code
Added @AIWG.md directive to CLAUDE.md
AIWG context will load at next session start
To disable: aiwg hook-disable
To regenerate content: aiwg hook-regenerate
If the hook directive is already present:
Hook already enabled for Claude Code
@AIWG.md directive found in CLAUDE.md
No changes made.
| Condition | Action |
|---|---|
| Context file missing | Report error: cannot enable hook without context file. Run aiwg use {provider} first. |
| Hook file missing, regeneration fails | Report error with regeneration failure details |
| No write permission | Report permission error, suggest running with elevated permissions |
| Provider not installed | Skip with informational message |
# Enable for Claude Code
/hook-enable --provider claude
# Enable for all installed providers
/hook-enable --all
# Enable (default: all installed)
/hook-enable
/hook-disable — Remove the AIWG hook directive without uninstalling/hook-status — Show current hook state across all providers/hook-regenerate — Rebuild hook files from installed manifests