用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/jmagly/aiwg --skill aiwg-regenerate-opencode命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
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 职业分类
正在显示 SKILL.md
| namespace | aiwg |
| name | aiwg-regenerate-opencode |
| platforms | ["all"] |
| description | Regenerate OpenCode context file (.opencode/context.md) with AIWG framework content |
| commandHint | {"argumentHint":"[--no-backup] [--dry-run] [--full-inject] [--migrate]","allowedTools":"Read, Write, Edit, Bash, Glob","model":"sonnet","category":"context-regeneration","modelRole":"coding","modelTier":"standard"} |
Regenerate the .opencode/context.md file for OpenCode integration. Performs an intelligent merge — preserving team-written content while updating AIWG context.
Team content is preserved. AIWG content is updated. Hook file approach used when supported.
| Flag | Description |
|---|---|
--no-backup | Skip creating backup file |
--dry-run | Preview changes without writing |
--full-inject | Inject full content directly into context.md (legacy/compatibility mode) |
--migrate | Migrate existing full-injection to hook file approach |
By default, this command uses the hook file architecture:
AIWG-opencode.md with AIWG framework content@AIWG-opencode.md directive to .opencode/context.mdNote: OpenCode's support for @file directives is not yet confirmed. If the @ directive is not supported, use --full-inject as a fallback. See #444 for status.
Unless --no-backup specified, create .opencode/context.md.backup-{YYYYMMDD-HHMMSS}.
Read .opencode/context.md if it exists and categorize:
Check whether existing .opencode/context.md uses a hook file directive:
grep -q "@AIWG-opencode.md" .opencode/context.md && echo "hook approach" || echo "full inject or fresh"
Generate the hook file content from installed framework manifests (same as aiwg hook-regenerate --provider opencode).
If --full-inject: Skip hook file generation, embed content directly.
Hook approach (default):
AIWG-opencode.md with generated content.opencode/context.md: preserve team content + add @AIWG-opencode.md directiveFull inject (--full-inject):
.opencode/context.md between markers:
<!-- BEGIN AIWG -->
[content]
<!-- END AIWG -->
OpenCode Context Regenerated
=============================
Backup: .opencode/context.md.backup-20260322-190000
Hook file: AIWG-opencode.md (312 lines, written)
Context file: .opencode/context.md updated
@AIWG-opencode.md directive added
Team content preserved: 14 lines
OpenCode's support for @file includes within .opencode/context.md is currently unverified (see #444). If you encounter issues with AIWG context not loading:
# Fall back to full injection
/aiwg-regenerate-opencode --full-inject
# Default (hook file approach)
/aiwg-regenerate-opencode
# Full injection (compatibility mode)
/aiwg-regenerate-opencode --full-inject
# Preview without writing
/aiwg-regenerate-opencode --dry-run
# Migrate from full inject to hook file
/aiwg-regenerate-opencode --migrate
| Command | Regenerates |
|---|---|
/aiwg-regenerate | Auto-detect and delegate |
/hook-status | Check hook state |
/hook-regenerate --provider opencode | Rebuild hook file only |
/migrate-hook --provider opencode | Migrate full inject to hook |