| name | ghcopilot-hub-consumer |
| description | Workflow for repositories managed by ghcopilot-hub. Trigger: Use when the repository contains `.github/ghcopilot-hub.json`, managed files under `.github/agents/` or `.github/skills/`, or when the user asks to run ghcopilot-hub commands, add/remove packs or skills, inspect drift, update managed files, or customize a consumer repository safely.
|
| license | Apache-2.0 |
| metadata | {"author":"jmgomezdev","version":"1.0"} |
When to Use
Use this skill when:
- The repository has
.github/ghcopilot-hub.json
- The user wants to add or remove packs or skills managed by ghcopilot-hub
- The user wants to inspect drift, preview updates, or resync managed files
- The user needs project-specific customization without breaking managed files
Critical Patterns
Managed Files Are Read-Only
Do not edit managed files directly.
Managed paths:
.github/agents/**
.github/skills/**
If the requested change affects managed content, change the manifest or the hub source, then run the CLI.
Legacy files from earlier CLI versions may still exist in some repositories; ghcopilot-hub update removes them.
Local Customization Stays Outside Managed Paths
Keep repository-specific notes and conventions in repository-owned files outside .github/agents/** and
.github/skills/**.
Preferred Workflow
When acting inside a managed consumer repository:
- Read
.github/ghcopilot-hub.json.
- Decide whether the request needs
init, add, remove, diff, doctor, or update.
- Preview or audit first with
ghcopilot-hub doctor and ghcopilot-hub diff when drift or unexpected changes may
exist.
- Apply
ghcopilot-hub update only after confirming the intended change.
- If local customization is needed, write it in repository-owned files outside managed paths instead of editing
managed files.
Conflict Handling
- If a managed file was edited manually, run
ghcopilot-hub doctor first.
- Do not force overwrite drift unless the user explicitly approves losing local edits.
- If a skill should stop being installed by default, add it to
excludeSkills.
Decision Tree
Need to start management in this repo? -> ghcopilot-hub init
Need new shared capability? -> ghcopilot-hub add pack <id> or add skill <id>
Need to remove managed capability? -> ghcopilot-hub remove pack <id> or remove skill <id>
Need to inspect drift or missing files? -> ghcopilot-hub doctor
Need to preview file changes before writing? -> ghcopilot-hub diff
Need to apply the current hub state? -> ghcopilot-hub update
Need repo-specific customization only? -> edit repository-owned files outside managed paths
Code Examples
Example 1: Consumer Manifest
{
"packs": ["spa-tanstack"],
"skills": ["ghcopilot-hub-mermaid-expert"],
"excludeSkills": [],
"settings": {
"onConflict": "fail"
}
}
Example 2: Repository Local Note
# Repository Overrides
- Prefer `ghcopilot-hub diff` before `ghcopilot-hub update` on this repository.
- Keep internal naming conventions documented here instead of editing managed instructions.
Commands
ghcopilot-hub init --pack spa-tanstack
ghcopilot-hub add skill ghcopilot-hub-mermaid-expert
ghcopilot-hub remove skill ghcopilot-hub-tanstack-router
ghcopilot-hub doctor
ghcopilot-hub diff
ghcopilot-hub update
Resources