agentleFS
vladcheckvladcheck/agentic/skills/publish-spec-gitlab-milestone/SKILL.md

publish-spec-gitlab-milestone

Skill1 starsChanged 10 days agoMITView on GitHub

Use when publishing an approved spec as a GitLab milestone with a ready-for-agent anchor issue. Not for ticket breakdowns or milestone admin.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Write the complete spec to a temporary <spec-file>.

    line 14
  2. Distinctive:

    Create the milestone and save the complete create response:

    line 32
  3. Distinctive:

    Put the complete spec into the milestone description, addressing the milestone by its global REST ID:

    line 48
  4. Very specific:

    Ensure the ready-for-agent triage label exists:

    line 55
  5. Distinctive:

    If the label lookup returns 404, create the label:

    line 61
  6. Distinctive:

    Stop on lookup errors other than 404.

    line 69
  7. Very specific:

    Write a temporary <pointer-file> containing only the anchor text and milestone URL:

    line 71
  8. Distinctive:

    Keep the full spec out of the anchor issue.

    line 81
  9. Distinctive:

    Create or reuse the anchor issue:

    line 83
  10. Distinctive:

    Verify the persisted milestone description and issue metadata before reporting completion:

    line 105

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Publish a spec as a GitLab milestone

Publish the complete spec in the milestone description. Use the anchor issue only as a pointer to that description and as the carrier of the ready-for-agent triage label.

Procedure

  1. Obtain <repo>, the numeric REST <project-id>, <milestone-title>, the approved spec, and, when converting an existing plain issue, its <issue-iid>. Use <milestone-id> only for the global numeric REST milestone id, never for a project-scoped IID.
  2. Write the complete spec to a temporary <spec-file>. Preserve the approved content and use this English section template:

    # Problem Statement
    
    # Solution
    
    # User Stories
    
    # Implementation Decisions
    
    # Testing Decisions
    
    # Out of Scope
    
    # Further Notes
  3. Create the milestone and save the complete create response:

    glab api projects/<project-id>/milestones -X POST \
      -f title="<milestone-title>" > <milestone-response>

    Extract <milestone-id> and <milestone-url> directly from that response:

    jq -r '.id' <milestone-response>
    jq -r '.web_url' <milestone-response>

    Require a nonempty numeric id and a nonempty web_url before continuing. Do not recover the ID by listing milestones or indexing an array.

  4. Put the complete spec into the milestone description, addressing the milestone by its global REST ID:

    glab api projects/<project-id>/milestones/<milestone-id> -X PUT \
      -f description=@<spec-file>
  5. Ensure the ready-for-agent triage label exists:

    glab api projects/<project-id>/labels/ready-for-agent

    If the label lookup returns 404, create the label:

    glab api projects/<project-id>/labels -X POST \
      -f name="ready-for-agent" \
      -f color="#95a5a6"

    Stop on lookup errors other than 404.

  6. Write a temporary <pointer-file> containing only the anchor text and milestone URL:

    The complete specification is maintained in the milestone description:
    
    <milestone-url>
    
    Use the milestone description as the single source of truth. This anchor issue tracks implementation readiness.

    Keep the full spec out of the anchor issue.

  7. Create or reuse the anchor issue:
    • For a new anchor issue, run:

      glab issue create --repo <repo> \
        --title "Spec: <milestone-title>" \
        --description-file <pointer-file> \
        --milestone "<milestone-title>" \
        --label ready-for-agent \
        --yes

      Capture the created issue's project-scoped <issue-iid>.

    • To convert an existing plain issue, replace its body with the pointer and attach the milestone and triage label:

      glab issue update <issue-iid> --repo <repo> \
        --description-file <pointer-file> \
        --milestone "<milestone-title>" \
        --label ready-for-agent
  8. Verify the persisted milestone description and issue metadata before reporting completion:

    glab api projects/<project-id>/milestones/<milestone-id> > <milestone-verification>
    jq -e --rawfile spec <spec-file> \
      '.description == $spec' <milestone-verification>
    glab issue view <issue-iid> --repo <repo>

    Confirm that the milestone response has the expected <milestone-id> and title and that the comparison returns true. Confirm that the anchor issue has the ready-for-agent triage label, belongs to <milestone-title>, and contains only the pointer to the milestone description.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.