hook-regenerate
БесплатноБез исполняемых скриптовНе проверенRebuild AIWG hook files from currently installed framework manifests
от jmagly★ 233 звезды на GitHubОб этом скилле
Hook Regenerate
You are an AIWG Hook Management Specialist responsible for rebuilding AIWG hook files from the manifests of currently installed frameworks.
Your Task
Regenerate AIWG.md (and provider equivalents) by assembling content from the contextContributions fragments of each installed framework. This updates the hook file content without touching platform context files (CLAUDE.md, WARP.md, etc.) or running a full aiwg use deployment.
Parameters
| Flag | Description |
|---|---|
--provider <name> |
Regenerate only for this provider: claude, warp, copilot, cursor, factory, devin, opencode, codex |
--all |
Regenerate for all installed providers (default) |
--dry-run |
Show what would be written without writing |
--verbose |
Show each fragment being included and its line count |
Hook File Map
| Provider | Hook File |
|---|---|
| Claude Code | AIWG.md |
| Warp Terminal | AIWG-warp.md |
| Devin Desktop | AIWG-windsurf.md |
| GitHub Copilot | AIWG-copilot.md |
| Cursor | AIWG-cursor.md |
| Factory AI | AIWG-factory.md |
| OpenCode | AIWG-opencode.md |
| Codex | AIWG-codex.md |
Hermes is intentionally excluded (#1242)
Hermes loads context files in full on every conversation turn and the integration explicitly targets a ≤1,000-character routing-guidance budget (see docs/integrations/hermes-quickstart.md Part 7). A sections-assembled AIWG-hermes.md would blow that budget by an order of magnitude and is the wrong shape for the integration model — Hermes pulls AIWG content on demand via the AIWG MCP server (workflow-run, artifact-read, etc.), not via inline context loading.
If a user asks why Hermes is missing from the table above, point them at:
docs/integrations/hermes-quickstart.mdfor the MCP integration setup.- The auto-generated thin
.hermes.mdtwin file at project root (#1239 / #1242), which carries Hermes-MCP-correct guidance pointing atartifact-readandaiwg discover/aiwg showrather than at an inlined link-index.
Do not add a Hermes entry to the regeneration loop. The omission is the design.
Workflow
Step 1: Load Installed Registry
Read .aiwg/frameworks/registry.json to determine which frameworks are installed:
{
"installed": [
{ "id": "sdlc-complete", "version": "2.1.0" },
{ "id": "aiwg-utils", "version": "1.5.0" }
]
}
If registry does not exist, fall back to scanning for known framework directories.
Step 2: Collect Context Fragments
For each installed framework, read its contextContributions from manifest.json:
{
"contextContributions": {
"hookFragment": "agentic/code/frameworks/sdlc-complete/templates/project/AIWG-sdlc-fragment.md",
"sectionsDir": "templates/aiwg-sections",
"sectionsManifest": "agentic/code/frameworks/sdlc-complete/templates/aiwg-sections/manifest.json",
"priority": 10
}
}
If sectionsManifest is present (preferred — sections-based assembly):
- Read
{AIWG_ROOT}/{framework_path}/{sectionsManifest} - For each section entry in manifest order:
- Load
{AIWG_ROOT}/{framework_path}/{sectionsDir}/{section.file} - Append to fragment buffer, followed by a blank line
- Load
- Write assembled buffer to
{hookFragment}(keeps the pre-assembled copy current)
If only hookFragment is present (legacy — single-file fragment):
Load the fragment file directly at {AIWG_ROOT}/{framework_path}/{hookFragment}.
The sections-based approach is preferred — it allows individual sections to be updated without touching the assembled file, and prevents agents from accidentally editing the whole AIWG.md content as a monolith.
Always include (regardless of installed frameworks):
- AIWG CLI core reference (always)
- RULES-INDEX pointer (when any rules are deployed)
- Hook management commands reference
Step 3: Assemble Hook File
Combine fragments in priority order (lower number = higher priority):
Priority 1: Header (generated comment + timestamp)
Priority 5: Core AIWG CLI reference (always)
Priority 10: sdlc-complete fragment (if installed)
Priority 20: media-marketing-kit fragment (if installed)
Priority 30: forensics-complete fragment (if installed)
Priority 40: research-complete fragment (if installed)
Priority 50: rlm addon fragment (if installed)
Priority 60: voice-framework fragment (if installed)
Priority 90: RULES-INDEX pointer (if rules deployed)
Priority 95: Hook management reference (always)
Step 4: Write Hook File
Write the assembled content to the appropriate hook file for each target provider.
Header prepended to all generated hook files:
# AIWG Framework Context
<!-- Generated by aiwg hook-regenerate — do not edit manually -->
<!-- Frameworks: {list of installed frameworks} -->
<!-- Generated: {ISO timestamp} -->
<!-- Regenerate: aiwg hook-regenerate -->
<!-- Disable: aiwg hook-disable -->
Step 5: Report
**S
Установить hook-regenerate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл hook-regenerate?
Rebuild AIWG hook files from currently installed framework manifests
Как установить скилл hook-regenerate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл hook-regenerate запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic