skillhub-workflow
Use this skill whenever the user is working in the SkillHub repository and needs help with end-to-end workflow execution, including creating or updating skills, maintaining sources.json, syncing remote skills, updating registry outputs, preparing merge requests, debugging GitLab CI behavior, and handling release/deploy checks. Trigger this skill for requests like "add a new skill", "update sources", "fix registry build", "why CI failed", "prepare MR", "schedule pipeline", or any request involving SkillHub repo operations and governance.
| Name | skillhub-workflow |
|---|---|
| Path | skillhub-workflow |
| Version | 1.0.0 |
| Origin | local |
| Source | SkillHub |
| Author | seekthought |
| Tags | skillhub workflow ci gitlab registry skills |
| Compatibility | Requires Node.js 20+, npm, git, and repository access for SkillHub workflows. |
| License | MIT |
Install
skillctl install -r skillhub skillhub-workflow
SkillHub Workflow
This skill provides a complete operating guide for day-to-day work in the SkillHub repository.
Use it to:
- Add or modify local skills under
skills/ - Manage external sources in
sources.json - Rebuild
external-skills.jsonandregistry.json - Validate README and repository consistency
- Prepare safe merge requests
- Diagnose GitLab CI and runner failures
Operating Principles
- Keep changes minimal and scoped to the user request.
- Preserve existing repository conventions and file structure.
- Validate after every meaningful edit.
- Distinguish between user/code errors and infrastructure errors.
- Never introduce secrets in committed files.
Repository Areas
Key files and responsibilities:
skills/<skill-name>/SKILL.md: local skill definitionssources.json: remote source configuration and discovery catalogsexternal-skills.json: synced remote skill cacheregistry.json: merged local + remote skill indexeng/sync-remote-skills.mjs: remote sync implementationeng/update-registry.mjs: registry merge implementation.gitlab-ci.yml: CI rules, schedule behavior, deploy flowREADME.md: user-facing usage and operations documentation
Standard Task Flows
A) Create a New Skill
Follow this order:
- Create directory
skills/<new-skill-name>/ - Create
SKILL.mdwith valid frontmatter:namedescriptionmetadata.versionmetadata.authormetadata.tags
- Add optional
references/,scripts/,assets/only when needed. - Run validation.
- Update docs only if behavior or discoverability changed.
Command sequence:
npm run skill:validate
npm run registry:update
B) Add or Update Remote Skill Sources
Use this when user asks to include third-party skill repositories.
- Edit
sources.json:sources[]: executable sources actually syncedcatalogs: discovery metadata only
- Do not blindly convert discovered repositories into
sources[]until roots/path conventions are known. - Sync remote skills and regenerate registry.
Command sequence:
npm run registry:sync-remote
npm run registry:update
C) Full Build Before MR
Use this for final checks before opening or merging MR.
npm run skill:validate
npm run registry:build
npm run website:build
If any step fails, stop and fix root cause before proceeding.
CI and MR Governance
Target Model
Default governance target:
- Protected default branch (no direct push)
- Changes go through MR
- Pipeline runs on MR and/or default branch according to
.gitlab-ci.yml - Optional auto-approve/auto-merge for
skills/**-only MRs
Rules Interpretation Checklist
When user asks "why did this pipeline run", inspect:
workflow.rules(pipeline creation gate)- Job-level
rules(job execution gate) CI_PIPELINE_SOURCE(push, merge_request_event, schedule, web)- Branch condition (
CI_COMMIT_BRANCH,CI_DEFAULT_BRANCH) changesfilters
Always explain behavior with these variables explicitly.
CI Failure Triage
Category 1: Infrastructure Failure
Examples:
- Kubernetes executor pending forever
etcdserver: request timed outprepare environmentsystem failure
Action:
- Explain this is runner/cluster level, not repo code logic.
- Recommend retry + infra owner investigation.
Category 2: Auth/Permission Failure
Examples:
curl ... 401on GitLab API approve/merge- push back to repo denied
Action:
- Verify token variable name used in CI matches configured variable.
- Verify token scope/permissions.
- Verify protected variable visibility for MR pipelines.
Category 3: Repository Logic Failure
Examples:
- JSON parse errors
- duplicate path collisions
- invalid SKILL frontmatter
Action:
- Reproduce locally with exact command.
- Patch smallest failing area.
- Re-run command to confirm.
Skill Authoring Quality Bar
Every new skill should include:
- Clear trigger language in description
- Boundaries: what it does and does not do
- Step-by-step process
- Explicit output expectations
- Error handling guidance
- At least 2 realistic usage examples
Avoid:
- Vague descriptions
- Tool-specific assumptions without checks
- Hidden side effects
Required Validation After Edits
After changing any of these files, run the matching checks:
- Changed
skills/**:
npm run skill:validate
npm run registry:update
- Changed
sources.jsonor sync scripts:
npm run registry:sync-remote
npm run registry:update
- Changed website build logic:
npm run website:build
- Changed CI config:
- Validate YAML syntax
- Verify expected
workflowandrulesbehavior with concrete scenarios
Communication Template for MR Readiness
Use this response structure when asked for "can I submit now":
- Findings first (ordered by severity)
- Blocking vs non-blocking classification
- Exact file references for each issue
- What was validated locally
- Residual risk (if any)
If no findings:
- State explicitly: "No blocking findings found."
- Mention what was validated and what was not validated.
Examples
Example 1: User asks to add a repository to sources
Expected behavior:
- Add source entry only if repo root/path strategy is known.
- Otherwise add to discovery catalog.
- Run sync + update.
- Report counts and changed outputs.
Example 2: User asks why auto-merge job failed with 401
Expected behavior:
- Identify failing API call and status code.
- Check token variable mapping in CI file.
- Check token presence and scope.
- Explain protected-variable behavior for MR pipelines.
Safety and Security
- Never hardcode API tokens into repository files.
- Use CI variables for credentials.
- Do not suggest destructive git commands unless explicitly requested.
- Preserve unrelated user changes in dirty working trees.
Definition of Done
A SkillHub task is complete only when:
- Requested edits are implemented.
- Relevant local validations pass.
- Behavior is explained in plain language.
- Any remaining risk is explicitly called out.