Skip to main content

Development workflow

Status: APPROVED HUMAN DECISION by the project owner on 2026-10-05 (record). This page is the reference for people and AI agents. Abbreviations are explained in the glossary.

Overview​

GitLab drives the project. Spec Kit specifies an implementation. They are not two competing project management tools.

LevelWhereContent
Release / MilestoneGitLabWhat is delivered together
TicketGitLab Issue, BoardWhat is being built, why, acceptance criteria, state
Specificationspecs/<spec>/ of the responsible repositoryspec.md, plan.md, tasks.md
Detailed technical progressspecs/<spec>/tasks.md[ ] / [x] checkboxes per task
CodeCommits, Merge RequestImplementation, tests

There is no other progress system: no sprint in Spec Kit, no copy of the Spec Kit tasks in GitLab, no other project management tool.

Spec Kit per repository​

Spec Kit is distributed: the specification of an implementation lives in the repository that carries it out. The cross-cutting documentation lives in hoggar-docs. There is no large central specification covering all of Hoggar, and a cross-cutting specification does not automatically go into hoggar-infra.

RepositorySpec Kit
hoggar-infraYes
hoggar-webYes (initialised; no active spec for now)
hoggar-aiNot for now — keeps its ai-engineering-change workflow
hoggar-docsNot for now — central repository of the cross-cutting documentation
hoggar-api, hoggar-app, hoggar-mobile (future, not created)Yes, as soon as they are created, for the developments that require it

When to use Spec Kit​

A GitLab Issue can have no, one or several specs.

  • Small fix: Issue → implementation → Merge Request, without a spec. The checks (gates), the task journal and the human validations still apply; in case of doubt about the size, ask.
  • Complex change: one spec per repository concerned, for example:
GitLab Issue #142
├── hoggar-api → SPEC-005 — 005-feature-gpx-import
└── hoggar-web → SPEC-003 — 003-feature-gpx-import

Spec Kit steps​

/speckit.specify → /speckit.clarify (if necessary) → /speckit.plan
→ /speckit.tasks → /speckit.analyze → /speckit.implement

The commands keep their official names (Claude Code: /speckit-specify; Codex: $speckit-specify). speckit-taskstoissues is never used.

Main artefacts: spec.md, plan.md, tasks.md. The artefacts research.md, data-model.md, contracts/, quickstart.md and checklists/ are created only when they are useful, never to fill a structure.

Naming and identifiers of specs​

Folder: specs/NNN-type-description/.

TypeUse
featureFeature
bugDefect fix
securitySecurity
infraInfrastructure
refactorRestructuring without functional change
migrationMigration (data, platform, version)
foundationTechnical foundation
  • NNN: sequential number specific to each repository; it is never reused.
  • Short identifier: SPEC-NNN (e.g. SPEC-005). Between repositories, specify it: hoggar-api/SPEC-005.
  • description in English (e.g. 005-feature-gpx-import); the content of the specs is in French.
  • GitLab Issue numbers and spec numbers are independent: never synchronise them artificially.

Historical specs kept as is (renaming not safe):

RepositoryPathTypeStatus
hoggar-infraspecs/001-sprint0-foundation/foundationHISTORICAL / SUPERSEDED (PD-017); number 001 never reused (PD-018)
hoggar-infraspecs/002-ai-agent-isolation/securityActive draft; same name as its published branch

Issue ↔ spec link (bidirectional)​

  • Each spec states in its header the corresponding GitLab Issue when it exists: **Issue GitLab** : Hoggar/hoggar-api#142.
  • The Issue lists its specs in its Spec Kit section (template .gitlab/issue_templates/feature.md).
  • The Issue contains the functional acceptance criteria; the technical tasks remain in tasks.md.

GitLab Issue numbers are specific to each GitLab project. #142 designates the Issue of the current project; for an Issue of another project, GitLab uses the full reference Hoggar/hoggar-api#142 (native syntax, also valid in Closes).

Progress​

During the implementation, the agent or the person ticks the tasks in tasks.md as the work proceeds:

- [x] T001 ...
- [x] T002 ...
- [ ] T003 ...

