Skip to content

Cursor skill + CI catalog

Two optional helpers make chapter onboarding repeatable: a Cursor skill (for the agent) and a GitLab CI catalog component (for the pipeline).

Why they exist

Helper Who uses it What it does
Cursor skill add-neuraverse-docs-chapter You + Cursor in any product repo Creates chapter.yml, docs layout, and CI wiring from a checklist
Catalog component chapter-ingest GitLab CI Reusable validate + trigger jobs so every team does not copy-paste YAML

You can use either, both, or neither (inline CI still works — see How to add a chapter).

Cursor skill

What it is

A project skill shipped with this example:

.cursor/skills/add-neuraverse-docs-chapter/SKILL.md

It teaches Cursor to:

  1. Ask for chapter name / title / GitLab path
  2. Add chapter.yml + Markdown package
  3. Wire CI (catalog include or inline jobs)
  4. Remind you about job-token allowlists
  5. Tell you how to verify /guides/<name>/

Install into another repo

# From a clone of this example project
mkdir -p /path/to/your-repo/.cursor/skills
cp -R .cursor/skills/add-neuraverse-docs-chapter \
  /path/to/your-repo/.cursor/skills/

Or install once for your laptop (all projects):

mkdir -p ~/.cursor/skills
cp -R .cursor/skills/add-neuraverse-docs-chapter ~/.cursor/skills/

How to invoke

In Cursor chat on the product repo:

Use the add-neuraverse-docs-chapter skill to wire this project into the Neuraverse docs portal. Chapter name my-service, title My Service.

CI catalog component

Project

neuraverse/ci-catalog-docs-portal
Component path: /templates/chapter-ingest/template.yml

Minimal consumer CI

stages:
  - validate
  - trigger

include:
  - project: neuraverse/ci-catalog-docs-portal
    ref: main   # pin a semver tag when the catalog releases one
    file: /templates/chapter-ingest/template.yml
    inputs:
      ingest_project: neuraverse/<your-group>/<your-project>
      # chapter_file: chapter.yml   # default
      # docs_path: docs             # default — change if docs live elsewhere

That expands to:

  1. docs-chapter:validate — package sanity checks on MR + default branch
  2. docs-chapter:trigger-portal — on default branch only, triggers
    neuraverse/documentation/neuraverse-docs with INGEST_* variables

Inputs

Input Default Meaning
ingest_project (required) Full GitLab path of this chapter repo
chapter_file chapter.yml Manifest path
docs_path docs Folder validated for Markdown
portal_project neuraverse/documentation/neuraverse-docs Ingest target
portal_branch main Portal branch to trigger
validate_stage / trigger_stage validate / trigger Stage names in your pipeline
job_prefix docs-chapter Job name prefix

This example project

Uses the catalog include (see root .gitlab-ci.yml). If the catalog MR is not merged yet, keep the inline jobs from the how-to as a temporary fallback.

Permissions still required

Catalog and skill do not replace allowlists:

  1. Chapter project → allow portal to clone with job token
  2. Portal project → allow chapter to trigger pipelines

Details: CI and permissions.