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:
- Ask for chapter
name/title/ GitLab path - Add
chapter.yml+ Markdown package - Wire CI (catalog include or inline jobs)
- Remind you about job-token allowlists
- 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, titleMy 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:
docs-chapter:validate— package sanity checks on MR + default branchdocs-chapter:trigger-portal— on default branch only, triggers
neuraverse/documentation/neuraverse-docswithINGEST_*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:
- Chapter project → allow portal to clone with job token
- Portal project → allow chapter to trigger pipelines
Details: CI and permissions.