The state of the ticket is tracked in the GitLab Issue and its Board; the state of the release in the Milestone.

Commits​

Messages in English, without a Conventional Commits scope:

<type>: <description in English> [#<issue>] [SPEC-<id>]
CaseExample
Work linked to an Issue and to a specfeat: add GPX parser [#142] [SPEC-005]
Work linked to an Issue, without a specfix: correct login button alignment [#221]

Types: feat, fix, docs, test, refactor, ci, chore, security, infra. The Issue identifier is mandatory for any work commit linked to a ticket; [SPEC-…] only if the work belongs to a spec. No feat(gpx): …. No Issue number is invented: without an Issue, the Issue is created first.

Commits made before 2026-10-05 keep their original format; the Git history is never rewritten.

Branches (GitFlow)​

Approved human decision by the project owner on 2026-10-06: GitFlow for the 4 repositories. Names in English, allowing the ticket to be found.

BranchStarts fromMerged intoRole
master——Stable / production, protected. Only branch deployed by Coolify
developmaster—Integration and default GitLab branch, protected. Never deployed to production
feature/<issue>-<description>developdevelop (MR)Feature, e.g. feature/142-gpx-import
bugfix/<issue>-<description>developdevelop (MR)Non-urgent defect, e.g. bugfix/183-invalid-gpx
security/<issue>-<description>developdevelop (MR)Security, e.g. security/191-restrict-agent-access
infra/<issue>-<description>developdevelop (MR)Infrastructure, CI, deployment, e.g. infra/87-backup-strategy
refactor/<issue>-<description>developdevelop (MR)Restructuring without change of behaviour
docs/<issue>-<description>developdevelop (MR)Documentation and AI rules, e.g. docs/12-development-workflow
release/<version>developmaster (MR), then tag vX.Y.Z and back into developPreparation of a version, e.g. release/0.1.0
hotfix/<issue>-<description>mastermaster (MR), then merged back into develop (MR)Urgent production fix

Rules:

  • nobody pushes directly to master or develop: everything goes through a Merge Request; no agent merges an MR itself or merges locally to bypass it;
  • a Spec Kit spec never replaces the GitLab Issue or the branch;
  • without access to the GitLab API to create an Issue or an MR, the agent stops and asks for the human action.

Spec Kit 1.0.13 no longer deduces the spec folder from the branch name (.specify/feature.json), so the branch name may differ from the spec folder. The branches created before GitFlow (002-ai-agent-isolation, <issue>-<type>-<description>, docs/…, ai/…) are not renamed. The main branch is obsolete: it must never be used as a source or a target.

Merge Request​

Template: .gitlab/merge_request_templates/Default.md. A work MR targets develop; only the release/… and hotfix/… branches target master. The merge is done by a human (HG-MERGE). The MR states:

Issue: #142
Spec: SPEC-005
Closes #142

as well as what was done and the tests performed. Closes #142 (or Closes Hoggar/hoggar-api#142) closes the Issue on merge into the default branch, develop — native GitLab feature, no specific mechanism.

Expected traceability​

Release v0.1.0
└── GitLab Issue #142
├── hoggar-api SPEC-005 ─┐
└── hoggar-web SPEC-003 ─┴─ tasks.md
└── commits [#142] [SPEC-xxx]
└── Merge Request(s) → develop
└── release/0.1.0 → MR → master
└── tag v0.1.0 → deployment

When opening the Issue, one must understand: what is being built, why, the repositories concerned, the specs concerned, where to follow the technical progress and the planned release.

Rules for AI agents​

The agents apply this page; the detailed rules for agents are in hoggar-ai (policies/git.md, spec-kit/conventions/) and in the CLAUDE.md / AGENTS.md of each repository. Pending decisions remain pending: this workflow approves none of them.

Language​

ContentLanguage
spec.md, plan.md, tasks.md, checklists, Hoggar documentationFrench
Code, branch names, commit messagesEnglish
Commands, tools, file names imposed by Spec KitOfficial names unchanged

French is the canonical language; the portal also publishes an English translation and an Arabic translation (see Documentation).