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.

Nameskillhub-workflow
Pathskillhub-workflow
Version1.0.0
Originlocal
SourceSkillHub
Authorseekthought
Tagsskillhub workflow ci gitlab registry skills
CompatibilityRequires Node.js 20+, npm, git, and repository access for SkillHub workflows.
LicenseMIT

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:

Operating Principles

  1. Keep changes minimal and scoped to the user request.
  2. Preserve existing repository conventions and file structure.
  3. Validate after every meaningful edit.
  4. Distinguish between user/code errors and infrastructure errors.
  5. Never introduce secrets in committed files.

Repository Areas

Key files and responsibilities:

Standard Task Flows

A) Create a New Skill

Follow this order:

  1. Create directory skills/<new-skill-name>/
  2. Create SKILL.md with valid frontmatter:
    • name
    • description
    • metadata.version
    • metadata.author
    • metadata.tags
  3. Add optional references/, scripts/, assets/ only when needed.
  4. Run validation.
  5. 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.

  1. Edit sources.json:
    • sources[]: executable sources actually synced
    • catalogs: discovery metadata only
  2. Do not blindly convert discovered repositories into sources[] until roots/path conventions are known.
  3. 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:

Rules Interpretation Checklist

When user asks "why did this pipeline run", inspect:

  1. workflow.rules (pipeline creation gate)
  2. Job-level rules (job execution gate)
  3. CI_PIPELINE_SOURCE (push, merge_request_event, schedule, web)
  4. Branch condition (CI_COMMIT_BRANCH, CI_DEFAULT_BRANCH)
  5. changes filters

Always explain behavior with these variables explicitly.

CI Failure Triage

Category 1: Infrastructure Failure

Examples:

Action:

Category 2: Auth/Permission Failure

Examples:

Action:

Category 3: Repository Logic Failure

Examples:

Action:

Skill Authoring Quality Bar

Every new skill should include:

Avoid:

Required Validation After Edits

After changing any of these files, run the matching checks:

npm run skill:validate
npm run registry:update
npm run registry:sync-remote
npm run registry:update
npm run website:build

Communication Template for MR Readiness

Use this response structure when asked for "can I submit now":

  1. Findings first (ordered by severity)
  2. Blocking vs non-blocking classification
  3. Exact file references for each issue
  4. What was validated locally
  5. Residual risk (if any)

If no findings:

Examples

Example 1: User asks to add a repository to sources

Expected behavior:

  1. Add source entry only if repo root/path strategy is known.
  2. Otherwise add to discovery catalog.
  3. Run sync + update.
  4. Report counts and changed outputs.

Example 2: User asks why auto-merge job failed with 401

Expected behavior:

  1. Identify failing API call and status code.
  2. Check token variable mapping in CI file.
  3. Check token presence and scope.
  4. Explain protected-variable behavior for MR pipelines.

Safety and Security

Definition of Done

A SkillHub task is complete only when:

  1. Requested edits are implemented.
  2. Relevant local validations pass.
  3. Behavior is explained in plain language.
  4. Any remaining risk is explicitly called out.
Back to all skills