GitLab Repository Seeder Skill
Stateless atomic operation to programmatically provision Git repositories, configure access tokens, and seed compose stack configurations.
Prerequisites
gitlab-mcp— for GitLab API projects, branches, and token management.
Steps
Step 1: Create Projects
Ensure GitOps repositories exist for each platform application (e.g. Twenty CRM, ERPNext, Plane, Caddy, etc.):
- Create empty private projects on the local GitLab CE instance.
- Setup branch defaults (e.g.,
main).
Step 2: Seed Project Files
Create initial repository configurations:
- Commit the raw
docker-compose.ymlorswarm-stack.ymldefinitions. - Commit basic readme, configurations, or environmental placeholders.
Step 3: Generate Personal Access Tokens
Produce scoped access tokens (GitLab PATs) for programmatic pulling/syncing:
- Create project-level or user-level access tokens with
read_repositoryorwrite_repositoryscopes. - Return the generated token to be securely mapped to GitOps workflows (e.g., Portainer sync).