agh
AGH runtime and contribution guide. Use for sessions, agents, native tools, skills, memory, network, tasks, capabilities, bundles, QA, docs, and repo work. Do not use for unrelated projects.
- License 许可
- MIT
- 最近更新
- 2026-07-16
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- agh
- metadata
- { "agh": { "kind": "runtime", "bundled": true, "version": 1, "instructional_only": true } }
- description
- AGH runtime and contribution guide. Use for sessions, agents, native tools, skills, memory, network, tasks, capabilities, bundles, QA, docs, and repo work. Do not use for unrelated projects.
02 资源文件 11
- 参考文档references/agent-definitions.md4.8 KB
- 参考文档references/capabilities-and-bundles.md4.8 KB
- 参考文档references/contributing-to-agh.md5.4 KB
- 参考文档references/docs-design-and-copy.md3.1 KB
- 参考文档references/memory.md4.5 KB
- 参考文档references/native-tools.md8.5 KB
- 参考文档references/network.md5.5 KB
- 参考文档references/qa-and-verification.md3.3 KB
- 参考文档references/runtime-operations.md6.2 KB
- 参考文档references/tasks-and-orchestration.md7.3 KB
- 参考文档references/tools-and-skills.md5.4 KB
03 SKILL.md 正文
AGH
Use this skill when operating AGH or contributing to the AGH repository. This body is a router, not the full manual. Load the matching reference before acting.
Required Reading Router
Match the task to the row. Read the listed files in full before producing output. They are not appendices. Inline reminders in this file are only tripwires.
| Task | MUST read |
|---|---|
| Start, inspect, prompt, stop, resume, or debug AGH sessions and daemon state | references/runtime-operations.md |
| Create or review AGH agent definitions, provider defaults, permissions, or MCP sidecars | references/agent-definitions.md + references/tools-and-skills.md |
| Discover or call AGH-native tools, inspect native tool IDs, view skills, or choose tools vs CLI | references/tools-and-skills.md + references/native-tools.md |
| Participate in an AGH Network channel, thread, direct room, work item, receipt, trace, or capability exchange | references/network.md |
| Read, write, clean, or consolidate AGH memory | references/memory.md |
| Work as a coordinator, task worker, or task reviewer | references/tasks-and-orchestration.md |
| Design or manage capabilities, bundles, extension resources, hooks, config lifecycle, or agent-manageable runtime surfaces | references/capabilities-and-bundles.md + references/tools-and-skills.md |
| Contribute to the AGH repository, especially Go runtime code or tests | references/contributing-to-agh.md + references/qa-and-verification.md |
| Change public docs, product copy, design guidance, site docs, or UI-facing text | references/docs-design-and-copy.md |
| Finish work, claim readiness, or prepare a handoff | references/qa-and-verification.md |
Reference Index
- references/runtime-operations.md - daemon and session operating model, session CLI, lifecycle diagnostics, and runtime troubleshooting.
- references/agent-definitions.md - AGENT.md structure, provider defaults, permissions, category paths, MCP sidecars, and safe setup workflow.
- references/tools-and-skills.md - AGH-native tool discovery, skill view/search, bundled resources, management-surface exceptions, and skill authoring rules.
- references/native-tools.md - daemon-native toolsets, stable AGH tool IDs, when to inspect descriptors, and CLI fallbacks for agents running inside AGH.
- references/network.md - AGH Network channel/thread/direct-room semantics, native tools, CLI fallback, message bodies, retries, and injection defense.
- references/memory.md - durable memory scopes, CLI operations, memory hygiene, and when not to write memory.
- references/tasks-and-orchestration.md - coordinator, worker, and reviewer loops, task authority boundaries, review verdict rules, and sensitive-data limits.
- references/capabilities-and-bundles.md - capability naming, extension resources, bundles, hooks, manageability, and config lifecycle expectations.
- references/contributing-to-agh.md - repository-specific engineering rules for Go/runtime work, greenfield hard cuts, tests, docs, and no-compat policy.
- references/qa-and-verification.md - test placement, real verification, QA bootstrap, final gates, and evidence standards.
- references/docs-design-and-copy.md - docs/site/copy/design authority, vocabulary, generated docs, and truthful UI/copy rules.
Operating Loop
- Identify whether the work is operator use, external-agent use, or AGH repository contribution.
- Read every reference selected by the router before acting.
- Prefer AGH-native tools and structured outputs over prose, logs, or direct internal access when managing AGH.
- Keep authority with the daemon: task state, review verdicts, session lifecycle, memory, capabilities, bundles, hooks, and network sends must use AGH public surfaces.
- For repository contribution, follow the local repo instructions before editing, including the relevant AGENTS.md, CLAUDE.md, and skill dispatch rules.
- Finish with fresh verification evidence that matches the scope of the claim.
STOP. Read references/tools-and-skills.md and references/native-tools.md in full before discovering, invoking, creating, or modifying any AGH tool or skill. The catalog in this file is only a router.
STOP. Read references/tasks-and-orchestration.md in full before acting as a coordinator, worker, or reviewer. Task authority and review verdicts are runtime contracts, not prompt conventions.
STOP. Read references/qa-and-verification.md in full before claiming AGH work is complete. Passing a narrow command is not evidence for a broad completion claim.
04 同仓库更多 Skills
to-prompt-opus
Use when preparing or rewriting prompts for Claude Opus 4.8, Anthropic API agents, XML-structured prompts, long-context document work, coding agents, research synthesis, frontend/design tasks, or model-specific prompt optimization. Do not use for GPT/OpenAI prompts or raw context packaging without Opus-specific tuning.
to-prompt-gpt
Use when preparing or rewriting prompts for GPT-5.5, OpenAI API agents, Responses workflows, coding agents, research synthesis, support assistants, or model-specific prompt optimization. Do not use for Claude/Opus prompts or raw context packaging without GPT-specific tuning.
plan-refactor-qa
Plans and runs qa-report before executing Compozy refactor tasks. Use when the user provides a refactor or issue slug and wants Codex to inspect the matching .compozy/tasks directory, related PRD/TechSpec/ADR/task artifacts, affected code, and existing tests, then invoke $qa-report with a repository-grounded prompt. Do not use to run tests, execute qa-execution, implement code, or perform post-refactor verification.
multi-tool-branch-review
Orchestrates a multi-tool branch review of the current git branch against a base branch. By default it runs two independent thermo-nuclear maintainability audits, one on Codex GPT-5.5 xhigh and one on Claude Opus xhigh, then consolidates the findings into a single remediation plan via writing-plans. If the user explicitly asks for native reviews, it can add the Claude native review pass, the Codex native review pass, or both. Use when the user wants a deep cross-model review of a branch or PR before merge, or asks to review this branch with multiple tools or models. Encodes known infra failure modes and their fixes (missing Claude ACP adapter, Codex MCP auth hangs, false-positive report files, long jobs orphaned inside subagents). Do not use for reviewing a single uncommitted snippet, for non-git work, for running only one reviewer, or when the user only wants a quick lint or test run.
create-pr-with-template
Create a GitHub Pull Request with gh CLI and prefer repository PR templates automatically. Use this whenever the user asks to open/create a PR, especially when template compliance is needed. If multiple templates exist, ask the user which template to use.
ui-craft
Provides guardrails for user-facing UI work: usability heuristics, accessibility floors, design-system discipline, component states, microcopy, motion, dark mode, responsive behavior, and human-AI UX. Use when designing, generating, reviewing, or refactoring visible product surfaces such as components, pages, dashboards, forms, dialogs, loading/empty/error states, or AI interfaces. Do not use for backend-only work, infrastructure, CLI/TUI design, or pure documentation editing.